hugo-page-test/themes/tsc_vfl/assets/css/main.scss

1020 lines
20 KiB
SCSS
Raw Normal View History

2023-01-19 17:21:20 +00:00
/* Variables */
$total-width: 95%;
$color-red: #cd1013;
$color-background-mobile-menu: #f5f5f5;
$color-background-mobile-menu-header: #e0e0e0;
$color-hor-line: #a5a5a5;
$gap-columns-persons: 25px;
2024-02-05 14:23:29 +00:00
$left-menu-width: 180px;
2024-01-24 15:36:41 +00:00
$color-vh-vorne: #ddcb55;
$color-vh-mitte: #c98879;
$color-vh-hinten: #0082c9;
2023-01-21 18:50:39 +00:00
/* Mixins */
@mixin menu-style() {
2023-01-21 18:50:39 +00:00
font-family: 'Open Sans Condensed', sans-serif;
color: black;
text-decoration: none;
&.active, &:hover {
color: $color-red;
2023-01-21 18:50:39 +00:00
}
}
@mixin media-large {
@media screen and (min-width: 700px) {
@content;
}
}
@mixin mouse-available {
@media screen and (pointer: fine) {
@content;
}
}
2023-01-19 17:21:20 +00:00
/* main styling */
body {
padding: 0;
margin: 0;
2023-01-19 17:21:20 +00:00
background-color: #ececec;
font: 90% 'Open Sans', sans-serif;
2023-10-25 12:38:54 +00:00
height: 100vh;
2023-01-19 17:21:20 +00:00
}
2023-01-20 15:28:39 +00:00
h1, h2, h3, h4, h5, h6 {
color: $color-red;
2023-01-20 15:28:39 +00:00
font-family: 'Droid Serif',serif;
font-weight: normal;
}
h1 {
font-size: 233%;
2023-01-21 07:36:37 +00:00
margin-top: 0;
2023-01-20 15:28:39 +00:00
}
2023-01-19 17:21:20 +00:00
#wrapper {
width: 100%;
2023-01-19 19:31:40 +00:00
min-height: 100.5vh;
2023-01-19 17:21:20 +00:00
max-width: 1280px;
2023-01-21 19:29:18 +00:00
margin: auto;
2023-01-19 17:21:20 +00:00
background-color: #fcfcfc;
2023-10-25 12:38:54 +00:00
overflow: auto;
2023-01-19 17:21:20 +00:00
.main {
width: $total-width;
2023-01-19 17:21:20 +00:00
display: flex;
margin: auto;
2024-01-04 16:41:21 +00:00
> .left-side {
2023-01-19 17:21:20 +00:00
flex: auto 0 0;
flex-direction: column;
2024-01-04 16:41:21 +00:00
margin-right: 40px;
display: none;
2024-02-05 14:23:29 +00:00
width: $left-menu-width;
@include media-large {
display: flex;
}
2024-01-04 16:41:21 +00:00
.announcements {
margin-top: 20px;
background-color: #ececec;
.entry {
margin: 25px 0;
padding: 0 15px;
&:first-child {
margin-top: 15px;
}
2024-01-04 16:41:21 +00:00
&:last-child {
margin-bottom: 15px;
}
.time {
font-weight: bold;
}
2024-01-04 16:41:21 +00:00
a {
color: black;
}
}
}
}
.left-menu {
display: flex;
flex-direction: column;
2023-01-19 17:21:20 +00:00
> a {
text-decoration: none;
height: 35px;
margin: 2px 0;
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 15px;
2023-01-19 17:21:20 +00:00
font: 1.5em 'Open Sans Condensed', sans-serif;
color: black;
background-color: #ececec;
2023-01-21 18:50:39 +00:00
&.active, &:hover {
background-color: $color-red;
2023-01-19 17:21:20 +00:00
color: white;
}
}
}
#content {
flex: 100% 0 1;
2023-01-21 22:57:03 +00:00
text-align: justify;
max-width: 100%;
2024-01-10 10:05:53 +00:00
hyphens: auto;
2023-01-21 07:36:37 +00:00
table {
width: 100%;
border-collapse: collapse;
td, th {
padding: 5px;
border: none;
2024-01-24 15:36:41 +00:00
text-align: left;
2023-01-21 07:36:37 +00:00
}
2023-01-21 07:36:37 +00:00
tr {
background-color: #dedede;
&:nth-of-type(2n) {
background-color: #f7f7f7;
}
}
thead > tr {
background-color: $color-red;
2023-01-21 07:36:37 +00:00
color: white;
text-align: left;
}
}
.calendar-manual {
font-size: xx-small;
2024-01-13 19:32:38 +00:00
@include media-large {
font-size: small;
}
tr {
height: 20px;
2024-01-13 19:32:38 +00:00
&.first-min {
border-top: solid lightgray 1px;
}
2024-01-13 19:32:38 +00:00
&:nth-of-type(n) {
background-color: unset;
}
.time {
vertical-align: top;
}
.time:last-of-type, .first-col-of-room {
border-left: solid lightgray 1px;
}
.day-title {
text-align: center;
}
}
2024-01-13 19:32:38 +00:00
.calendar-block {
position: relative;
2024-01-13 19:32:38 +00:00
.calendar-block-entity {
position: absolute;
top: 0;
left: 0;
width: 100%;
padding: 1.5px;
box-sizing: border-box;
&.height-1 {
height: 20px;
}
2024-01-13 19:32:38 +00:00
&.height-2 {
height: 40px;
}
2024-01-13 19:32:38 +00:00
&.height-3 {
height: 60px;
}
2024-01-13 19:32:38 +00:00
&.height-4 {
height: 80px;
}
2024-01-13 19:32:38 +00:00
&.height-5 {
height: 100px;
}
2024-01-13 19:32:38 +00:00
&.height-6 {
height: 120px;
}
2024-01-13 19:32:38 +00:00
&.height-7 {
height: 140px;
}
2024-01-13 19:32:38 +00:00
&.height-8 {
height: 160px;
}
.room-block {
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 3px;
overflow: hidden;
}
2024-01-13 19:32:38 +00:00
.room-vorne {
background-color: var(--color-vhvorne);
}
2024-01-13 19:32:38 +00:00
.room-mitte {
background-color: var(--color-vhmitte);
}
2024-01-13 19:32:38 +00:00
.room-hinten {
background-color: var(--color-vhhinten);
color: white;
}
}
}
}
2023-01-21 07:36:37 +00:00
.float-right {
float: right;
2023-01-21 22:57:03 +00:00
margin: 7px 0 7px 15px;
2023-01-21 07:36:37 +00:00
}
a {
color: black;
&[href^="http"] , &.download {
2023-01-21 07:36:37 +00:00
&::before {
margin: 0 5px 0 0;
top: 3px;
position: relative;
content: url('img/download.png');
}
}
}
2023-01-21 18:27:54 +00:00
img {
max-width: 100%;
}
2024-01-07 14:54:47 +00:00
h1, h2, h3, h4, h5, h6 {
2024-01-07 09:54:15 +00:00
text-align: left;
}
.to-top {
margin: 45px 0 0;
}
2023-01-21 17:51:05 +00:00
.disclaimer {
font-size: 75%;
}
2023-01-19 17:21:20 +00:00
}
}
}
2023-01-19 17:21:20 +00:00
#header {
border-bottom: 2px solid rgba(173, 173, 173, 50%);
margin: 0 auto 30px;
width: 100%;
> .logo-row {
2023-01-19 17:21:20 +00:00
display: flex;
justify-content: space-between;
width: 100%;
.logo {
margin: 15px 30px 10px;
img {
max-width: 100%;
}
}
.logo-vfl {
margin: 12px 45px 0 0;
2023-01-19 17:21:20 +00:00
img {
max-width: 100%;
}
2023-01-19 17:21:20 +00:00
}
}
> .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 {
2024-01-05 11:30:52 +00:00
display: block;
}
nav {
display: flex;
height: 100%;
justify-content: flex-start;
align-items: center;
2023-01-19 17:21:20 +00:00
a {
margin: 0 40px 0 0;
2023-01-19 17:21:20 +00:00
// height: 100%;
@include menu-style;
}
}
}
}
2023-01-19 17:21:20 +00:00
2023-01-21 18:50:39 +00:00
#footer {
2024-02-06 13:27:37 +00:00
width: 100%;
margin: 30px auto 0;
padding: 4px 10px 0;
display: flex;
justify-content: space-between;
border-top: 1px solid $color-hor-line;
2024-02-06 13:27:37 +00:00
box-sizing: border-box;
.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;
2023-01-19 17:21:20 +00:00
}
}
}
}
2023-01-19 17:21:20 +00:00
}
2023-10-25 12:38:54 +00:00
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
z-index: 10;
&.hidden {
display: none;
}
.background {
width: 100%;
height: 100%;
position: absolute;
z-index: -10;
background-color: lightgrey;
opacity: 0.5;
2023-10-25 12:38:54 +00:00
}
.spacer {
flex: auto 1 0;
}
2023-10-25 12:38:54 +00:00
.dialog-column {
flex: 0 1 1;
display: flex;
flex-direction: column;
justify-content: center;
2023-10-25 12:38:54 +00:00
.dialog {
background-color: white;
padding: 10px;
flex: 30% 0 0;
2023-10-25 12:38:54 +00:00
// height: 30%;
img {
max-width: 100%;
}
2023-10-25 12:38:54 +00:00
}
}
}
2023-01-19 20:05:28 +00:00
.person-list {
display: flex;
flex-wrap: wrap;
gap: $gap-columns-persons;
margin: 0 0 $gap-columns-persons;
2023-01-19 20:05:28 +00:00
}
.person {
2024-01-07 13:17:52 +00:00
width: 100%;
@include media-large {
width: calc(50% - #{$gap-columns-persons} / 2);
2024-01-07 13:17:52 +00:00
}
2023-01-19 20:05:28 +00:00
height: 80px;
2023-01-19 20:05:28 +00:00
// margin: 10px 25px 10px 0;
display: flex;
> .image {
flex: 60px 0 0;
2023-01-20 08:18:12 +00:00
img {
width: 100%;
}
2023-01-19 20:05:28 +00:00
}
2023-01-19 20:05:28 +00:00
> .content {
flex: 1px 1 0;
margin-left: 10px;
}
2023-01-19 20:05:28 +00:00
> .content-vorstand {
display: flex;
flex-direction: column;
justify-content: space-evenly;
> .role {
font-weight: bold;
}
2023-01-19 20:05:28 +00:00
> .name {
img {
margin: 0 10px 0 0;
}
}
}
}
2023-10-08 18:10:42 +00:00
.news-blog {
max-width: 100%;
2023-10-08 18:10:42 +00:00
.blog-entry {
max-width: 100%;
2023-10-08 18:10:42 +00:00
.header {
max-width: 100%;
2023-10-25 12:38:54 +00:00
margin: 5px 0 10px;
text-align: left;
2023-10-08 18:10:42 +00:00
a {
font-size: larger;
}
}
2023-10-08 18:10:42 +00:00
.details {
display: flex;
2023-10-25 12:38:54 +00:00
// min-height: 240px;
margin-right: 2px;
flex-direction: column;
@include media-large{
flex-direction: row;
}
2023-10-08 18:10:42 +00:00
.teaser-image {
2024-02-05 20:16:23 +00:00
flex: auto 0 0;
display: block;
2024-02-05 19:12:40 +00:00
height: 190px;
2024-02-05 20:16:23 +00:00
2024-03-05 16:37:07 +00:00
@include media-large{
2024-02-05 20:16:23 +00:00
flex: 33% 1 0;
}
2023-10-25 12:38:54 +00:00
img {
width: 90%;
height: 100%;
display: block;
margin: 0 auto;
2023-10-25 12:38:54 +00:00
object-fit: contain;
object-position: left top;
}
2023-10-08 18:10:42 +00:00
}
2023-10-25 12:38:54 +00:00
.right-side {
2023-10-08 18:10:42 +00:00
flex: 66% 1 1;
2023-10-25 12:38:54 +00:00
display: flex;
flex-direction: column;
.intro {
padding-right: 40px;
}
2023-10-25 12:38:54 +00:00
.more {
// float: right;
margin-top: 20px;
text-align: right;
}
2023-10-08 18:10:42 +00:00
}
2023-10-25 12:38:54 +00:00
2023-10-08 18:10:42 +00:00
}
2023-10-25 12:38:54 +00:00
2023-10-08 18:10:42 +00:00
}
.pagination {
display: flex;
list-style: none;
padding: 0;
max-width: 400px;
margin: auto;
2023-10-08 18:10:42 +00:00
.page-item {
flex: auto 1 0;
margin: 5px;
.page-link {
display: block;
text-align: center;
width: 100%;
height: 100%;
padding: 5px 0;
2023-10-08 18:10:42 +00:00
}
}
.disabled {
visibility: hidden;
}
}
}
2024-01-07 09:44:26 +00:00
.mobile-menu {
display: flex;
flex-wrap: wrap;
width: 100%;
margin: 30px 0;
padding: 30px 5% 0;
2024-01-07 09:44:26 +00:00
box-sizing: border-box;
@include media-large {
2024-01-07 09:44:26 +00:00
display: none;
}
border-top: 1px solid $color-hor-line;
2024-01-07 09:44:26 +00:00
.level-1 {
width: 100%;
a {
background-color: $color-background-mobile-menu-header;
2024-01-07 09:44:26 +00:00
}
}
2024-01-07 09:44:26 +00:00
.level-2 {
width: 50%;
a {
background-color: $color-background-mobile-menu;
2024-01-07 09:44:26 +00:00
}
}
2024-01-07 09:44:26 +00:00
.level-1, .level-2 {
display: flex;
padding: 3px;
box-sizing: border-box;
a {
width: 100%;
height: 100%;
padding: 5px;
box-sizing: border-box;
@include menu-style;
2024-01-07 09:44:26 +00:00
&.active {
color: white;
background-color: $color-red;
2024-01-07 09:44:26 +00:00
}
}
}
}
.mobile-menu-link {
display: block;
border: 1px solid black;
width: max-content;
padding: 5px 75px 5px 15px;
margin: 5px 0 5px 20px;
@include menu-style;
@include media-large {
2024-01-07 09:44:26 +00:00
display: none;
}
}
2024-01-04 16:41:21 +00:00
.announcement-list {
.entry {
margin: 0 30px;
2024-01-04 16:41:21 +00:00
.time {
font-weight: bold;
margin-right: 10px;
}
}
}
.tsc-image {
margin: 0 auto;
width: fit-content;
img {
display: block;
margin: 0 auto;
}
}
2023-10-25 12:38:54 +00:00
.tsc-gallery {
display: grid;
place-items: center center;
grid-template-columns: 1fr;
gap: 15px;
@include media-large {
&.cols-2 {
grid-template-columns: 1fr 1fr;
}
&.cols-3 {
grid-template-columns: 1fr 1fr 1fr;
}
&.cols-4 {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
2023-10-25 12:38:54 +00:00
}
.tsc-gallery-img {
margin: 5px 0;
2023-10-25 12:38:54 +00:00
}
}
2024-01-07 10:53:49 +00:00
.youtube-video {
max-width: 100%;
}
.internal-video {
max-width: 100%;
}
2024-01-07 13:18:17 +00:00
.room {
.image {
max-width: 70%;
2023-10-25 12:38:54 +00:00
}
@include media-large {
2024-01-07 13:18:17 +00:00
display: flex;
align-items: start;
.image {
flex: 50% 0 1;
}
2024-01-07 13:18:17 +00:00
.address {
margin-left: 10px;
}
2024-01-07 13:18:17 +00:00
p {
margin: 0;
}
2023-10-25 12:38:54 +00:00
}
}
2024-01-04 13:10:13 +00:00
:root {
2024-01-24 15:36:41 +00:00
--color-vhvorne: #{$color-vh-vorne};
--color-vhmitte: #{$color-vh-mitte};
--color-vhhinten: #{$color-vh-hinten};
2024-01-04 13:10:13 +00:00
}
.calendar-color-legend {
display: flex;
flex-direction: row;
margin: 10px;
.vorne {
background-color: var(--color-vhvorne);
}
2024-01-04 13:10:13 +00:00
.mitte {
background-color: var(--color-vhmitte);
}
2024-01-04 13:10:13 +00:00
.hinten {
background-color: var(--color-vhhinten);
color: white;
}
2024-01-04 13:10:13 +00:00
.vorne, .mitte, .hinten {
margin-right: 20px;
padding: 5px 10px;
}
}
.archive-short-links {
display: flex;
flex-flow: row wrap;
padding: 0;
li {
display: block;
padding: 5px;
}
}
.archive-year-list {
display: flex;
margin: 5px 0;
align-items: baseline;
@include mouse-available {
margin: 0;
}
2024-01-07 13:17:52 +00:00
.date {
font-weight: bold;
// height: 100%;
}
.title {
margin: 0 0 0 10px;
text-align: left;
a {
display: block;
padding: 6.5px 0;
@include mouse-available {
padding: 3px 0;
}
}
}
}
2024-01-07 14:55:19 +00:00
table.time {
// width: 100%;
display: flex;
flex-direction: column;
2024-01-07 14:55:19 +00:00
tr {
display: flex;
flex-direction: column;
width: 100%;
td:nth-child(1) {
font-weight: bold;
}
}
2024-01-07 14:55:19 +00:00
tr:first-child {
display: none;
}
&.time-no-age {
td:nth-child(3)::before {
content: "Uhrzeit: ";
}
2024-01-07 14:55:19 +00:00
td:nth-child(4)::before {
content: "Ort: ";
}
}
&.time-age {
td:nth-child(2)::before {
content: "Jahrgang: ";
}
2024-01-07 14:55:19 +00:00
td:nth-child(4)::before {
content: "Uhrzeit: ";
}
2024-01-07 14:55:19 +00:00
td:nth-child(5)::before {
content: "Ort: ";
}
}
2024-01-13 19:32:38 +00:00
@include media-large {
display: table;
tr {
display: table-row;
2024-01-13 19:32:38 +00:00
&:first-child {
display: table-row;
}
}
&.time-age, &.time-no-age {
2024-01-13 19:32:38 +00:00
tr td:nth-child(n)::before {
content: none;
}
}
}
2024-01-07 14:55:19 +00:00
}
2024-02-13 18:07:27 +00:00
.turniermeldungen-group-list {
.day {
.date {
font-weight: bold;
2024-02-13 18:07:27 +00:00
margin: 10px 0 0;
}
2024-03-05 16:37:07 +00:00
2024-02-13 18:07:27 +00:00
.participation {
margin: 0 0 0 2em;
}
}
}
.turnier-details {
.title {
font-weight: 600;
}
2024-03-05 16:37:07 +00:00
.turnier {
font-weight: bold;
2024-03-05 16:37:07 +00:00
.nummer {
font-weight: normal;
font-style: italic;
}
}
2024-03-05 16:37:07 +00:00
.verein {
margin: 20px 0 0;
}
2024-03-05 16:37:07 +00:00
.contact {
font-style: italic;
}
}
.press-articles {
margin: 0 0 2em;
.press-article {
border-bottom: solid 1px $color-hor-line;
margin: 0 0 3em;
padding: 0 0 3em;
2024-02-14 14:42:20 +00:00
h2 {
margin-bottom: 5px;
}
&:nth-last-of-type(1) {
border-bottom: none;
padding: 0;
margin: 0;
}
.press-img img {
display: block;
margin: 1em auto;
}
.metadata {
span {
display: block;
2024-03-05 16:37:07 +00:00
&.date {
font-weight: bold;
}
}
}
}
}
2024-01-07 14:53:59 +00:00
.iframe-generic {
display: block;
width: 100%;
height: 800px;
max-height: 75vh;
}
2023-01-19 17:21:20 +00:00
@font-face{
font-family: 'Open Sans Condensed';
font-style: normal;
font-weight: 400;
2023-01-21 19:29:18 +00:00
src: url("ttf/OpenSans_Condensed-Light.ttf") format('truetype');
2023-01-19 17:21:20 +00:00
}
2023-01-19 17:21:20 +00:00
@font-face{
font-family: 'Droid Serif';
font-style: normal;
font-weight: normal;
2023-01-21 19:29:18 +00:00
src: url('ttf/DroidSerif.ttf') format('truetype')
2023-01-19 17:21:20 +00:00
}