686 lines
14 KiB
Plaintext
Raw Normal View History

2016-07-06 15:14:41 +02:00
@import "./variables.less";
@import "./mixins.less";
2017-08-04 12:31:47 +02:00
@import "../less2/include/alertify.less";
2017-08-04 17:15:45 +02:00
@import "../less2/include/colortheme.less";
2017-08-09 10:54:20 +02:00
@import "../less2/include/modal.less";
@import "./bar.less";
@import "./loading.less";
@import "./dropdown.less";
2017-01-16 18:28:37 +01:00
@import "./topbar.less";
2017-02-03 16:52:55 +01:00
@import "./footer.less";
2016-07-04 15:18:11 +02:00
2017-05-15 18:16:22 +02:00
@toolbar-green: #5cb85c;
2017-08-04 12:31:47 +02:00
.alertify_main();
html.cp, .cp body {
font-size: .875em;
background-color: @page-white; //@base;
color: @fore;
2017-01-16 18:28:37 +01:00
height: 100%;
2016-07-04 15:18:11 +02:00
}
2017-06-23 17:58:41 +02:00
.fa {
cursor: default; // Fix for Edge displaying the text cursor on every icon
}
2016-07-04 15:18:11 +02:00
.cp {
2016-07-04 17:08:54 +02:00
2017-07-19 17:14:10 +02:00
// add font for tooltips
.tippy-popper {
2017-08-04 17:15:45 +02:00
font: 16px @colortheme_font;
2017-07-19 17:14:10 +02:00
}
2017-02-02 18:48:43 +01:00
// override bootstrap colors
.btn-primary {
background-color: @cp-blue;
2017-07-10 18:29:23 +02:00
&:hover {
color: #fff;
background-color: #025aa5;
border-color: #01549b;
}
2017-02-02 18:48:43 +01:00
}
body {
font-size: 1rem;
font-weight: 400;
line-height: 2rem;
2017-01-16 18:28:37 +01:00
margin: 0;
}
a.github-corner > svg {
fill: @cp-blue;
2017-01-18 13:51:11 +01:00
color: @old-base;
}
2016-07-04 15:18:11 +02:00
.lato {
2016-07-04 16:34:29 +02:00
font-family: lato, Helvetica, sans-serif;
2016-07-04 15:18:11 +02:00
font-size: 1.02em;
}
2017-05-22 11:16:01 +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;
}
2016-07-04 15:18:11 +02:00
h1,h2,h3,h4,h5,h6 {
color: @fore;
2017-08-04 17:15:45 +02:00
font-family: @colortheme_font;
2016-07-04 15:18:11 +02:00
-webkit-font-feature-settings: 'dlig' 1,'liga' 1,'lnum' 1,'kern' 1;
-moz-font-feature-settings: 'dlig' 1,'liga' 1,'lnum' 1,'kern' 1;
font-feature-settings: 'dlig' 1,'liga' 1,'lnum' 1,'kern' 1;
font-style: normal;
font-weight: 600;
margin-top: 0;
}
h1 {
line-height: 3rem;
font-size: 2.05714rem;
margin-bottom: .21999rem;
padding-top: .78001rem;
}
h2 {
font-size: 1.95312rem;
margin-bottom: .18358rem;
padding-top: .81642rem;
}
h2,h3 {
line-height: 3rem;
}
h3 {
font-size: 1.64571rem;
margin-bottom: .07599rem;
padding-top: .92401rem;
}
h4 {
font-size: 1.5625rem;
margin-bottom: .54686rem;
padding-top: .45314rem;
}
h5 {
font-size: 1.25rem;
margin-bottom: -.56251rem;
padding-top: .56251rem;
}
h6 {
font-size: 1rem;
margin-bottom: -.65001rem;
padding-top: .65001rem;
}
2017-07-03 17:04:59 +02:00
p {
a:not(.btn) {
cursor: pointer;
color: @cp-link;
text-decoration: none;
&:hover {
color: @cp-link-hover;
}
&:visited {
color: @cp-link-visited;
}
2016-07-04 16:34:29 +02:00
}
2016-07-04 15:18:11 +02:00
}
2017-06-23 17:56:14 +02:00
a.btn {
font-family: sans-serif;
}
2016-07-04 15:18:11 +02:00
img {
height: auto;
max-width: 100%;
}
p {
padding-top: .66001rem;
margin-top: 0;
}
p,pre {
margin-bottom: 1.33999rem;
}
p, pre, td, a, table, tr {
.lato;
}
2017-01-16 18:28:37 +01:00
body.html {
2017-02-03 16:52:55 +01:00
display:flex;
flex-flow: column;
2017-01-16 18:28:37 +01:00
}
2017-01-18 18:02:32 +01:00
2017-01-19 10:48:46 +01:00
// Main page
.page {
width: 100%;
margin-left: auto;
margin-right: auto;
background: @page-white;
padding: 10px 0;//@main-border-width;
2017-01-19 10:48:46 +01:00
position: relative;
.info-container {
color: #121212;
2017-02-09 19:00:52 +01:00
width: 800px;
max-width: 100%;
margin: 0 auto;
&>div{
padding: 10px;
width: 400px;
max-width: 100%;
position: relative;
display: inline-block;
vertical-align: middle;
&:not(.image) {
@media screen and (max-width: @media-not-big) {
width: 100%;
left: 0;
}
}
&.image {
width:300px;
text-align: center;
@media screen and (max-width: @media-not-big) {
display: none;
}
}
}
}
2017-01-19 10:48:46 +01:00
&.first {
//margin-top: ~"min(calc(100vh - 150px), 650px)";
2017-01-19 10:48:46 +01:00
@media screen and (max-width: @media-not-big) {
//margin-top: 0;
2017-01-18 18:02:32 +01:00
}
2017-01-19 10:48:46 +01:00
}
&.even {
//background: darken(@base, 1%);
2017-01-19 10:48:46 +01:00
}
&.category {
background: @category-bg;
2017-01-19 10:48:46 +01:00
}
2017-01-18 18:02:32 +01:00
.app {
display: inline-block;
width: 300px;
vertical-align: middle;
margin: 0px 25px;
white-space: normal;
max-width: ~"calc(50% - 50px)";
@media screen and (max-width: 500px) {
display: block;
max-width: 100%;
margin: 0 auto;
}
2017-01-19 10:48:46 +01:00
}
.app-container {
width: 1400px;
max-width: 100%;
margin: 0 auto;
2017-01-19 10:48:46 +01:00
}
.app-row {
display: flex;
justify-content: center;
flex-flow: row wrap;
max-width: 100%;
margin: 0 auto;
@media screen and (max-width: 1399px) {
display: flex;
}
img {
2017-01-19 10:48:46 +01:00
@media screen and (max-width: @media-not-big) {
display: none;
2017-01-19 10:48:46 +01:00
}
2017-01-16 18:28:37 +01:00
}
2017-01-19 10:48:46 +01:00
}
2017-01-16 18:28:37 +01:00
.left {
//left: 10%; //@main-border-width;
}
.right {
left: 100px; //@main-border-width;
}
h1, h2, h3, h4, h5, h6 {
padding: 0;
}
@media screen and (max-width: @media-not-big) {
padding: 10px 5vh;
2017-01-16 18:28:37 +01:00
}
2017-01-19 10:48:46 +01:00
p {
font-size: 18px;
//text-align: justify;
2017-01-19 10:48:46 +01:00
}
}
2017-01-17 18:19:45 +01:00
.btn-default {
&:hover {
background-color: #d8d8d8;
}
}
#main {
.mainOverlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #000;
opacity: 0.35;
}
}
2017-02-28 18:02:12 +01:00
noscript {
#noscriptContainer {
color: black;
position: absolute;
top: @topbar-height;
left: 0;
bottom: 0;
right: 0;
z-index: 2;
#noscript {
width: 1000px;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
margin-left: auto;
margin-right: auto;
position: relative;
font-size: 25px;
text-align: center;
color: @main-color;
}
}
}
2016-07-04 15:18:11 +02:00
#main {
background: @main-bg;
2017-01-16 18:28:37 +01:00
background-size: cover;
background-attachment: fixed;
background-position: center;
2017-02-03 16:52:55 +01:00
height: ~"calc(100vh - 115px)";
min-height: 450px;
.hidden {
display: none !important;
}
2017-01-16 18:28:37 +01:00
}
2017-01-18 13:51:11 +01:00
#main_other {
padding: 0 @main-border-width;
background-color: @page-white;
2017-01-18 13:51:11 +01:00
}
.category {
margin-top: 5px;
}
2017-02-03 16:52:55 +01:00
#mainBlock {
flex: 1;
}
2017-01-16 18:28:37 +01:00
#main, #main_other {
position: relative;
2017-01-16 18:28:37 +01:00
left: 0;
right: 0;
2016-07-04 15:18:11 +02:00
margin: auto;
z-index: 1;
2016-07-04 15:18:11 +02:00
font-size: medium;
2017-01-16 18:28:37 +01:00
#align-container {
2017-02-28 17:03:23 +01:00
display: flex;
align-items: center;
justify-content: center;
height: 100%;
2017-01-18 13:51:11 +01:00
margin-left: auto;
margin-right: auto;
width: 1000px;
max-width: 90%;
2017-02-28 17:03:23 +01:00
position: relative;
2017-01-18 13:51:11 +01:00
}
#main-container {
display: inline-block;
}
#userForm .extra {
p {
font-size: 28px;
padding: 15px;
text-align: center;
}
}
2017-01-16 18:28:37 +01:00
#data {
p {
margin: 0;
padding: 0;
font-size: 28px;
2017-01-18 13:51:11 +01:00
line-height: 1.5em;
&.register-explanation {
font-size: 18px;
}
2017-01-18 13:51:11 +01:00
}
h1, h2 {
2017-01-18 13:51:11 +01:00
font-weight: normal;
font-size: 48px;
line-height: 1.2em;
color: @main-color;
padding: 0;
2017-01-16 18:28:37 +01:00
}
2017-01-16 18:28:37 +01:00
h5 {
2017-01-18 13:51:11 +01:00
font-size: 1em;
2017-01-17 18:19:45 +01:00
color: @main-color;
2017-01-16 18:28:37 +01:00
}
2017-01-18 13:51:11 +01:00
width: 600px;
max-width: 60%;
2017-01-17 18:19:45 +01:00
color: @main-color;
padding: 0 15px;
2017-01-16 18:28:37 +01:00
box-sizing: border-box;
2017-01-18 13:51:11 +01:00
display: inline-block;
2017-01-17 18:19:45 +01:00
#tryit {
margin-top: 20px;
2017-01-18 13:51:11 +01:00
margin-bottom: 5px;
2017-01-17 18:19:45 +01:00
}
2017-01-16 18:28:37 +01:00
}
#loggedIn {
float: right;
color: @main-color;
display: inline-block;
width: 350px;
max-width: 35%;
text-align: center;
font-weight: bold;
button {
font-weight: bold;
cursor: pointer;
}
p {
margin: 20px;
padding: 0;
font-size: 20px;
line-height: 1.5em;
}
}
2017-01-16 18:28:37 +01:00
#userForm {
float: right;
2017-01-16 18:28:37 +01:00
display: inline-block;
width: 400px;
max-width: 40%;
2017-01-16 18:28:37 +01:00
padding: 10px;
box-sizing: border-box;
2017-08-04 17:15:45 +02:00
font-family: @colortheme_font;
2017-01-17 18:19:45 +01:00
color: @main-color;
2017-01-16 18:28:37 +01:00
label {
margin-bottom: 0;
margin-left: 5px;
vertical-align: middle;
}
2017-01-17 18:19:45 +01:00
2017-01-16 18:28:37 +01:00
button {
2017-01-18 13:51:11 +01:00
font-weight: bold;
2017-01-16 18:28:37 +01:00
width: 100%;
cursor: pointer;
&.half {
width: ~"calc(50% - 10px)";
2017-01-17 18:19:45 +01:00
&:not(.first) {
float: right;
2017-01-16 18:28:37 +01:00
}
}
}
p {
margin: 0;
padding: 0;
&.buttons {
margin-bottom: 10px;
.dropdown-bar {
button {
white-space: normal;
text-align: left;
.fa {
float: right;
}
}
a {
color: black;
&:hover, :visited {
color: black !important;
}
}
display: block;
}
}
&.separator {
margin: 5px 0 15px 0;
text-align: center;
font-weight: bold;
font-size: 1.1em;
}
a {
color: @main-color;
font-weight:bold;
2017-02-09 19:00:52 +01:00
font-size: 14px;
&:hover, :visited {
color: @main-color !important;
}
}
}
.driveLink {
padding-left: 1rem; //Bootstrap padding in buttons
font-size: 1em;
}
&> * {
margin-bottom: 10px;
}
2017-01-16 18:28:37 +01:00
}
@media screen and (max-width: @media-not-big) {
#align-container {
2017-01-19 10:48:46 +01:00
transform: initial;
position: relative;
display: block;
width: 90%;
left: 0;
}
#main-container {
position: relative;
transform: unset;
top:0;
}
#data {
text-align: center;
}
#userForm, #loggedIn, #data {
2017-01-19 10:48:46 +01:00
transform: initial;
position: relative;
display: block;
width: 100%;
max-width: 100%;
margin: 10px 0;
box-sizing: border-box;
float: none;
2017-01-19 10:48:46 +01:00
}
#userForm, #loggedIn {
//border: 1px solid #888;
2017-01-19 10:48:46 +01:00
}
position: relative;
height: auto;
}
2017-01-16 18:28:37 +01:00
.buttons {
2017-01-18 18:02:32 +01:00
margin-top: 15px;
}
}
2016-07-04 15:18:11 +02:00
/* buttons */
.create, .action {
display: inline-block;
2016-07-04 16:34:29 +02:00
@thick: 2px;
2017-01-16 18:28:37 +01:00
border: 0;
background-color: @cp-darkblue;
color: @topbar-button-color;
2016-07-04 15:18:11 +02:00
font-weight: bold;
font-size: large;
margin-right: 5px;
margin-left: 5px;
2016-07-04 16:34:29 +02:00
&:hover {
2017-01-16 18:28:37 +01:00
color: darken(@topbar-button-color, 20%);
2016-07-04 16:34:29 +02:00
}
2016-07-04 15:18:11 +02:00
}
2016-12-30 15:30:35 +01:00
// currently only used in /user/
.panel {
2017-01-18 18:02:32 +01:00
background-color: @dark-base;
2016-12-30 15:30:35 +01:00
}
/* Tables
* Currently only used by /poll/
*/
2016-07-04 15:18:11 +02:00
// form things
2016-07-19 16:25:14 +02:00
.bottom-left {
.bottom-left;
}
.top-left {
.top-left;
}
.remove {
color: @cp-red;
cursor: pointer !important;
}
}
2017-05-15 18:16:22 +02:00
/* Pin limit */
.limit-container {
2017-07-10 18:29:23 +02:00
display: inline-flex;
flex-flow: column-reverse;
width: 100%;
margin-top: 20px;
2017-05-15 18:16:22 +02:00
.cryptpad-limit-bar {
display: inline-block;
2017-08-01 10:05:54 +02:00
max-width: 100%;
2017-06-23 17:56:14 +02:00
margin: 3px;
2017-05-15 18:16:22 +02:00
box-sizing: border-box;
border: 1px solid #999;
background: white;
position: relative;
text-align: center;
vertical-align: middle;
2017-07-10 18:29:23 +02:00
width: ~"calc(100% - 6px)";
height: 25px;
line-height: 25px;
2017-05-15 18:16:22 +02:00
.usage {
2017-06-29 15:15:40 +02:00
height: 100%;
2017-05-15 18:16:22 +02:00
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;
2017-07-11 15:34:46 +02:00
font-size: @main-font-size;
2017-05-15 18:16:22 +02:00
font-weight: bold;
}
}
.upgrade {
2017-07-10 18:29:23 +02:00
padding: 0;
line-height: 25px;
height: 25px;
margin: 0 3px;
border-radius: 0;
2017-05-15 18:16:22 +02:00
}
}
2017-06-13 16:15:04 +02:00
/* Upload status table */
#uploadStatusContainer {
2017-08-09 10:54:20 +02:00
.modal_base();
2017-06-13 16:15:04 +02:00
position: absolute;
left: 10vw; right: 10vw;
2017-08-09 10:54:20 +02:00
bottom: 10vh;
2017-08-09 10:55:36 +02:00
opacity: 0.9;
2017-06-13 16:15:04 +02:00
box-sizing: border-box;
2017-08-09 10:54:20 +02:00
z-index: 10000;
2017-06-13 16:15:04 +02:00
display: none;
#uploadStatus {
width: 80vw;
tr:nth-child(1) {
2017-08-09 10:54:20 +02:00
background-color: darken(@colortheme_modal-bg, 20%);
td {
text-align: center;
font-weight: bold;
padding: 0.25em;
}
2017-06-13 16:15:04 +02:00
}
2017-08-09 10:54:20 +02:00
@upload_pad_h: 0.25em;
@upload_pad_v: 0.5em;
2017-06-13 16:15:04 +02:00
td {
2017-08-09 10:54:20 +02:00
padding: @upload_pad_h @upload_pad_v;
2017-06-13 16:15:04 +02:00
}
.upProgress {
width: 200px;
position: relative;
text-align: center;
box-sizing: border-box;
}
.progressContainer {
position: absolute;
width: 0px;
2017-08-09 10:54:20 +02:00
left: @upload_pad_v;
top: @upload_pad_h; bottom: @upload_pad_h;
2017-06-13 16:15:04 +02:00
background-color: rgba(0,0,255,0.3);
2017-08-09 10:54:20 +02:00
z-index: -1;
2017-06-13 16:15:04 +02:00
}
.upCancel { text-align: center; }
.fa.cancel {
color: rgb(255, 0, 115);
}
}
}
2017-01-05 14:45:31 +01:00
// hack for our cross-origin iframe
#cors-store {
display: none;
}