jakubb-hugo/static/css/style.css

323 lines
4.1 KiB
CSS
Raw Normal View History

2024-02-02 11:31:53 +00:00
@import url('./colorschemes/gruvbox.css'); /* Include colorscheme */
2024-01-29 04:53:34 +00:00
2024-02-06 21:02:29 +00:00
/* For cleanup ================================ */
2024-02-01 20:57:48 +00:00
/* Globals */
2024-01-29 04:53:34 +00:00
html, body {
margin: 0;
padding: 0;
}
body{
2024-01-29 04:53:34 +00:00
font-size: 100%;
line-height: 1.5;
background-color: var(--bg);
color: var(--fg);
2024-01-29 04:53:34 +00:00
}
a{
2024-01-29 04:53:34 +00:00
text-decoration: none;
color: var(--acc-1);
2024-01-29 04:53:34 +00:00
}
/* Main Body */
2024-01-29 04:53:34 +00:00
.content {
2024-02-01 20:57:48 +00:00
margin: 5em 5% auto 5%;
2024-01-29 04:53:34 +00:00
}
2024-02-02 20:56:06 +00:00
blockquote {
background-color: var(--alt-bg);
border-left-color: var(--acc-1);
border-left-width: 5px;
border-left-style: solid;
padding: 20px;
2024-02-06 21:02:29 +00:00
margin: 20px 0;
2024-02-02 20:56:06 +00:00
}
blockquote p {
margin: 0;
}
2024-02-01 20:57:48 +00:00
/* Navigation Menu */
.header {
width: 100%;
background-color: var(--alt-bg);
box-shadow: inset 0 -20px 20px -20px var(--shadow);
position: fixed;
top: 0;
2024-02-01 20:57:48 +00:00
}
2024-02-02 11:31:53 +00:00
.hamburger {
display: none;
}
.menu-entries a{
transition: 400ms;
}
2024-02-01 20:57:48 +00:00
.menu-entries a:hover{
background-color: var(--acc-1);
color: var(--alt-bg);
box-shadow: inset 0 -20px 20px -20px var(--shadow);
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;
}
.menu li {
list-style-type: none;
}
2024-02-01 20:57:48 +00:00
.menu-entries {
float: right;
padding: inherit;
2024-01-29 04:53:34 +00:00
}
2024-02-01 20:57:48 +00:00
.menu-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-01 20:57:48 +00:00
/* Footer */
footer {
/* position: fixed; */
2024-01-29 04:53:34 +00:00
2024-02-01 20:57:48 +00:00
width: 100%;
text-align: center;
padding-bottom: 14px;
2024-01-29 04:53:34 +00:00
}
2024-02-01 20:57:48 +00:00
@media screen and (max-width: 755px) {
/* Mobile layout - logo now serves as toggle for rest of menu items */
2024-01-29 04:53:34 +00:00
2024-02-01 20:57:48 +00:00
.logo {
pointer-events: none;
2024-02-05 11:39:47 +00:00
text-align: center;
2024-02-01 20:57:48 +00:00
}
2024-01-29 04:53:34 +00:00
2024-02-01 20:57:48 +00:00
.menu-icon {
cursor: pointer;
}
2024-01-29 04:53:34 +00:00
2024-02-01 20:57:48 +00:00
.menu-entries {
text-align: center;
float: none;
height: 0;
max-height: 0;
transition-property: all;
transition-duration: 400ms;
overflow: hidden;
2024-02-01 20:57:48 +00:00
}
a.logo {
display: block;
transition: 400ms;
2024-01-29 04:53:34 +00:00
}
2024-02-01 20:57:48 +00:00
.menu-btn:checked ~
.menu li .menu-entries,
.menu li .menu-entries a{
display: block;
}
2024-01-29 04:53:34 +00:00
.menu-btn:checked ~
.menu li .menu-entries {
height: auto;
2024-02-05 11:39:47 +00:00
max-height: 900px;
transition-property: all;
transition-duration: 400ms;
}
.menu-btn:checked ~ .menu .logo, .menu-entries a:hover {
2024-02-01 20:57:48 +00:00
background-color: var(--acc-1);
color: var(--alt-bg);
transition: 400ms;
}
2024-02-02 11:31:53 +00:00
.hamburger {
display: block;
float: right;
position: absolute;
top: 0;
right: 0;
margin-top: 12px;
margin-right: 12px;
cursor: pointer;
}
.bar1, .bar2, .bar3 {
width: 35px;
height: 5px;
background-color: var(--acc-1);
margin: 6px 0;
transition: 0.4s;
}
.change .bar1 {
background-color: var(--alt-bg);
transform: translate(0, 11px) rotate(45deg);
2024-02-02 11:31:53 +00:00
}
.change .bar2 {
opacity: 0;
}
.change .bar3 {
transform: translate(0, -11px) rotate(-45deg);
2024-02-02 11:31:53 +00:00
background-color: var(--alt-bg);
}
}
@media screen and (min-width: 755px) and (max-width: 1040px) {
.menu-entries {
position: absolute;
top: 0;
right: 0;
}
2024-02-05 11:39:47 +00:00
.menu li {
display: inline-block;
}
2024-01-29 04:53:34 +00:00
}
@media screen and (min-width: 1040px) {
2024-02-01 20:57:48 +00:00
/* Wide window - links on a left sidebar */
.header {
width: 15%;
height: 100%;
box-shadow: inset -22px 0 20px -20px var(--shadow);
}
2024-02-01 20:57:48 +00:00
.menu a {
display: block;
}
2024-02-01 20:57:48 +00:00
.menu-entries{
float: none;
}
2024-01-29 04:53:34 +00:00
.content {
2024-02-01 20:57:48 +00:00
margin: auto 5% auto 20%;
padding: 1px 16px;
}
2024-01-29 04:53:34 +00:00
2024-02-01 20:57:48 +00:00
.menu-entries a:hover{
box-shadow: inset -22px 0 20px -20px var(--shadow);
}
2024-01-29 04:53:34 +00:00
}
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;
}
.map-button {
color: var(--fg);
background-color: var(--acc-1);
padding: 5px;
border: solid 3px var(--acc-1);
border-radius: 8px;
}
.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;
}
.map img {
display: block;
}
@media screen and (max-width: 755px) {
.map {
display: block;
}
.map-button {
position: absolute;
bottom: 0;
right: 0;
}
.map img {
width: 100%;
max-height: inherit;
}
.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 */
}
.map-txt-grid {
margin-top: 10px;
left: 0;
}
.grid-item:first-child {
grid-column: span 2; /* Span two columns */
}
}