lynnespace/assets/style.css

240 lines
4.2 KiB
CSS
Raw Normal View History

2021-01-16 09:30:18 +00:00
* {
box-sizing: border-box;
2021-01-08 07:17:56 +00:00
}
body {
2021-10-16 05:38:41 +00:00
font-family: "Noto Sans", sans-serif;
2021-01-08 07:17:56 +00:00
margin: 0;
display: grid;
grid-template-columns: max(325px, 15%) auto;
2021-01-16 09:30:18 +00:00
background: #fafafa;
2021-10-16 05:52:01 +00:00
color: black;
2021-01-08 07:17:56 +00:00
}
2021-01-10 02:59:16 +00:00
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans", sans-serif;
}
2021-01-16 09:30:18 +00:00
main article h1 a,
main article h2 a,
main article h3 a,
main article h4 a,
main article h5 a,
main article h6 a {
2021-01-10 02:59:16 +00:00
color: inherit;
text-decoration: none;
}
h1, h2, h3 {
2021-01-10 02:59:16 +00:00
font-weight: 400;
}
h1 {
2021-01-16 11:04:12 +00:00
font-size: 3em;
text-align: center;
2021-05-02 10:01:14 +00:00
}
main article h1 a {
/* needed for chrome */
2021-05-01 13:14:02 +00:00
/*noinspection CssInvalidPropertyValue*/
2021-01-16 11:04:12 +00:00
text-decoration: underline mediumpurple dotted 5px;
2021-01-10 02:59:16 +00:00
}
2021-01-16 11:04:12 +00:00
2021-01-10 02:59:16 +00:00
h2 {
font-size: 1.6em;
}
2021-01-16 09:30:18 +00:00
main {
box-shadow: 0 0 40px black;
z-index: 2;
}
2021-01-08 07:17:56 +00:00
main article {
max-width: 1800px;
2021-01-16 09:30:18 +00:00
padding: 0 50px 30px;
2021-01-08 07:17:56 +00:00
margin: 0 auto;
2021-01-16 09:30:18 +00:00
background: #fafafa;
2021-01-08 07:17:56 +00:00
min-height: 100%;
overflow: auto;
2021-01-08 09:03:12 +00:00
font-size: 1.1em;
2021-01-08 07:17:56 +00:00
}
main article h2,
main article h3 {
2021-01-10 02:59:16 +00:00
border-left: 5px solid mediumpurple;
padding-left: 5px;
margin-left: -10px;
2021-01-08 07:17:56 +00:00
}
2021-01-16 09:30:18 +00:00
main article a {
2021-01-16 11:04:12 +00:00
color: #60a;
text-decoration-style: dotted;
2021-01-16 09:30:18 +00:00
text-decoration-color: transparent;
transition: 0.2s all;
}
main article a:hover {
text-decoration-color: unset;
}
p {
line-height: 1.5em;
}
2021-01-08 07:17:56 +00:00
header {
/* sidebar */
2021-01-16 09:30:18 +00:00
position: sticky;
top: 0;
background: #333;
height: 100vh;
2021-05-02 08:39:49 +00:00
transition: 0.2s all;
}
2021-10-16 05:38:41 +00:00
header::after { /* the background image behind the sidebar */
/* will use webp with jpeg fallback when
https://developer.mozilla.org/en-US/docs/Web/CSS/image()#browser_compatibility becomes a thing, until then, it's jpeg
only for now :c */
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
2021-05-01 13:14:02 +00:00
/*noinspection CssInvalidFunction*/
background: linear-gradient(to bottom, #333, #333 10%, 70%, transparent),
2021-10-16 06:05:56 +00:00
/* image("/assets/img/background.webp", "/assets/img/background.jpeg") no-repeat bottom center/cover, */ url("/assets/img/background.jpeg") no-repeat bottom center/cover,
#333;
2021-10-16 05:38:41 +00:00
filter: blur(3px) saturate(75%);
content: "";
2021-01-08 07:17:56 +00:00
}
2021-10-16 05:38:41 +00:00
#hamburger { /* hamburger menu button, should only display on mobile devices. see @media section at bottom of file */
2021-05-02 08:39:49 +00:00
display: none;
position: fixed;
top: 10px;
left: 10px;
padding: 10px;
background: #fafafa;
color: mediumpurple;
border-radius: 10px;
height: 27px;
width: 27px;
z-index: 3;
box-sizing: content-box;
}
#hb-icon {
height: 100%;
width: 100%;
2021-10-16 05:38:41 +00:00
background: linear-gradient(to bottom, mediumpurple, mediumpurple 10%, #fafafa 10%, #fafafa 45%, mediumpurple 45%, mediumpurple 55%, #fafafa 55%, #fafafa 90%, mediumpurple 90%, mediumpurple 100%);
2021-05-02 08:39:49 +00:00
}
2021-01-08 07:17:56 +00:00
nav a {
color: white;
2021-10-16 05:38:41 +00:00
padding: 10px 40px;
2021-01-08 07:17:56 +00:00
display: block;
width: 100%;
text-align: center;
text-decoration: none;
font-size: 1.5em;
transition: 0.2s all;
2021-01-16 09:30:18 +00:00
position: relative;
}
nav a::before {
width: 5px;
top: 0;
bottom: 0;
left: -5px;
background: mediumpurple;
content: "";
display: block;
position: absolute;
transition: 0.2s all;
2021-01-08 07:17:56 +00:00
}
2021-10-16 05:38:41 +00:00
nav a:hover {
background: #00000044;
2021-01-08 07:17:56 +00:00
}
2021-10-16 05:38:41 +00:00
nav a.current:not(:hover) {
background: #9370db44;
}
2021-05-01 13:14:02 +00:00
nav a:hover::before,
nav a.current::before {
2021-01-16 09:30:18 +00:00
left: 0;
}
2021-01-08 07:17:56 +00:00
2021-01-08 09:03:12 +00:00
#logo {
2021-01-08 07:17:56 +00:00
object-fit: contain;
display: block;
width: min(100%, 150px);
height: auto;
margin: 30px auto 50px auto;
2021-01-10 02:59:16 +00:00
}
2021-01-16 11:04:12 +00:00
2021-10-15 14:01:20 +00:00
#bune-img {
2021-01-16 11:04:12 +00:00
height: max(200px, 10vh);
display: block;
margin: 50px auto 0;
2021-05-01 13:14:02 +00:00
}
.project {
border-top: thin grey solid;
}
.project:last-of-type {
border-bottom: thin grey solid;
}
.project p {
margin-bottom: 0.5em;
}
.project-footer {
2021-05-02 08:16:49 +00:00
font-size: 0.85em;
padding-bottom: 1em;
2021-05-01 13:14:02 +00:00
}
.project-footer a {
font-style: italic;
2021-05-02 08:39:49 +00:00
}
2021-10-16 05:52:01 +00:00
/* dark theme */
@media (prefers-color-scheme: dark) {
body, main article {
2021-10-16 06:05:56 +00:00
background: #282a36;
2021-10-16 05:52:01 +00:00
color: white;
}
main article a {
color: #a380eb;
}
header::after {
filter: blur(3px) saturate(75%) brightness(80%);
}
}
2021-10-16 05:38:41 +00:00
/* smaller screen tweaks */
2021-10-16 06:05:56 +00:00
@media only screen and (max-device-width: 840px) {
2021-10-16 05:38:41 +00:00
body {
grid-template-columns: max(225px, 15%) auto;
}
}
2021-05-02 08:39:49 +00:00
/* mobile tweaks */
2021-10-16 06:05:56 +00:00
@media only screen and (max-device-width: 480px) {
2021-05-02 08:39:49 +00:00
main {
width: 100vw;
box-shadow: none;
}
main article {
padding: 0 20px 30px;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.5em;
}
header {
position: fixed;
left: -100vw;
width: 100vw;
overflow: hidden;
2021-05-02 08:39:49 +00:00
z-index: 3;
}
header.active {
left: 0;
}
#hamburger {
display: inline-block;
touch-action: manipulation;
}
2021-10-15 14:01:20 +00:00
}