@import "./variables.less"; @import "./mixins.less"; @import "./dropdown.less"; .unselectable { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .toolbar-container { font: 12px Arial,Helvetica,Tahoma,Verdana,sans-serif; .two-part-gradient(@toolbar-gradient-start, @toolbar-gradient-end); .cryptpad-toolbar { select { box-sizing: border-box; } } } .cke_reset_all * { color: inherit; } #cke_1_contents { margin-top: -1px; display: flex; } .userlist-drawer { font: normal normal normal 14px Arial,Helvetica,Tahoma,Verdana,Sans-Serif; width: 175px; display: block; overflow-y: auto; overflow-x: hidden; padding: 10px; box-sizing: border-box; h2 { color: inherit; font-size: 1.2em; font-weight: bold; text-align: center; padding: 5px 0px; margin: 5px 0px; font-size: 16px; white-space: normal; } text-align:baseline; .viewer { font-style: italic; padding: 5px; background: rgba(0,0,0,0.1); margin: 2px 0; } .userlist-others { display: flex; flex-flow: column; margin: 10px 0; margin-bottom: 20px; &>span { overflow: hidden; text-overflow: ellipsis; padding: 5px; background: rgba(0,0,0,0.1); margin: 2px 0; } } } body { .addToolbarColors (@color, @bg-color) { .userlist-drawer { background-color: @bgcolor; color: @color; h2 { background-color: darken(@bgcolor, 10%); } } .cryptpad-toolbar { background-color: @bgcolor; color: @color; .userlist-drawer { background-color: @bgcolor; width: 150px; position: absolute; left: 0; top: 96px; bottom: 0; } .cryptpad-limit { text-shadow: -1px 0 @color, 0 1px @color, 1px 0 @color, 0 -1px @color; } .cryptpad-toolbar-leftside, .cryptpad-toolbar-rightside, .drawer-content { background-color: lighten(@bgcolor, 8%); button:hover { background-color: @bgcolor; } } .hoverable:hover { .editable { cursor: text; border: 1px solid darken(@bgcolor, 15%); background: darken(@bgcolor, 10%); color: @color; } .pencilIcon { border: 1px solid darken(@bgcolor, 15%); background: darken(@bgcolor, 10%); color: @color; &:hover { background: darken(@bgcolor, 5%); } } } .saveIcon { border: 1px solid darken(@bgcolor, 15%); background: darken(@bgcolor, 10%); color: @color; &:hover { background: darken(@bgcolor, 5%); } } input { border: 1px solid darken(@bgcolor, 15%); background: darken(@bgcolor, 10%); color: @color; } .dropdown-bar-content { background: darken(@bgcolor, 5%); border: 1px solid @color; color: @color; a { color: @color; &.active { background-color: darken(@bgcolor, 10%); color: @color; } &:hover { background-color: @bgcolor; color: @color; } } hr { background-color: darken(@bgcolor, 15%); } p { h2 { background-color: darken(@bgcolor, 10%); } .accountData { background-color: @bgcolor; } } } } } &.app-pad { @bgcolor: @toolbar-pad-bg; @color: @toolbar-pad-color; .addToolbarColors(@color, @bgcolor); } &.app-code { @bgcolor: @toolbar-code-bg; @color: @toolbar-code-color; .addToolbarColors(@color, @bgcolor); } &.app-slide { @bgcolor: @toolbar-slide-bg; @color: @toolbar-slide-color; .addToolbarColors(@color, @bgcolor); } &.app-poll { @bgcolor: @toolbar-poll-bg; @color: @toolbar-poll-color; .addToolbarColors(@color, @bgcolor); } &.app-whiteboard { @bgcolor: @toolbar-whiteboard-bg; @color: @toolbar-whiteboard-color; .addToolbarColors(@color, @bgcolor); } &.app-drive { @bgcolor: @toolbar-drive-bg; @color: @toolbar-drive-color; .addToolbarColors(@color, @bgcolor); } &.app-file { @bgcolor: @toolbar-file-bg; @color: @toolbar-file-color; .addToolbarColors(@color, @bgcolor); } } .cryptpad-toolbar { @toolbar-green: #5cb85c; box-sizing: border-box; padding: 0px; //background-color: #BBBBFF; background-color: @toolbar-default-bg; color: @toolbar-default-color; .fa { font: normal normal normal 14px/1 FontAwesome; font-family: FontAwesome; } .unselectable; font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif; width: 100%; z-index: 9001; .dropdown-bar { height: 100%; display: inline-block; button { height: 100%; border-radius: 0; margin: 0; background: transparent; } .dropdown-bar-content { line-height: 14px; } } .separator { content: ''; display: inline-block; background: #888; margin: 7px 4px; height: 18px; width: 1px; vertical-align: top; } .separator:last-child { display: none; } button { .unselectable(); &#shareButton, &.buttonSuccess { // Bootstrap 4 colors color: #fff; background: @toolbar-green; border-color: @toolbar-green; &:hover { color: #fff; background: #449d44; border: 1px solid #419641; } span { color: #fff; } .large { margin-left: 5px; } } &#newdoc, &.buttonPrimary { // Bootstrap 4 colors color: #fff; background: #0275d8; border-color: #0275d8; &:hover { color: #fff; background: #025aa5; border: 1px solid #01549b; } span { color: #fff; } .large { margin-left: 5px; } } &.hidden { display: none; } // Bootstrap 4 colors (btn-secondary) border: 1px solid transparent; border-radius: .25rem; color: inherit; font: @toolbar-button-font; * { color: inherit; font: @toolbar-button-font; } } .cryptpad-toolbar-rightside button, .cryptpad-toolbar-leftside button { //background-color: #fff; //border-color: #ccc; background: transparent; &:hover { //color: #292b2c; background-color: rgba(50,50,50,0.3); //background-color: #e6e6e6; border-color: #adadad; } } button.upgrade { font-size: 14px; vertical-align: top; margin-left: 10px; } .cryptpad-limit { box-sizing: border-box; height: 26px; width: 26px; display: inline-block; padding: 3px; margin: 0px; margin-right: 3px; vertical-align: middle; line-height: @toolbar-top-height; span { color: red; cursor: pointer; margin: auto; font-size: 20px; } } .clag () { background: transparent } .cryptpad-state { line-height: @toolbar-top-height; } .cryptpad-lag { display: inline-block; vertical-align: top; box-sizing: content-box; text-align: center; line-height: @toolbar-top-height; .disconnected { display: none; color: inherit; width: 28px; margin: 8px; font-size: 28px; text-align: center; vertical-align: middle; } .bars { margin: 8px; height: 26px; line-height: 26px; display: inline-block; span { display: inline-block; width: 6px; margin: 0; margin-right: 1px; background: white; vertical-align: bottom; box-sizing: border-box; border: 1px solid black; visibility: hidden; transition: background 1s, border 1s; &:last-child { margin-right: 0; } &.bar1 { height: 6px; } &.bar2 { height: 12px; } &.bar3 { height: 18px; } &.bar4 { height: 24px; } } } &.dc { .disconnected { display: inline; } .bars { display: none } } &.lag0 { span span { .clag(); //border-color: red; } } &.lag1 { .bar2, .bar3, .bar4 { .clag(); } span span { visibility: visible; //background-color: orange; //border-color: orange; } } &.lag2 { .bar3, .bar4 { .clag(); } span span { visibility: visible; //background-color: orange; //border-color: orange; } } &.lag3 { .bar4 { .clag(); } span span { visibility: visible; //background-color: @toolbar-green; //border-color: @toolbar-green; } } &.lag4 { span span { visibility: visible; //background-color: @toolbar-green; //border-color: @toolbar-green; } } } div { white-space: normal; &.cryptpad-back { padding: 0; font-weight: bold; cursor: pointer; color: #000; } } button, select, .rightside-element { height: 26px; padding-right: 5px; padding-left: 5px; margin: 3px 2px; box-sizing: border-box; } .rightside-button { float: right; cursor: pointer; } .leftside-button { cursor: pointer; float: left; } .rightside-element { vertical-align: middle; white-space: nowrap; &.float { float: right; } } select { border: 0px; margin-left: 5px; margin-right: 5px; padding-left: 5px; border: 1px solid #A6A6A6; border-bottom-color: #979797; vertical-align: top; box-sizing: content-box; option { height: 24px; } } .big { @media screen and (max-width: @media-not-big) { display: none; } @media screen and (min-width: @media-not-small) { display: inline-block; } } .small { @media screen and (max-width: @media-not-big) { display: inline-block; } @media screen and (min-width: @media-not-small) { display: none; } } .med-big { @media screen and (max-width: @media-medium-screen) { display: none; } @media screen and (min-width: (@media-medium-screen + 1px)) { display: inline-block; } } .med-small { @media screen and (max-width: @media-medium-screen) { display: inline-block; } @media screen and (min-width: (@media-medium-screen + 1px)) { display: none; } } .large { @media screen and (max-width: @media-narrow-screen) { display: none; } @media screen and (min-width: (@media-narrow-screen + 1px)) { display: inline-block; } } .narrow { @media screen and (max-width: @media-narrow-screen) { display: inline-block; } @media screen and (min-width: (@media-narrow-screen + 1px)) { display: none; } } &.notitle { .fillerĀ { flex: 1; } } &:not(.notitle) { .cryptpad-toolbar-top { @media screen and (max-width: @media-medium-screen) { flex-wrap: wrap; height: auto; .cryptpad-state { display: none; } .fillerĀ { flex: 1; } .cryptpad-title { flex: auto; width: 100%; order: 10; height: 32px; line-height: initial; margin: 0; .hoverable { width: 100%; } .editable { max-width: ~"calc(100vw - 26px)"; display: inline-block; overflow: hidden; text-overflow: ellipsis; font-size: 16px; height: 32px; box-sizing: border-box; line-height: 20px; } .pencilIcon, .saveIcon { box-sizing: border-box; height: 32px; line-height: 16px; display: inline-block; .fa { font-size: 16px; } } input { height: 32px; font-size: 16px; flex: 1; max-width: none; } } } } } } .cryptpad-toolbar-top { display: flex; flex-flow: row; height: @toolbar-top-height; position: relative; .filler { height: 100%; display: inline-block; order: 4; //flex: 1; } .cryptpad-title { flex: 1; overflow: hidden; text-overflow: ellipsis; order: 3; height: 100%; display: inline-flex; align-items: center; line-height: @toolbar-top-height; margin: 0 20px; .title, .pencilIcon, .saveIcon { font-size: 25px; vertical-align: middle; line-height: 25px; } .hoverable { display: inline-flex; overflow: hidden; } .pencilIcon { cursor: pointer; border: 1px solid transparent; padding: 5px; border-collapse: collapse; span { font-size: 25px; cursor: pointer; } } .saveIcon { cursor: pointer; padding: 5px; border-collapse: collapse; span { font-size: 25px; cursor: pointer; } } .editable { overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; padding: 5px; border-collapse: collapse; } input { max-width: ~"calc(100% - 40px)"; flex: 1; font-size: 1.5em; vertical-align: middle; box-sizing: border-box; cursor: auto; width: 300px; font-size: 20px; padding: 5px 5px; height: 40px; } } .cryptpad-link, .cryptpad-new { font-size: 48px; line-height: 64px; width: @toolbar-top-height; height: @toolbar-top-height; padding: 0; box-sizing: border-box; display: inline-block; color: white; transition: all 0.15s; } .cryptpad-new { background-color: rgba(0,0,0,0.2); &:hover { background-color: rgba(0,0,0,0.3); } order: 2; text-align: center; &> button { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px !important; // Allows us to have a nice square outline when focused font-size: 1em; color: inherit; height: auto; padding: 0px; margin: 0; &::before { padding-top: 4px; } &:hover { background-color: initial; border-color: transparent; } span { vertical-align: top; font-size: 1em; text-decoration: none; color: inherit; } } .dropdown-bar-content { font-size: 12px; line-height: 14px; } } .cryptpad-link { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background-color: rgba(0,0,0,0.4); &:hover { background-color: rgba(0,0,0,0.5); } order: 1; .fa { margin: 0; } a.cryptpad-logo { cursor: pointer; font-size: 1em; height: auto; padding: 0px 5px; text-decoration: none; color: inherit; } } .cryptpad-user { height: 100%; display: inline-block; order: 5; line-height: @toolbar-top-height; &> * { display: inline-block; height: 100%; vertical-align: top; } .cryptpad-upgrade { height: 32px; vertical-align: middle; cursor: pointer; } .cryptpad-user-dropdown { margin-left: 20px; height: 64px; width: 64px; padding: 0px; box-sizing: border-box; text-align: center; background-color: rgba(0,0,0,0.3); &:hover { background-color: rgba(0,0,0,0.4); } .dropdown-bar-content { margin: 0; } button { display: flex; justify-content: center; align-items: center; height: 64px; width: 64px; padding: 0; span { font-size: 32px; .fa { margin-left: 3px; } } } } } } .cryptpad-toolbar-leftside { height: 32px; float: left; margin-bottom: -1px; .cryptpad-dropdown-users { pre { /* needed for ckeditor */ white-space: pre; margin: 5px 0px; } } button { margin: 0px; border-radius: 0; height: 100%; } .dropdown-bar-content { margin-top: -1px; } .limit-container a { height: 26px; margin: 3px 0; line-height: 26px; padding: 0 5px; box-sizing: border-box; border: 1px solid transparent; font-size: 14px; &:hover { text-decoration: none; } } } .cryptpad-toolbar-rightside { height: 32px; text-align: right; &> button { height: 100%; margin: 0; border-radius: 0; padding: 0 10px; } .drawer-content:empty ~ .drawer-button { display: none; } .drawer-content { position: absolute; right:0px; top:96px; min-width: 50px; background: white; border: 1px solid black; display: flex; flex-flow: column; z-index:1000; &> span { box-sizing: border-box; width: 150px; height: 26px; border-radius: 0; border: 0; &:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.2); } button { border: 0; } } button { width: 100%; } &> button { text-align: center; margin: 0; border-radius: 0; border: 1px solid transparent; &:hover { border: 1px solid transparent; } &:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.2); } } } } .cryptpad-toolbar-history { display: none; text-align: center; .next { display: inline-block; vertical-align: middle; margin: 20px; } .previous { display: inline-block; vertical-align: middle; margin: 20px; } .goto { display: inline-block; vertical-align: middle; text-align: center; input { width: 75px; } } .gotoInput { vertical-align: middle; } .closeHistory { background: white; color: black; } } .cke_toolbox .cryptpad-toolbar-history { input.gotoInput { padding: 3px 3px; } } .cryptpad-spinner { line-height: @toolbar-top-height; &> span { height: 16px; width: 16px; margin: 8px; line-height: 16px; font-size: 16px; text-align: center; } } .cryptpad-readonly { margin-right: 5px; font-weight: bold; text-transform: uppercase; } .cryptpad-user { p.accountData { &> span { font-weight: bold; span { font-weight: normal; } } } } .cryptpad-dropdown-share { a { .fa { margin-right: 5px; } } } .lag { height: 15px !important; width: 15px !important; border-radius: 50%; border: 1px solid @cp-outline; } .lag-green { background-color: @cp-green; } .lag-red { background-color: @cp-red; } .lag-orange { background-color: @cp-orange; }