arrowcounter/counter/static/css/main.css
2019-08-06 14:51:29 +02:00

162 lines
2.3 KiB
CSS

/* vim: set ts=2 sw=2 et tw=80: */
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
div.container.main {
flex: 1 0 auto;
}
#main-menu {
border-radius: 0;
}
form p, form .card .card-content p {
margin-top: 1em;
}
form p:first-child, form .card .card-content p:first-child {
margin-top: 0;
}
.card-content .row:last-child {
margin-bottom: 0;
}
form span.helptext {
width: 100%;
display: inline-block;
background: #b3e5fc;
}
form span.helptext:empty, form ul:empty {
display: none;
}
form ul li, form span.helptext {
padding-left: .5em;
padding-right: .5em;
}
form ul, form span.helptext {
padding-bottom: .5em;
padding-top: .5em;
border-radius: 2px;
}
form ul {
background: #ffecb3;
}
form ul.errorlist {
background: #ffcdd2;
}
form .card-action button {
background: none !important;
border: none;
cursor: pointer;
padding: 0 !important;
color: inherit;
text-transform: uppercase;
}
.col .card-content .row {
margin-left: auto;
margin-right: auto;
}
.edit-arrowcount.title {
font-size: 3rem;
}
.edit-arrowcount.ends {
text-align: center;
margin: .5rem;
margin-bottom: calc(20px - .5rem);
}
.edit-arrowcount.ends button {
font-size: 1.5rem;
font-weight: bold;
width: 5.5rem;
height: 4rem;
display: inline-block;
margin: .4rem;
}
#edit-arrowcount-form input,
#edit-target-form input {
text-align: center;
}
#edit-arrowcount-form #id_count,
#edit-target-form #id_target {
font-size: 2.5em;
padding: .25em 0;
}
.edit-arrowcount.onebyone {
display: inline-block;
width: 100%;
text-align: center;
}
.count-up, .count-down {
height: 7rem;
font-size: 5rem;
text-align: center;
padding: 0;
font-family: 'Verdana', sans-serif;
}
.count-up {
width: calc(70% - .45rem - 2px);
margin-right: .4rem;
}
.count-down {
width: calc(30% - .45rem - 1px);
margin-left: .4rem;
}
@media screen and (max-width: 359px) {
.count-up, .count-down {
width: 100%;
margin-left: 0;
margin-right: 0;
}
.count-down {
height: 4rem;
font-size: 3rem;
margin-top: 1rem;
}
}
.inline-block {
display: inline-block;
}
.chart.scrollable.wrapper {
overflow-x: scroll;
}
.chart.wrapper {
position: relative;
max-width: 100%;
height: 25em;
}
.chart.area-wrapper {
height: 100%;
}
.chart-title {
margin-top: 0;
margin-bottom: 2rem;
}