This repository has been archived on 2024-02-15. You can view files and clone it, but cannot push or open issues or pull requests.
webseite-krautspace/public/style.css
+++ 1a3bfb0e8c kleine änderungen an schrift und layout
brotschrift zu eb garamond geändert
anderen schnitt der signika,
links mit gepunkteter linie gekennzeichnet,
rechtschreibung und grammatik verbessert,
padding top für h2 überschriften
2022-02-24 17:38:26 +01:00

365 lines
4.9 KiB
CSS

/* file: style3.css
* date: 2022-02-06
* user: bernd@nr18.space
*/
/*** schriften ***/
@font-face {
font-family: 'EB Garamond Medium';
src: url('./fonts/garamond/static/EBGaramond-Medium.ttf');
}
@font-face {
font-family: 'EB Garamond Medium Italic';
src: url('./fonts/garamond/static/EBGaramond-MediumItalic.ttf');
}
@font-face {
font-family: 'Signika Light';
src: url('./fonts/signika/static/Signika-Light.ttf');
}
@font-face {
font-family: 'Signika Medium';
src: url('./fonts/signika/static/Signika-Medium.ttf');
}
/*** general ***/
* {
padding: 0;
box-sizing: border-box;
border-collapse: collapse;
scroll-behavior: smooth;
}
html, body {
margin: 0;
color: #333333;
background-color: #ffffff;
font-family: 'EB Garamond Medium', serif;
font-size: 105%;
line-height: 1.5;
}
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
ul {
list-style: none;
}
ul.indent {
padding-left: 2em;
}
a {
color: inherit;
text-decoration: underline 1px dotted;
}
a:hover, a:focus {
text-decoration: underline;
}
.hidden, hr {
display: none;
}
h1 {
font-size: 130%;
padding-left: 1em;
}
h3 {
padding-top: 2em;
}
h1, h2, h3, h4 {
font-family: 'Signika Medium', sans-serif;
}
.center-content {
margin: 0 auto;
}
.max-width {
max-width: 72em;
}
.flex-box {
display: flex;
justify-content: space-between;
}
.row {
flex-direction: row;
}
.column {
flex-direction: column;
}
.center {
justify-content: center;
align-items: center;
}
.icon {
width: 2em;
height: 2em;
border-radius: 0.5em;
background-color: #ffffff;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
overflow: hidden;
}
.icon-img {
width: 100%;
height: 100%;
padding: 0;
}
/*** head with navigation menu ***/
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
color: #ffffff;
background-color: #333333;
box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.6);
z-index: 50;
}
header a {
text-decoration: none;
}
div#headline {
padding: 0 1em 0 1em;
font-family: 'Signika Light', sans-serif;
}
div#status-div {
width: 2em;
}
div#status-div:hover {
width: 10em;
z-index: 150;
}
a#banner:hover,
a#banner:focus {
text-decoration: none;
}
nav#menu {
/* 'height: 100%' geht nur mit 'position: fixed'. mit 'position: absolute'
* wird nur der teil innerhalb der headline angezeigt. dann muß 'height:
* 100%' entfernt werden und das menu nimmt sich den platz, den es
* braucht. */
position: fixed;
top: 0;
right: 0;
height: 100%;
display: none;
flex-direction: column;
justify-content: flex-start;
align-items: flex-end;
padding: 0 1em 2em 2em;
}
nav#menu ul {
margin: initial;
padding: 0;
text-align: right;
}
nav#menu li {
padding: 1em;
border-top: 1px solid #999999;
}
nav#menu a {
color: #ffffff;
}
/* changed by clicking menu button */
nav#menu:target {
display: flex;
overflow-x: hidden;
overflow-y: scroll;
background: black;
background: rgba(50, 50, 50, 0.85);
z-index: 100;
}
/**** startimage ****/
#start-image-container {
position: relative;
display: block;
width: 100%;
min-height: 70vh;
max-height: 80vh;
margin: 3em 0 0 0;
padding: 0;
overflow: hidden;
background: url('./images/background.jpg') no-repeat center;
background-size: cover;
}
/**** main ****/
main {
min-height: 100px;
flex: 1;
}
.wrapper {
position: relative;
padding: 0 2%;
}
.content-overlay {
position: relative;
top: -50px;
}
.panel-wrapper {
margin: 1% 1% 5% 1%;
padding: 3.5em 2em 7em 1.5em;;
background-color: #ffffff;
box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.7);
}
.sub-panel {
flex-grow: 1;
padding: 1em 1em 1em 1.5em;
background-color: inherit;
}
.with-aside {
column-gap: 2em;
}
div#map img {
width: 100%;
max-width: 100%;
}
section.termin {
margin-top: 2em;
}
p.headline {
margin-bottom: 0.5em;
}
ul.events {
margin-top: 0.5em;
padding-left: 2em;
}
/**** aside ****/
div.sb-item p {
margin-top: 0;
}
h4.aside {
margin-bottom: 0.5em;
}
ul.aside {
margin-top: 0;
}
/**** footer ****/
footer {
padding: 0 5% 10% 5%;
color: #ffffff;
background-color: rgba(0, 0, 0, 0.85);
}
div#footer {
display: flex;
flex-wrap: wrap;
}
ul.list-footer {
color: inherit;
padding-left: 1em;
}
a.link-footer {
color: #ffffff;
text-decoration: underline 1px dotted #ffffff;
}
/**** go-to-top ****/
div#go-to-top {
position: fixed;
right: 2%;
bottom: 2%;
z-index: 10;
}
img#to-top {
width: 100%;
height: 100%;
padding: 0;
}
/* media query für breitere screens */
/************************************/
@media screen and (min-width: 768px) {
a#open-menu {
display: none;
}
nav#menu {
position: relative;
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
}
nav p {
display: none;
}
nav#menu ul {
display: flex;
}
nav#menu li {
border: none;
}
div.with-aside {
flex-direction: row;
justify-content: space-around;
}
}