Skip to content

Commit

Permalink
Add the sky svg shape
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianbote committed Apr 8, 2021
1 parent a4228d3 commit aef9d0a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
10 changes: 10 additions & 0 deletions docs/public/assets/sky.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions docs/public/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@media (prefers-color-scheme: dark) {
:root {
--color-text: #ebf4f1;
--color-bg: #272b34;
--color-bg: #0b0e12;
--color-header-bg: rgba(37, 41, 49, 0.95);
--color-header-shadow: #220f2d;
--color-border: #525252;
Expand Down Expand Up @@ -115,9 +115,13 @@ body {

body {
font: 100%/1.5 system-ui, helvetica, sans-serif;
background: var(--color-bg);
background-color: var(--color-bg);
color: var(--color-text);
transition: background 0.3s;
transition: background-color 0.3s;
background-image: url('/assets/sky.svg');
background-position: top center;
background-repeat: repeat-x;
background-size: auto 40em;
}

/** Wraps the content */
Expand Down Expand Up @@ -339,7 +343,7 @@ h5:hover .anchor {
height: var(--header-height);
}
.header {
background: var(--color-bg);
background: transparent;
position: fixed;
top: 0;
left: 0;
Expand All @@ -352,7 +356,7 @@ h5:hover .anchor {
padding: 0 1rem;

/* top glow */
box-shadow: inset 0 4px 0 #49b9f5, inset 0 -1px 0 var(--color-header-shadow);
/* box-shadow: inset 0 4px 0 #49b9f5, inset 0 -1px 0 var(--color-header-shadow); */
/* make items appear centered visually, glow messes with preception */
padding-top: 0.25rem;
}
Expand Down

0 comments on commit aef9d0a

Please sign in to comment.