877 lines
21 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;
}
#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 {
2017-06-22 16:14:54 +02:00
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;
}
}
}
2017-06-21 18:04:35 +02:00
body {
2017-06-21 18:04:35 +02:00
.addToolbarColors (@color, @bg-color) {
.userlist-drawer {
background-color: @bgcolor;
color: @color;
h2 {
background-color: darken(@bgcolor, 10%);
2017-06-21 18:04:35 +02:00
}
}
.cryptpad-toolbar {
background-color: @bgcolor;
color: @color;
.userlist-drawer {
background-color: @bgcolor;
width: 150px;
position: absolute;
left: 0;
top: 96px;
bottom: 0;
}
.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 lighten(@bgcolor, 15%);
background: darken(@bgcolor, 10%);
color: @color;
}
.pencilIcon {
border: 1px solid lighten(@bgcolor, 15%);
background: darken(@bgcolor, 10%);
color: @color;
&:hover {
background: darken(@bgcolor, 5%);
}
}
2017-06-21 18:04:35 +02:00
}
.saveIcon {
2017-06-21 18:04:35 +02:00
border: 1px solid lighten(@bgcolor, 15%);
background: darken(@bgcolor, 10%);
color: @color;
&:hover {
background: darken(@bgcolor, 5%);
}
}
input {
border: 1px solid lighten(@bgcolor, 15%);
background: darken(@bgcolor, 10%);
color: @color;
2017-06-21 18:04:35 +02:00
}
.dropdown-bar-content {
background: darken(@bgcolor, 5%);
border: 1px solid @color;
2017-06-21 18:04:35 +02:00
color: @color;
a {
2017-06-21 18:04:35 +02:00
color: @color;
&.active {
background-color: darken(@bgcolor, 10%);
color: @color;
}
&:hover {
background-color: @bgcolor;
color: @color;
}
2017-06-21 18:04:35 +02:00
}
hr {
background-color: darken(@bgcolor, 15%);
2017-06-21 18:04:35 +02:00
}
p {
h2 {
background-color: darken(@bgcolor, 10%);
}
.accountData {
background-color: @bgcolor;
}
2017-06-21 18:04:35 +02:00
}
}
}
2017-06-20 17:59:11 +02:00
}
2017-06-21 18:04:35 +02:00
&.app-pad {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-pad-bg;
@color: @toolbar-pad-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
&.app-code {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-code-bg;
@color: @toolbar-code-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
&.app-slide {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-slide-bg;
@color: @toolbar-slide-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
&.app-poll {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-poll-bg;
@color: @toolbar-poll-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
&.app-whiteboard {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-whiteboard-bg;
@color: @toolbar-whiteboard-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
&.app-drive {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-drive-bg;
@color: @toolbar-drive-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
&.app-file {
2017-06-21 18:04:35 +02:00
@bgcolor: @toolbar-file-bg;
@color: @toolbar-file-color;
.addToolbarColors(@color, @bgcolor);
2017-06-20 12:33:50 +02:00
}
2017-06-21 18:04:35 +02:00
}
.cryptpad-toolbar {
@toolbar-green: #5cb85c;
box-sizing: border-box;
padding: 0px;
//background-color: #BBBBFF;
background-color: @toolbar-default-bg;
color: @toolbar-default-color;
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;
}
2017-06-20 17:59:11 +02:00
.dropdown-bar {
height: 100%;
display: inline-block;
button {
height: 100%;
border-radius: 0;
margin: 0;
2017-06-21 18:04:35 +02:00
background: transparent;
2017-06-20 17:59:11 +02:00
}
2017-06-22 11:13:53 +02:00
.dropdown-bar-content {
line-height: 14px;
}
2017-06-20 17:59:11 +02:00
}
2017-06-21 18:04:35 +02:00
.separator {
content: '';
display: inline-block;
background: #888;
margin: 7px 4px;
height: 18px;
width: 1px;
vertical-align: top;
}
.separator:last-child {
display: none;
}
button {
2017-06-21 18:04:35 +02:00
.unselectable();
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-06-21 18:04:35 +02:00
color: inherit;
2017-06-20 12:33:50 +02:00
font: @toolbar-button-font;
* {
2017-06-21 18:04:35 +02:00
color: inherit;
2017-06-20 12:33:50 +02:00
font: @toolbar-button-font;
}
2017-06-21 18:04:35 +02:00
}
.cryptpad-toolbar-rightside button, .cryptpad-toolbar-leftside button {
//background-color: #fff;
//border-color: #ccc;
background: transparent;
&:hover {
2017-06-21 18:04:35 +02:00
//color: #292b2c;
background-color: rgba(50,50,50,0.3);
//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 () {
2017-06-21 18:04:35 +02:00
background: transparent
2016-12-20 14:40:00 +01:00
}
2017-03-20 16:39:33 +01:00
2017-06-21 18:04:35 +02:00
.cryptpad-state {
line-height: @toolbar-top-height;
}
2017-05-04 16:08:12 +02:00
.cryptpad-lag {
2017-03-20 16:39:33 +01:00
display: inline-block;
vertical-align: top;
box-sizing: content-box;
2017-05-15 16:16:50 +02:00
text-align: center;
2017-06-21 18:04:35 +02:00
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;
2017-03-20 16:39:33 +01:00
display: inline-block;
2017-06-21 18:04:35 +02:00
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
2017-03-20 16:39:33 +01:00
}
}
&.lag0 {
2017-06-21 18:04:35 +02:00
span span {
2017-03-20 16:39:33 +01:00
.clag();
2017-06-21 18:04:35 +02:00
//border-color: red;
2017-03-20 16:39:33 +01:00
}
}
&.lag1 {
.bar2, .bar3, .bar4 { .clag(); }
2017-06-21 18:04:35 +02:00
span span {
visibility: visible;
//background-color: orange;
//border-color: orange;
2017-03-20 16:39:33 +01:00
}
}
&.lag2 {
.bar3, .bar4 { .clag(); }
2017-06-21 18:04:35 +02:00
span span {
visibility: visible;
//background-color: orange;
//border-color: orange;
2017-03-20 16:39:33 +01:00
}
}
&.lag3 {
.bar4 { .clag(); }
2017-06-21 18:04:35 +02:00
span span {
visibility: visible;
//background-color: @toolbar-green;
//border-color: @toolbar-green;
2017-03-20 16:39:33 +01:00
}
}
&.lag4 {
2017-06-21 18:04:35 +02:00
span span {
visibility: visible;
//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;
}
.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) {
2017-06-21 18:04:35 +02:00
// TODO
/*.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;
}
}
2017-06-21 18:04:35 +02:00
}*/
}
2016-10-21 18:16:27 +02:00
.cryptpad-toolbar-top {
2017-06-21 18:04:35 +02:00
display: flex;
flex-flow: row;
height: @toolbar-top-height;
position: relative;
2017-06-22 11:13:53 +02:00
.filler {
height: 100%;
display: inline-block;
order: 4;
flex: 1;
}
2016-10-21 18:16:27 +02:00
.cryptpad-title {
2017-06-21 18:04:35 +02:00
order: 3;
height: 100%;
display: inline-block;
line-height: @toolbar-top-height;
margin-left: 20px;
2017-06-12 15:59:24 +02:00
.title, .pencilIcon, .saveIcon {
2017-06-21 18:04:35 +02:00
font-size: 25px;
vertical-align: middle;
2017-06-21 18:04:35 +02:00
line-height: 25px;
}
.pencilIcon {
2017-06-21 18:04:35 +02:00
cursor: pointer;
border: 1px solid transparent;
border-radius: 0px 2px 2px 0px;
padding: 5px;
border-collapse: collapse;
span {
2017-06-21 18:04:35 +02:00
font-size: 25px;
cursor: pointer;
}
}
2017-06-12 15:59:24 +02:00
.saveIcon {
cursor: pointer;
border-radius: 0px 2px 2px 0px;
padding: 5px;
border-collapse: collapse;
span {
2017-06-21 18:04:35 +02:00
font-size: 25px;
2017-06-12 15:59:24 +02:00
cursor: pointer;
}
}
2017-06-21 18:04:35 +02:00
.editable {
border: 1px solid transparent;
border-radius: 2px 0px 0px 2px;
padding: 5px;
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
cursor: auto;
width: 300px;
2017-06-21 18:04:35 +02:00
font-size: 25px;
2017-03-02 16:33:17 +01:00
padding: 5px 5px;
2017-06-21 18:04:35 +02:00
height: 40px;
}
}
2017-06-21 18:04:35 +02:00
.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;
2017-06-21 18:04:35 +02:00
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;
2017-06-21 18:04:35 +02:00
height: auto;
padding: 0px;
margin: 0;
&::before {
padding-top: 4px;
2016-10-25 17:29:13 +02:00
}
2017-06-21 18:04:35 +02:00
&:hover {
background-color: initial;
border-color: transparent;
2016-10-21 18:16:27 +02:00
}
span {
2017-06-21 18:04:35 +02:00
vertical-align: top;
font-size: 1em;
text-decoration: none;
color: inherit;
}
}
2017-06-21 18:04:35 +02:00
.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;
2017-06-22 11:13:53 +02:00
.fa {
margin: 0;
}
2017-06-21 18:04:35 +02:00
a.cryptpad-logo {
cursor: pointer;
font-size: 1em;
height: auto;
padding: 0px 5px;
text-decoration: none;
color: inherit;
}
}
.cryptpad-user {
2017-06-20 17:59:11 +02:00
height: 100%;
2017-06-21 18:04:35 +02:00
display: inline-block;
2017-06-22 11:13:53 +02:00
order: 5;
2017-06-21 18:04:35 +02:00
line-height: @toolbar-top-height;
&> * {
display: inline-block;
height: 100%;
2016-12-20 14:40:00 +01:00
vertical-align: top;
}
2017-06-21 18:04:35 +02:00
.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;
}
}
}
}
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: 0px;
border-radius: 0;
height: 100%;
}
.dropdown-bar-content {
margin-top: -1px;
}
}
.cryptpad-toolbar-rightside {
2017-06-12 15:59:24 +02:00
height: 32px;
text-align: right;
2017-06-20 17:59:11 +02:00
&> button {
height: 100%;
margin: 0;
border-radius: 0;
padding: 0 10px;
2017-06-21 18:04:35 +02:00
}
2017-06-22 11:13:53 +02:00
.drawer-content:empty ~ .drawer-button {
display: none;
}
2017-06-21 18:04:35 +02:00
.drawer-content {
position: absolute;
right:0px;
top:96px;
2017-06-22 11:13:53 +02:00
min-width: 50px;
2017-06-21 18:04:35 +02:00
background: white;
border: 1px solid black;
2017-06-22 11:13:53 +02:00
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;
}
}
2017-06-21 18:04:35 +02:00
button {
width: 100%;
2017-06-22 11:13:53 +02:00
}
&> button {
text-align: center;
2017-06-21 18:04:35 +02:00
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);
}
}
2017-06-20 17:59:11 +02:00
}
}
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-06-21 18:04:35 +02:00
.cryptpad-spinner {
line-height: @toolbar-top-height;
&> span {
height: 16px;
width: 16px;
margin: 8px;
line-height: 16px;
font-size: 16px;
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 {
&> span {
font-weight: bold;
span {
font-weight: normal;
}
}
}
}
.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;
}