Merge branch 'less-less' into staging
commit
ebfa2c2dc3
@ -1,40 +0,0 @@
|
|||||||
@import (once) './include/font.less';
|
|
||||||
.font_neuropolitical();
|
|
||||||
.font_open-sans();
|
|
||||||
|
|
||||||
body.cp-page-index { @import "./pages/page-index.less"; }
|
|
||||||
body.cp-page-contact { @import "./pages/page-contact.less"; }
|
|
||||||
body.cp-page-login { @import "./pages/page-login.less"; }
|
|
||||||
body.cp-page-register { @import "./pages/page-register.less"; }
|
|
||||||
body.cp-page-what-is-cryptpad { @import "./pages/page-what-is-cryptpad.less"; }
|
|
||||||
body.cp-page-about { @import "./pages/page-about.less"; }
|
|
||||||
body.cp-page-privacy { @import "./pages/page-privacy.less"; }
|
|
||||||
body.cp-page-terms { @import "./pages/page-terms.less"; }
|
|
||||||
|
|
||||||
// Set the HTML style for the apps which shouldn't have a body scrollbar
|
|
||||||
html.cp-app-noscroll {
|
|
||||||
@import "./include/app-noscroll.less";
|
|
||||||
.app-noscroll_main();
|
|
||||||
}
|
|
||||||
// Set the HTML style for printing slides
|
|
||||||
html.cp-app-print {
|
|
||||||
@import "./include/app-print.less";
|
|
||||||
.app-print_main();
|
|
||||||
}
|
|
||||||
|
|
||||||
body.cp-readonly .cp-hidden-if-readonly { display: none !important; }
|
|
||||||
|
|
||||||
body.cp-app-drive { @import "../../../drive/app-drive.less"; }
|
|
||||||
body.cp-app-pad { @import "../../../pad/app-pad.less"; }
|
|
||||||
body.cp-app-code { @import "../../../code/app-code.less"; }
|
|
||||||
body.cp-app-slide { @import "../../../slide/app-slide.less"; }
|
|
||||||
body.cp-app-file { @import "../../../file/app-file.less"; }
|
|
||||||
body.cp-app-filepicker { @import "../../../filepicker/app-filepicker.less"; }
|
|
||||||
body.cp-app-contacts { @import "../../../contacts/app-contacts.less"; }
|
|
||||||
body.cp-app-poll { @import "../../../poll/app-poll.less"; }
|
|
||||||
body.cp-app-whiteboard { @import "../../../whiteboard/app-whiteboard.less"; }
|
|
||||||
body.cp-app-todo { @import "../../../todo/app-todo.less"; }
|
|
||||||
body.cp-app-profile { @import "../../../profile/app-profile.less"; }
|
|
||||||
body.cp-app-settings { @import "../../../settings/app-settings.less"; }
|
|
||||||
body.cp-app-debug { @import "../../../debug/app-debug.less"; }
|
|
||||||
|
|
@ -1,45 +1,50 @@
|
|||||||
.app-print_main () {
|
.app-print_main() {
|
||||||
// Current scope is <html>
|
--LessLoader_require: LessLoader_currentFile();
|
||||||
@media print {
|
}
|
||||||
height: auto;
|
& {
|
||||||
max-height: none;
|
.cp-app-print {
|
||||||
overflow: visible;
|
// Current scope is <html>
|
||||||
display: block;
|
@media print {
|
||||||
@page {
|
height: auto;
|
||||||
margin: 0;
|
max-height: none;
|
||||||
size: landscape;
|
overflow: visible;
|
||||||
}
|
|
||||||
// Slide app
|
|
||||||
body.cp-app-slide {
|
|
||||||
display: block;
|
display: block;
|
||||||
.CodeMirror, #cme_toolbox {
|
@page {
|
||||||
display: none;
|
margin: 0;
|
||||||
|
size: landscape;
|
||||||
}
|
}
|
||||||
* {
|
// Slide app
|
||||||
visibility: hidden;
|
body.cp-app-slide {
|
||||||
height: auto;
|
|
||||||
max-height: none;
|
|
||||||
}
|
|
||||||
.cp-app-slide-viewer #cp-app-slide-print {
|
|
||||||
display: block;
|
display: block;
|
||||||
visibility: visible;
|
.CodeMirror, #cme_toolbox {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
* {
|
* {
|
||||||
|
visibility: hidden;
|
||||||
|
height: auto;
|
||||||
|
max-height: none;
|
||||||
|
}
|
||||||
|
.cp-app-slide-viewer #cp-app-slide-print {
|
||||||
|
display: block;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
* {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cp-app-slide-viewer #cp-app-slide-modal {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.cp-app-slide-viewer {
|
||||||
|
flex: 1 !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
.cp-toolbar-userlist-drawer {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
#cp-app-slide-editor {
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.cp-app-slide-viewer #cp-app-slide-modal {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
.cp-app-slide-viewer {
|
|
||||||
flex: 1 !important;
|
|
||||||
overflow: visible !important;
|
|
||||||
}
|
|
||||||
.cp-toolbar-userlist-drawer {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
#cp-app-slide-editor {
|
|
||||||
height: auto;
|
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,40 +1,65 @@
|
|||||||
@import (once) "./tools.less";
|
@import (reference) "./tools.less";
|
||||||
|
.avatar_vars(
|
||||||
.avatar_main (@width) {
|
@width: 30px
|
||||||
|
) {
|
||||||
|
@avatar-width: @width;
|
||||||
|
@avatar-font-size: @width / 1.2;
|
||||||
|
}
|
||||||
|
.avatar_main(@width: 30px) {
|
||||||
|
--LessLoader_require: LessLoader_currentFile();
|
||||||
|
.avatar_vars(@width);
|
||||||
|
--avatar-width: @avatar-width;
|
||||||
|
--avatar-font-size: @avatar-font-size;
|
||||||
|
}
|
||||||
|
& {
|
||||||
|
.avatar_vars();
|
||||||
&.cp-avatar {
|
&.cp-avatar {
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
font-size: 16px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
.cp-avatar-default, media-tag {
|
|
||||||
display: inline-flex;
|
|
||||||
width: @width;
|
|
||||||
height: @width;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
border-radius: 4px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: content-box;
|
text-overflow: ellipsis;
|
||||||
}
|
font-size: 16px;
|
||||||
.cp-avatar-default {
|
display: flex;
|
||||||
.tools_unselectable();
|
align-items: center;
|
||||||
background: white;
|
.cp-avatar-default, media-tag {
|
||||||
color: black;
|
display: inline-flex;
|
||||||
font-size: @width/1.2;
|
|
||||||
}
|
width: @avatar-width;
|
||||||
media-tag {
|
width: var(--avatar-width);
|
||||||
min-height: @width;
|
|
||||||
min-width: @width;
|
height: @avatar-width;
|
||||||
max-height: @width;
|
height: var(--avatar-width);
|
||||||
max-width: @width;
|
|
||||||
img {
|
justify-content: center;
|
||||||
min-width: 100%;
|
align-items: center;
|
||||||
min-height: 100%;
|
border-radius: 4px;
|
||||||
max-width: none;
|
overflow: hidden;
|
||||||
max-height: none; // To override 'media-tag img' in slide.less
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
.cp-avatar-default {
|
||||||
|
.tools_unselectable();
|
||||||
|
background: white;
|
||||||
|
color: black;
|
||||||
|
font-size: @avatar-font-size;
|
||||||
|
font-size: var(--avatar-font-size);
|
||||||
|
}
|
||||||
|
media-tag {
|
||||||
|
min-height: @avatar-width;
|
||||||
|
min-height: var(--avatar-width);
|
||||||
|
|
||||||
|
min-width: @avatar-width;
|
||||||
|
min-width: var(--avatar-width);
|
||||||
|
|
||||||
|
max-height: @avatar-width;
|
||||||
|
max-height: var(--avatar-width);
|
||||||
|
|
||||||
|
max-width: @avatar-width;
|
||||||
|
max-width: var(--avatar-width);
|
||||||
|
img {
|
||||||
|
min-width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
max-width: none;
|
||||||
|
max-height: none; // To override 'media-tag img' in slide.less
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
.font_neuropolitical () {
|
.font_main () {
|
||||||
@font-face {
|
--LessLoader_require: LessLoader_currentFile();
|
||||||
font-family: Neuropolitical;
|
|
||||||
src: url("/customize/fonts/neuropolitical.ttf");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.font_open-sans () {
|
|
||||||
@import (once) '/customize/fonts/open-sans.less';
|
// Fonts need to go on the global scope
|
||||||
|
@font-face {
|
||||||
|
font-family: Neuropolitical;
|
||||||
|
src: url("/customize/fonts/neuropolitical.ttf");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@import (once) '/customize/fonts/open-sans.less';
|
@ -1,20 +0,0 @@
|
|||||||
@import (once) "./colortheme-all.less";
|
|
||||||
|
|
||||||
.markdownToolbar_main (@color, @bg-color) {
|
|
||||||
.cp-markdown-toolbar {
|
|
||||||
height: @toolbar_line-height;
|
|
||||||
background-color: lighten(@bg-color, 20%);
|
|
||||||
display: none;
|
|
||||||
button {
|
|
||||||
height: @toolbar_line-height !important;
|
|
||||||
outline: 0;
|
|
||||||
color: @color;
|
|
||||||
.toolbar_button;
|
|
||||||
font: normal normal normal 14px/1 FontAwesome;
|
|
||||||
&:hover {
|
|
||||||
background-color: lighten(@bg-color, 8%);
|
|
||||||
}
|
|
||||||
&.cp-markdown-help { float: right; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
@import (once) './include/font.less';
|
|
||||||
.font_neuropolitical();
|
|
||||||
.font_open-sans();
|
|
||||||
|
|
||||||
body.cp-page-index { @import "./pages/page-index.less"; }
|
|
||||||
body.cp-page-contact { @import "./pages/page-contact.less"; }
|
|
||||||
body.cp-page-login { @import "./pages/page-login.less"; }
|
|
||||||
body.cp-page-register { @import "./pages/page-register.less"; }
|
|
||||||
body.cp-page-what-is-cryptpad { @import "./pages/page-what-is-cryptpad.less"; }
|
|
||||||
body.cp-page-about { @import "./pages/page-about.less"; }
|
|
||||||
body.cp-page-privacy { @import "./pages/page-privacy.less"; }
|
|
||||||
body.cp-page-features { @import "./pages/page-features.less"; }
|
|
||||||
body.cp-page-faq { @import "./pages/page-faq.less"; }
|
|
||||||
body.cp-page-terms { @import "./pages/page-terms.less"; }
|
|
||||||
|
|
||||||
// Set the HTML style for the apps which shouldn't have a body scrollbar
|
|
||||||
html.cp-app-noscroll {
|
|
||||||
@import "./include/app-noscroll.less";
|
|
||||||
.app-noscroll_main();
|
|
||||||
}
|
|
||||||
// Set the HTML style for printing slides
|
|
||||||
html.cp-app-print {
|
|
||||||
@import "./include/app-print.less";
|
|
||||||
.app-print_main();
|
|
||||||
}
|
|
||||||
|
|
||||||
body.cp-readonly .cp-hidden-if-readonly { display: none !important; }
|
|
||||||
|
|
||||||
body.cp-app-drive { @import "../../../drive/app-drive.less"; }
|
|
||||||
body.cp-app-pad { @import "../../../pad/app-pad.less"; }
|
|
||||||
body.cp-app-code { @import "../../../code/app-code.less"; }
|
|
||||||
body.cp-app-slide { @import "../../../slide/app-slide.less"; }
|
|
||||||
body.cp-app-file { @import "../../../file/app-file.less"; }
|
|
||||||
body.cp-app-filepicker { @import "../../../filepicker/app-filepicker.less"; }
|
|
||||||
body.cp-app-contacts { @import "../../../contacts/app-contacts.less"; }
|
|
||||||
body.cp-app-poll { @import "../../../poll/app-poll.less"; }
|
|
||||||
body.cp-app-whiteboard { @import "../../../whiteboard/app-whiteboard.less"; }
|
|
||||||
body.cp-app-todo { @import "../../../todo/app-todo.less"; }
|
|
||||||
body.cp-app-profile { @import "../../../profile/app-profile.less"; }
|
|
||||||
body.cp-app-settings { @import "../../../settings/app-settings.less"; }
|
|
||||||
body.cp-app-debug { @import "../../../debug/app-debug.less"; }
|
|
||||||
body.cp-app-worker { @import "../../../worker/app-worker.less"; }
|
|
||||||
body.cp-app-kanban { @import "../../../kanban/app-kanban.less"; }
|
|
||||||
|
|
@ -1,115 +1,117 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-about {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
#cp-main {
|
|
||||||
background: #fff;
|
#cp-main {
|
||||||
}
|
background: #fff;
|
||||||
.cp-about-intro {
|
}
|
||||||
padding-top: 3em;
|
.cp-about-intro {
|
||||||
padding-bottom: 3em;
|
padding-top: 3em;
|
||||||
background-image: url(/customize/bkabout.jpg);
|
padding-bottom: 3em;
|
||||||
background-size: cover;
|
background-image: url(/customize/bkabout.jpg);
|
||||||
background-repeat: no-repeat;
|
background-size: cover;
|
||||||
background-position: center;
|
background-repeat: no-repeat;
|
||||||
.container {
|
background-position: center;
|
||||||
color: #fff;
|
.container {
|
||||||
font-family: "Open Sans";
|
|
||||||
h1 {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
a {
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: underline;
|
font-family: "Open Sans";
|
||||||
}
|
h1 {
|
||||||
p {
|
font-weight: 700;
|
||||||
padding-top: 1em;
|
}
|
||||||
|
a {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
padding-top: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.cp-container {
|
||||||
.cp-container {
|
.row {
|
||||||
.row {
|
background: #fff;
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
.cp-bio-avatar {
|
|
||||||
padding-right: 0;
|
|
||||||
@media (max-width: 991px) {
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
}
|
||||||
img {
|
.cp-bio-avatar {
|
||||||
|
padding-right: 0;
|
||||||
@media (max-width: 991px) {
|
@media (max-width: 991px) {
|
||||||
margin: 0 auto;
|
padding-right: 15px;
|
||||||
display: block;
|
}
|
||||||
|
img {
|
||||||
|
@media (max-width: 991px) {
|
||||||
|
margin: 0 auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.cp-bio-avatar-right {
|
||||||
.cp-bio-avatar-right {
|
padding-right: 15px;
|
||||||
padding-right: 15px;
|
padding-left: 0;
|
||||||
padding-left: 0;
|
@media (max-width: 991px) {
|
||||||
@media (max-width: 991px) {
|
padding-left: 15px;
|
||||||
padding-left: 15px;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.cp-develop-about {
|
||||||
.cp-develop-about {
|
.cp-icon-cent {
|
||||||
.cp-icon-cent {
|
width: 6rem;
|
||||||
width: 6rem;
|
background: #fff;
|
||||||
background: #fff;
|
border-radius: 50%;
|
||||||
border-radius: 50%;
|
height: 6rem;
|
||||||
height: 6rem;
|
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
||||||
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
margin: 0 auto;
|
||||||
margin: 0 auto;
|
background-image: url(/customize/code.svg);
|
||||||
background-image: url(/customize/code.svg);
|
background-repeat: no-repeat;
|
||||||
background-repeat: no-repeat;
|
margin-top: 1em;
|
||||||
margin-top: 1em;
|
margin-bottom: 1.5em;
|
||||||
margin-bottom: 1.5em;
|
background-position: 50%;
|
||||||
background-position: 50%;
|
background-size: 4rem;
|
||||||
background-size: 4rem;
|
}
|
||||||
}
|
h2 {
|
||||||
h2 {
|
margin-top: 0;
|
||||||
margin-top: 0;
|
font-weight: 600;
|
||||||
font-weight: 600;
|
color: #1E1F1F;
|
||||||
color: #1E1F1F;
|
margin-bottom: 1.5em;
|
||||||
margin-bottom: 1.5em;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
.cp-profile-det {
|
|
||||||
padding-left: 30px;
|
|
||||||
h3 {
|
|
||||||
color: #1E1F1F;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
}
|
||||||
p {
|
.cp-profile-det {
|
||||||
color: #3F4141;
|
padding-left: 30px;
|
||||||
|
h3 {
|
||||||
|
color: #1E1F1F;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
color: #3F4141;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
hr {
|
||||||
|
margin-left: 0;
|
||||||
|
width: 15rem;
|
||||||
|
border-top: 2px solid @cryptpad_color_blue;
|
||||||
|
}
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
hr {
|
.cp-soc-media {
|
||||||
margin-left: 0;
|
font-size: 1.5em;
|
||||||
width: 15rem;
|
|
||||||
border-top: 2px solid @cryptpad_color_blue;
|
|
||||||
}
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
.cp-soc-media {
|
|
||||||
font-size: 1.5em;
|
|
||||||
color: @cryptpad_color_blue;
|
|
||||||
padding-right: 1em;
|
|
||||||
display: inline-block;
|
|
||||||
&:hover {
|
|
||||||
transform: scale(1.1);
|
|
||||||
}
|
|
||||||
&:visited {
|
|
||||||
color: @cryptpad_color_blue;
|
color: @cryptpad_color_blue;
|
||||||
|
padding-right: 1em;
|
||||||
|
display: inline-block;
|
||||||
|
&:hover {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
&:visited {
|
||||||
|
color: @cryptpad_color_blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cp-contrib {
|
||||||
|
margin-top: 3em;
|
||||||
|
.cp-icon-cent {
|
||||||
|
background-image: url(/customize/source-branch.svg);
|
||||||
|
background-position: 60%;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.cp-contrib {
|
|
||||||
margin-top: 3em;
|
|
||||||
.cp-icon-cent {
|
|
||||||
background-image: url(/customize/source-branch.svg);
|
|
||||||
background-position: 60%;
|
|
||||||
}
|
}
|
||||||
}
|
.cp-margin-bot {
|
||||||
.cp-margin-bot {
|
margin-bottom: 1.5em;
|
||||||
margin-bottom: 1.5em;
|
}
|
||||||
}
|
}
|
@ -1,90 +1,91 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-contact {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
padding-right: 0.25em;
|
padding-right: 0.25em;
|
||||||
}
|
}
|
||||||
#cp-main {
|
#cp-main {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.cp-container {
|
.cp-container {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
.cp-iconCont {
|
.cp-iconCont {
|
||||||
h4 {
|
h4 {
|
||||||
margin-top: 1.5em;
|
margin-top: 1.5em;
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
}
|
|
||||||
div {
|
|
||||||
.card {
|
|
||||||
padding: 4em 1em 0.5em 1em;
|
|
||||||
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
|
||||||
border-color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 1em;
|
|
||||||
&:hover, &:focus {
|
|
||||||
text-decoration: none;
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
@media (max-width: 1200px) and (min-width: 769px) {
|
|
||||||
min-height: 139px;
|
|
||||||
}
|
|
||||||
@media (max-width: 768px) and (min-width: 576px) {
|
|
||||||
min-height: 164px;
|
|
||||||
}
|
|
||||||
@media (max-width: 496px) {
|
|
||||||
min-height: 140px;
|
|
||||||
}
|
|
||||||
@media (max-width: 335px) {
|
|
||||||
min-height: 162px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
&:nth-child(2) {
|
div {
|
||||||
.card {
|
.card {
|
||||||
background-image: url(/customize/images/twitter.svg);
|
padding: 4em 1em 0.5em 1em;
|
||||||
background-repeat: no-repeat;
|
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
||||||
background-position: 50% 10%;
|
border-color: #fff;
|
||||||
background-size: 3rem;
|
text-align: center;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
&:hover, &:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
@media (max-width: 1200px) and (min-width: 769px) {
|
||||||
|
min-height: 139px;
|
||||||
|
}
|
||||||
|
@media (max-width: 768px) and (min-width: 576px) {
|
||||||
|
min-height: 164px;
|
||||||
|
}
|
||||||
|
@media (max-width: 496px) {
|
||||||
|
min-height: 140px;
|
||||||
|
}
|
||||||
|
@media (max-width: 335px) {
|
||||||
|
min-height: 162px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
&:nth-child(2) {
|
||||||
&:nth-child(3) {
|
.card {
|
||||||
.card {
|
background-image: url(/customize/images/twitter.svg);
|
||||||
background-image: url(/customize/images/issue.svg);
|
background-repeat: no-repeat;
|
||||||
background-repeat: no-repeat;
|
background-position: 50% 10%;
|
||||||
background-position: 50% 10%;
|
background-size: 3rem;
|
||||||
background-size: 3rem;
|
}
|
||||||
}
|
}
|
||||||
}
|
&:nth-child(3) {
|
||||||
&:nth-child(4) {
|
.card {
|
||||||
.card {
|
background-image: url(/customize/images/issue.svg);
|
||||||
background-image: url(/customize/images/sayhi.svg);
|
background-repeat: no-repeat;
|
||||||
background-repeat: no-repeat;
|
background-position: 50% 10%;
|
||||||
background-position: 50% 10%;
|
background-size: 3rem;
|
||||||
background-size: 3rem;
|
}
|
||||||
}
|
}
|
||||||
}
|
&:nth-child(4) {
|
||||||
&:nth-child(5) {
|
.card {
|
||||||
.card {
|
background-image: url(/customize/images/sayhi.svg);
|
||||||
background-image: url(/customize/images/email.svg);
|
background-repeat: no-repeat;
|
||||||
background-repeat: no-repeat;
|
background-position: 50% 10%;
|
||||||
background-position: 50% 10%;
|
background-size: 3rem;
|
||||||
background-size: 3rem;
|
}
|
||||||
|
}
|
||||||
|
&:nth-child(5) {
|
||||||
|
.card {
|
||||||
|
background-image: url(/customize/images/email.svg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 50% 10%;
|
||||||
|
background-size: 3rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.cp-contdet {
|
||||||
.cp-contdet {
|
padding-top: 3em;
|
||||||
padding-top: 3em;
|
padding-bottom: 3em;
|
||||||
padding-bottom: 3em;
|
background-image: url(/customize/images/bkcontact.jpg);
|
||||||
background-image: url(/customize/images/bkcontact.jpg);
|
background-size: cover;
|
||||||
background-size: cover;
|
background-repeat: no-repeat;
|
||||||
background-repeat: no-repeat;
|
background-position: center;
|
||||||
background-position: center;
|
h1 {
|
||||||
h1 {
|
font-weight: 700;
|
||||||
font-weight: 700;
|
color: #fff;
|
||||||
color: #fff;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,86 +1,88 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-features {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
#cp-main {
|
|
||||||
background-color: #fff;
|
#cp-main {
|
||||||
}
|
background-color: #fff;
|
||||||
.cp_cont_features {
|
|
||||||
padding-top: 3em;
|
|
||||||
padding-bottom: 3em;
|
|
||||||
background-image: url('/customize/images/cover-features.jpg');
|
|
||||||
background-size: cover;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
h1 {
|
|
||||||
font-weight: 700;
|
|
||||||
color: #fff;
|
|
||||||
}
|
}
|
||||||
}
|
.cp_cont_features {
|
||||||
#cp-features-register {
|
padding-top: 3em;
|
||||||
text-align: center;
|
padding-bottom: 3em;
|
||||||
padding: 20px;
|
background-image: url('/customize/images/cover-features.jpg');
|
||||||
}
|
background-size: cover;
|
||||||
.cp-features-register-button {
|
background-repeat: no-repeat;
|
||||||
font-size: 20px;
|
background-position: center;
|
||||||
color: #fff;
|
h1 {
|
||||||
background: @cryptpad_color_blue;
|
font-weight: 700;
|
||||||
border: 2px solid @cryptpad_color_blue;
|
color: #fff;
|
||||||
border-radius: 0;
|
}
|
||||||
&:hover {
|
|
||||||
transform: scale(1.05);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
padding: 0.5em 1em;
|
#cp-features-register {
|
||||||
}
|
text-align: center;
|
||||||
.cp-features-web {
|
padding: 20px;
|
||||||
.card {
|
|
||||||
box-shadow: 0 5px 15px rgba(69, 145, 196, 0.3);
|
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
h3 {
|
.cp-features-register-button {
|
||||||
|
font-size: 20px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
background: @cryptpad_color_blue;
|
||||||
|
border: 2px solid @cryptpad_color_blue;
|
||||||
|
border-radius: 0;
|
||||||
|
&:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
padding: 0.5em 1em;
|
||||||
}
|
}
|
||||||
.list-group {
|
.cp-features-web {
|
||||||
li {
|
.card {
|
||||||
&:before {
|
box-shadow: 0 5px 15px rgba(69, 145, 196, 0.3);
|
||||||
content: "\f00c";
|
border: none;
|
||||||
font-family: "FontAwesome";
|
}
|
||||||
font-size: 14px;
|
h3 {
|
||||||
color: @cryptpad_color_blue;
|
color: #fff;
|
||||||
padding-right: 10px;
|
}
|
||||||
|
.list-group {
|
||||||
|
li {
|
||||||
|
&:before {
|
||||||
|
content: "\f00c";
|
||||||
|
font-family: "FontAwesome";
|
||||||
|
font-size: 14px;
|
||||||
|
color: @cryptpad_color_blue;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
display: inline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
div {
|
a.voted {
|
||||||
display: inline;
|
opacity: 0.6;
|
||||||
|
margin-left: 15px;
|
||||||
|
&:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.list-group-item {
|
||||||
a.voted {
|
border-color: rgba(69, 145, 196, 0.125);
|
||||||
opacity: 0.6;
|
|
||||||
margin-left: 15px;
|
|
||||||
&:hover {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list-group-item {
|
.cp-anon-user {
|
||||||
border-color: rgba(69, 145, 196, 0.125);
|
.card-body {
|
||||||
}
|
background-color: @cryptpad_color_blue;
|
||||||
}
|
}
|
||||||
.cp-anon-user {
|
|
||||||
.card-body {
|
|
||||||
background-color: @cryptpad_color_blue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.cp-regis-user {
|
|
||||||
@media (max-width:575px) {
|
|
||||||
margin-top: 3em;
|
|
||||||
}
|
}
|
||||||
.card-body {
|
.cp-regis-user {
|
||||||
&:first-of-type {
|
@media (max-width:575px) {
|
||||||
background: #4591C4;
|
margin-top: 3em;
|
||||||
background: -webkit-linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
}
|
||||||
background: linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
.card-body {
|
||||||
|
&:first-of-type {
|
||||||
|
background: #4591C4;
|
||||||
|
background: -webkit-linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
||||||
|
background: linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,69 +1,70 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
@import (once) "../include/alertify.less";
|
@import (reference) "../include/alertify.less";
|
||||||
@import (once) "../include/checkmark.less";
|
@import (reference) "../include/checkmark.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-login {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
.alertify_main();
|
.alertify_main();
|
||||||
.checkmark_main(20px);
|
.checkmark_main(20px);
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
.extra {
|
.extra {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
|
||||||
}
|
|
||||||
.cp-container {
|
|
||||||
#data {
|
|
||||||
background: #4591C4;
|
|
||||||
padding-top: 3em;
|
|
||||||
padding-bottom: 7em;
|
|
||||||
padding-left: 30px;
|
|
||||||
padding-right: 30px;
|
|
||||||
p {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
h2 {
|
|
||||||
font-weight: 700;
|
|
||||||
color: @cryptpad_header_col;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#userForm {
|
.cp-container {
|
||||||
padding-top: 3em;
|
#data {
|
||||||
padding-bottom: 2em;
|
background: #4591C4;
|
||||||
.form-control {
|
padding-top: 3em;
|
||||||
border-radius: 0;
|
padding-bottom: 7em;
|
||||||
color: @cryptpad_text_col;
|
padding-left: 30px;
|
||||||
margin-top: 1em;
|
padding-right: 30px;
|
||||||
&:focus {
|
p {
|
||||||
border-color: @cryptpad_color_blue;
|
color: #fff;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-weight: 700;
|
||||||
|
color: @cryptpad_header_col;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#userForm {
|
||||||
|
padding-top: 3em;
|
||||||
|
padding-bottom: 2em;
|
||||||
|
.form-control {
|
||||||
|
border-radius: 0;
|
||||||
|
color: @cryptpad_text_col;
|
||||||
|
margin-top: 1em;
|
||||||
|
&:focus {
|
||||||
|
border-color: @cryptpad_color_blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.checkbox-container {
|
||||||
|
color: @cryptpad_text_col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.checkbox-container {
|
.align-items-center {
|
||||||
color: @cryptpad_text_col;
|
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
||||||
|
background: #fff;
|
||||||
}
|
}
|
||||||
}
|
.extra {
|
||||||
.align-items-center {
|
margin-top: 1em;
|
||||||
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
.login {
|
||||||
background: #fff;
|
background: @cryptpad_color_blue;
|
||||||
}
|
color: #fff;
|
||||||
.extra {
|
padding: 10px;
|
||||||
margin-top: 1em;
|
border-radius: 0;
|
||||||
.login {
|
&:hover {
|
||||||
background: @cryptpad_color_blue;
|
transform: scale(1.05);
|
||||||
color: #fff;
|
}
|
||||||
padding: 10px;
|
|
||||||
border-radius: 0;
|
|
||||||
&:hover {
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
.cp-container {
|
||||||
.cp-container {
|
padding-top: 3em;
|
||||||
padding-top: 3em;
|
min-height: 66vh;
|
||||||
min-height: 66vh;
|
}
|
||||||
}
|
}
|
@ -1,139 +1,141 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
@import (once) "../include/alertify.less";
|
@import (reference) "../include/alertify.less";
|
||||||
@import (once) "../include/checkmark.less";
|
@import (reference) "../include/checkmark.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-register {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
.alertify_main();
|
|
||||||
.checkmark_main(20px);
|
|
||||||
|
|
||||||
.cp-container {
|
.alertify_main();
|
||||||
.form-group {
|
.checkmark_main(20px);
|
||||||
.checkbox-container {
|
|
||||||
&:nth-of-type(1) {
|
.cp-container {
|
||||||
margin-top: 2em;
|
.form-group {
|
||||||
|
.checkbox-container {
|
||||||
|
&:nth-of-type(1) {
|
||||||
|
margin-top: 2em;
|
||||||
|
}
|
||||||
|
&:last-of-type {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&:last-of-type {
|
#register {
|
||||||
margin-bottom: 1em;
|
&.btn {
|
||||||
|
padding: .5rem .5rem;
|
||||||
|
}
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 1.25em;
|
||||||
|
min-width: 30%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#register {
|
padding-bottom: 3em;
|
||||||
&.btn {
|
min-height: 5vh;
|
||||||
padding: .5rem .5rem;
|
|
||||||
}
|
|
||||||
margin-top: 16px;
|
|
||||||
font-size: 1.25em;
|
|
||||||
min-width: 30%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
padding-bottom: 3em;
|
.alertify {
|
||||||
min-height: 5vh;
|
// workaround for alertify making empty p
|
||||||
}
|
p:empty {
|
||||||
.alertify {
|
display: none;
|
||||||
// workaround for alertify making empty p
|
}
|
||||||
p:empty {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
}
|
.cp-register-wel {
|
||||||
.cp-register-wel {
|
padding-top: 6em;
|
||||||
padding-top: 6em;
|
padding-bottom: 20em;
|
||||||
padding-bottom: 20em;
|
background-image: url(/customize/bkregister.jpg);
|
||||||
background-image: url(/customize/bkregister.jpg);
|
background-size: cover;
|
||||||
background-size: cover;
|
background-repeat: no-repeat;
|
||||||
background-repeat: no-repeat;
|
background-position: center;
|
||||||
background-position: center;
|
h1 {
|
||||||
h1 {
|
font-weight: 700;
|
||||||
font-weight: 700;
|
color: #fff;
|
||||||
color: #fff;
|
text-shadow: 0 1px 5px rgba(0,0,0,.2);
|
||||||
text-shadow: 0 1px 5px rgba(0,0,0,.2);
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.cp-register-det {
|
.cp-register-det {
|
||||||
margin-top: -7em;
|
margin-top: -7em;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
box-shadow: 0 5px 15px rgba(69,145,196, 0.3);
|
||||||
|
|
||||||
#data {
|
#data {
|
||||||
// Old browsers
|
// Old browsers
|
||||||
background: #4591C4;
|
background: #4591C4;
|
||||||
|
|
||||||
// Chrome 10-25, Safari 5.1-6
|
// Chrome 10-25, Safari 5.1-6
|
||||||
background: -webkit-linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
background: -webkit-linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
||||||
|
|
||||||
// W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+
|
// W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+
|
||||||
background: linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
background: linear-gradient(to right, #FF7C4F, #4592C4); // lesshint duplicateProperty: false
|
||||||
|
|
||||||
padding-top: 3em;
|
padding-top: 3em;
|
||||||
padding-bottom: 7em;
|
padding-bottom: 7em;
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
p {
|
p {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
li {
|
li {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
.fa {
|
||||||
|
font-size: 1.5em;
|
||||||
|
padding-right: 10px;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.fa {
|
h3 {
|
||||||
font-size: 1.5em;
|
font-weight: 700;
|
||||||
padding-right: 10px;
|
margin-bottom: 1em;
|
||||||
color: #000;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h3 {
|
#userForm {
|
||||||
font-weight: 700;
|
padding-top: 3em;
|
||||||
margin-bottom: 1em;
|
padding-bottom: 2em;
|
||||||
|
.form-control {
|
||||||
|
border-radius: 0;
|
||||||
|
color: @cryptpad_text_col;
|
||||||
|
margin-top: 1em;
|
||||||
|
&:focus {
|
||||||
|
border-color: @cryptpad_color_blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.checkbox-container {
|
||||||
|
color: @cryptpad_text_col;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.cp-login-register {
|
||||||
#userForm {
|
color: @cryptpad_color_blue;
|
||||||
padding-top: 3em;
|
background: #fff;
|
||||||
padding-bottom: 2em;
|
border: 2px solid @cryptpad_color_blue;
|
||||||
.form-control {
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
color: @cryptpad_text_col;
|
&:hover {
|
||||||
margin-top: 1em;
|
transform: scale(1.05);
|
||||||
&:focus {
|
|
||||||
border-color: @cryptpad_color_blue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.checkbox-container {
|
}
|
||||||
|
.cp-register-test {
|
||||||
|
margin-top: 3em;
|
||||||
|
hr {
|
||||||
|
width: 15rem;
|
||||||
|
border-top: 2px solid @cryptpad_color_blue;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.cp-test-source {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.test-details {
|
||||||
|
padding-left: 4em;
|
||||||
|
background-image: url(/customize/testimonial.svg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left top;
|
||||||
|
background-size: 3em;
|
||||||
color: @cryptpad_text_col;
|
color: @cryptpad_text_col;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.cp-login-register {
|
#cp-main {
|
||||||
color: @cryptpad_color_blue;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 2px solid @cryptpad_color_blue;
|
|
||||||
border-radius: 0;
|
|
||||||
&:hover {
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.cp-register-test {
|
|
||||||
margin-top: 3em;
|
|
||||||
hr {
|
|
||||||
width: 15rem;
|
|
||||||
border-top: 2px solid @cryptpad_color_blue;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 2em;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.cp-test-source {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
}
|
||||||
.test-details {
|
|
||||||
padding-left: 4em;
|
|
||||||
background-image: url(/customize/testimonial.svg);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: left top;
|
|
||||||
background-size: 3em;
|
|
||||||
color: @cryptpad_text_col;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
#cp-main {
|
|
||||||
background: #fff;
|
|
||||||
}
|
}
|
@ -1,5 +1,6 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-terms {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
|
}
|
||||||
|
@ -1,43 +1,44 @@
|
|||||||
@import (once) "../include/infopages.less";
|
@import (reference) "../include/infopages.less";
|
||||||
@import (once) "../include/colortheme-all.less";
|
@import (reference) "../include/colortheme-all.less";
|
||||||
|
|
||||||
.infopages_main();
|
&.cp-page-what-is-cryptpad {
|
||||||
.infopages_topbar();
|
.infopages_main();
|
||||||
|
|
||||||
.cp-what-is {
|
.cp-what-is {
|
||||||
|
padding-top: 3em;
|
||||||
|
padding-bottom: 3em;
|
||||||
|
background-image: url(/customize/bkwhat.jpg);
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
color: #fff;
|
||||||
|
h1 {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#cp-main {
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.cp-container {
|
||||||
padding-top: 3em;
|
padding-top: 3em;
|
||||||
padding-bottom: 3em;
|
padding-bottom: 3em;
|
||||||
background-image: url(/customize/bkwhat.jpg);
|
h2 {
|
||||||
background-size: cover;
|
margin-top: 0;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
color: #fff;
|
|
||||||
h1 {
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
color: @cryptpad_header_col;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
color: @cryptpad_text_col;
|
||||||
|
}
|
||||||
|
#zeroknowledge {
|
||||||
|
width: 65%;
|
||||||
|
}
|
||||||
|
.row {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#cp-main {
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
.cp-container {
|
|
||||||
padding-top: 3em;
|
|
||||||
padding-bottom: 3em;
|
|
||||||
h2 {
|
|
||||||
margin-top: 0;
|
|
||||||
font-weight: 700;
|
|
||||||
color: @cryptpad_header_col;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
color: @cryptpad_text_col;
|
|
||||||
}
|
|
||||||
#zeroknowledge {
|
|
||||||
width: 65%;
|
|
||||||
}
|
|
||||||
.row {
|
|
||||||
margin-bottom: 1.5em;
|
|
||||||
}
|
|
||||||
img {
|
|
||||||
display: block;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,19 +1,45 @@
|
|||||||
# CryptPad Styling
|
# CryptPad Styling
|
||||||
|
|
||||||
How it works:
|
## Linking Less/CSS
|
||||||
* In this example, we use the index page, for each page we will have a corresponding class name and a corresponding less file.
|
|
||||||
* The index page has a main div containing everything `<div id="cp-main" class="cp-page-index">`
|
In order to keep the amount of CSS generated under control, we use "linking", via the LessLoader.
|
||||||
* There is a corresponding less file called `less2/pages/page-index.less`
|
This makes use of CSS variables in order to work. The old solution was to put all of the content into less mixins
|
||||||
* Finally there is a corresponding line in main.less which imports that less file: `div#main.cp-page-index { @import "./pages/page-index.less"; }`
|
which would be used inside of the scope where they should be, but this caused a state explosion because each app needed
|
||||||
* cp-page-index class means:
|
essentially the same mixins. However, these mixins had arguments such as colors which were different per-app.
|
||||||
* cp -> cryptpad
|
|
||||||
* page -> this is a style for accessing a page's less file
|
The new solution is to set CSS variables for the arguments (like color) and then put the bulk of the less at the global
|
||||||
* index -> the name of the page and of the less file (page-index.less)
|
scope. When you include a dependency, the following happens:
|
||||||
* And everything which is standardized across pages is included from `page-index.less` as variables and mixins.
|
|
||||||
|
1. You `@include (reference) './include/dependency.less`. The (reference) argument which means it will not emit CSS,
|
||||||
|
this is important because otherwise all of the dependencies of your app's less file would end up bundled with it, the
|
||||||
|
state explosion problem.
|
||||||
|
2. You invoke `.dependency_main(@arg1 @arg2)` inside of the scope you want it in, the name `dependency_main` is a
|
||||||
|
convention, all less variables, mixins, or CSS variables which a file creates should be prefixed with the name of the
|
||||||
|
file (in this case, "dependency").
|
||||||
|
3. The mixin `.dependency_main` does a couple of things:
|
||||||
|
* First, it sets a CSS variable called `--LessLoader_require`, this is a special variable which the browser does not
|
||||||
|
use, the only objective of this variable is to inform LessLoader that another file is needed. To do this, there is a
|
||||||
|
helper function (also specified in LessLoader.js) called `LessLoader_currentFile()`. The syntax is:
|
||||||
|
`--LessLoader_require: LessLoader_currentFile();` and in the CSS, this outputs something like:
|
||||||
|
`--LessLoader_require: "/customize/src/less2/include/dependency.less?ver=2.4.0-1531572157592";`
|
||||||
|
* Secondly, it sets browser variables for it's arguments, making sure to avoid namespace collisions:
|
||||||
|
`--dependency-arg1: @arg1;`, `--dependency-arg2: @arg2;`. Sometimes a less transformation needs to be done on a
|
||||||
|
variable, unfortunately in this case the transformation must be done here and the transformed variable must be output.
|
||||||
|
`--dependency-arg1-l10: lighten(@arg1, 10%);`.
|
||||||
|
4. After less processing is completed, the LessLoader caches the result of parsing, then scans the it for instances of
|
||||||
|
`--LessLoader_require` variable and then processes them, but it does this separately. So even if dependency.less is
|
||||||
|
required many times, it will only be processed by the less interpreter once.
|
||||||
|
|
||||||
|
## Other convensions
|
||||||
|
|
||||||
Rules:
|
|
||||||
* All of our new classes and ids should start with `cp-`.
|
* All of our new classes and ids should start with `cp-`.
|
||||||
* You may make as many files as you need, for different purposes, but they can only contain mixins and variables.
|
* The document body has a class on it depending on the app/page, app classes begin with `cp-app-` and page classes begin
|
||||||
|
with `cp-page-`.
|
||||||
|
* Custom classes ought to begin with `cp-` and the name of the file where the rules are written for them (see help.less as
|
||||||
|
an example of doing the right thing).
|
||||||
|
* Since the include files generate CSS and the app cannot control the scope which it's run at, be considerate avoid
|
||||||
|
making an include file which changes something significant (like making a rule for `li`). help.less is an excellent example
|
||||||
|
of doing this well, infopages.less is the worst example (fortunately it doesn't get included in any of the apps).
|
||||||
* All mixins and variables must be prefixed with the name of the file where they're defined and and underscore.
|
* All mixins and variables must be prefixed with the name of the file where they're defined and and underscore.
|
||||||
* e.g. `@colortheme_toolbar-poll-bg: #006304;` defined in `colortheme.less`
|
* e.g. `@colortheme_toolbar-poll-bg: #006304;` defined in `colortheme.less`
|
||||||
* All mixin / variable files go in an `/include/` directory.
|
* All mixin / variable files go in an `/include/` directory.
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,151 +1,152 @@
|
|||||||
@import (once) "../../customize/src/less2/include/browser.less";
|
@import (reference) '../../customize/src/less2/include/tokenfield.less';
|
||||||
@import (once) "../../customize/src/less2/include/markdown.less";
|
@import (reference) '../../customize/src/less2/include/framework.less';
|
||||||
@import (once) '../../customize/src/less2/include/tokenfield.less';
|
|
||||||
@import (once) '../../customize/src/less2/include/framework.less';
|
&.cp-app-file {
|
||||||
|
|
||||||
.framework_min_main(
|
.framework_min_main(
|
||||||
@bg-color: @colortheme_file-bg,
|
@bg-color: @colortheme_file-bg,
|
||||||
@warn-color: @colortheme_file-warn,
|
@warn-color: @colortheme_file-warn,
|
||||||
@color: @colortheme_file-color
|
@color: @colortheme_file-color
|
||||||
);
|
);
|
||||||
.tokenfield_main();
|
.tokenfield_main();
|
||||||
|
|
||||||
@button-border: 2px;
|
@button-border: 2px;
|
||||||
|
|
||||||
// body
|
// body
|
||||||
display: flex;
|
|
||||||
flex-flow: column;
|
|
||||||
|
|
||||||
#cp-app-file-content {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cp-app-file-content.ready {
|
#cp-app-file-content {
|
||||||
//background: url('/customize/bg3.jpg') no-repeat center center;
|
flex: 1;
|
||||||
background-size: cover;
|
display: flex;
|
||||||
background-position: center;
|
justify-content: center;
|
||||||
}
|
align-items: center;
|
||||||
|
flex-flow: column;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#cp-app-file-upfile, #cp-app-file-dlfile {
|
#cp-app-file-content.ready {
|
||||||
display: block;
|
//background: url('/customize/bg3.jpg') no-repeat center center;
|
||||||
height: 100%;
|
background-size: cover;
|
||||||
width: 100%;
|
background-position: center;
|
||||||
border: @button-border solid black;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.cp-app-file-input {
|
#cp-app-file-upfile, #cp-app-file-dlfile {
|
||||||
width: 0.1px;
|
display: block;
|
||||||
height: 0.1px;
|
height: 100%;
|
||||||
opacity: 0;
|
width: 100%;
|
||||||
overflow: hidden;
|
border: @button-border solid black;
|
||||||
position: absolute;
|
}
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
media-tag {
|
.cp-app-file-input {
|
||||||
img {
|
width: 0.1px;
|
||||||
max-width: 100%;
|
height: 0.1px;
|
||||||
max-height: ~"calc(100vh - 96px)";
|
opacity: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
position: absolute;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#cp-app-file-upload-form, #cp-app-file-download-form {
|
media-tag {
|
||||||
padding: 0px;
|
img {
|
||||||
margin: 0px;
|
max-width: 100%;
|
||||||
|
max-height: ~"calc(100vh - 96px)";
|
||||||
position: relative;
|
}
|
||||||
width: 50vh;
|
}
|
||||||
height: 50vh;
|
|
||||||
display: block;
|
#cp-app-file-upload-form, #cp-app-file-download-form {
|
||||||
margin: 50px auto;
|
padding: 0px;
|
||||||
max-width: 80vw;
|
margin: 0px;
|
||||||
label {
|
|
||||||
line-height: ~"calc(50vh - 20px)";
|
|
||||||
text-align: center;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 10px;
|
width: 50vh;
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
height: 50vh;
|
height: 50vh;
|
||||||
box-sizing: border-box;
|
display: block;
|
||||||
}
|
margin: 50px auto;
|
||||||
}
|
max-width: 80vw;
|
||||||
#cp-app-file-download-form {
|
label {
|
||||||
label {
|
line-height: ~"calc(50vh - 20px)";
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
white-space: normal;
|
|
||||||
word-wrap: break-word;
|
|
||||||
span {
|
|
||||||
width: 50vh;
|
|
||||||
max-width: 80vw;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.5em;
|
position: relative;
|
||||||
|
padding: 10px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
height: 50vh;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
#cp-app-file-download-form {
|
||||||
.cp-app-file-hovering {
|
label {
|
||||||
background-color: rgba(255, 0, 115, 0.5) !important;
|
display: flex;
|
||||||
}
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
white-space: normal;
|
||||||
|
word-wrap: break-word;
|
||||||
|
span {
|
||||||
|
width: 50vh;
|
||||||
|
max-width: 80vw;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cp-app-file-hovering {
|
||||||
|
background-color: rgba(255, 0, 115, 0.5) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.cp-app-file-block {
|
.cp-app-file-block {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.cp-app-file-hidden {
|
.cp-app-file-hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.cp-app-file-input + label {
|
.cp-app-file-input + label {
|
||||||
//border: 2px solid black;
|
//border: 2px solid black;
|
||||||
//background-color: rgba(50, 50, 50, .10);
|
//background-color: rgba(50, 50, 50, .10);
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cp-app-file-input:focus + label,
|
.cp-app-file-input:focus + label,
|
||||||
.cp-app-file-input + label:hover {
|
.cp-app-file-input + label:hover {
|
||||||
//background-color: rgba(50, 50, 50, 0.30);
|
//background-color: rgba(50, 50, 50, 0.30);
|
||||||
}
|
}
|
||||||
|
|
||||||
#cp-app-file-dlprogress {
|
#cp-app-file-dlprogress {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
|
||||||
transition: width 200ms;
|
transition: width 200ms;
|
||||||
width: 0%;
|
width: 0%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
background-color: rgba(255, 0, 115, 0.75);
|
background-color: rgba(255, 0, 115, 0.75);
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cp-app-file-download-view {
|
#cp-app-file-download-view {
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
min-height: 0;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
flex-flow: column;
|
|
||||||
media-tag {
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
|
||||||
max-width: 100vw;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
min-height: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
&> * {
|
flex-flow: column;
|
||||||
max-height: 100%;
|
media-tag {
|
||||||
max-width: 100%;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
max-width: 100vw;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
&> * {
|
||||||
|
max-height: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue