2018-07-12 17:13:04 +00:00
|
|
|
@import (reference) "../../customize/src/less2/include/framework.less";
|
2020-04-22 14:23:45 +00:00
|
|
|
@import (reference) "../../customize/src/less2/include/comments.less";
|
2020-06-29 14:05:42 +00:00
|
|
|
@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(
|
2020-11-13 16:05:26 +00:00
|
|
|
@bg-color: @colortheme_apps[pad],
|
2018-07-14 13:15:23 +00:00
|
|
|
);
|
2017-09-04 13:09:54 +00:00
|
|
|
|
2021-01-28 16:17:23 +00:00
|
|
|
@bg-color: @cp_app-bg;
|
|
|
|
@toolbar-bg-active: contrast(@cp_toolbar-bg, darken(@cp_toolbar-bg, 10%), lighten(@cp_toolbar-bg, 10%));
|
|
|
|
|
2020-04-21 14:07:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|
2020-04-21 14:07:04 +00:00
|
|
|
|
2021-02-05 18:10:03 +00:00
|
|
|
#cp-app-pad-toc, #cp-app-pad-comments, #cp-app-pad-resize {
|
2021-02-01 17:10:02 +00:00
|
|
|
.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; }
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 10:22:46 +00:00
|
|
|
#cp-app-pad-toc {
|
|
|
|
.cp-pad-show {
|
|
|
|
line-height: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-pad-comments {
|
|
|
|
&.hidden {
|
|
|
|
.cp-pad-show.notif {
|
2021-02-09 14:51:06 +00:00
|
|
|
color: @cp_comments-notif;
|
|
|
|
border-color: @cryptpad_color_red;
|
2021-02-08 10:22:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.cp-pad-show {
|
|
|
|
line-height: 0px;
|
|
|
|
}
|
|
|
|
}
|
2021-02-05 18:10:03 +00:00
|
|
|
#cp-app-pad-resize {
|
|
|
|
order: 2;
|
|
|
|
height: 28px;
|
|
|
|
width: 36px;
|
2021-02-09 10:23:32 +00:00
|
|
|
margin-left: -40px;
|
2021-02-05 18:10:03 +00:00
|
|
|
margin-top: 10px;
|
|
|
|
margin-right: 0;
|
|
|
|
&.hidden {
|
2021-02-09 10:23:32 +00:00
|
|
|
margin-left: -70px;
|
2021-02-05 18:10:03 +00:00
|
|
|
margin-right: 40px;
|
|
|
|
}
|
|
|
|
}
|
2020-08-06 12:18:31 +00:00
|
|
|
#cp-app-pad-toc {
|
|
|
|
@toc-level-indent: 15px;
|
|
|
|
|
2020-11-04 03:02:14 +00:00
|
|
|
overflow-y: auto;
|
2020-08-06 12:18:31 +00:00
|
|
|
margin-top: 10px;
|
|
|
|
margin-left: 10px;
|
2021-02-01 17:10:02 +00:00
|
|
|
margin-right: 10px;
|
2020-08-06 12:18:31 +00:00
|
|
|
width: 200px;
|
2021-01-28 16:17:23 +00:00
|
|
|
color: @cp_pad-fg;
|
2021-02-09 12:03:18 +00:00
|
|
|
//color: @cryptpad_text_col;
|
2021-02-01 17:10:02 +00:00
|
|
|
position: relative;
|
|
|
|
.cp-pad-show, .cp-pad-hide {
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-08-06 12:18:31 +00:00
|
|
|
h2 {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
a {
|
2021-01-28 16:17:23 +00:00
|
|
|
color: @cp_pad-fg;
|
2020-08-06 12:18:31 +00:00
|
|
|
}
|
|
|
|
&.cp-pad-toc-2 {
|
|
|
|
margin-left: @toc-level-indent;
|
|
|
|
}
|
|
|
|
&.cp-pad-toc-3 {
|
|
|
|
margin-left: @toc-level-indent * 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-27 16:38:29 +00:00
|
|
|
.cke_toolbox_main {
|
2021-01-28 16:17:23 +00:00
|
|
|
background-color: @cp_toolbar-bg;
|
|
|
|
color: @cp_toolbar-fg;
|
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;
|
2021-02-04 22:55:21 +00:00
|
|
|
color: @cryptpad_text_col;
|
2019-11-22 14:50:32 +00:00
|
|
|
}
|
2020-06-22 14:53:31 +00:00
|
|
|
.cke_button__print {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-01-28 16:17:23 +00:00
|
|
|
.cke_combo_on .cke_combo_button {
|
|
|
|
background-color: @toolbar-bg-active;
|
|
|
|
border-color: @toolbar-bg-active;
|
|
|
|
}
|
|
|
|
.cke_button, .cke_combo_button {
|
2020-06-29 14:05:42 +00:00
|
|
|
.tools_unselectable();
|
2021-01-28 16:17:23 +00:00
|
|
|
&.cke_button_on, &.cke_combo_button:hover, &.cke_button_off:hover {
|
|
|
|
background-color: @toolbar-bg-active;
|
|
|
|
border-color: @toolbar-bg-active;
|
|
|
|
}
|
|
|
|
.cke_combo_text {
|
|
|
|
color: @cp_toolbar-fg;
|
|
|
|
}
|
|
|
|
.cke_button_icon {
|
|
|
|
filter: @cp_pad-icon-filter;
|
|
|
|
}
|
2020-06-29 14:05:42 +00:00
|
|
|
}
|
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;
|
2020-04-21 14:07:04 +00:00
|
|
|
flex: 1;
|
2018-02-27 16:38:29 +00:00
|
|
|
> .cke_inner {
|
2018-09-11 16:16:36 +00:00
|
|
|
overflow: hidden;
|
2018-02-27 16:38:29 +00:00
|
|
|
flex: 1;
|
|
|
|
position: unset;
|
|
|
|
display: flex;
|
2020-04-21 14:07:04 +00:00
|
|
|
flex-flow: column;
|
2018-02-27 16:38:29 +00:00
|
|
|
margin-top: -1px;
|
2020-04-21 14:07:04 +00:00
|
|
|
}
|
|
|
|
#cke_1_top {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cke_1_contents {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
height: auto !important;
|
|
|
|
background-color: @bg-color;
|
|
|
|
justify-content: center;
|
|
|
|
iframe {
|
2021-02-05 10:46:51 +00:00
|
|
|
background-color: transparent;
|
2020-04-21 14:07:04 +00:00
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
2020-04-24 15:53:33 +00:00
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
div.cp-comment-bubble {
|
|
|
|
position: relative;
|
|
|
|
button {
|
|
|
|
.fa {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
position: absolute;
|
2021-02-09 16:03:14 +00:00
|
|
|
padding: 0 4px;
|
|
|
|
background: @cp_toolbar-bg;
|
|
|
|
margin-left: 0px;
|
|
|
|
margin-top: 20px;
|
|
|
|
line-height: unset;
|
|
|
|
&:hover {
|
|
|
|
background: @toolbar-bg-active;
|
|
|
|
}
|
2020-04-24 15:53:33 +00:00
|
|
|
}
|
2020-04-21 14:07:04 +00:00
|
|
|
}
|
|
|
|
#cp-app-pad-comments {
|
2020-04-24 15:53:33 +00:00
|
|
|
order: 3;
|
2020-04-30 15:01:40 +00:00
|
|
|
width: 330px;
|
2020-04-22 14:23:45 +00:00
|
|
|
//background-color: white;
|
2021-02-01 17:10:02 +00:00
|
|
|
margin: 10px;
|
|
|
|
position: relative;
|
|
|
|
.cp-pad-show, .cp-pad-hide {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
text-align: right;
|
|
|
|
}
|
2020-04-22 14:23:45 +00:00
|
|
|
.comments_main();
|
2020-04-21 14:07:04 +00:00
|
|
|
}
|
|
|
|
&.cke_body_width {
|
2020-04-24 15:53:33 +00:00
|
|
|
div.cp-comment-bubble {
|
|
|
|
button {
|
2021-02-09 16:03:14 +00:00
|
|
|
margin-left: 30px;
|
2020-04-24 15:53:33 +00:00
|
|
|
}
|
|
|
|
}
|
2020-04-21 14:07:04 +00:00
|
|
|
iframe {
|
|
|
|
margin: 0 30px;
|
|
|
|
max-width: 800px;
|
2018-02-27 16:38:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-31 13:41:08 +00:00
|
|
|
.cke_dialog {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
max-height: 100vh;
|
2018-09-04 08:45:18 +00:00
|
|
|
.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-08-31 13:41:08 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2021-02-05 18:10:03 +00:00
|
|
|
.cp-pad-settings-dialog {
|
|
|
|
.cp-pad-settings-radio-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.cp-radio, &>button {
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
.cp-app-prop-content {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
2018-08-31 13:41:08 +00:00
|
|
|
}
|