You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cryptpad/www/pad/app-pad.less

203 lines
4.7 KiB
Plaintext

@import (reference) "../../customize/src/less2/include/framework.less";
5 years ago
@import (reference) "../../customize/src/less2/include/comments.less";
@import (reference) "../../customize/src/less2/include/tools.less";
body.cp-app-pad {
.framework_main(
@bg-color: @colortheme_apps[pad],
);
@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;
}
#cp-app-pad-toc, #cp-app-pad-comments {
.cp-pad-show, .cp-pad-hide {
position: absolute;
cursor: pointer;
height: 28px;
line-height: 28px;
.fa { margin: 0 !important; }
}
&.hidden {
width: auto !important;
.cp-pad-show {
position: relative;
}
& > :not(.cp-pad-show) {
display: none;
}
}
&:not(.hidden) {
.cp-pad-show { display: none; }
}
}
4 years ago
#cp-app-pad-toc {
@toc-level-indent: 15px;
overflow-y: auto;
4 years ago
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
4 years ago
width: 200px;
color: @cryptpad_text_col;
position: relative;
.cp-pad-show, .cp-pad-hide {
right: 0;
}
4 years ago
h2 {
font-size: 1.5rem;
}
p {
margin-bottom: 5px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
a {
color: @cryptpad_text_col;
}
&.cp-pad-toc-2 {
margin-left: @toc-level-indent;
}
&.cp-pad-toc-3 {
margin-left: @toc-level-indent * 2;
}
}
}
.cke_toolbox_main {
background-color: @colortheme_pad-toolbar-bg;
.cke_toolbar {
height: 28px;
padding: 2px 0;
}
.cp-app-pad-wordCount {
float: right;
display: inline-flex;
height: 24px;
align-items: center;
padding: 4px;
}
.cke_button__print {
display: none !important;
}
.cke_button {
.tools_unselectable();
}
}
.cke_wysiwyg_frame {
width: 100%;
}
#cke_editor1 {
display: flex;
flex-flow: column;
height: 100%;
border: 0;
flex: 1;
> .cke_inner {
overflow: hidden;
flex: 1;
position: unset;
display: flex;
flex-flow: column;
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;
order: 1;
}
div.cp-comment-bubble {
position: relative;
order: 2;
button {
.fa {
margin: 0 !important;
}
right: 20px;
position: absolute;
}
}
#cp-app-pad-comments {
order: 3;
width: 330px;
5 years ago
//background-color: white;
margin: 10px;
position: relative;
.cp-pad-show, .cp-pad-hide {
left: 0;
}
h2 {
font-size: 1.5rem;
text-align: right;
}
5 years ago
.comments_main();
}
&.cke_body_width {
div.cp-comment-bubble {
button {
right: 0px;
}
}
iframe {
margin: 0 30px;
max-width: 800px;
}
}
}
.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;
}
}
}
.cke_wysiwyg_frame {
min-width: 60%;
}
@media print {
#cke_1_top {
display:none !important;
}
&.cp-app-pad .cp-toolbar-userlist-drawer {
display:none;
}
}
}