www.franconian.net/assets/style.scss

259 lines
4.5 KiB
SCSS
Raw Normal View History

2020-11-24 21:44:16 +01:00
@import 'breakpoints';
2020-11-23 02:56:53 +01:00
@import 'colors';
2020-11-24 21:44:16 +01:00
@import 'fonts';
2020-11-24 19:31:03 +01:00
@import 'mixins';
2020-11-23 02:06:40 +01:00
2020-12-17 20:33:07 +01:00
@keyframes cycle-link-background {
0% {
background-image: linear-gradient(
to right,
$highlight-3 0%, $highlight-3 10%,
$highlight-1 10%, $highlight-1 20%,
$highlight-2 20%, $highlight-2 30%,
$highlight-3 30%, $highlight-3 40%,
$highlight-2 40%, $highlight-2 50%,
$highlight-3 50%, $highlight-3 60%,
$highlight-1 60%, $highlight-1 70%,
$highlight-3 70%, $highlight-3 80%,
$highlight-1 80%, $highlight-1 90%,
$highlight-2 90%,
);
}
25% {
background-image: linear-gradient(
to right,
$highlight-2 0%, $highlight-2 10%,
$highlight-3 10%, $highlight-3 20%,
$highlight-1 20%, $highlight-1 30%,
$highlight-2 30%, $highlight-2 40%,
$highlight-3 40%, $highlight-3 50%,
$highlight-1 50%, $highlight-1 60%,
$highlight-2 60%, $highlight-2 70%,
$highlight-1 70%, $highlight-1 80%,
$highlight-3 80%, $highlight-3 90%,
$highlight-1 90%
);
}
50% {
background-image: linear-gradient(
to right,
$highlight-3 0%, $highlight-3 10%,
$highlight-2 10%, $highlight-2 20%,
$highlight-3 20%, $highlight-3 30%,
$highlight-1 30%, $highlight-1 40%,
$highlight-2 40%, $highlight-2 50%,
$highlight-3 50%, $highlight-3 60%,
$highlight-1 60%, $highlight-1 70%,
$highlight-2 70%, $highlight-2 80%,
$highlight-1 80%, $highlight-1 90%,
$highlight-3 90%
);
}
75% {
background-image: linear-gradient(
to right,
$highlight-1 0%, $highlight-1 10%,
$highlight-3 10%, $highlight-3 20%,
$highlight-2 20%, $highlight-2 30%,
$highlight-1 30%, $highlight-1 40%,
$highlight-3 40%, $highlight-3 50%,
$highlight-1 50%, $highlight-1 60%,
$highlight-2 60%, $highlight-2 70%,
$highlight-1 70%, $highlight-1 80%,
$highlight-2 80%, $highlight-2 90%,
$highlight-3 90%
);
}
}
2020-11-15 00:32:58 +01:00
* {
2020-11-23 02:06:40 +01:00
font-family: Montserrat, sans-serif;
2020-11-23 02:56:53 +01:00
color: $text-color;
2020-11-15 00:32:58 +01:00
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
2020-11-23 02:56:53 +01:00
background: $background;
2020-11-24 17:58:00 +01:00
display: flex;
flex-direction: column;
min-height: 100vh;
2020-11-23 02:56:53 +01:00
}
header {
}
main {
2020-11-24 19:31:03 +01:00
width: 100%;
2020-11-24 21:44:16 +01:00
max-width: $large;
margin: 0 auto;
2020-11-24 19:31:03 +01:00
flex-grow: 1;
2020-11-15 00:32:58 +01:00
}
2020-11-24 17:58:00 +01:00
footer {
border-top: 1px solid #666;
font-size: 0.9em;
color: $text-darker;
width: 100%;
max-width: $large;
margin: 0 auto;
2020-11-24 17:58:00 +01:00
padding: 0.5em;
display: flex;
align-items: center;
flex-direction: column;
@media screen and (min-width: $small) {
flex-direction: row;
2020-11-24 22:03:13 +01:00
& > :first-child {
margin-left: auto;
}
}
2020-11-24 17:58:00 +01:00
}
2020-11-26 19:01:47 +01:00
h1, h2, h3, h4, h5, h6, p, ul {
margin-top: 0.5em;
padding: 0 0.5rem;
&:last-child {
margin-bottom: 0.5em;
}
}
2020-11-23 02:06:40 +01:00
h1, h2, h3, h4, h5, h6 {
2020-11-24 19:31:03 +01:00
@include heading;
2020-11-23 02:56:53 +01:00
}
h1 {
border-bottom: 2px $text-color solid;
}
2020-12-17 20:33:07 +01:00
main {
a {
text-decoration: none;
color: $highlight-1;
text-shadow: -1px 1px 0 $background, 0 1px 0 $background, 1px 1px 0 $background;
background: repeat-x left bottom / 10em 0.15em;
background-image: linear-gradient(
to right,
$highlight-3 0%, $highlight-3 10%,
$highlight-1 10%, $highlight-1 20%,
$highlight-2 20%, $highlight-2 30%,
$highlight-3 30%, $highlight-3 40%,
$highlight-2 40%, $highlight-2 50%,
$highlight-3 50%, $highlight-3 60%,
$highlight-1 60%, $highlight-1 70%,
$highlight-3 70%, $highlight-3 80%,
$highlight-1 80%, $highlight-1 90%,
$highlight-2 90%, $highlight-2 100%
);
&:hover, &:focus {
animation: cycle-link-background 2s steps(4) infinite 0ms;
}
}
}
2020-11-23 18:56:53 +01:00
figure {
margin: 1rem 0;
2020-11-24 01:09:31 +01:00
2020-12-01 23:07:04 +01:00
img, video {
2020-11-23 19:20:05 +01:00
max-width: 100%;
2020-11-23 18:56:53 +01:00
display: block;
margin: 0 auto;
&.invert {
filter: invert(100%);
}
&.fill {
background: $fill-color;
padding: 0.5em;
}
2020-11-23 18:56:53 +01:00
}
figcaption {
display: none;
}
}
2020-11-26 19:01:47 +01:00
ul {
padding-left: 1.5em;
}
2020-12-01 17:55:09 +01:00
iframe {
border: none;
width: 100%;
height: 100vh;
2020-12-01 17:55:09 +01:00
display: block;
margin: 1rem 0;
&.aspect-178 {
height: 56.25vw;
max-height: $large * 0.5625;
}
2020-12-01 17:55:09 +01:00
}
2020-11-23 02:56:53 +01:00
.nav {
display: flex;
flex-flow: column wrap;
2020-11-23 02:56:53 +01:00
justify-content: space-between;
2020-11-24 21:44:16 +01:00
&.nav-main {
max-width: $large;
margin: 0 auto;
padding: 0.5em;
2020-11-24 13:09:45 +01:00
}
hr {
margin: 0.5em 40%;
2020-11-23 02:56:53 +01:00
}
.nav-logo {
2020-11-24 19:31:03 +01:00
@include heading;
2020-11-24 21:44:16 +01:00
text-decoration: none;
2020-11-24 19:31:03 +01:00
2020-11-23 02:56:53 +01:00
margin: 0 auto;
img {
2020-11-24 19:31:03 +01:00
width: 48px;
2020-11-24 18:13:42 +01:00
display: inline-block;
2020-11-24 19:31:03 +01:00
margin-right: 1em;
2020-11-24 18:13:42 +01:00
vertical-align: middle;
2020-11-23 02:56:53 +01:00
}
2020-11-24 21:44:16 +01:00
@media screen and (min-width: $small) {
margin-left: 0;
}
2020-11-23 02:56:53 +01:00
}
.nav-link {
align-self: center;
padding: 0.5em;
&.nav-link-active {
2020-12-17 20:33:07 +01:00
color: $highlight-1;
2020-11-23 02:56:53 +01:00
}
}
2020-11-24 21:44:16 +01:00
@media screen and (min-width: $small) {
flex-direction: row;
hr {
margin: 0 0.5em;
align-self: center;
}
}
2020-11-23 02:06:40 +01:00
}
2020-11-28 00:57:00 +01:00
.date {
font-style: italic;
}