571 lines
13 KiB
Plaintext
Raw Normal View History

@import "./variables.less";
@import "./mixins.less";
@import "./dropdown.less";
2016-08-03 17:00:09 +02:00
.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);
2016-12-20 14:40:00 +01:00
.cryptpad-toolbar {
select {
box-sizing: border-box;
}
}
}
2017-06-20 12:33:50 +02:00
.cke_reset_all * {
color: inherit;
}
.cryptpad-toolbar {
@toolbar-green: #5cb85c;
box-sizing: border-box;
padding: 0px 6px;
2017-06-20 10:03:13 +02:00
//background-color: #BBBBFF;
2017-06-20 12:33:50 +02:00
background-color: @toolbar-default-bg;
color: @toolbar-default-color;
&.pad {
background-color: @toolbar-pad-bg;
color: @toolbar-pad-color;
}
&.code {
background-color: @toolbar-code-bg;
color: @toolbar-code-color;
}
&.slide {
background-color: @toolbar-slide-bg;
color: @toolbar-slide-color;
}
&.poll {
background-color: @toolbar-poll-bg;
color: @toolbar-poll-color;
}
&.whiteboard {
background-color: @toolbar-whiteboard-bg;
color: @toolbar-whiteboard-color;
}
&.drive {
background-color: @toolbar-drive-bg;
color: @toolbar-drive-color;
}
&.file {
background-color: @toolbar-file-bg;
color: @toolbar-file-color;
}
2017-06-12 15:59:24 +02:00
2017-05-15 16:16:50 +02:00
.fa {
font: normal normal normal 14px/1 FontAwesome;
font-family: FontAwesome;
}
2016-08-03 17:00:09 +02:00
.unselectable;
font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
width: 100%;
z-index: 9001;
a {
float: right;
}
button {
2017-04-28 18:23:41 +02:00
&#shareButton, &.buttonSuccess {
// Bootstrap 4 colors
color: #fff;
background: @toolbar-green;
border-color: @toolbar-green;
&:hover {
2017-05-02 17:14:53 +02:00
color: #fff;
background: #449d44;
border: 1px solid #419641;
}
span {
color: #fff;
}
.large {
margin-left: 5px;
}
}
2017-04-28 18:23:41 +02:00
&#newdoc, &.buttonPrimary {
// Bootstrap 4 colors
color: #fff;
background: #0275d8;
border-color: #0275d8;
&:hover {
2017-05-02 17:14:53 +02:00
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;
2017-05-15 16:16:50 +02:00
color: #000;
background-color: #fff;
border-color: #ccc;
2017-06-20 12:33:50 +02:00
font: @toolbar-button-font;
* {
color: #000;
font: @toolbar-button-font;
}
&:hover {
color: #292b2c;
background-color: #e6e6e6;
border-color: #adadad;
}
}
2017-05-02 17:14:53 +02:00
button.upgrade {
font-size: 14px;
vertical-align: top;
margin-left: 10px;
}
.cryptpad-limit {
2017-05-04 16:08:12 +02:00
box-sizing: border-box;
height: 26px;
width: 26px;
display: inline-block;
padding: 3px;
2017-05-04 16:08:12 +02:00
margin: 0px;
margin-right: 3px;
vertical-align: middle;
span {
color: red;
cursor: pointer;
margin: auto;
font-size: 20px;
}
}
2017-05-04 16:08:12 +02:00
.clag () {
background: transparent;
2016-12-20 14:40:00 +01:00
}
2017-03-20 16:39:33 +01:00
2017-05-04 16:08:12 +02:00
.cryptpad-lag {
2017-03-20 16:39:33 +01:00
height: 20px;
width: 23px;
background: transparent;
display: inline-block;
padding: 3px;
margin: 3px;
vertical-align: top;
box-sizing: content-box;
2017-05-15 16:16:50 +02:00
text-align: center;
2017-03-20 16:39:33 +01:00
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;
2017-03-20 16:39:33 +01:00
}
}
&.lag4 {
span {
background-color: @toolbar-green;
border-color: @toolbar-green;
2017-03-20 16:39:33 +01:00
}
}
}
div {
white-space: normal;
2016-07-11 17:37:22 +02:00
&.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;
2017-05-15 16:16:50 +02:00
box-sizing: border-box;
}
.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;
2016-12-20 14:40:00 +01:00
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;
}
}
}
}
2016-10-21 18:16:27 +02:00
.cryptpad-toolbar-top {
display: block;
text-align: center;
height: 32px;
position: relative;
2016-10-21 18:16:27 +02:00
.cryptpad-title {
2017-06-12 15:59:24 +02:00
.title, .pencilIcon, .saveIcon {
font-size: 1.5em;
vertical-align: middle;
line-height: 32px;
}
.pencilIcon {
margin-left: 11px;
&:hover {
color: #999;
margin-left: 0px;
}
span {
cursor: pointer;
}
}
2017-06-12 15:59:24 +02:00
.saveIcon {
cursor: pointer;
border: 1px solid black;
border-radius: 0px 2px 2px 0px;
background: white;
padding: 5px;
display: inline;
margin-left: -1px;
border-collapse: collapse;
&:hover {
color: #999;
}
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;
}
}
2016-10-21 18:16:27 +02:00
input {
font-size: 1.5em;
vertical-align: middle;
box-sizing: border-box;
2016-10-21 18:16:27 +02:00
border: 1px solid black;
background: #fff;
cursor: auto;
width: 300px;
2017-03-02 16:33:17 +01:00
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;
2016-10-25 17:29:13 +02:00
&:hover {
span {
text-decoration: underline;
}
}
img {
vertical-align: middle;
height: 32px;
cursor: pointer;
2016-10-21 18:16:27 +02:00
}
span {
font-size: 1.5em;
margin-left: 5px;
vertical-align: middle;
cursor: pointer;
}
}
}
.cryptpad-user {
position: absolute;
right: 0;
2017-05-04 16:08:12 +02:00
:not(.cryptpad-lag) span {
2016-12-20 14:40:00 +01:00
vertical-align: top;
}
button {
span.fa {
vertical-align: baseline;
}
}
2016-10-21 18:16:27 +02:00
}
}
.cryptpad-toolbar-leftside {
2017-06-12 15:59:24 +02:00
height: 32px;
float: left;
margin-bottom: -1px;
.cryptpad-dropdown-users {
2017-03-02 12:28:01 +01:00
pre {
2017-05-23 12:14:31 +02:00
/* needed for ckeditor */
white-space: pre;
margin: 5px 0px;
2017-03-02 12:28:01 +01:00
}
}
button {
margin: 2px 4px 2px 0px;
}
.dropdown-bar-content {
margin-top: -1px;
}
}
.cryptpad-toolbar-rightside {
2017-06-12 15:59:24 +02:00
height: 32px;
text-align: right;
}
2017-04-14 18:36:36 +02:00
.cryptpad-toolbar-history {
display: none;
text-align: center;
.next {
display: inline-block;
vertical-align: middle;
margin: 20px;
2017-04-14 18:36:36 +02:00
}
.previous {
display: inline-block;
vertical-align: middle;
margin: 20px;
2017-04-14 18:36:36 +02:00
}
.goto {
display: inline-block;
vertical-align: middle;
text-align: center;
2017-04-28 18:23:41 +02:00
input { width: 75px; }
2017-04-14 18:36:36 +02:00
}
2017-04-21 17:31:47 +02:00
.gotoInput {
vertical-align: middle;
}
}
.cke_toolbox .cryptpad-toolbar-history {
input.gotoInput {
background: white;
height: 20px;
padding: 3px 3px;
border-radius: 5px;
}
2017-04-14 18:36:36 +02:00
}
2017-05-04 16:08:12 +02:00
.cryptpad-spinner > span {
height: 16px;
width: 16px;
margin: 8px;
line-height: 16px;
font-size: 16px;
2017-05-15 16:16:50 +02:00
text-align: center;
}
2016-09-26 17:35:27 +02:00
.cryptpad-readonly {
margin-right: 5px;
2016-09-26 17:35:27 +02:00
font-weight: bold;
text-transform: uppercase;
}
.cryptpad-user {
p.accountData {
background: #f0f0f0;
&> span {
font-weight: bold;
span {
font-weight: normal;
}
}
}
.buttonTitle {
2017-01-18 11:00:46 +01:00
.fa:not(.fa-caret-down) {
margin-right: 5px;
}
.account-name {
margin-left: 5px;
}
}
}
.cryptpad-dropdown-share {
a {
.fa {
margin-right: 5px;
}
}
2016-09-26 17:35:27 +02:00
}
2016-09-27 18:33:03 +02:00
.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;
}