This repository has been archived on 2023-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
about-brochure/css/main.css

110 lines
3.9 KiB
CSS
Raw Normal View History

2018-06-01 22:35:44 +02:00
/* =============
| Loading fonts
|============ */
@font-face {
font-family: quicksand;
src: local('Quicksand-Regular'), local('Quicksand Regular'),
url(./Quicksand-Regular.ttf) format('truetype');
}
/* =============
| General
|============ */
* { z-index: 1; }
html { margin 0; padding: 0; }
2018-06-02 02:03:38 +02:00
body { margin: 0; background: #FFF; font-size: 1.2em; font-family: quicksand; line-height: 1.5em; text-align: justify; }
2018-06-01 22:35:44 +02:00
a { text-decoration: inherit; color: inherit; }
h1, h2, h3, h4 { padding: .5em 0; color: #646464; }
2018-06-04 01:54:32 +02:00
h1 { margin: 0; padding: 10vh 0; margin-bottom: .5em; color: #FFF; text-shadow: -1px -1px 0 #646464, 1px -1px 0 #646464, -1px 1px 0 #646464, 1px 1px 0 #646464; }
h2 { color: #F00; }
2018-06-01 22:35:44 +02:00
2018-06-04 01:54:32 +02:00
#aboutMuseum-Digital h1 { background: url(../media/Screenshot-Startpage.png) no-repeat center center; background-size: cover; }
2018-06-04 16:35:50 +02:00
#aboutPresseberichte h1 { background: url(../media/TitlePage/06073815564.jpg) no-repeat center center; background-size: cover; }
2018-06-04 01:54:32 +02:00
body > * { padding: 2em 5vw; }
body > main { padding: 0 0 2em 0; }
body > main > * { padding-left: 5vw; padding-right: 5vw; }
2018-06-01 22:35:44 +02:00
a.buttonLike { padding: .8em 1.0em; background: #F00; color: #FFF;
border: #D6D6D6; border-radius: .3em;
box-shadow: 2px 2px 4px #D6D6D6, -2px -2px 4px #D6D6D6;
transition: background .4s, color .4s; }
a.buttonLike:hover { background: #C11; color: #FFF; }
.centerVertically { vertical-align: middle !important; }
2018-06-02 02:03:38 +02:00
div.placeHolder { display: none; }
2018-06-01 22:35:44 +02:00
/* =============
| Structure elements
|============ */
/* =======
| Navigation
|====== */
body > nav { position: sticky; top: 0; left: 0;
display: flex; padding-top: 0; padding-bottom: 0;
2018-06-04 01:54:32 +02:00
background: #333; color: #EEE; border-bottom: #D6D6D6; box-shadow: 2px 2px 2px #333; }
2018-06-01 22:35:44 +02:00
body > nav > * { display: inline-block; flex: 1; padding: .6em .5em; vertical-align: middle; }
nav > a[href="#bottom"] { text-align: right; padding: .4em .5em; }
nav > a[href="#bottom"]:before { content: " \002193 "; display: inline-block; padding: .2em .5em;
background: #EEE; color: #333; border-radius: 100%;
transition: background .4s, color .4s; }
nav > a[href="#bottom"]:hover:before { background: #F00; color: #FFF; }
/* =======
| Sections
|====== */
2018-06-02 02:03:38 +02:00
@media screen and (min-width: 70em) {
section > div > div { display: inline-block; width: 45%; vertical-align: top; }
2018-06-07 23:02:06 +02:00
section > div > div:last-child { padding-left: 9.5%; }
2018-06-02 02:03:38 +02:00
section > div > div:only-child { display: block; width: initial; padding-right: initial; }
}
2018-06-01 22:35:44 +02:00
section > div > div img { display: block; width: 100%; }
2018-06-02 16:57:00 +02:00
#introduction > div > div { display: block; width: initial; padding-right: initial; }
2018-06-01 22:35:44 +02:00
/* =======
| Defined lists (as <ul>)
|====== */
ul.dl { margin: 0; padding: 0; }
2018-06-02 16:57:00 +02:00
ul.dl > li { margin: 0 0 0 1em; padding: 0; list-style: none; }
ul.dl > li:before { content: attr(data-title); display: block; font-weight: bold; margin-left: -1em; }
/* =======
| Footer for options
|====== */
#optionsFooter { display: flex; flex-flow: row wrap; padding: 1em 0; border-top: 1px solid #D6D6D6; }
#optionsFooter > * { display: inline-block; flex: 1; min-width: 40%; max-width: 49%; }
#optionsFooter ul { margin: 0; padding: 0; list-style: none; }
#optionsFooter ul > li { margin: 0; padding: 0; }
#optionsFooter ul > li > a { display: block; margin: 0; padding: .5em;
border-bottom: 1px solid #D6D6D6; transition: background .4s; }
#optionsFooter ul > li > a:hover { background: #EEE; }
#optionsLangs { }
#optionsLangs > li > a > * { vertical-align: middle; }
#optionsLangs > li > a:before { content: " \01F4AC "; display: inline-block; margin-right: .5em; }
2018-06-01 22:35:44 +02:00
/* =============
| Animations
|============ */
@keyframes fade-in {
from { opacity: .4; }
to { opacity: 1; }
}