forked from tsc-vfl/hugo-page
Move SCSS file to layout folder
This commit is contained in:
361
themes/tsc_vfl/assets/css/main.scss
Normal file
361
themes/tsc_vfl/assets/css/main.scss
Normal file
@@ -0,0 +1,361 @@
|
||||
/* Variables */
|
||||
$total_width: 95%;
|
||||
|
||||
$color_red: #cd1013;
|
||||
|
||||
$gap_columns_persons: 25px;
|
||||
|
||||
|
||||
/* Mixins */
|
||||
|
||||
@mixin menu-style () {
|
||||
font-family: 'Open Sans Condensed', sans-serif;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
|
||||
&.active, &:hover {
|
||||
color: $color_red;
|
||||
}
|
||||
}
|
||||
|
||||
/* main styling */
|
||||
|
||||
body {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
background-color: #ececec;
|
||||
font: 90% 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: $color_red;
|
||||
font-family: 'Droid Serif',serif;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 233%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width: 100%;
|
||||
min-height: 100.5vh;
|
||||
max-width: 1280px;
|
||||
margin: auto;
|
||||
background-color: #fcfcfc;
|
||||
|
||||
#header {
|
||||
border-bottom: 2px solid rgba(173,173,173,.5);
|
||||
margin: 0 auto 30px;
|
||||
|
||||
> .logo-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.logo {
|
||||
margin: 15px 0 10px 30px;
|
||||
}
|
||||
.logo-vfl {
|
||||
margin: 12px 45px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
> .slider {
|
||||
width: calc(100% - 60px);
|
||||
// height: 250px;
|
||||
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;
|
||||
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;
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
margin: 0 40px 0 0;
|
||||
// height: 100%;
|
||||
@include menu-style;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main {
|
||||
width: $total_width;
|
||||
display: flex;
|
||||
margin: auto;
|
||||
|
||||
> .left-menu {
|
||||
width: 180px;
|
||||
margin-right: 40px;
|
||||
flex: auto 0 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
> a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
height: 35px;
|
||||
margin: 2px 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 0px 15px;
|
||||
font: 1.5em 'Open Sans Condensed', sans-serif;
|
||||
|
||||
color: black;
|
||||
background-color: #ececec;
|
||||
|
||||
&.active, &:hover {
|
||||
background-color: $color_red;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#content {
|
||||
flex: 100% 0 1;
|
||||
text-align: justify;
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
td, th {
|
||||
padding: 5px;
|
||||
border: none;
|
||||
}
|
||||
tr {
|
||||
background-color: #dedede;
|
||||
|
||||
&:nth-of-type(2n) {
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
}
|
||||
|
||||
thead > tr {
|
||||
background-color: $color_red;
|
||||
color: white;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
margin: 7px 0 7px 15px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
|
||||
&[href^=http] , &.download {
|
||||
&::before {
|
||||
margin: 0 5px 0 0;
|
||||
top: 3px;
|
||||
position: relative;
|
||||
content: url('img/download.png');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.to-top {
|
||||
margin: 45px 0 0;
|
||||
}
|
||||
|
||||
.disclaimer {
|
||||
font-size: 75%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#footer {
|
||||
width: 95%;
|
||||
margin: 30px auto 0;
|
||||
padding: 4px 10px 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
border-top: 1px solid #a5a5a5;
|
||||
|
||||
.first-entry {
|
||||
font: 1em 'Open Sans Condensed', sans-serif;
|
||||
}
|
||||
|
||||
.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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.person-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: $gap_columns_persons;
|
||||
margin: 0 0 $gap_columns_persons;
|
||||
}
|
||||
|
||||
.person {
|
||||
width: calc(50% - #{$gap_columns_persons} / 2);
|
||||
height: 80px;
|
||||
// margin: 10px 25px 10px 0;
|
||||
display: flex;
|
||||
|
||||
> .image {
|
||||
flex: 60px 0 0;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
> .content {
|
||||
flex: 1px 1 0;
|
||||
margin-left: 10px;
|
||||
}
|
||||
> .content-vorstand {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-evenly;
|
||||
|
||||
> .role {
|
||||
font-weight: bold;
|
||||
}
|
||||
> .name {
|
||||
img {
|
||||
margin: 0 10px 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.news-blog {
|
||||
.blog-entry {
|
||||
.header {
|
||||
a {
|
||||
&::before {
|
||||
content: '' !important;
|
||||
}
|
||||
font-size: larger;
|
||||
}
|
||||
}
|
||||
.details {
|
||||
display: flex;
|
||||
min-height: 240px;
|
||||
|
||||
.teaser-image {
|
||||
flex: 33% 1 0;
|
||||
background-color: lightcyan;
|
||||
}
|
||||
.intro {
|
||||
flex: 66% 1 1;
|
||||
}
|
||||
.teaser-image, .intro {
|
||||
// display: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
.page-item {
|
||||
padding: 0px 5px;
|
||||
a {
|
||||
padding: 10px 20px;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.disabled {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@font-face{
|
||||
font-family: 'Open Sans Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url("ttf/OpenSans_Condensed-Light.ttf") format('truetype');
|
||||
}
|
||||
@font-face{
|
||||
font-family: 'Droid Serif';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: url('ttf/DroidSerif.ttf') format('truetype')
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
||||
{{ $scss := resources.Get "main.scss" | resources.ToCSS $options }}
|
||||
{{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}">
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user