mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-01-30 22:57:57 +00:00
Minor refactor to several components
This commit is contained in:
parent
61228b54c0
commit
4d29a0b313
@ -11,7 +11,8 @@
|
||||
|
||||
|
||||
::selection {
|
||||
background: var(--base0F);
|
||||
background: var(--base05);
|
||||
color: var(--base00);
|
||||
}
|
||||
|
||||
body {
|
||||
@ -87,6 +88,7 @@ code, pre {
|
||||
}
|
||||
|
||||
code {
|
||||
background: var(--base01);
|
||||
font-family: var(--mono-family);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
@ -108,8 +110,9 @@ code[class*=language-]::selection,
|
||||
code[class*=language-] ::selection,
|
||||
pre[class*=language-]::selection,
|
||||
pre[class*=language-] ::selection {
|
||||
background: var(--base01);
|
||||
background: var(--base02);
|
||||
font-size: var(--mono-font-size);
|
||||
color: unset;
|
||||
}
|
||||
|
||||
mark {
|
||||
@ -123,6 +126,7 @@ mark {
|
||||
|
||||
hr {
|
||||
border-color: var(--base0C);
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
|
||||
@ -210,8 +214,6 @@ footer {
|
||||
flex-flow: column wrap;
|
||||
justify-content: space-evenly;
|
||||
text-align: center;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
nav[aria-label="Primary navigation"] {
|
||||
nav[aria-label="Site header"] {
|
||||
@include header-link-hover-style;
|
||||
|
||||
a {
|
||||
|
@ -26,13 +26,6 @@ $tablet-breakpoint: 860px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@function decToHex($dec) {
|
||||
$hex: "0123456789ABCDEF";
|
||||
$first: (($dec - $dec % 16)/16)+1;
|
||||
$second: ($dec % 16)+1;
|
||||
@return str-slice($hex, $first, $first) + str-slice($hex, $second, $second)
|
||||
}
|
||||
|
||||
@mixin header-link-hover-style {
|
||||
> *:hover {
|
||||
color: var(--base0C);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<nav aria-label="Primary navigation">
|
||||
<nav aria-label="Site header">
|
||||
<a class="site__title" href="{{ "" | absLangURL }}">{{ $.Site.Title }}</a>
|
||||
<div class="list site__links">
|
||||
{{ with $.Site.Menus.main }}
|
||||
|
Loading…
Reference in New Issue
Block a user