-
Conrad Zelck authored
Signed-off-by:
Conrad Zelck <git@simpel.cc>
Conrad Zelck authoredSigned-off-by:
Conrad Zelck <git@simpel.cc>
style.css 6.91 KiB
:root {
--default-top-padding: 1.5em;
--default-body-bottom-margin: 2vmin;
--default-min-font-size-px: 12px;
--default-min-font-size: 12;
--default-max-font-size-px: 18px;
--default-max-font-size: 18;
}
/* *****************************************************************************
personal header styling
***************************************************************************** */
html {
/* see: https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/#comment-1769978 - comment by MaxDesign */
font-size:calc(var(--default-min-font-size-px) + (var(--default-max-font-size) - var(--default-min-font-size)) * ((100vw - 360px) / 1560));
font-size: clamp(var(--default-min-font-size-px), calc(var(--default-min-font-size-px) + (var(--default-max-font-size) - var(--default-min-font-size)) * ((100vw - 360px) / 1560)), var(--default-max-font-size-px));
}
body {
height: calc(100vh - 3vmin); /* minus margin-top - margin bottom is 0 */
font-size: inherit;
font-family: helvetica, Arial, sans-serif;
background-color: #555;
color: white;
/* margin-bottom is calculated here to 0
this margin must be set by the lowest elements,
because they should go to the very bottom */
margin: 3vmin 4vmin calc(var(--default-body-bottom-margin) - var(--default-body-bottom-margin)) 4vmin;
}
*:focus {
outline: 2px solid white;
outline-offset: 2px;
}
a {
color: #ffffff;
}
header a {
text-decoration: none;
}
/* kind of disabled link - text-decoration will be none automatically */
a:not([href]) {
color: #AAAAAA;
}
header {
margin-bottom: 1.0em;
}
nav {
display: flex;
align-items: center;
column-gap: 0.7em;
}
h1 {
font-size: 1.5em;
margin: 0;
}
#github {
margin-left: auto;
}