1
0
mirror of https://git.cant.at/Madeorsk/PollVerlaine synced 2024-12-22 22:27:54 +01:00
PollVerlaine/static/css/results.css
Madeorsk b763b1d9e6 Better results page, CSS organization, responsive design.
* Moved colors to $VERLAINE configuration variable.
* Colors in the options table result.
* Organized CSS in several files.
+ Responsive design!
2018-08-13 21:25:14 +02:00

59 lines
911 B
CSS

main.results
{
display: flex;
flex-direction: row;
justify-content: center;
}
main.results > *
{ flex: 1; }
main.results .chart
{ flex: 2; max-height: 70vh; }
main.results .chart > svg
{ display: block; margin: auto; height: 100%; }
main.results .options table
{
margin: 0;
padding: 0 3em;
box-sizing: border-box;
width: 100%;
height: 100%;
font-size: 1.5em;
}
main.results .options table td
{
padding: 0 1em;
text-align: right;
}
main.results .options .number
{
font-family: "PT Serif", serif;
font-size: 2em;
}
@media screen and (max-width: 640px)
{
main.results
{
flex-direction: column;
align-items: center;
margin: auto;
width: 95%;
}
main.results .options table
{
padding: 0;
width: 100%;
font-size: 1.2em;
}
main.results .options table td
{ padding: 0 0.5em; }
main.results .chart
{
margin-top: 2em;
width: 80%;
}
}