|
|
@ -11,8 +11,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
@poll-fore: #555;
|
|
|
|
@poll-fore: #555;
|
|
|
|
|
|
|
|
|
|
|
|
@poll-th-bg: @colortheme_poll-th-bg;
|
|
|
|
@poll-th-bg: @cp_poll-th-bg;
|
|
|
|
@poll-th-fg: @colortheme_poll-th-fg;
|
|
|
|
@poll-th-fg: @cp_poll-th-fg;
|
|
|
|
@poll-th-user-bg: darken(@poll-th-bg, 10%);
|
|
|
|
@poll-th-user-bg: darken(@poll-th-bg, 10%);
|
|
|
|
@poll-editing: lighten(@poll-th-bg, 10%);
|
|
|
|
@poll-editing: lighten(@poll-th-bg, 10%);
|
|
|
|
@poll-winner: darken(@poll-th-bg, 15%);
|
|
|
|
@poll-winner: darken(@poll-th-bg, 15%);
|
|
|
@ -20,22 +20,15 @@
|
|
|
|
@poll-td-bg: @poll-th-bg;
|
|
|
|
@poll-td-bg: @poll-th-bg;
|
|
|
|
@poll-td-fg: @poll-th-fg;
|
|
|
|
@poll-td-fg: @poll-th-fg;
|
|
|
|
|
|
|
|
|
|
|
|
@poll-help-bg: @colortheme_poll-help-bg;
|
|
|
|
@poll-uncommitted-cell: @cp_poll-uncommitted-bg;
|
|
|
|
|
|
|
|
@poll-uncommitted-text: @cp_poll-cell-fg;
|
|
|
|
|
|
|
|
@poll-cover-color: @cp_poll-cell-fg;
|
|
|
|
|
|
|
|
|
|
|
|
@poll-uncommitted-cell: #eee;
|
|
|
|
@poll-border-color: @cp_poll-border-color;
|
|
|
|
@poll-uncommitted-bg: #ddd; //lighten(@poll-th-bg, 50%);
|
|
|
|
@poll-option-green: @cp_poll-yes;
|
|
|
|
@poll-uncommitted-text: black;
|
|
|
|
@poll-option-red: @cp_poll-no;
|
|
|
|
|
|
|
|
@poll-option-yellow: @cp_poll-maybe;
|
|
|
|
@poll-placeholder: #fff;
|
|
|
|
@poll-option-gray: @cp_poll-unset;
|
|
|
|
@poll-border-color: #555;
|
|
|
|
|
|
|
|
@poll-cover-color: #000;
|
|
|
|
|
|
|
|
@poll-fg: #000;
|
|
|
|
|
|
|
|
@poll-option-yellow: #ff5;
|
|
|
|
|
|
|
|
@poll-option-gray: #ccc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@poll-add-color: #fff;
|
|
|
|
|
|
|
|
@poll-add-bg: #777;
|
|
|
|
|
|
|
|
@poll-add-bg-alt: #444;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.bottom-left(@s: 5px) { border-bottom-left-radius: @s; }
|
|
|
|
.bottom-left(@s: 5px) { border-bottom-left-radius: @s; }
|
|
|
|
.top-left(@s: 5px) { border-top-left-radius: @s; }
|
|
|
|
.top-left(@s: 5px) { border-top-left-radius: @s; }
|
|
|
@ -80,8 +73,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input[type="text"], textarea {
|
|
|
|
input[type="text"], textarea {
|
|
|
|
background-color: white;
|
|
|
|
|
|
|
|
color: black;
|
|
|
|
|
|
|
|
border: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -92,8 +83,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
// The placeholder color only seems to effect Safari when not set
|
|
|
|
// The placeholder color only seems to effect Safari when not set
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// XXX placeholder in forms.less
|
|
|
|
input[type="text"][disabled]::placeholder {
|
|
|
|
input[type="text"][disabled]::placeholder {
|
|
|
|
color: @poll-placeholder;
|
|
|
|
color: @poll-th-fg;
|
|
|
|
opacity: 1;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -107,7 +99,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-poll-table-container button {
|
|
|
|
#cp-app-poll-table-container button {
|
|
|
|
border-radius: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-poll-create-user {
|
|
|
|
#cp-app-poll-create-user {
|
|
|
|
display: inline-flex;
|
|
|
|
display: inline-flex;
|
|
|
@ -116,11 +107,6 @@
|
|
|
|
margin: 2px auto;
|
|
|
|
margin: 2px auto;
|
|
|
|
width: auto;
|
|
|
|
width: auto;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
color: @poll-add-color;
|
|
|
|
|
|
|
|
background: @poll-add-bg;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: @poll-add-bg-alt;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-poll-create-option {
|
|
|
|
#cp-app-poll-create-option {
|
|
|
|
order: 3;
|
|
|
|
order: 3;
|
|
|
@ -129,11 +115,6 @@
|
|
|
|
height: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin: 2px;
|
|
|
|
margin: 2px;
|
|
|
|
padding: 0;
|
|
|
|
padding: 0;
|
|
|
|
color: @poll-add-color;
|
|
|
|
|
|
|
|
background: @poll-add-bg;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
|
|
|
background: @poll-add-bg-alt;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-poll-table-scroll {
|
|
|
|
#cp-app-poll-table-scroll {
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-y: hidden;
|
|
|
@ -155,7 +136,7 @@
|
|
|
|
width: 80%;
|
|
|
|
width: 80%;
|
|
|
|
min-height: 200px;
|
|
|
|
min-height: 200px;
|
|
|
|
height: 200px;
|
|
|
|
height: 200px;
|
|
|
|
border: 1px solid black;
|
|
|
|
border: 1px solid @cp_forms-border;
|
|
|
|
.CodeMirror-placeholder {
|
|
|
|
.CodeMirror-placeholder {
|
|
|
|
color: #777;
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -169,9 +150,9 @@
|
|
|
|
min-width: 80%;
|
|
|
|
min-width: 80%;
|
|
|
|
width: 80%;
|
|
|
|
width: 80%;
|
|
|
|
min-height: 7em;
|
|
|
|
min-height: 7em;
|
|
|
|
color: #000;
|
|
|
|
color: @poll-uncommitted-text;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
background-color: #eeeeee;
|
|
|
|
background-color: @poll-uncommitted-cell;
|
|
|
|
font: @colortheme_app-font;
|
|
|
|
font: @colortheme_app-font;
|
|
|
|
text-align: left;
|
|
|
|
text-align: left;
|
|
|
|
media-tag > * {
|
|
|
|
media-tag > * {
|
|
|
@ -202,13 +183,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#cp-app-poll-help {
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
|
|
padding: 20px 10%;
|
|
|
|
|
|
|
|
background: @poll-help-bg;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// from cryptpad.less
|
|
|
|
// from cryptpad.less
|
|
|
|
|
|
|
|
|
|
|
|
#cp-app-poll-table-container {
|
|
|
|
#cp-app-poll-table-container {
|
|
|
@ -277,11 +251,11 @@
|
|
|
|
background-color: @poll-uncommitted-cell !important;
|
|
|
|
background-color: @poll-uncommitted-cell !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
div.cp-app-poll-table-text-cell {
|
|
|
|
div.cp-app-poll-table-text-cell {
|
|
|
|
background-color: @poll-uncommitted-bg !important;
|
|
|
|
background-color: @poll-uncommitted-cell !important;
|
|
|
|
color: @poll-uncommitted-text !important;
|
|
|
|
color: @poll-uncommitted-text !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
background-color: @poll-uncommitted-bg !important;
|
|
|
|
background-color: @poll-uncommitted-cell !important;
|
|
|
|
color: @poll-uncommitted-text !important;
|
|
|
|
color: @poll-uncommitted-text !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tr {
|
|
|
|
tr {
|
|
|
@ -389,13 +363,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
input[type="number"][value="0"] {
|
|
|
|
input[type="number"][value="0"] {
|
|
|
|
~ .cp-app-poll-table-cover {
|
|
|
|
~ .cp-app-poll-table-cover {
|
|
|
|
background-color: @colortheme_cp-red;
|
|
|
|
background-color: @poll-option-red;
|
|
|
|
&:after { content: "✖"; }
|
|
|
|
&:after { content: "✖"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input[type="number"][value="1"] {
|
|
|
|
input[type="number"][value="1"] {
|
|
|
|
~ .cp-app-poll-table-cover {
|
|
|
|
~ .cp-app-poll-table-cover {
|
|
|
|
background-color: @colortheme_cp-green;
|
|
|
|
background-color: @poll-option-green;
|
|
|
|
&:after { content: "✔"; }
|
|
|
|
&:after { content: "✔"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -530,35 +504,13 @@
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
thead {
|
|
|
|
|
|
|
|
tr {
|
|
|
|
|
|
|
|
th {
|
|
|
|
|
|
|
|
input[type="text"][disabled] {
|
|
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
color: @poll-fore;
|
|
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.cp-app-poll-table-remove {
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
|
|
|
|
tr {
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
tfoot {
|
|
|
|
tfoot {
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-poll-nocomments {
|
|
|
|
#cp-app-poll-nocomments {
|
|
|
|
color: #999;
|
|
|
|
color: @cp_poll-hint;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
margin: 20px;
|
|
|
|
margin: 20px;
|
|
|
|
font: @colortheme_app-font;
|
|
|
|
font: @colortheme_app-font;
|
|
|
@ -574,7 +526,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#cp-app-poll-comments-add {
|
|
|
|
#cp-app-poll-comments-add {
|
|
|
|
input, textarea {
|
|
|
|
input, textarea {
|
|
|
|
border: 1px solid black;
|
|
|
|
border: 1px solid @cp_forms-border;
|
|
|
|
width: 90%;
|
|
|
|
width: 90%;
|
|
|
|
margin: 5px 5%;
|
|
|
|
margin: 5px 5%;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -582,7 +534,7 @@
|
|
|
|
padding: 5px;
|
|
|
|
padding: 5px;
|
|
|
|
height: 26px;
|
|
|
|
height: 26px;
|
|
|
|
&[disabled] {
|
|
|
|
&[disabled] {
|
|
|
|
background: #eee;
|
|
|
|
background: @poll-uncommitted-cell;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
textarea {
|
|
|
|
textarea {
|
|
|
@ -602,7 +554,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.cp-app-poll-comments-list-msg {
|
|
|
|
.cp-app-poll-comments-list-msg {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
background: #eee;
|
|
|
|
background: @poll-uncommitted-cell;
|
|
|
|
padding: 5px 10px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
.cp-app-poll-comments-list-msg-text {
|
|
|
|
.cp-app-poll-comments-list-msg-text {
|
|
|
|
flex: 1;
|
|
|
|
flex: 1;
|
|
|
@ -617,7 +569,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.cp-app-poll-comments-list-data {
|
|
|
|
.cp-app-poll-comments-list-data {
|
|
|
|
background: #ddd;
|
|
|
|
background: @poll-option-gray;
|
|
|
|
padding: 5px 10px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|