First fixes in SCSS file to fix some issues

This commit is contained in:
Christian Wolf 2024-01-12 22:01:10 +01:00
parent 5c4175b01a
commit 55cdfc619f
2 changed files with 236 additions and 188 deletions

View File

@ -1,5 +1,9 @@
{ {
"extends": [ "extends": [
"stylelint-config-standard-scss" "stylelint-config-standard-scss"
] ],
"rules": {
"media-feature-range-notation": "prefix",
"color-function-notation": "legacy"
}
} }

View File

@ -1,23 +1,21 @@
/* Variables */ /* Variables */
$total_width: 95%; $total-width: 95%;
$color-red: #cd1013;
$color_red: #cd1013; $color-background-mobile-menu: #f5f5f5;
$color_background_mobile_menu: #f5f5f5; $color-background-mobile-menu-header: #e0e0e0;
$color_background_mobile_menu_header: #e0e0e0; $color-hor-line: #a5a5a5;
$color_hor_line: #a5a5a5; $gap-columns-persons: 25px;
$gap_columns_persons: 25px;
/* Mixins */ /* Mixins */
@mixin menu-style () { @mixin menu-style() {
font-family: 'Open Sans Condensed', sans-serif; font-family: 'Open Sans Condensed', sans-serif;
color: black; color: black;
text-decoration: none; text-decoration: none;
&.active, &:hover { &.active, &:hover {
color: $color_red; color: $color-red;
} }
} }
@ -36,15 +34,15 @@ $gap_columns_persons: 25px;
/* main styling */ /* main styling */
body { body {
padding: 0px; padding: 0;
margin: 0px; margin: 0;
background-color: #ececec; background-color: #ececec;
font: 90% 'Open Sans', sans-serif; font: 90% 'Open Sans', sans-serif;
height: 100vh; height: 100vh;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
color: $color_red; color: $color-red;
font-family: 'Droid Serif',serif; font-family: 'Droid Serif',serif;
font-weight: normal; font-weight: normal;
} }
@ -62,120 +60,9 @@ h1 {
background-color: #fcfcfc; background-color: #fcfcfc;
overflow: auto; overflow: auto;
#header {
border-bottom: 2px solid rgba(173,173,173,.5);
margin: 0 auto 30px;
width: 100%;
> .logo-row {
display: flex;
justify-content: space-between;
width: 100%;
.logo {
margin: 15px 30px 10px 30px;
img {
max-width: 100%;
}
}
.logo-vfl {
margin: 12px 45px 0 0;
img {
max-width: 100%;
}
}
}
> .slider {
width: calc(100% - 60px);
// visibility: hidden;
// height: 250px;
display: none;
@include media-large() {
display: flex;
}
padding: 0 10px;
border-right: 20px solid $color_red;
border-left: 20px solid $color_red;
position: relative;
> img {
width: calc(100% - 20px);
// display: block;
position: absolute;
z-index: 0;
opacity: 1;
&.animated {
transition: opacity 2.5s ease-in-out;
}
&.hidden {
opacity: 0;
}
&.placeholder {
position: static;
visibility: hidden;
width: 100%;
}
}
.dots {
position: absolute;
width: 95%;
z-index: 1;
left: 0;
bottom: 10%;
display: flex;
justify-content: end;
.dot {
width: 10px;
height: 10px;
margin: 0 10px 0 0;
border-radius: 5px;
background-color: #eee;
border: 1.5px solid #444;
&.active {
background-color: #444;
border: 1.5px solid #ccc;
}
}
}
}
> .nav {
width: $total_width;
height: 30px;
margin: 5px auto 0;
font: 1.5em 'Open Sans Condensed', sans-serif;
display: none;
@include media-large() {
display: block;
}
nav {
display: flex;
height: 100%;
justify-content: flex-start;
align-items: center;
a {
margin: 0 40px 0 0;
// height: 100%;
@include menu-style;
}
}
}
}
.main { .main {
width: $total_width; width: $total-width;
display: flex; display: flex;
margin: auto; margin: auto;
@ -184,7 +71,8 @@ h1 {
flex-direction: column; flex-direction: column;
margin-right: 40px; margin-right: 40px;
display: none; display: none;
@include media-large() {
@include media-large {
display: flex; display: flex;
} }
@ -199,6 +87,7 @@ h1 {
&:first-child { &:first-child {
margin-top: 15px; margin-top: 15px;
} }
&:last-child { &:last-child {
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -206,6 +95,7 @@ h1 {
.time { .time {
font-weight: bold; font-weight: bold;
} }
a { a {
color: black; color: black;
} }
@ -220,20 +110,18 @@ h1 {
> a { > a {
text-decoration: none; text-decoration: none;
display: block;
height: 35px; height: 35px;
margin: 2px 0; margin: 2px 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
padding: 0px 15px; padding: 0 15px;
font: 1.5em 'Open Sans Condensed', sans-serif; font: 1.5em 'Open Sans Condensed', sans-serif;
color: black; color: black;
background-color: #ececec; background-color: #ececec;
&.active, &:hover { &.active, &:hover {
background-color: $color_red; background-color: $color-red;
color: white; color: white;
} }
} }
@ -253,6 +141,7 @@ h1 {
padding: 5px; padding: 5px;
border: none; border: none;
} }
tr { tr {
background-color: #dedede; background-color: #dedede;
@ -262,7 +151,7 @@ h1 {
} }
thead > tr { thead > tr {
background-color: $color_red; background-color: $color-red;
color: white; color: white;
text-align: left; text-align: left;
} }
@ -276,7 +165,7 @@ h1 {
a { a {
color: black; color: black;
&[href^=http] , &.download { &[href^="http"] , &.download {
&::before { &::before {
margin: 0 5px 0 0; margin: 0 5px 0 0;
top: 3px; top: 3px;
@ -303,48 +192,167 @@ h1 {
} }
} }
} }
}
#footer { #header {
width: 95%; border-bottom: 2px solid rgba(173, 173, 173, 50%);
margin: 30px auto 0; margin: 0 auto 30px;
padding: 4px 10px 0; width: 100%;
> .logo-row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
border-top: 1px solid $color_hor_line; width: 100%;
.first-entry { .logo {
font: 1em 'Open Sans Condensed', sans-serif; margin: 15px 30px 10px;
}
img {
.facebook { max-width: 100%;
width: 20px; }
height: 20px;
display: block;
background-image: url("img/facebook.jpg");
} }
.meta-menu { .logo-vfl {
max-width: 70%; margin: 12px 45px 0 0;
> ul {
padding: 0;
margin: 0;
display: flex; img {
flex-wrap: wrap; max-width: 100%;
}
}
}
font: 1.4em 'Open Sans Condensed', sans-serif; > .slider {
width: calc(100% - 60px);
> li { // visibility: hidden;
list-style: none; // height: 250px;
margin-left: 1em; display: none;
a { @include media-large {
@include menu-style(); display: flex;
} }
padding: 0 10px;
border-right: 20px solid $color-red;
border-left: 20px solid $color-red;
position: relative;
> img {
width: calc(100% - 20px);
// display: block;
position: absolute;
z-index: 0;
opacity: 1;
&.animated {
transition: opacity 2.5s ease-in-out;
}
&.hidden {
opacity: 0;
}
&.placeholder {
position: static;
visibility: hidden;
width: 100%;
}
}
.dots {
position: absolute;
width: 95%;
z-index: 1;
left: 0;
bottom: 10%;
display: flex;
justify-content: end;
.dot {
width: 10px;
height: 10px;
margin: 0 10px 0 0;
border-radius: 5px;
background-color: #eee;
border: 1.5px solid #444;
&.active {
background-color: #444;
border: 1.5px solid #ccc;
} }
} }
} }
} }
> .nav {
width: $total-width;
height: 30px;
margin: 5px auto 0;
font: 1.5em 'Open Sans Condensed', sans-serif;
display: none;
@include media-large {
display: block;
}
nav {
display: flex;
height: 100%;
justify-content: flex-start;
align-items: center;
a {
margin: 0 40px 0 0;
// height: 100%;
@include menu-style;
}
}
}
}
#footer {
width: 95%;
margin: 30px auto 0;
padding: 4px 10px 0;
display: flex;
justify-content: space-between;
border-top: 1px solid $color-hor-line;
.first-entry {
font: 1em 'Open Sans Condensed', sans-serif;
}
.facebook {
width: 20px;
height: 20px;
display: block;
background-image: url("img/facebook.jpg");
}
.meta-menu {
max-width: 70%;
> ul {
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
font: 1.4em 'Open Sans Condensed', sans-serif;
> li {
list-style: none;
margin-left: 1em;
a {
@include menu-style;
}
}
}
}
} }
#overlay { #overlay {
@ -366,22 +374,24 @@ h1 {
position: absolute; position: absolute;
z-index: -10; z-index: -10;
background-color: lightgrey; background-color: lightgrey;
opacity: 50%; opacity: 0.5;
} }
.spacer { .spacer {
flex: auto 1 0; flex: auto 1 0;
} }
.dialog-column { .dialog-column {
flex: 0 1 1; flex: 0 1 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
.dialog { .dialog {
background-color: white; background-color: white;
padding: 10px; padding: 10px;
flex: 30% 0 0; flex: 30% 0 0;
// height: 30%; // height: 30%;
img { img {
@ -394,29 +404,35 @@ h1 {
.person-list { .person-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: $gap_columns_persons; gap: $gap-columns-persons;
margin: 0 0 $gap_columns_persons; margin: 0 0 $gap-columns-persons;
} }
.person { .person {
width: 100%; width: 100%;
@include media-large() {
width: calc(50% - #{$gap_columns_persons} / 2); @include media-large {
width: calc(50% - #{$gap-columns-persons} / 2);
} }
height: 80px; height: 80px;
// margin: 10px 25px 10px 0; // margin: 10px 25px 10px 0;
display: flex; display: flex;
> .image { > .image {
flex: 60px 0 0; flex: 60px 0 0;
img { img {
width: 100%; width: 100%;
} }
} }
> .content { > .content {
flex: 1px 1 0; flex: 1px 1 0;
margin-left: 10px; margin-left: 10px;
} }
> .content-vorstand { > .content-vorstand {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -425,6 +441,7 @@ h1 {
> .role { > .role {
font-weight: bold; font-weight: bold;
} }
> .name { > .name {
img { img {
margin: 0 10px 0 0; margin: 0 10px 0 0;
@ -435,22 +452,28 @@ h1 {
.news-blog { .news-blog {
max-width: 100%; max-width: 100%;
.blog-entry { .blog-entry {
max-width: 100%; max-width: 100%;
.header { .header {
max-width: 100%; max-width: 100%;
margin: 5px 0 10px; margin: 5px 0 10px;
text-align: left; text-align: left;
a { a {
font-size: larger; font-size: larger;
} }
} }
.details { .details {
display: flex; display: flex;
// min-height: 240px; // min-height: 240px;
margin-right: 2px; margin-right: 2px;
flex-direction: column; flex-direction: column;
@include media-large(){
@include media-large{
flex-direction: row; flex-direction: row;
} }
@ -464,6 +487,7 @@ h1 {
object-position: left top; object-position: left top;
} }
} }
.right-side { .right-side {
flex: 66% 1 1; flex: 66% 1 1;
display: flex; display: flex;
@ -472,6 +496,7 @@ h1 {
.intro { .intro {
padding-right: 40px; padding-right: 40px;
} }
.more { .more {
// float: right; // float: right;
margin-top: 20px; margin-top: 20px;
@ -489,9 +514,11 @@ h1 {
padding: 0; padding: 0;
max-width: 400px; max-width: 400px;
margin: auto; margin: auto;
.page-item { .page-item {
flex: auto 1 0; flex: auto 1 0;
margin: 5px; margin: 5px;
.page-link { .page-link {
display: block; display: block;
text-align: center; text-align: center;
@ -512,30 +539,32 @@ h1 {
flex-wrap: wrap; flex-wrap: wrap;
width: 100%; width: 100%;
margin: 30px 0; margin: 30px 0;
padding: 30px 5% 0 5%; padding: 30px 5% 0;
box-sizing: border-box; box-sizing: border-box;
@include media-large() { @include media-large {
display: none; display: none;
} }
border-top: 1px solid $color_hor_line; border-top: 1px solid $color-hor-line;
.level-1 { .level-1 {
width: 100%; width: 100%;
a { a {
background-color: $color_background_mobile_menu_header; background-color: $color-background-mobile-menu-header;
} }
} }
.level-2 { .level-2 {
width: 50%; width: 50%;
a { a {
background-color: $color_background_mobile_menu; background-color: $color-background-mobile-menu;
} }
} }
.level-1, .level-2 { .level-1, .level-2 {
display: flex; display: flex;
padding: 3px; padding: 3px;
@ -546,11 +575,12 @@ h1 {
height: 100%; height: 100%;
padding: 5px; padding: 5px;
box-sizing: border-box; box-sizing: border-box;
@include menu-style();
@include menu-style;
&.active { &.active {
color: white; color: white;
background-color: $color_red; background-color: $color-red;
} }
} }
} }
@ -562,9 +592,10 @@ h1 {
width: max-content; width: max-content;
padding: 5px 75px 5px 15px; padding: 5px 75px 5px 15px;
margin: 5px 0 5px 20px; margin: 5px 0 5px 20px;
@include menu-style();
@include media-large() { @include menu-style;
@include media-large {
display: none; display: none;
} }
} }
@ -572,6 +603,7 @@ h1 {
.announcement-list { .announcement-list {
.entry { .entry {
margin: 0 30px; margin: 0 30px;
.time { .time {
font-weight: bold; font-weight: bold;
margin-right: 10px; margin-right: 10px;
@ -586,18 +618,18 @@ h1 {
.tsc-gallery { .tsc-gallery {
display: grid; display: grid;
align-items: center; place-items: center center;
justify-items: center;
grid-template-columns: 1fr; grid-template-columns: 1fr;
@include media-large() { @include media-large {
&.cols-2 { &.cols-2 {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
&.cols-3 { &.cols-3 {
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
} }
&.cols-4 { &.cols-4 {
grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr;
} }
@ -621,16 +653,18 @@ h1 {
max-width: 70%; max-width: 70%;
} }
@include media-large() { @include media-large {
display: flex; display: flex;
align-items: start; align-items: start;
.image { .image {
flex: 50% 0 1; flex: 50% 0 1;
} }
.address { .address {
margin-left: 10px; margin-left: 10px;
} }
p { p {
margin: 0; margin: 0;
} }
@ -651,13 +685,16 @@ h1 {
.vorne { .vorne {
background-color: var(--color-vhvorne); background-color: var(--color-vhvorne);
} }
.mitte { .mitte {
background-color: var(--color-vhmitte); background-color: var(--color-vhmitte);
} }
.hinten { .hinten {
background-color: var(--color-vhhinten); background-color: var(--color-vhhinten);
color: white; color: white;
} }
.vorne, .mitte, .hinten { .vorne, .mitte, .hinten {
margin-right: 20px; margin-right: 20px;
padding: 5px 10px; padding: 5px 10px;
@ -666,8 +703,7 @@ h1 {
.archive-short-links { .archive-short-links {
display: flex; display: flex;
flex-direction: row; flex-flow: row wrap;
flex-wrap: wrap;
padding: 0; padding: 0;
li { li {
@ -681,14 +717,16 @@ h1 {
margin: 5px 0; margin: 5px 0;
align-items: baseline; align-items: baseline;
@include mouse-available() { @include mouse-available {
margin: 0; margin: 0;
} }
.date { .date {
font-weight: bold; font-weight: bold;
// height: 100%; // height: 100%;
} }
.title { .title {
margin: 0 0 0 10px; margin: 0 0 0 10px;
text-align: left; text-align: left;
@ -697,7 +735,7 @@ h1 {
display: block; display: block;
padding: 6.5px 0; padding: 6.5px 0;
@include mouse-available() { @include mouse-available {
padding: 3px 0; padding: 3px 0;
} }
} }
@ -708,6 +746,7 @@ table.time {
// width: 100%; // width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
tr { tr {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -718,6 +757,7 @@ table.time {
} }
} }
tr:first-child { tr:first-child {
display: none; display: none;
} }
@ -726,6 +766,7 @@ table.time {
td:nth-child(3)::before { td:nth-child(3)::before {
content: "Uhrzeit: "; content: "Uhrzeit: ";
} }
td:nth-child(4)::before { td:nth-child(4)::before {
content: "Ort: "; content: "Ort: ";
} }
@ -735,9 +776,11 @@ table.time {
td:nth-child(2)::before { td:nth-child(2)::before {
content: "Jahrgang: "; content: "Jahrgang: ";
} }
td:nth-child(4)::before { td:nth-child(4)::before {
content: "Uhrzeit: "; content: "Uhrzeit: ";
} }
td:nth-child(5)::before { td:nth-child(5)::before {
content: "Ort: "; content: "Ort: ";
} }
@ -757,6 +800,7 @@ table.time {
font-weight: 400; font-weight: 400;
src: url("ttf/OpenSans_Condensed-Light.ttf") format('truetype'); src: url("ttf/OpenSans_Condensed-Light.ttf") format('truetype');
} }
@font-face{ @font-face{
font-family: 'Droid Serif'; font-family: 'Droid Serif';
font-style: normal; font-style: normal;