Vorlage:Wahldiagramm einfach/Style.css: Unterschied zwischen den Versionen
Erscheinungsbild
RaWen (Diskussion | Beiträge) Die Seite wurde neu angelegt: „.wahldiagramm{ border: 1px solid #ccc; padding: 0 0.8em 0.4em 0.8em; background-color: #fff; width: max-content; max-width: 100%; overflow: auto; margin: 10px 0 20px 0 !important; float: none !important; } .divider{ width: 0.5em; background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%); height: 200px; } dl.vertical{ font-size: 12px; font-family: sans-serif; display: fle…“ |
RaWen (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (17 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 22: | Zeile 22: | ||
flex-direction: row; | flex-direction: row; | ||
margin: 0; | margin: 0; | ||
} | |||
/* Wrapper für dd/dt Paare */ | |||
.bar-container { | |||
display: contents; | |||
} | } | ||
| Zeile 57: | Zeile 62: | ||
content: "\200D"; | content: "\200D"; | ||
display: inline; | display: inline; | ||
} | |||
/* Mobile/Minerva-spezifische Anpassungen */ | |||
@media screen and (max-width: 768px) { | |||
.wahldiagramm { | |||
float: none !important; | |||
margin: 10px 0 20px 0 !important; | |||
clear: both; | |||
display: block; | |||
width: 100% !important; | |||
box-sizing: border-box; | |||
padding-bottom: 3.5em; | |||
overflow: visible; | |||
} | |||
dl.vertical { | |||
justify-content: space-between; | |||
width: 100%; | |||
min-width: 100%; | |||
background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%); | |||
height: 200px; | |||
position: relative; | |||
overflow: visible; | |||
} | |||
/* Wrapper wird zu Flex-Container */ | |||
.bar-container { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
position: relative; | |||
} | |||
dl.vertical dd { | |||
background: none; | |||
overflow: visible; | |||
position: relative; | |||
margin: 0; | |||
} | |||
dl.vertical dt { | |||
position: static; | |||
margin: 5px 0 0 0; | |||
width: auto; | |||
min-width: 0; | |||
text-align: center; | |||
font-size: 85%; | |||
white-space: nowrap; | |||
transform: none; | |||
} | |||
dl.vertical dd span { | |||
min-width: 100%; | |||
width: 100%; | |||
} | |||
.divider { | |||
width: 1em; | |||
background: none; | |||
position: relative; | |||
} | |||
} | } | ||
Aktuelle Version vom 17. Juni 2025, 22:20 Uhr
.wahldiagramm{
border: 1px solid #ccc;
padding: 0 0.8em 0.4em 0.8em;
background-color: #fff;
width: max-content;
max-width: 100%;
overflow: auto;
margin: 10px 0 20px 0 !important;
float: none !important;
}
.divider{
width: 0.5em;
background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%);
height: 200px;
}
dl.vertical{
font-size: 12px;
font-family: sans-serif;
display: flex;
flex-direction: row;
margin: 0;
}
/* Wrapper für dd/dt Paare */
.bar-container {
display: contents;
}
dl.vertical dt{
min-width: 45px;
margin: 205px 0 0 -45px;
text-align: center;
font-weight: normal;
font-size: 90%;
flex-shrink: 0 !important;
}
dl.vertical dd {
min-width: 45px;
height: 200px;
position: relative;
margin-left: 0;
background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%);
overflow: hidden;
flex-shrink: 0 !important;
}
dl.vertical dd span{
min-width: 45px;
display: block;
position: absolute;
bottom: 0px;
background: #CCC;
color: #FFF;
text-align: center;
font-size: 80%;
}
dl.vertical dd span:before{
content: "\200D";
display: inline;
}
/* Mobile/Minerva-spezifische Anpassungen */
@media screen and (max-width: 768px) {
.wahldiagramm {
float: none !important;
margin: 10px 0 20px 0 !important;
clear: both;
display: block;
width: 100% !important;
box-sizing: border-box;
padding-bottom: 3.5em;
overflow: visible;
}
dl.vertical {
justify-content: space-between;
width: 100%;
min-width: 100%;
background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%);
height: 200px;
position: relative;
overflow: visible;
}
/* Wrapper wird zu Flex-Container */
.bar-container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
dl.vertical dd {
background: none;
overflow: visible;
position: relative;
margin: 0;
}
dl.vertical dt {
position: static;
margin: 5px 0 0 0;
width: auto;
min-width: 0;
text-align: center;
font-size: 85%;
white-space: nowrap;
transform: none;
}
dl.vertical dd span {
min-width: 100%;
width: 100%;
}
.divider {
width: 1em;
background: none;
position: relative;
}
}