website/assets/sass/general.scss

260 lines
4.4 KiB
SCSS

@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:wght@400;700&family=Roboto:wght@300;400;500&display=swap');
.serif-font {
font-family: 'Bona Nova', serif;
}
body {
// font-family: 'Trebuchet MS', Tahoma,sans-serif;
// font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
// font-family: "Open Sans","Segoe UI",HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: 'Roboto', sans-serif;
font-weight: 400;
margin: 0;
font-size: 17px;
line-height: 1.6;
}
* {
box-sizing: border-box;
}
h1, h2, h3, .title {
font-family: 'Bona Nova', serif;
}
h1 {
font-size: 3rem;
color: $secondary;
margin-top: 3rem;
margin-bottom: 1rem;
}
h2 {
font-size: 1.75rem;
color: $secondary;
}
a {
color: darken($accent, 6%);
}
a:hover {
opacity: 0.8;
}
.w-100 {
width: 100px;
}
.w-200 {
width: 200px;
}
.h-100 {
height: 100%;
}
.mr-1 {
margin-right: 1rem;
}
img {
max-width: 100%;
object-fit: contain;
}
.grid {
display: grid;
}
.grid-2 {
grid-template-columns: 1fr 1fr;
}
.wikipedia-btn {
margin-top: .5rem;
display: inline-flex;
justify-content: flex-start;
flex-direction: row;
align-items: center;
max-height: 10rem;
padding: 1.5rem;
border: 1px solid rgba(0, 0, 0, 0.1);
// background: linear-gradient(to right, rgb(17, 17, 17), rgb(255, 255, 255));
background: rgba(255, 255, 255, 1);
color: black;
border-radius: 5px;
box-shadow: 0 0 .3rem rgba(0, 0, 0, 0.5);
.btn__icon {
width: 4rem;
margin-right: 2rem;
}
}
.wikipedia-icon {
aspect-ratio: 1;
}
.btn__icon {
display: flex;
justify-content: center;
align-items: center;
}
.icon_inline {
width: 1rem;
height: 1rem;
}
.double-figures {
display: grid;
grid-template-columns: 1fr 1fr;
figure {
margin: 1rem;
margin-bottom: 2rem;
figcaption {
p { margin: 0;}
}
}
}
@media (max-width: $md-breakpoint) {
.double-figures {
grid-template-columns: 1fr;
}
}
.fig-img {
figcaption {
font-size: .9rem;
color: $hidden;
}
}
.highlighted {
font-weight: bold;
}
.geocaching-instructions {
.download-links {
img {
width: 100px;
}
}
}
.end-action-container {
display: flex;
justify-content: flex-end;
padding-bottom: 1.5rem;
padding-top: 1rem;
}
figure {
display: flex;
justify-content: center;
flex-direction: column;
}
.layout-two-spaced {
display: flex;
justify-content: space-between;
padding: 1.5rem 0;
}
@media (max-width: $md-breakpoint) {
.layout-two-spaced {
display: block;
}
}
.icon-twitter {
fill: lighten(#0C72B7, 20%) !important;
}
.icon-mastodon {
fill: lighten(#5C4CE2, 20%) !important;
}
.icon-youtube {
fill: lighten(#FF1A1A, 15%) !important;
}
.icon-facebook {
fill: lighten(#0866FF, 20%) !important;
}
.content-with-side-menu {
// display: grid;
// grid-template-columns: 1fr 1fr 1fr 1fr;
// margin: 0 auto;
// width: 85%;
// display: grid;
// grid-template-columns: 20rem 1fr;
// column-gap: 3rem;
position: relative;
.side-menu__container {
position: sticky;
top: 7rem;
left: 5rem;
width: 25rem;
height: 0;
}
.side-menu {
}
}
.sticky-nav {
position: sticky;
top: 7rem;
background: white;
border: 1px solid $background-secondary;
ul {
display: flex;
justify-content: space-between;
align-items: stretch;
list-style-type: none;
padding: 0;
margin: 0;
height: 100%;
li {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border: 1px solid $background-secondary;
display: flex;
align-items: center;
a {
color: black;
text-decoration: none;
width: 100%;
height: 100%;
padding: .5rem 1rem;
transition: 0.2s all;
}
a:hover {
background-color: rgba(0, 0, 0, 0.2);
}
}
}
}
@media (max-width: $md-breakpoint) {
.sticky-nav {
ul {
flex-direction: column;
}
}
}