restrict cryptpad styles to descendants of .cp

pull/1/head
ansuz 8 years ago
parent e9376a66c2
commit 46024853ec

@ -199,11 +199,21 @@
padding: 12px; padding: 12px;
pointer-events: auto; pointer-events: auto;
} }
a.github-corner > svg { html.cp {
font-size: .875em;
background-color: #302B28;
color: #fafafa;
}
.cp {
/* buttons */
/* Tables */
/* Bottom Bar */
}
.cp a.github-corner > svg {
fill: #46E981; fill: #46E981;
color: #302B28; color: #302B28;
} }
.table-refresh > svg { .cp .table-refresh > svg {
width: .9em; width: .9em;
height: .9em; height: .9em;
fill: #46E981; fill: #46E981;
@ -213,31 +223,26 @@ a.github-corner > svg {
-ms-transform: translate(0, 15%); -ms-transform: translate(0, 15%);
transform: translate(0, 15%); transform: translate(0, 15%);
} }
.lato { .cp .lato {
font-family: lato, Helvetica, sans-serif; font-family: lato, Helvetica, sans-serif;
font-size: 1.02em; font-size: 1.02em;
} }
html { .cp html,
font-size: .875em; .cp body {
background-color: #302B28;
color: #fafafa;
}
html,
body {
font-family: Georgia,Cambria,serif; font-family: Georgia,Cambria,serif;
height: 100%; height: 100%;
} }
body { .cp body {
font-size: 1rem; font-size: 1rem;
font-weight: 400; font-weight: 400;
line-height: 2rem; line-height: 2rem;
} }
h1, .cp h1,
h2, .cp h2,
h3, .cp h3,
h4, .cp h4,
h5, .cp h5,
h6 { .cp h6 {
color: #fafafa; color: #fafafa;
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1; -webkit-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
@ -247,71 +252,71 @@ h6 {
font-weight: 600; font-weight: 600;
margin-top: 0; margin-top: 0;
} }
h1 { .cp h1 {
line-height: 3rem; line-height: 3rem;
font-size: 2.05714rem; font-size: 2.05714rem;
margin-bottom: .21999rem; margin-bottom: .21999rem;
padding-top: .78001rem; padding-top: .78001rem;
} }
h2 { .cp h2 {
font-size: 1.95312rem; font-size: 1.95312rem;
margin-bottom: .18358rem; margin-bottom: .18358rem;
padding-top: .81642rem; padding-top: .81642rem;
} }
h2, .cp h2,
h3 { .cp h3 {
line-height: 3rem; line-height: 3rem;
} }
h3 { .cp h3 {
font-size: 1.64571rem; font-size: 1.64571rem;
margin-bottom: .07599rem; margin-bottom: .07599rem;
padding-top: .92401rem; padding-top: .92401rem;
} }
h4 { .cp h4 {
font-size: 1.5625rem; font-size: 1.5625rem;
margin-bottom: .54686rem; margin-bottom: .54686rem;
padding-top: .45314rem; padding-top: .45314rem;
} }
h5 { .cp h5 {
font-size: 1.25rem; font-size: 1.25rem;
margin-bottom: -0.56251rem; margin-bottom: -0.56251rem;
padding-top: .56251rem; padding-top: .56251rem;
} }
h6 { .cp h6 {
font-size: 1rem; font-size: 1rem;
margin-bottom: -0.65001rem; margin-bottom: -0.65001rem;
padding-top: .65001rem; padding-top: .65001rem;
} }
a { .cp a {
cursor: pointer; cursor: pointer;
color: #46E981; color: #46E981;
text-decoration: none; text-decoration: none;
} }
a:hover { .cp a:hover {
color: #a1f4bf; color: #a1f4bf;
} }
img { .cp img {
height: auto; height: auto;
max-width: 100%; max-width: 100%;
} }
p { .cp p {
padding-top: .66001rem; padding-top: .66001rem;
margin-top: 0; margin-top: 0;
} }
p, .cp p,
pre { .cp pre {
margin-bottom: 1.33999rem; margin-bottom: 1.33999rem;
} }
p, .cp p,
pre, .cp pre,
td, .cp td,
a, .cp a,
table, .cp table,
tr { .cp tr {
font-family: lato, Helvetica, sans-serif; font-family: lato, Helvetica, sans-serif;
font-size: 1.02em; font-size: 1.02em;
} }
#loading { .cp #loading {
position: fixed; position: fixed;
z-index: 9999; z-index: 9999;
top: 0px; top: 0px;
@ -322,40 +327,39 @@ tr {
text-align: center; text-align: center;
font-size: 1.5em; font-size: 1.5em;
} }
#loading .loadingContainer { .cp #loading .loadingContainer {
margin-top: 50vh; margin-top: 50vh;
transform: translateY(-50%); transform: translateY(-50%);
} }
#loading .cryptofist { .cp #loading .cryptofist {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
@media screen and (max-height: 450px) { @media screen and (max-height: 450px) {
#loading .cryptofist { .cp #loading .cryptofist {
display: none; display: none;
} }
} }
#loading .spinnerContainer { .cp #loading .spinnerContainer {
position: relative; position: relative;
height: 100px; height: 100px;
} }
#loading .spinnerContainer > div { .cp #loading .spinnerContainer > div {
height: 100px; height: 100px;
} }
#main { .cp #main {
width: 70vw; width: 70vw;
margin: auto; margin: auto;
font-size: medium; font-size: medium;
padding-bottom: 1em; padding-bottom: 1em;
} }
#fileManagerIframe { .cp #fileManagerIframe {
width: 100%; width: 100%;
height: 500px; height: 500px;
margin-top: 15px; margin-top: 15px;
} }
/* buttons */ .cp .create,
.create, .cp .action {
.action {
border: 2px solid #46E981; border: 2px solid #46E981;
border-radius: 10px; border-radius: 10px;
background-color: #302B28; background-color: #302B28;
@ -365,23 +369,23 @@ tr {
margin-right: 5px; margin-right: 5px;
margin-left: 5px; margin-left: 5px;
} }
.create:hover, .cp .create:hover,
.action:hover { .cp .action:hover {
border: 2px solid #a1f4bf; border: 2px solid #a1f4bf;
color: #46E981; color: #46E981;
} }
.create { .cp .create {
display: none; display: none;
} }
.action { .cp .action {
display: inline-block; display: inline-block;
} }
.buttons { .cp .buttons {
margin-bottom: 50px; margin-bottom: 50px;
margin-top: 20px; margin-top: 20px;
line-height: 2.5em; line-height: 2.5em;
} }
.button { .cp .button {
padding: 4px 12px 4px 12px; padding: 4px 12px 4px 12px;
border-radius: 5px; border-radius: 5px;
margin-top: 12px; margin-top: 12px;
@ -389,66 +393,64 @@ tr {
display: inline-block; display: inline-block;
line-height: 1.5em; line-height: 1.5em;
} }
.alertify button { .cp .alertify button {
margin: 3px 0px; margin: 3px 0px;
} }
/* Tables */ .cp table {
table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
margin: 20px; margin: 20px;
} }
tbody { .cp tbody {
border: 2px solid black; border: 2px solid black;
} }
tbody tr { .cp tbody tr {
text-align: center; text-align: center;
} }
tbody tr:first-of-type th { .cp tbody tr:first-of-type th {
font-size: 20px; font-size: 20px;
border-top: 0px; border-top: 0px;
font-weight: bold; font-weight: bold;
padding: 10px; padding: 10px;
text-decoration: underline; text-decoration: underline;
} }
tbody tr:first-of-type th.table-refresh { .cp tbody tr:first-of-type th.table-refresh {
color: #46E981; color: #46E981;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
tbody tr:nth-child(odd) { .cp tbody tr:nth-child(odd) {
background-color: #685d56; background-color: #685d56;
} }
tbody tr th:first-of-type { .cp tbody tr th:first-of-type {
border-left: 0px; border-left: 0px;
} }
tbody tr th { .cp tbody tr th {
box-sizing: border-box; box-sizing: border-box;
border: 1px solid black; border: 1px solid black;
} }
tbody tr th, .cp tbody tr th,
tbody tr td { .cp tbody tr td {
color: #fafafa; color: #fafafa;
} }
tbody tr th.remove, .cp tbody tr th.remove,
tbody tr td.remove { .cp tbody tr td.remove {
cursor: pointer; cursor: pointer;
} }
tbody tr th:last-child { .cp tbody tr th:last-child {
border-right: 0px; border-right: 0px;
} }
tbody td { .cp tbody td {
border-right: 1px solid black; border-right: 1px solid black;
padding: 12px; padding: 12px;
padding-top: 0px; padding-top: 0px;
padding-bottom: 0px; padding-bottom: 0px;
} }
tbody td:last-child { .cp tbody td:last-child {
border-right: none; border-right: none;
} }
/* Bottom Bar */ .cp .top-bar,
.top-bar, .cp .bottom-bar {
.bottom-bar {
position: fixed; position: fixed;
height: 4%; height: 4%;
height: 2.5em; height: 2.5em;
@ -457,13 +459,13 @@ tbody td:last-child {
background: #302B28; background: #302B28;
border-top: 1px solid #444; border-top: 1px solid #444;
} }
.top-bar a, .cp .top-bar a,
.bottom-bar a { .cp .bottom-bar a {
color: #46E981; color: #46E981;
text-decoration: none; text-decoration: none;
} }
.top-bar p, .cp .top-bar p,
.bottom-bar p { .cp .bottom-bar p {
margin: -1px; margin: -1px;
font-family: Arial, Helvetica, Tahoma, Verdana, sans-serif; font-family: Arial, Helvetica, Tahoma, Verdana, sans-serif;
font-size: 20px; font-size: 20px;
@ -472,148 +474,148 @@ tbody td:last-child {
padding-top: 3px; padding-top: 3px;
color: #fafafa; color: #fafafa;
} }
.top-bar img, .cp .top-bar img,
.bottom-bar img { .cp .bottom-bar img {
margin-right: 4px; margin-right: 4px;
position: relative; position: relative;
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
.top-bar .big, .cp .top-bar .big,
.bottom-bar .big { .cp .bottom-bar .big {
display: none; display: none;
} }
} }
@media screen and (min-width: 801px) { @media screen and (min-width: 801px) {
.top-bar .big, .cp .top-bar .big,
.bottom-bar .big { .cp .bottom-bar .big {
display: inline-block; display: inline-block;
} }
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
.top-bar .small, .cp .top-bar .small,
.bottom-bar .small { .cp .bottom-bar .small {
display: inline-block; display: inline-block;
} }
} }
@media screen and (min-width: 801px) { @media screen and (min-width: 801px) {
.top-bar .small, .cp .top-bar .small,
.bottom-bar .small { .cp .bottom-bar .small {
display: none; display: none;
} }
} }
.top-bar .small img, .cp .top-bar .small img,
.bottom-bar .small img { .cp .bottom-bar .small img {
height: 1.25em; height: 1.25em;
} }
.bottom-bar { .cp .bottom-bar {
bottom: 0px; bottom: 0px;
right: 0px; right: 0px;
} }
.top-bar { .cp .top-bar {
top: 0px; top: 0px;
right: 0px; right: 0px;
} }
.bottom-bar-left { .cp .bottom-bar-left {
display: block; display: block;
float: left; float: left;
padding-left: 10px; padding-left: 10px;
} }
.bottom-bar-left p { .cp .bottom-bar-left p {
float: right; float: right;
} }
.bottom-bar-right { .cp .bottom-bar-right {
display: block; display: block;
float: right; float: right;
padding-right: 20px; padding-right: 20px;
} }
.bottom-bar-center { .cp .bottom-bar-center {
width: 20%; width: 20%;
position: absolute; position: absolute;
left: 40%; left: 40%;
text-align: center; text-align: center;
} }
.bottom-bar-heart { .cp .bottom-bar-heart {
top: 2px; top: 2px;
} }
.bottom-bar-xwiki { .cp .bottom-bar-xwiki {
top: 3px; top: 3px;
} }
.bottom-bar-openpaas { .cp .bottom-bar-openpaas {
top: 3px; top: 3px;
max-width: 100px; max-width: 100px;
} }
.bottom-left { .cp .bottom-left {
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
} }
.top-left { .cp .top-left {
border-top-left-radius: 5px; border-top-left-radius: 5px;
} }
.remove { .cp .remove {
color: #FF0073; color: #FF0073;
cursor: pointer !important; cursor: pointer !important;
} }
form.realtime, .cp form.realtime,
div.realtime { .cp div.realtime {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }
form.realtime > textarea, .cp form.realtime > textarea,
div.realtime > textarea { .cp div.realtime > textarea {
width: 50%; width: 50%;
height: 15vh; height: 15vh;
} }
form.realtime table, .cp form.realtime table,
div.realtime table { .cp div.realtime table {
border-collapse: collapse; border-collapse: collapse;
width: calc(100% - 1px); width: calc(100% - 1px);
} }
form.realtime table tr td:first-child, .cp form.realtime table tr td:first-child,
div.realtime table tr td:first-child { .cp div.realtime table tr td:first-child {
position: absolute; position: absolute;
left: 29px; left: 29px;
top: auto; top: auto;
width: calc(30% - 50px); width: calc(30% - 50px);
} }
form.realtime table tr td, .cp form.realtime table tr td,
div.realtime table tr td { .cp div.realtime table tr td {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }
form.realtime table tr td div.text-cell, .cp form.realtime table tr td div.text-cell,
div.realtime table tr td div.text-cell { .cp div.realtime table tr td div.text-cell {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
height: 100%; height: 100%;
} }
form.realtime table tr td div.text-cell input, .cp form.realtime table tr td div.text-cell input,
div.realtime table tr td div.text-cell input { .cp div.realtime table tr td div.text-cell input {
width: 80%; width: 80%;
width: 90%; width: 90%;
height: 100%; height: 100%;
border: 0px; border: 0px;
} }
form.realtime table tr td div.text-cell input[disabled], .cp form.realtime table tr td div.text-cell input[disabled],
div.realtime table tr td div.text-cell input[disabled] { .cp div.realtime table tr td div.text-cell input[disabled] {
background-color: transparent; background-color: transparent;
color: #fafafa; color: #fafafa;
font-weight: bold; font-weight: bold;
} }
form.realtime table tr td.checkbox-cell, .cp form.realtime table tr td.checkbox-cell,
div.realtime table tr td.checkbox-cell { .cp div.realtime table tr td.checkbox-cell {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
height: 100%; height: 100%;
min-width: 150px; min-width: 150px;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain,
div.realtime table tr td.checkbox-cell div.checkbox-contain { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain {
display: inline-block; display: inline-block;
height: 100%; height: 100%;
width: 100%; width: 100%;
position: relative; position: relative;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain label, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain label,
div.realtime table tr td.checkbox-cell div.checkbox-contain label { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain label {
background-color: transparent; background-color: transparent;
display: block; display: block;
position: absolute; position: absolute;
@ -622,85 +624,85 @@ div.realtime table tr td.checkbox-cell div.checkbox-contain label {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable), .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable),
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) {
display: none; display: none;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover {
font-weight: bold; font-weight: bold;
background-color: #FF0073; background-color: #FF0073;
color: #302B28; color: #302B28;
display: block; display: block;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after {
height: 100%; height: 100%;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover:after {
content: "✖"; content: "✖";
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes {
background-color: #46E981; background-color: #46E981;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes:after, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes:after,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes:after { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.yes:after {
content: "✔"; content: "✔";
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.uncommitted, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.uncommitted,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.uncommitted { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.uncommitted {
background: #ddd; background: #ddd;
} }
form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.mine, .cp form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.mine,
div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.mine { .cp div.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.editable) ~ .cover.mine {
display: none; display: none;
} }
form.realtime table input[type="text"], .cp form.realtime table input[type="text"],
div.realtime table input[type="text"] { .cp div.realtime table input[type="text"] {
height: 100%; height: 100%;
border: 1px solid #302B28; border: 1px solid #302B28;
width: 80%; width: 80%;
} }
form.realtime table thead td, .cp form.realtime table thead td,
div.realtime table thead td { .cp div.realtime table thead td {
padding: 0px 5px; padding: 0px 5px;
background: #4c443f; background: #4c443f;
border-radius: 20px 20px 0 0; border-radius: 20px 20px 0 0;
text-align: center; text-align: center;
} }
form.realtime table thead td input[type="text"], .cp form.realtime table thead td input[type="text"],
div.realtime table thead td input[type="text"] { .cp div.realtime table thead td input[type="text"] {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
form.realtime table thead td input[type="text"][disabled], .cp form.realtime table thead td input[type="text"][disabled],
div.realtime table thead td input[type="text"][disabled] { .cp div.realtime table thead td input[type="text"][disabled] {
color: white; color: white;
padding: 1px 5px; padding: 1px 5px;
border: none; border: none;
} }
form.realtime table tbody .text-cell, .cp form.realtime table tbody .text-cell,
div.realtime table tbody .text-cell { .cp div.realtime table tbody .text-cell {
background: #4c443f; background: #4c443f;
} }
form.realtime table tbody .text-cell input[type="text"], .cp form.realtime table tbody .text-cell input[type="text"],
div.realtime table tbody .text-cell input[type="text"] { .cp div.realtime table tbody .text-cell input[type="text"] {
width: calc(100% - 50px); width: calc(100% - 50px);
} }
form.realtime table tbody .text-cell .edit, .cp form.realtime table tbody .text-cell .edit,
div.realtime table tbody .text-cell .edit { .cp div.realtime table tbody .text-cell .edit {
float: right; float: right;
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
form.realtime table tbody .text-cell .remove, .cp form.realtime table tbody .text-cell .remove,
div.realtime table tbody .text-cell .remove { .cp div.realtime table tbody .text-cell .remove {
float: left; float: left;
margin: 0 0 0 10px; margin: 0 0 0 10px;
} }
form.realtime table .edit, .cp form.realtime table .edit,
div.realtime table .edit { .cp div.realtime table .edit {
color: #46E981; color: #46E981;
cursor: pointer; cursor: pointer;
float: left; float: left;
@ -708,56 +710,56 @@ div.realtime table .edit {
/*&:after { content: '✐'; }*/ /*&:after { content: '✐'; }*/
/*&.editable { display: none; }*/ /*&.editable { display: none; }*/
} }
form.realtime table .remove, .cp form.realtime table .remove,
div.realtime table .remove { .cp div.realtime table .remove {
float: right; float: right;
margin-right: 10px; margin-right: 10px;
} }
form.realtime table thead tr th input[type="text"][disabled], .cp form.realtime table thead tr th input[type="text"][disabled],
div.realtime table thead tr th input[type="text"][disabled] { .cp div.realtime table thead tr th input[type="text"][disabled] {
background-color: transparent; background-color: transparent;
color: #fafafa; color: #fafafa;
font-weight: bold; font-weight: bold;
} }
form.realtime table thead tr th .remove, .cp form.realtime table thead tr th .remove,
div.realtime table thead tr th .remove { .cp div.realtime table thead tr th .remove {
cursor: pointer; cursor: pointer;
font-size: 20px; font-size: 20px;
} }
form.realtime table tfoot tr, .cp form.realtime table tfoot tr,
div.realtime table tfoot tr { .cp div.realtime table tfoot tr {
border: none; border: none;
} }
form.realtime table tfoot tr td, .cp form.realtime table tfoot tr td,
div.realtime table tfoot tr td { .cp div.realtime table tfoot tr td {
border: none; border: none;
text-align: center; text-align: center;
} }
form.realtime table tfoot tr td .save, .cp form.realtime table tfoot tr td .save,
div.realtime table tfoot tr td .save { .cp div.realtime table tfoot tr td .save {
padding: 15px; padding: 15px;
border-top-left-radius: 5px; border-top-left-radius: 5px;
border-top-right-radius: 5px; border-top-right-radius: 5px;
} }
form.realtime #adduser, .cp form.realtime #adduser,
div.realtime #adduser, .cp div.realtime #adduser,
form.realtime #addoption, .cp form.realtime #addoption,
div.realtime #addoption { .cp div.realtime #addoption {
color: #46E981; color: #46E981;
border: 1px solid #46E981; border: 1px solid #46E981;
padding: 15px; padding: 15px;
cursor: pointer; cursor: pointer;
} }
form.realtime #adduser, .cp form.realtime #adduser,
div.realtime #adduser { .cp div.realtime #adduser {
border-top-left-radius: 5px; border-top-left-radius: 5px;
} }
form.realtime #addoption, .cp form.realtime #addoption,
div.realtime #addoption { .cp div.realtime #addoption {
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
} }
div.modal, .cp div.modal,
div#modal { .cp div#modal {
box-sizing: border-box; box-sizing: border-box;
z-index: 9001; z-index: 9001;
position: fixed; position: fixed;
@ -768,8 +770,8 @@ div#modal {
display: none; display: none;
background-color: #302B28; background-color: #302B28;
} }
div.modal #content, .cp div.modal #content,
div#modal #content { .cp div#modal #content {
box-sizing: border-box; box-sizing: border-box;
border: 1px solid white; border: 1px solid white;
vertical-align: middle; vertical-align: middle;
@ -785,49 +787,49 @@ div#modal #content {
left: 0; left: 0;
right: 0; right: 0;
} }
div.modal #content p, .cp div.modal #content p,
div#modal #content p, .cp div#modal #content p,
div.modal #content li, .cp div.modal #content li,
div#modal #content li, .cp div#modal #content li,
div.modal #content pre, .cp div.modal #content pre,
div#modal #content pre, .cp div#modal #content pre,
div.modal #content code, .cp div.modal #content code,
div#modal #content code { .cp div#modal #content code {
font-size: 2.75vw; font-size: 2.75vw;
line-height: 3.025vw; line-height: 3.025vw;
} }
div.modal #content h1, .cp div.modal #content h1,
div#modal #content h1 { .cp div#modal #content h1 {
font-size: 5vw; font-size: 5vw;
line-height: 5.5vw; line-height: 5.5vw;
} }
div.modal #content h2, .cp div.modal #content h2,
div#modal #content h2 { .cp div#modal #content h2 {
font-size: 4.2vw; font-size: 4.2vw;
line-height: 4.62vw; line-height: 4.62vw;
} }
div.modal #content h3, .cp div.modal #content h3,
div#modal #content h3 { .cp div#modal #content h3 {
font-size: 3.6vw; font-size: 3.6vw;
line-height: 3.96vw; line-height: 3.96vw;
} }
div.modal #content h4, .cp div.modal #content h4,
div#modal #content h4 { .cp div#modal #content h4 {
font-size: 3vw; font-size: 3vw;
line-height: 3.3vw; line-height: 3.3vw;
} }
div.modal #content h5, .cp div.modal #content h5,
div#modal #content h5 { .cp div#modal #content h5 {
font-size: 2.2vw; font-size: 2.2vw;
line-height: 2.42vw; line-height: 2.42vw;
} }
div.modal #content h6, .cp div.modal #content h6,
div#modal #content h6 { .cp div#modal #content h6 {
font-size: 1.6vw; font-size: 1.6vw;
line-height: 1.76vw; line-height: 1.76vw;
} }
div.modal #content pre > code, .cp div.modal #content pre > code,
div#modal #content pre > code { .cp div#modal #content pre > code {
display: block; display: block;
position: relative; position: relative;
border: 1px solid #333; border: 1px solid #333;
@ -835,8 +837,8 @@ div#modal #content pre > code {
margin: auto; margin: auto;
padding-left: .25vw; padding-left: .25vw;
} }
div.modal .center, .cp div.modal .center,
div#modal .center { .cp div#modal .center {
position: relative; position: relative;
width: 80%; width: 80%;
height: 80%; height: 80%;
@ -844,39 +846,39 @@ div#modal .center {
border: 1px solid #685d56; border: 1px solid #685d56;
text-align: center; text-align: center;
} }
div.modal.shown, .cp div.modal.shown,
div#modal.shown { .cp div#modal.shown {
display: block; display: block;
} }
div.modal table, .cp div.modal table,
div#modal table { .cp div#modal table {
margin: 30px; margin: 30px;
border-collapse: collapse; border-collapse: collapse;
} }
div.modal table input, .cp div.modal table input,
div#modal table input { .cp div#modal table input {
height: 100%; height: 100%;
width: 90%; width: 90%;
border: 3px solid #302B28; border: 3px solid #302B28;
} }
div.modal table tfoot tr td, .cp div.modal table tfoot tr td,
div#modal table tfoot tr td { .cp div#modal table tfoot tr td {
z-index: 4000; z-index: 4000;
cursor: pointer; cursor: pointer;
} }
div.modal #addtime, .cp div.modal #addtime,
div#modal #addtime, .cp div#modal #addtime,
div.modal #adddate, .cp div.modal #adddate,
div#modal #adddate { .cp div#modal #adddate {
color: #46E981; color: #46E981;
border: 1px solid #46E981; border: 1px solid #46E981;
padding: 15px; padding: 15px;
} }
div.modal #adddate, .cp div.modal #adddate,
div#modal #adddate { .cp div#modal #adddate {
border-top-left-radius: 5px; border-top-left-radius: 5px;
} }
div.modal #addtime, .cp div.modal #addtime,
div#modal #addtime { .cp div#modal #addtime {
border-bottom-left-radius: 5px; border-bottom-left-radius: 5px;
} }

@ -1,6 +1,13 @@
@import "./variables.less"; @import "./variables.less";
@import "./alertify.less"; @import "./alertify.less";
html.cp {
font-size: .875em;
background-color: @base;
color: @fore;
}
.cp {
.fontface(@family, @src, @style: normal, @weight: 400, @fmt: 'truetype'){ .fontface(@family, @src, @style: normal, @weight: 400, @fmt: 'truetype'){
@font-face{ @font-face{
font-family: @family; font-family: @family;
@ -39,12 +46,6 @@ a.github-corner > svg {
font-size: 1.02em; font-size: 1.02em;
} }
html {
font-size: .875em;
background-color: @base;
color: @fore;
}
html,body { html,body {
font-family: Georgia,Cambria,serif; font-family: Georgia,Cambria,serif;
height: 100%; height: 100%;
@ -744,3 +745,5 @@ div.modal, div#modal {
#adddate { .top-left; } #adddate { .top-left; }
#addtime { .bottom-left; } #addtime { .bottom-left; }
} }
}

Loading…
Cancel
Save