Make light mode prettier
This commit is contained in:
parent
6658952dcf
commit
9d2ecb11fd
2 changed files with 58 additions and 41 deletions
|
|
@ -16,6 +16,8 @@ html {
|
||||||
--c-bg-secondary: #ff9449;
|
--c-bg-secondary: #ff9449;
|
||||||
|
|
||||||
--shadow-opacity: 0.8;
|
--shadow-opacity: 0.8;
|
||||||
|
|
||||||
|
--default-border: 0.5px dotted rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
@ -72,16 +74,6 @@ strong {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
overflow-x: scroll;
|
|
||||||
background-color: var(--c-bg-front);
|
|
||||||
box-shadow: 0 0 3px 2px rgba(0, 0, 0, var(--shadow-opacity));
|
|
||||||
padding: 0 10px 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover, a:visited, a:active, a:link {
|
a:hover, a:visited, a:active, a:link {
|
||||||
color: var(--c-fg-secondary);
|
color: var(--c-fg-secondary);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
@ -92,20 +84,36 @@ a:hover {
|
||||||
color: var(--c-text);
|
color: var(--c-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav > a:link, nav > a:active, nav > a:visited, nav > a:hover {
|
nav {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
background-color: var(--c-bg-front);
|
||||||
|
box-shadow: 0 0 3px 2px rgba(0, 0, 0, var(--shadow-opacity));
|
||||||
|
padding: 0 10px 0 10px;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav > div {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
border-top: var(--default-border);
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:link, nav a:active, nav a:visited, nav a:hover {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
text-align: center;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
padding: 10px 10px 10px 10px;
|
padding: 10px 10px 10px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav > a:hover {
|
nav a:hover {
|
||||||
background: var(--c-bg-primary);
|
background: var(--c-bg-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav > .spacer {
|
|
||||||
flex-grow: 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.breadcrumbs {
|
.breadcrumbs {
|
||||||
max-width: 40em;
|
max-width: 40em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
@ -136,13 +144,6 @@ main {
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 30em) {
|
|
||||||
main {
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main > .intro {
|
main > .intro {
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
}
|
}
|
||||||
|
|
@ -238,7 +239,7 @@ main.cards {
|
||||||
.card > .links {
|
.card > .links {
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
margin-bottom: -30px;
|
margin-bottom: -30px;
|
||||||
border-top: 0.5px dotted rgba(255, 255, 255, 0.3);
|
border-top: var(--default-border);
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
width: calc(100% + 40px);
|
width: calc(100% + 40px);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -254,7 +255,7 @@ main.cards {
|
||||||
|
|
||||||
main > .links {
|
main > .links {
|
||||||
margin: 20px 0px 40px 0px;
|
margin: 20px 0px 40px 0px;
|
||||||
border: 0.5px dotted rgba(255, 255, 255, 0.3);
|
border: var(--default-border);
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
width: calc(100%);
|
width: calc(100%);
|
||||||
|
|
@ -475,6 +476,17 @@ body .s1 { color: var(--c-text); font-weight: 600 } /* Literal.String.Single */
|
||||||
body .ss { color: var(--c-text); font-weight: 600 } /* Literal.String.Symbol */
|
body .ss { color: var(--c-text); font-weight: 600 } /* Literal.String.Symbol */
|
||||||
body .il { color: var(--c-text); font-weight: 600 } /* Literal.Number.Integer.Long */
|
body .il { color: var(--c-text); font-weight: 600 } /* Literal.Number.Integer.Long */
|
||||||
|
|
||||||
|
@media (max-width: 40em) {
|
||||||
|
nav > div {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media print, (prefers-color-scheme: light) {
|
@media print, (prefers-color-scheme: light) {
|
||||||
html {
|
html {
|
||||||
--c-bg-backdrop: hsl(220, 10%, 90%);
|
--c-bg-backdrop: hsl(220, 10%, 90%);
|
||||||
|
|
@ -493,13 +505,15 @@ body .il { color: var(--c-text); font-weight: 600 } /* Literal.Number.Integer.L
|
||||||
--c-bg-secondary: hsl(319, 98%, 52%);
|
--c-bg-secondary: hsl(319, 98%, 52%);
|
||||||
|
|
||||||
--shadow-opacity: 0.2;
|
--shadow-opacity: 0.2;
|
||||||
|
|
||||||
|
--default-border: 0.5px dotted hsla(220, 10%, 30%, 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
body > header > h1 {
|
body > header > h1 {
|
||||||
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
|
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover, nav > a:hover {
|
a:hover, nav a:hover {
|
||||||
color: var(--c-text-inverted);
|
color: var(--c-text-inverted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
<nav>
|
<nav>
|
||||||
{{- $currentPage := . }}
|
<div class="internal">
|
||||||
<!-- todo: put this in a "pages" drop down on mobile -->
|
{{- $currentPage := . }}
|
||||||
{{- range site.Menus.main }}
|
<!-- todo: put this in a "pages" drop down on mobile -->
|
||||||
{{- $menu_item_url := .URL | absURL }}
|
{{- range site.Menus.main }}
|
||||||
{{- $page_url:= $currentPage.Permalink | absURL }}
|
{{- $menu_item_url := .URL | absURL }}
|
||||||
<a href="{{ .URL }}" title="{{ .Title | default .Name }}" {{- if eq $menu_item_url $page_url }} class="active" {{- end }}>
|
{{- $page_url:= $currentPage.Permalink | absURL }}
|
||||||
{{- .Pre }}
|
<a href="{{ .URL }}" title="{{ .Title | default .Name }}" {{- if eq $menu_item_url $page_url }} class="active" {{- end }}>
|
||||||
{{- .Name -}}
|
{{- .Pre }}
|
||||||
{{ .Post -}}
|
{{- .Name -}}
|
||||||
</a>
|
{{ .Post -}}
|
||||||
{{- end }}
|
</a>
|
||||||
<span class="spacer"></span>
|
{{- end }}
|
||||||
{{- range site.Params.profile_links }}
|
</div>
|
||||||
<a href="{{ .url | absURL }}" title="{{ .name }}">{{ .name }}</a>
|
<div class="external">
|
||||||
{{- end }}
|
{{- range site.Params.profile_links }}
|
||||||
|
<a href="{{ .url | absURL }}" title="{{ .name }}">{{ .name }}</a>
|
||||||
|
{{- end }}
|
||||||
|
</span>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue