Eos/eosweb/core/static/css/main.css

145 lines
2.9 KiB
CSS
Raw Normal View History

2017-11-22 23:23:24 +11:00
/*
2017-11-22 19:19:26 +11:00
Eos - Verifiable elections
Copyright © 2017-18 RunasSudo (Yingtong Li)
2017-11-22 19:19:26 +11:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
2017-11-22 23:23:24 +11:00
*/
2017-11-22 19:19:26 +11:00
2017-11-24 00:17:53 +11:00
#main_container {
margin-top: 7em;
margin-bottom: 3em;
}
2017-11-22 23:23:24 +11:00
.hash {
font-family: monospace;
2017-11-28 22:43:32 +11:00
word-break: break-all;
2017-11-22 23:23:24 +11:00
}
2017-11-24 00:17:53 +11:00
2017-11-28 14:45:05 +11:00
.superem {
font-weight: bold;
font-style: italic;
text-decoration: underline;
}
2017-12-12 22:44:24 +11:00
time[title] {
text-decoration: underline dotted;
}
2017-12-11 21:31:41 +11:00
/* Default of 1.25rem is too small for our long lists… */
.ui.ordered.list, .ui.ordered.list .list, ol.ui.list, ol.ui.list ol {
margin-left: 1.75rem;
}
.ui.ordered.list .list > .item::before, .ui.ordered.list > .item::before, ol.ui.list li::before {
margin-left: -1.75rem;
}
/* Fix display of multiple right-aligned menu items */
.ui.menu:not(.vertical) .right.item ~ .right.item {
margin-left: 0 !important;
}
2017-11-24 00:17:53 +11:00
@media print {
body, html {
/* Default height: 100% causes blank pages */
height: auto;
}
#main_container {
margin-top: 4em;
}
}
/* Preferential voting */
.preferential-choices {
padding: 0.5em;
position: relative;
}
.preferential-choices .dragarea {
2017-12-11 11:25:01 +11:00
min-height: 2em;
margin-top: 0.5em;
}
.preferential-choices .dragarea-hint:first-child:last-child {
width: calc(100% - 1em);
2017-12-11 11:25:01 +11:00
height: 2em;
box-sizing: border-box;
z-index: -100;
border: 1px dashed #555;
position: absolute;
}
#question-choices-selected {
border: 1px solid #3465a4;
margin-bottom: 0.5em;
}
.preferential-choice {
background-color: #eee;
margin-top: 0.5em;
display: flex;
2017-12-11 11:25:01 +11:00
min-height: 2em;
}
.preferential-choice:first-child {
margin-top: 0;
}
2017-12-11 17:41:06 +11:00
.ticket-choices .preferential-choice {
margin-top: 0.5em;
min-height: 0;
}
2017-11-28 00:26:13 +11:00
#question-choices-selected .preferential-choice, #question-choices-selected .dragarea-hint:first-child:last-child {
background-color: #e6f1fc;
}
#question-choices-remaining {
border: 1px solid #555;
}
2017-11-28 00:26:13 +11:00
#question-choices-remaining .dragarea-hint:first-child:last-child {
background-color: #eee;
}
2017-12-11 11:25:01 +11:00
.preferential-choice .number, .preferential-choice .content {
padding: 0.5em 0 0.5em 0.5em;
}
.ticket-choices .number {
padding: 0;
}
.ticket-choices .content {
2017-12-11 11:25:01 +11:00
padding: 0 0 0 0.5em;
}
.preferential-choice .number {
text-align: center;
}
2017-12-11 11:25:01 +11:00
.preferential-choice .party-name, .preferential-choice .ticket-party-name {
2017-12-11 11:25:01 +11:00
font-style: italic;
2017-12-11 17:41:06 +11:00
font-size: small;
2017-12-11 11:25:01 +11:00
}
.ticket .ticket-party-name {
display: none;
}
2017-12-11 11:25:01 +11:00
.ticket > .content > .party-name {
2017-12-11 17:41:06 +11:00
font-size: inherit;
2017-12-11 11:25:01 +11:00
}