jakubb-hugo/static/css/style.css

648 lines
10 KiB
CSS
Raw Normal View History

/* Include */
2024-02-13 04:38:32 +00:00
@import url('./colorschemes/colors.css'); /* Include colorscheme */
2024-01-29 04:53:34 +00:00
2024-02-06 21:02:29 +00:00
/* Global options */
2024-01-29 04:53:34 +00:00
html, body {
margin: 0;
padding: 0;
}
body{
2024-02-20 19:26:28 +00:00
/* font-size: 100%; */
2024-01-29 04:53:34 +00:00
line-height: 1.5;
2024-03-06 20:57:33 +00:00
background-color: var(--body-bg);
color: var(--body-fg);
display: flex;
flex-direction: column;
min-height: 100vh;
2024-01-29 04:53:34 +00:00
}
a{
2024-01-29 04:53:34 +00:00
text-decoration: none;
2024-03-06 20:57:33 +00:00
color: var(--link-fg);
2024-01-29 04:53:34 +00:00
}
/* Main Body */
.content {
margin: 5em 5% auto 5%;
flex: 1;
}
footer {
2024-02-09 05:28:36 +00:00
width: calc(100% - 40px);
text-align: center;
padding: 20px;
2024-01-29 04:53:34 +00:00
}
2024-02-02 20:56:06 +00:00
2024-02-08 11:08:24 +00:00
footer.fixed {
margin: 0;
position: fixed;
bottom: 0;
}
2024-02-02 20:56:06 +00:00
/* Header and Navigation Menu */
2024-02-01 20:57:48 +00:00
.header {
width: 100%;
2024-03-06 20:57:33 +00:00
background-color: var(--header-bg);
box-shadow: inset 0 -20px 20px -20px var(--header-shadow);
2024-02-01 20:57:48 +00:00
position: fixed;
top: 0;
z-index: 100;
2024-02-02 11:31:53 +00:00
}
.menu-entries a{
transition: 400ms;
}
2024-02-01 20:57:48 +00:00
.menu-entries a:hover{
2024-03-06 20:57:33 +00:00
background-color: var(--header-bg-hov);
color: var(--header-fg-hov);
box-shadow: inset 0 -20px 20px -20px var(--header-shadow-hov);
2024-01-29 04:53:34 +00:00
}
2024-02-01 20:57:48 +00:00
.menu {
2024-01-29 04:53:34 +00:00
margin: 0;
padding: 0;
}
2024-02-11 20:21:08 +00:00
.menu a {
display: inline-block;
}
2024-02-01 20:57:48 +00:00
.menu-entries {
float: right;
padding: inherit;
position: absolute;
top: 0;
right: 0;
2024-01-29 04:53:34 +00:00
}
2024-02-11 20:21:08 +00:00
.menu-btn, .lang-btn {
2024-01-29 04:53:34 +00:00
display: none;
}
2024-02-01 20:57:48 +00:00
.menu a {
display: inline-block;
padding: 20px;
}
2024-01-29 04:53:34 +00:00
2024-02-09 05:28:36 +00:00
a.home-link { display: none; }
2024-02-01 20:57:48 +00:00
/* Mobile layout - logo now serves as toggle for rest of menu items */
@media screen and (max-width: 755px) {
2024-01-29 04:53:34 +00:00
/* disable clicking and clickable cursor indication */
.logo {
pointer-events: none;
text-align: center;
}
2024-01-29 04:53:34 +00:00
.menu-entries {
text-align: center;
float: none;
position: inherit;
2024-01-29 04:53:34 +00:00
/* Hide Entries until toggled */
height: 0;
max-height: 0;
overflow: hidden;
2024-01-29 04:53:34 +00:00
/* Slide out Animation */
transition: 400ms;
transition-property: all;
}
2024-01-29 04:53:34 +00:00
2024-02-11 20:21:08 +00:00
.menu-btn:checked ~ .menu .menu-entries {
/* Reveal Entries */
height: auto;
2024-02-17 02:43:03 +00:00
max-height: 750px; /* May Need to be change manually for nav lists */
overflow: scroll;
}
.menu-btn:checked ~ .menu .logo, .menu-entries a:hover {
/* BG Color on logo an hover effect */
2024-03-06 20:57:33 +00:00
background-color: var(--header-bg-hov);
color: var(--header-fg-hov);
}
2024-02-02 11:31:53 +00:00
.menu li, .menu-entries a{ display: block; }
/* TODO Make sure we can combine these 2 blocks */
2024-02-02 11:31:53 +00:00
a.logo { display: block; transition: 400ms; }
2024-02-02 11:31:53 +00:00
/* Hamburger Menu */
.hamburger {
display: block;
float: right;
position: absolute;
top: 0;
right: 0;
margin-top: 12px;
margin-right: 12px;
cursor: pointer;
}
2024-02-05 11:39:47 +00:00
.bar1, .bar2, .bar3 {
width: 35px;
height: 5px;
2024-03-06 20:57:33 +00:00
background-color: var(--hamburger-fg);
margin: 6px 0;
transition: 0.4s;
2024-02-05 11:39:47 +00:00
}
2024-01-29 04:53:34 +00:00
.change .bar1 {
2024-03-06 20:57:33 +00:00
background-color: var(--hamburger-fg-checked);
transform: translate(0, 11px) rotate(45deg);
}
.change .bar2 { opacity: 0; }
.change .bar3 {
transform: translate(0, -11px) rotate(-45deg);
2024-03-06 20:57:33 +00:00
background-color: var(--hamburger-fg-checked);
}
}
/* Wide window - links on the left in a sidebar */
2024-01-29 04:53:34 +00:00
@media screen and (min-width: 1040px) {
2024-02-01 20:57:48 +00:00
.header {
width: 15%;
height: 100%;
2024-03-06 20:57:33 +00:00
box-shadow: inset -22px 0 20px -20px var(--header-shadow);
}
2024-02-01 20:57:48 +00:00
.menu-entries{
float: none;
position: inherit;
}
2024-01-29 04:53:34 +00:00
2024-02-11 20:21:08 +00:00
.menu a, .menu a { display: block; }
2024-02-09 05:28:36 +00:00
a.home-link { display: none; }
.content {
margin-left: calc(15%);
margin-right: 0;
margin-top: auto;
padding: 20px;
}
2024-01-29 04:53:34 +00:00
2024-02-01 20:57:48 +00:00
.menu-entries a:hover{
2024-03-06 20:57:33 +00:00
box-shadow: inset -22px 0 20px -20px var(--header-shadow-hov);
2024-02-01 20:57:48 +00:00
}
2024-02-09 05:28:36 +00:00
2024-02-11 20:21:08 +00:00
footer {
width: calc(85% - 40px);
margin-left: 15%;
2024-03-02 03:53:26 +00:00
padding-top: 0;
2024-02-11 20:21:08 +00:00
}
2024-02-09 05:28:36 +00:00
footer.fixed { left: 15%; }
2024-01-29 04:53:34 +00:00
}
2024-02-02 11:31:53 +00:00
/* Table Styles */
table { width: 100%; }
th, td, table {
2024-03-06 20:57:33 +00:00
border: 1px solid var(--table-border);
border-collapse: collapse;
padding: 6px 13px;
}
2024-03-06 20:57:33 +00:00
table thead tr { background-color: var(--table-bg); }
2024-03-06 20:57:33 +00:00
table tr { background-color: var(--table-bg-alt); }
2024-03-06 20:57:33 +00:00
table tr:nth-child(2n) { background-color: var(--table-bg); }
/* Markdown Blockquote styles */
blockquote {
2024-03-06 20:57:33 +00:00
border-left-color: var(--blockquote-border);
border-left-width: 5px;
border-left-style: solid;
2024-03-02 03:53:26 +00:00
margin: 20px 0;
padding: 20px 0 20px 20px;
}
blockquote blockquote { margin-left: 20px }
/* Maps Shortcode */
blockquote.location {
2024-03-06 20:57:33 +00:00
background-color: var(--maps-bg);
border-left-color: var(--maps-border);
padding: 20px;
}
2024-03-02 03:53:26 +00:00
blockquote p { margin: 0; }
blockquote.location p { padding: inherit; }
2024-03-02 03:53:26 +00:00
.map-txt-grid .child-element a.button { margin: 0; }
/* =========================================== Still Needs cleaning */
/* Maps shortcode styling */
/* TODO rename most grid related elements for clarity */
2024-02-02 11:31:53 +00:00
2024-02-06 21:02:29 +00:00
.grid-item {
margin: 0;
position: relative;
}
.grid-item p {
margin: 0;
}
2024-03-02 02:34:32 +00:00
.button {
2024-03-06 20:57:33 +00:00
color: var(--button-fg);
background-color: var(--button-bg);
2024-02-06 21:02:29 +00:00
padding: 5px;
2024-03-06 20:57:33 +00:00
border: solid 3px var(--button-bg);
2024-02-06 21:02:29 +00:00
border-radius: 8px;
2024-03-02 03:53:26 +00:00
margin-top: 10px;
margin-bottom: 10px;
display: inline-block;
2024-02-06 21:02:29 +00:00
}
.map {
display: flex;
}
.map img {
width: 350px;
max-height: 350px;
}
.map-txt-grid {
display: grid;
grid-template-rows: auto 1fr auto;
grid-template-columns: 1fr;
grid-gap: 10px;
position: relative;
left: 15px;
z-index: 1;
}
.map img {
display: block;
}
.map-txt-grid {
display: grid;
grid-template-rows: auto 1fr auto;
grid-template-columns: 1fr;
grid-gap: 10px;
position: relative;
left: 15px;
z-index: 1;
2024-02-06 21:02:29 +00:00
}
.map img {
display: block;
}
@media screen and (max-width: 755px) {
.map {
display: block;
}
2024-03-02 02:34:32 +00:00
.button {
2024-02-06 21:02:29 +00:00
position: absolute;
bottom: 0;
right: 0;
}
.map img {
width: 100%;
max-height: inherit;
}
2024-02-06 21:02:29 +00:00
.map-txt-grid {
display: grid;
grid-template-rows: auto auto; /* Two rows, first row adjusts to content, second row adjusts to content */
grid-template-columns: 1fr 1fr; /* Two columns for the entire grid */
}
2024-02-06 21:02:29 +00:00
.map-txt-grid {
margin-top: 10px;
left: 0;
}
2024-02-06 21:02:29 +00:00
.grid-item:first-child {
grid-column: span 2; /* Span two columns */
}
}
2024-02-11 20:21:08 +00:00
/* TODO put in a clean spot */
.lang-switch {
display: inline-block;
background-color: var(--lang-btn-bg);
text-align: center;
width: 120px;
}
.lang-switch a {
width: 100%;
padding-left: 0;
padding-right: 0;
}
.lang-switch a:hover {
2024-03-06 20:57:33 +00:00
background-color: var(--langs-bg-hov);
2024-02-11 20:21:08 +00:00
}
/* lang-switch content (hidden by default) */
.translation-list {
display: block;
position: absolute;
background-color: var(--langs-bg);
width: 120px;
top: 64px;
right: 0;
overflow: hidden;
2024-02-17 02:44:20 +00:00
height: 0;
max-height: 0;
transition-property: all;
transition: 400ms;
2024-02-11 20:21:08 +00:00
}
/* Links inside the lang-switch */
.translation-list a {
float: none;
display: block;
}
/* Add a grey background color to lang-switch links on hover */
/* Show the lang-switch menu on hover */
.lang-btn:checked ~ .translation-list {
height: auto;
2024-02-17 02:43:03 +00:00
max-height: 100px;
2024-02-11 20:21:08 +00:00
}
2024-03-06 20:57:33 +00:00
.lang-btn:checked ~ .lang-switch {
background-color: var(--langs-bg-hov);
}
2024-02-11 20:21:08 +00:00
@media screen and (min-width: 1040px) {
.lang-switch {
width: 100%;
text-align: left;
}
.lang-switch a {
padding: 20px;
width: auto;
}
.translation-list {
position: static;
width: auto;
}
}
@media screen and (max-width: 755px) {
.lang-switch {
width: 100%;
display: block;
}
.lang-switch a {
padding: 20px;
width: auto;
}
.translation-list {
position: static;
width: auto;
}
2024-02-27 04:55:51 +00:00
}
2024-02-28 01:44:58 +00:00
/* Calendar TODO Mix in for clean stylesheet */
.calendar {
width: 100%;
max-width: 1000px;
margin: 20px auto;
padding: 0;
background-color: var(--cal-bg);
color: var(--cal-fg);
}
a.month {
display: block;
width: 100%;
padding: 15px 0;
text-align: center;
background-color: var(--cal-month-bg);
color: var(--cal-month-fg);
pointer-events: none;
}
.days {
width: calc(100% - 10 px) ;
padding: 5px;
margin: auto;
display: flex;
flex-wrap: wrap;
}
.weekdays {
display: block;
width: 100%;
margin: 0;
padding: 0;
pointer-events: none;
}
.weekdays p {
display: inline-block;
width: calc(14.28%);
background-color: var(--cal-weekdays-bg);
color: var(--cal-weekdays-fg);
margin: 0;
padding: 0;
text-align: center;
/* border: 0px solid var(--bg); */
/* border-collapse: collapse; */
}
.pad-day, .day {
width: calc(14.28% - 3px - 10px);
padding: 0 5px;
margin: 1.5px;
aspect-ratio: 1;
}
.day {
background-color: var(--cal-day-empty-bg);
color: var(--cal-day-empty-fg);
transition: 400ms;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.day:has(>.event) {
display: block;
color: var(--cal-day-busy-fg);
background-color: var(--cal-day-busy-bg);
}
.day:has(>.event):hover {
transform: scale(1.2);
background-color: var(--cal-day-hover-bg);
color: var(--cal-day-hover-fg);
}
.day-num {
font-size: 8vh;
pointer-events: none;
}
.day:has(>.event) .day-num {
font-size: 4vh;
}
.event, .event a {
font-size: 1.5vh;
color: var(--cal-event-fg);
background-color: var(--cal-event-bg);
}
.mobile-date { display: none;}
/* mobile layout */
@media screen and (max-width: 755px) {
.day, .pad-day, .weekdays, a.month { display: none; }
.days {
padding: 0;
text-align: left;
}
.calendar{
background-color: inherit;
}
.day:has(>.event) {
display: block;
width: 100%;
aspect-ratio: auto;
text-align: left;
border-left-width: 5px;
border-left-style: solid;
margin-top: 10px;
background-color: var(--alt-bg);
border-left-color: var(--acc-1);
padding: 20px;
color: var(--alt-fg);
}
.day:has(>.event):hover {
background-color: var(--alt-bg);
transform: none;
color: var(--alt-fg);
}
.day-num { display: none; }
.mobile-date {
display: inline-block;
text-align: left;
font-size: 3vh;
width: auto;
}
.event {
float: right;
height: 100%;
display:flex;justify-content:flex-end;align-items:center;
}
.event, .event a {
background: none;
}
.event a {
color: var(--acc-1);
font-size: 2vh;
}
}
2024-03-02 01:50:04 +00:00
/* pics stuff */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 8px;
width: 100%;
}
.gallery-item {
flex-grow: 1;
flex: 1 1 auto;
height: 25vh;
}
2024-03-02 03:53:26 +00:00
.gallery-item img {
object-fit: cover;
width: 100%;
height: 100%;
transition: 140ms;
border-radius: 8px;
}
.gallery-item img:hover {
transform: scale(1.2);
transition: 400ms;
}
2024-03-02 01:50:04 +00:00
@media screen and (max-width: 755px) {
.gallery-item {
width: 100%;
height: auto;
}
2024-03-02 03:53:26 +00:00
.gallery-item img:hover {
transform: none;
}
2024-03-02 01:50:04 +00:00
}