2017-09-08 00:56:58 +08:00
|
|
|
@import (once) "../../customize/src/less2/include/browser.less";
|
|
|
|
@import (once) "../../customize/src/less2/include/markdown.less";
|
|
|
|
@import (once) "../../customize/src/less2/include/mediatag.less";
|
2017-12-12 00:17:06 +08:00
|
|
|
@import (once) "../../customize/src/less2/include/framework.less";
|
2017-03-10 02:05:44 +08:00
|
|
|
|
2017-09-08 00:56:58 +08:00
|
|
|
.mediatag_base();
|
2017-12-12 00:17:06 +08:00
|
|
|
.framework_main(
|
2017-12-08 02:00:13 +08:00
|
|
|
@bg-color: @colortheme_slide-bg,
|
|
|
|
@warn-color: @colortheme_slide-warn,
|
|
|
|
@color: @colortheme_slide-color
|
|
|
|
);
|
2017-09-08 00:56:58 +08:00
|
|
|
|
|
|
|
// body
|
|
|
|
font-size: unset;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
|
|
|
|
@slide-default-bg: #000;
|
|
|
|
.size (@n) {
|
|
|
|
// font-size: @n * 1vmin;
|
|
|
|
// line-height: @n * 1.1vmin;
|
|
|
|
font-size: @n * 10%;
|
|
|
|
// line-height: @n * 11%;
|
|
|
|
line-height: 110%;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 { font-size: 40px; }
|
|
|
|
h2 { font-size: 37px; }
|
|
|
|
h3 { font-size: 34px; }
|
|
|
|
h4 { font-size: 31px; }
|
|
|
|
h5 { font-size: 27px; }
|
|
|
|
h6 { font-size: 24px; }
|
|
|
|
|
2017-11-28 00:55:20 +08:00
|
|
|
#cp-app-slide-editor-container {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-flow: column;
|
2017-09-08 00:56:58 +08:00
|
|
|
height: 100%;
|
2017-09-11 20:42:43 +08:00
|
|
|
min-height: 100%;
|
2017-11-28 00:55:20 +08:00
|
|
|
width: 50%;
|
|
|
|
min-width: 20%;
|
|
|
|
max-width: 80%;
|
|
|
|
overflow: hidden;
|
|
|
|
max-width: 100%;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
.CodeMirror {
|
|
|
|
flex: 1;
|
|
|
|
width: 100%;
|
2017-09-08 00:56:58 +08:00
|
|
|
font-size: initial;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.CodeMirror-focused .cm-matchhighlight {
|
|
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);
|
|
|
|
background-position: bottom;
|
|
|
|
background-repeat: repeat-x;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-colorpicker {
|
|
|
|
display: block;
|
2017-03-10 23:46:36 +08:00
|
|
|
}
|
2017-03-17 22:30:27 +08:00
|
|
|
|
2017-06-19 16:37:01 +08:00
|
|
|
#cme_toolbox {
|
|
|
|
z-index: 10000;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
|
|
|
|
#cp-app-slide-editor {
|
2017-06-16 21:11:32 +08:00
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
.CodeMirror {
|
|
|
|
resize: none;
|
2017-12-01 00:24:43 +08:00
|
|
|
//width: 100vw;
|
2017-06-16 21:11:32 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
&.cp-app-slide-preview {
|
2017-06-16 21:11:32 +08:00
|
|
|
.CodeMirror {
|
|
|
|
//resize: horizontal;
|
2017-12-01 00:24:43 +08:00
|
|
|
//width: 50vw;
|
2017-06-16 21:11:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-preview {
|
|
|
|
.cp-app-slide-viewer {
|
2017-07-20 15:55:18 +08:00
|
|
|
width: 50vw;
|
|
|
|
overflow: hidden;
|
2017-09-08 00:56:58 +08:00
|
|
|
div#cp-app-slide-modal:not(.cp-app-slide-shown) {
|
2017-07-20 15:55:18 +08:00
|
|
|
position: relative;
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
|
|
|
width: auto;
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-modal-content {
|
|
|
|
.cp-app-slide-container {
|
2017-07-20 15:55:18 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-frame {
|
2017-07-20 15:55:18 +08:00
|
|
|
width: 50vw;
|
|
|
|
height: 28.125vw; // height:width ratio = 9/16 = .5625
|
|
|
|
max-height: ~"calc(100vh - 96px)";
|
|
|
|
max-width: ~"calc(16 / 9 * (100vh - 96px))";
|
|
|
|
//max-height: 100vh;
|
|
|
|
//max-width: 177.78vh; // 16/9 = 1.778
|
|
|
|
}
|
2017-06-16 21:11:32 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-modal-exit {
|
2017-07-20 15:55:18 +08:00
|
|
|
visibility: hidden;
|
2017-06-16 21:11:32 +08:00
|
|
|
}
|
|
|
|
}
|
2017-07-20 15:55:18 +08:00
|
|
|
}
|
|
|
|
.CodeMirror {
|
|
|
|
flex: 1;
|
2017-06-16 21:11:32 +08:00
|
|
|
}
|
|
|
|
}
|
2017-03-17 22:30:27 +08:00
|
|
|
|
|
|
|
/* Slide position (print mode) */
|
2017-03-20 19:47:28 +08:00
|
|
|
@ratio:0.9;
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-print {
|
2017-03-10 23:46:36 +08:00
|
|
|
position: relative;
|
|
|
|
display: none;
|
2017-03-20 19:47:28 +08:00
|
|
|
font-size: @ratio*11.25vw;
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-frame {
|
|
|
|
display: flex !important;
|
|
|
|
flex-flow: column;
|
2017-03-20 19:47:28 +08:00
|
|
|
padding: 0.5em;
|
|
|
|
margin: auto;
|
|
|
|
border: 1px solid black;
|
|
|
|
height: @ratio*56.25vw;
|
|
|
|
width: @ratio*100vw;
|
2017-03-10 23:46:36 +08:00
|
|
|
page-break-after: always;
|
2017-03-10 02:05:44 +08:00
|
|
|
position: relative;
|
2017-03-10 23:46:36 +08:00
|
|
|
box-sizing: border-box;
|
2017-06-19 21:26:27 +08:00
|
|
|
overflow: hidden;
|
2017-03-10 23:46:36 +08:00
|
|
|
li {
|
2017-03-20 19:47:28 +08:00
|
|
|
min-width: @ratio*50vw;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
2017-03-10 23:46:36 +08:00
|
|
|
h1 {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2017-03-18 00:49:03 +08:00
|
|
|
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-container {
|
2017-03-20 19:47:28 +08:00
|
|
|
width: 90vw;
|
|
|
|
height: 100vh;
|
2017-07-20 20:41:51 +08:00
|
|
|
margin: 0vh 5vw !important;
|
2017-03-20 19:47:28 +08:00
|
|
|
display: flex;
|
|
|
|
&:last-child {
|
|
|
|
height: ~"calc(100vh - 2px)";
|
|
|
|
}
|
|
|
|
}
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
2017-03-10 23:46:36 +08:00
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
/* Slide position (present mode) */
|
2017-09-08 00:56:58 +08:00
|
|
|
div#cp-app-slide-modal {
|
2017-03-10 02:05:44 +08:00
|
|
|
display: none;
|
2017-06-16 21:11:32 +08:00
|
|
|
background-color: black;
|
|
|
|
color: white;
|
2017-03-10 02:05:44 +08:00
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
/* Navigation buttons */
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-modal-button {
|
2017-03-17 22:30:27 +08:00
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 30px;
|
|
|
|
opacity: 0.6;
|
|
|
|
display: none;
|
2017-03-18 01:39:39 +08:00
|
|
|
z-index: 9001;
|
2017-03-17 22:30:27 +08:00
|
|
|
}
|
2017-09-13 23:22:43 +08:00
|
|
|
.cp-app-slide-modal-button:hover {
|
2017-03-17 22:30:27 +08:00
|
|
|
opacity: 1;
|
|
|
|
display: block !important;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-modal-exit {
|
2017-03-17 22:30:27 +08:00
|
|
|
left: 20px;
|
|
|
|
top: 20px;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-modal-left {
|
2017-03-17 22:30:27 +08:00
|
|
|
left: 6vw;
|
|
|
|
bottom: 10vh;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-modal-right {
|
2017-03-17 22:30:27 +08:00
|
|
|
right: 6vw;
|
|
|
|
bottom: 10vh;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
&.cp-app-slide-shown {
|
2017-03-17 22:30:27 +08:00
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
2017-10-23 20:25:25 +08:00
|
|
|
z-index: 1000000; // one order of magnitude higher than alertify
|
2017-03-17 22:30:27 +08:00
|
|
|
height: 100vh;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
#cp-app-slide-modal-content {
|
2017-03-20 19:47:28 +08:00
|
|
|
font-size: 20vh;
|
2017-03-18 01:39:39 +08:00
|
|
|
position: relative;
|
|
|
|
height: 100%;
|
2017-03-20 19:47:28 +08:00
|
|
|
overflow: visible;
|
|
|
|
white-space: nowrap;
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-frame {
|
2017-06-19 21:26:27 +08:00
|
|
|
overflow: hidden;
|
2017-06-26 20:32:37 +08:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column !important;
|
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
box-sizing: border-box;
|
2017-03-20 19:47:28 +08:00
|
|
|
border: 1px solid;
|
|
|
|
white-space: normal;
|
2017-03-10 02:05:44 +08:00
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
vertical-align: middle;
|
2017-03-10 02:05:44 +08:00
|
|
|
|
2017-03-20 19:47:28 +08:00
|
|
|
padding: 0.5em;
|
2017-03-17 22:30:27 +08:00
|
|
|
width: 100vw;
|
|
|
|
height: 56.25vw; // height:width ratio = 9/16 = .5625
|
|
|
|
max-height: 100vh;
|
|
|
|
max-width: 177.78vh; // 16/9 = 1.778
|
2017-03-10 02:05:44 +08:00
|
|
|
margin: auto;
|
2017-03-18 01:39:39 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-container {
|
2017-05-11 16:58:33 +08:00
|
|
|
display: inline-flex;
|
2017-03-18 01:39:39 +08:00
|
|
|
height: 100%; width: 100vw;
|
|
|
|
text-align: center;
|
2017-05-11 16:58:33 +08:00
|
|
|
vertical-align: top;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
&.cp-app-slide-transition {
|
|
|
|
.cp-app-slide-container {
|
2017-06-16 21:11:32 +08:00
|
|
|
transition: margin-left 1s;
|
|
|
|
}
|
|
|
|
}
|
2017-07-04 20:24:07 +08:00
|
|
|
media-tag button {
|
|
|
|
max-height: none;
|
|
|
|
}
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
z-index: 9001;
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100vh;
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
background-color: @slide-default-bg;
|
2017-03-17 22:30:27 +08:00
|
|
|
}
|
2017-03-10 02:05:44 +08:00
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
/* Slide content */
|
2017-09-08 00:56:58 +08:00
|
|
|
div#cp-app-slide-modal #cp-app-slide-modal-content, #cp-app-slide-print {
|
|
|
|
.cp-app-slide-frame {
|
2017-03-20 19:47:28 +08:00
|
|
|
* {
|
2017-03-17 22:30:27 +08:00
|
|
|
.size(2.75);
|
2017-03-20 19:47:28 +08:00
|
|
|
* {
|
2017-07-11 23:39:26 +08:00
|
|
|
font-size: 1em;
|
2017-03-17 22:30:27 +08:00
|
|
|
line-height: 1em;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
}
|
2017-03-17 22:30:27 +08:00
|
|
|
ul, ol {
|
|
|
|
ul, ol {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
h1 { .size(5); }
|
|
|
|
h2 { .size(4.2); }
|
|
|
|
h3 { .size(3.6); }
|
|
|
|
h4 { .size (3); }
|
|
|
|
h5 { .size(2.2); }
|
|
|
|
h6 { .size(1.6); }
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
color: inherit;
|
|
|
|
text-align: center;
|
2017-03-20 19:47:28 +08:00
|
|
|
padding-top: 0;
|
|
|
|
margin-bottom: 0.5em;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
|
2017-08-02 17:03:06 +08:00
|
|
|
.markdown_preformatted-code;
|
2017-03-17 22:30:27 +08:00
|
|
|
|
|
|
|
ul, ol {
|
|
|
|
min-width: 50%;
|
|
|
|
max-width: 100%;
|
|
|
|
display: table;
|
|
|
|
margin: 0 auto;
|
2017-03-20 19:47:28 +08:00
|
|
|
padding-left: 0.3em;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
|
2017-08-08 17:44:01 +08:00
|
|
|
// fixes image overflowing
|
|
|
|
media-tag {
|
|
|
|
height: 100%;
|
2017-10-12 22:45:43 +08:00
|
|
|
flex-flow: row;
|
|
|
|
justify-content: center;
|
2017-08-08 17:44:01 +08:00
|
|
|
|
|
|
|
& + * {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
2017-10-12 22:45:43 +08:00
|
|
|
img { flex: unset; }
|
2017-08-08 17:44:01 +08:00
|
|
|
}
|
|
|
|
|
2017-03-17 22:30:27 +08:00
|
|
|
img {
|
|
|
|
position: relative;
|
|
|
|
min-width: 1%;
|
|
|
|
margin: auto;
|
2017-03-30 18:00:46 +08:00
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-number {
|
2017-03-18 00:49:03 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 5vh;
|
|
|
|
bottom: 5vh;
|
|
|
|
.size(1);
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-date {
|
2017-03-18 00:49:03 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 5vh;
|
|
|
|
bottom: 5vh;
|
|
|
|
.size(1);
|
|
|
|
}
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-title {
|
2017-03-18 00:49:03 +08:00
|
|
|
position: absolute;
|
|
|
|
bottom: 5vh;
|
|
|
|
left: 0px; right: 0px;
|
|
|
|
text-align: center;
|
|
|
|
.size(1);
|
2017-03-17 22:30:27 +08:00
|
|
|
}
|
2017-03-18 01:39:39 +08:00
|
|
|
text-align: left;
|
|
|
|
position: relative;
|
2017-03-10 02:05:44 +08:00
|
|
|
}
|
|
|
|
}
|
2017-06-15 17:04:55 +08:00
|
|
|
|
2017-09-08 00:56:58 +08:00
|
|
|
.cp-app-slide-frame * {
|
2017-06-26 20:32:37 +08:00
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2017-07-11 23:39:26 +08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
min-height:0;
|
|
|
|
min-width:0;
|
2017-06-26 20:32:37 +08:00
|
|
|
}
|
|
|
|
|
2017-10-02 22:34:37 +08:00
|
|
|
pre.cp-slide-css-error {
|
|
|
|
color: white;
|
2017-10-23 20:25:25 +08:00
|
|
|
}
|