www.kontakt-bamberg.de/assets/style.scss

258 lines
3.3 KiB
SCSS

@import 'breakpoints';
@import 'colors';
@import 'fonts';
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: $color-background;
color: $color-text;
display: flex;
flex-direction: column;
font-family: "Maven Pro", sans-serif;
font-size: 18px;
line-height: 1.5;
margin: 0 auto;
max-width: $large;
min-height: 100vh;
main {
flex-grow: 1;
}
}
header, footer {
padding: 0 1rem;
}
header {
align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 1rem;
a img {
display: block;
}
nav {
font-size: 1.2rem;
}
.header-brand {
align-items: center;
display: flex;
}
.header-logo {
height: 3.2rem;
width: auto;
}
.nav-burger {
margin-right: 0.5rem;
}
.sm-menu {
display: flex;
margin-left: 0.5rem;
a {
margin-left: 0.5rem;
.sm-icon {
height: auto;
transition: opacity 0.25s;
width: 1.5rem;
}
&:hover .sm-icon {
opacity: 0.7;
}
}
}
@media screen and (min-width: $small) {
flex-wrap: nowrap;
nav {
flex-wrap: wrap;
justify-content: right;
}
}
}
main {
padding: 1rem;
& > :last-child {
margin-bottom: 0;
}
& > p > img {
max-width: 100%;
}
}
footer {
margin-bottom: 1rem;
nav {
align-items: end;
@media screen and (min-width: $small) {
align-items: normal;
justify-content: end;
}
}
}
nav {
display: flex;
flex-direction: column;
&.nav-toggleable {
flex-basis: 100%;
max-height: 0;
overflow-y: hidden;
transition: max-height 0.5s;
.nav-toggle:checked ~ & {
max-height: calc(var(--num-elements) * 2em);
}
}
&.pagination {
margin-top: 2.5em;
:first-child {
margin: 0;
}
}
a, span {
line-height: 1.5em;
margin: 0.5em 0 0 0;
}
@media screen and (min-width: $small) {
flex-direction: row;
&.nav-toggleable {
flex-basis: auto;
max-height: max-content;
}
a, span {
margin: 0 0 0 1em;
}
}
}
article {
display: flex;
& > .text {
width: 100%;
@media screen and (min-width: $small) {
width: 40%;
}
}
& > .image {
display: none;
text-align: right;
@media screen and (min-width: $small) {
display: block;
padding-left: 1.5em;
width: 60%;
& > img {
height: auto;
width: 100%;
}
}
}
}
a {
color: $color-link;
text-decoration: none;
&:hover, &.is-active {
text-decoration: underline;
}
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
margin-bottom: 0.5em;
}
p {
margin-bottom: 1em;
}
ol, ul {
margin-bottom: 2em;
padding-left: 2em;
}
hr {
color: $color-text;
margin: 3em 0;
}
.blur-on-hover {
transition: all 500ms;
&:hover {
filter: blur(5px);
transform: scale(120%);
}
}
.nav-burger {
cursor: pointer;
display: flex;
flex-direction: column;
height: 1rem;
justify-content: space-between;
width: 1.2rem;
div {
background: $color-burger;
height: 2px;
transition: background 0.5s, transform 0.5s;
}
.nav-toggle:checked ~ & div {
background: transparent;
&:first-child {
background: $color-burger;
transform: translateY(0.5rem) translateY(-1px) rotate(45deg) scaleX(141%);
}
&:last-child {
background: $color-burger;
transform: translateY(-0.5rem) translateY(1px) rotate(-45deg) scaleX(141%);
}
}
@media screen and (min-width: $small) {
display: none;
}
}
.nav-toggle {
display: none;
}