@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; } } } .cryptpad-toolbar { @toolbar-green: #5cb85c; box-sizing: border-box; padding: 0px 6px; .fa {font-family: FontAwesome;} .unselectable; font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif; color: #000; width: 100%; z-index: 9001; a { float: right; } button { &#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: #292b2c; background-color: #fff; border-color: #ccc; &:hover { color: #292b2c; background-color: #e6e6e6; border-color: #adadad; } } button.upgrade { font-size: 14px; vertical-align: top; margin-left: 10px; } .cryptpad-drive-limit { display: inline-block; height: 26px; width: 200px; margin: 2px; box-sizing: border-box; border: 1px solid #999; background: white; position: relative; text-align: center; line-height: 24px; .usage { height: 24px; display: inline-block; background: blue; position: absolute; left: 0; z-index:1; &.normal { background: @toolbar-green; } &.warning { background: orange; } &.above { background: red; } } .usageText { position: relative; color: black; text-shadow: 1px 0 2px white, 0 1px 2px white, -1px 0 2px white, 0 -1px 2px white; z-index: 2; font-size: 16px; font-weight: bold; } } .cryptpad-limit { box-sizing: border-box; height: 26px; width: 26px; display: inline-block; padding: 3px; margin: 0px; margin-right: 3px; vertical-align: middle; span { color: red; cursor: pointer; margin: auto; font-size: 20px; } } .clag () { background: transparent; } .cryptpad-lag { height: 20px; width: 23px; background: transparent; display: inline-block; padding: 3px; margin: 3px; vertical-align: top; box-sizing: content-box; span { display: inline-block; width: 4px; margin: 0; margin-right: 1px; background: black; vertical-align: bottom; box-sizing: border-box; border: 1px solid black; transition: background 1s, border 1s; &:last-child { margin-right: 0; } &.bar1 { height: 5px; } &.bar2 { height: 10px; } &.bar3 { height: 15px; } &.bar4 { height: 20px; } } &.lag0 { span { .clag(); border-color: red; } } &.lag1 { .bar2, .bar3, .bar4 { .clag(); } span { background-color: orange; border-color: orange; } } &.lag2 { .bar3, .bar4 { .clag(); } span { background-color: orange; border-color: orange; } } &.lag3 { .bar4 { .clag(); } span { background-color: @toolbar-green; border-color: @toolbar-green; } } &.lag4 { span { 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; } .dropdown-bar-content { margin-top: -3px; margin-right: 2px; } .cryptpad-state { line-height: 32px; /* equivalent to 26px + 2*2px margin used for buttons */ } .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; } } } .cryptpad-toolbar:not(.notitle) { .cryptpad-toolbar-top { @media screen and (max-width: @media-medium-screen) { height: 67px; } .cryptpad-link, .cryptpad-user { @media screen and (max-width: @media-medium-screen) { top: 35px; } @media screen and (min-width: (@media-medium-screen + 1px)) { top: 0px; } } } } .cryptpad-toolbar-top { display: block; text-align: center; height: 32px; position: relative; .cryptpad-title { .title, .pencilIcon { font-size: 1.5em; vertical-align: middle; line-height: 32px; } .pencilIcon { //display: none; margin-left: 11px; &:hover { color: #999; margin-left: 0px; } span { cursor: pointer; } } &:not(input):hover { .editable { border: 1px solid #888; border-radius: 2px 0px 0px 2px; background: white; padding: 5px; border-collapse: collapse; } .pencilIcon { cursor: pointer; border: 1px solid #888; border-radius: 0px 2px 2px 0px; background: white; padding: 5px; display: inline; margin-left: -1px; border-collapse: collapse; } } input { font-size: 1.5em; vertical-align: middle; box-sizing: border-box; border: 1px solid black; background: #fff; cursor: auto; width: 300px; padding: 5px 5px; } } .cryptpad-link { position: absolute; left: 0px; height: 32px; a.cryptpad-logo { cursor: pointer; height: 32px; padding: 0px 5px; text-decoration: none; color: inherit; &:hover { span { text-decoration: underline; } } img { vertical-align: middle; height: 32px; cursor: pointer; } span { font-size: 1.5em; margin-left: 5px; vertical-align: middle; cursor: pointer; } } } .cryptpad-user { position: absolute; right: 0; :not(.cryptpad-lag) span { vertical-align: top; } button { span.fa { vertical-align: baseline; } } } } .cryptpad-toolbar-leftside { float: left; margin-bottom: -1px; .cryptpad-dropdown-users { pre { margin: 5px 0px; } } button { margin: 2px 4px 2px 0px; } .dropdown-bar-content { margin-top: -1px; } } .cryptpad-toolbar-rightside { text-align: right; } .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; } } .cke_toolbox .cryptpad-toolbar-history { input.gotoInput { background: white; height: 20px; padding: 3px 3px; border-radius: 5px; } } .cryptpad-spinner > span { height: 16px; width: 16px; margin: 8px; line-height: 16px; font-size: 16px; } .cryptpad-readonly { margin-right: 5px; font-weight: bold; text-transform: uppercase; } .cryptpad-user { p.accountData { background: #f0f0f0; &> span { font-weight: bold; span { font-weight: normal; } } } .buttonTitle { .fa:not(.fa-caret-down) { margin-right: 5px; } .account-name { margin-left: 5px; } } } .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; }