cryptpad/www/pad/app-pad.less

143 lines
3.2 KiB
Text
Raw Normal View History

@import (reference) "../../customize/src/less2/include/framework.less";
2020-04-22 14:23:45 +00:00
@import (reference) "../../customize/src/less2/include/comments.less";
@import (reference) "../../customize/src/less2/include/tools.less";
2017-09-04 13:09:54 +00:00
2018-07-14 13:15:23 +00:00
body.cp-app-pad {
.framework_main(
@bg-color: @colortheme_pad-bg,
@warn-color: @colortheme_pad-warn,
@color: @colortheme_pad-color
);
2017-09-04 13:09:54 +00:00
@bg-color: #e3e3e3;
display: flex;
flex-flow: column;
max-height: 100%;
min-height: auto;
#cp-app-pad-editor {
flex: 1;
display: flex;
flex-flow: row;
height: 100%;
overflow: hidden;
2017-09-04 13:09:54 +00:00
}
2018-02-27 16:38:29 +00:00
.cke_toolbox_main {
background-color: @colortheme_pad-toolbar-bg;
2018-02-27 16:38:29 +00:00
.cke_toolbar {
height: 28px;
padding: 2px 0;
}
2019-11-22 14:50:32 +00:00
.cp-app-pad-wordCount {
float: right;
display: inline-flex;
height: 24px;
align-items: center;
padding: 4px;
}
2020-06-22 14:53:31 +00:00
.cke_button__print {
display: none !important;
}
.cke_button {
.tools_unselectable();
}
2017-09-04 13:09:54 +00:00
}
.cke_wysiwyg_frame {
2018-03-02 17:33:43 +00:00
width: 100%;
2018-02-27 16:38:29 +00:00
}
#cke_editor1 {
display: flex;
flex-flow: column;
height: 100%;
border: 0;
flex: 1;
2018-02-27 16:38:29 +00:00
> .cke_inner {
overflow: hidden;
2018-02-27 16:38:29 +00:00
flex: 1;
position: unset;
display: flex;
flex-flow: column;
2018-02-27 16:38:29 +00:00
margin-top: -1px;
}
#cke_1_top {
display: none;
}
}
#cke_1_contents {
flex: 1;
display: flex;
height: auto !important;
background-color: @bg-color;
justify-content: center;
iframe {
flex: 1;
min-width: 0;
2020-04-24 15:53:33 +00:00
order: 1;
}
div.cp-comment-bubble {
position: relative;
order: 2;
button {
.fa {
margin: 0 !important;
}
right: 20px;
position: absolute;
}
}
#cp-app-pad-comments {
2020-04-24 15:53:33 +00:00
order: 3;
width: 330px;
2020-04-22 14:23:45 +00:00
//background-color: white;
2020-04-29 14:56:16 +00:00
margin: 0px 20px;
2020-04-22 14:23:45 +00:00
.comments_main();
}
&.cke_body_width {
2020-04-24 15:53:33 +00:00
div.cp-comment-bubble {
button {
right: 0px;
}
}
iframe {
margin: 0 30px;
max-width: 800px;
2018-02-27 16:38:29 +00:00
}
}
}
.cke_dialog {
display: block;
overflow-x: auto;
max-height: 100vh;
.cke_dialog_contents {
#ck-mediatag-preview {
margin: auto;
resize: both;
max-width: 300px;
max-height: 300px;
overflow: auto;
}
media-tag {
display: flex;
border-style: solid;
border-color: black;
}
}
}
2018-07-14 13:15:23 +00:00
.cke_wysiwyg_frame {
min-width: 60%;
2017-09-05 16:16:06 +00:00
}
2018-07-14 13:15:23 +00:00
@media print {
#cke_1_top {
display:none !important;
}
&.cp-app-pad .cp-toolbar-userlist-drawer {
display:none;
}
2017-09-05 16:16:06 +00:00
}
}