mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-24 12:23:00 +00:00
Align spacings and colors in titles and buttons
This commit is contained in:
parent
e4c062890b
commit
7c78a39c53
@ -16,7 +16,6 @@ $body-font-weight: normal !default;
|
|||||||
$body-min-width: 20rem !default;
|
$body-min-width: 20rem !default;
|
||||||
$container-max-width: 80rem !default;
|
$container-max-width: 80rem !default;
|
||||||
|
|
||||||
$header-height: 3.5rem !default;
|
|
||||||
$menu-width: 16rem !default;
|
$menu-width: 16rem !default;
|
||||||
$toc-width: 16rem !default;
|
$toc-width: 16rem !default;
|
||||||
|
|
||||||
@ -48,9 +47,9 @@ $hint-colors: (
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin theme-dark {
|
@mixin theme-dark {
|
||||||
--gray-100: rgba(255, 255, 255, 0.1);
|
--gray-100: #494e54;
|
||||||
--gray-200: rgba(255, 255, 255, 0.2);
|
--gray-200: #5c6165;
|
||||||
--gray-500: rgba(255, 255, 255, 0.5);
|
--gray-500: #999d9f;
|
||||||
|
|
||||||
--color-link: #84b2ff;
|
--color-link: #84b2ff;
|
||||||
--color-visited-link: #b88dff;
|
--color-visited-link: #b88dff;
|
||||||
|
@ -195,6 +195,12 @@ body[dir="rtl"] .book-menu {
|
|||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
margin: 0 $padding-16;
|
||||||
|
}
|
||||||
|
|
||||||
img.book-icon {
|
img.book-icon {
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
width: 1.5em;
|
width: 1.5em;
|
||||||
|
@ -83,7 +83,6 @@
|
|||||||
color: var(--color-link);
|
color: var(--color-link);
|
||||||
line-height: $padding-16 * 2;
|
line-height: $padding-16 * 2;
|
||||||
padding: 0 $padding-16;
|
padding: 0 $padding-16;
|
||||||
margin: 0 $padding-4;
|
|
||||||
border: $padding-1 solid var(--color-link);
|
border: $padding-1 solid var(--color-link);
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
{"Target":"book.min.3b63b9ecb24b01f1be0df5c6f361b3a2004ab96665227385e0196f67e7607b29.css","MediaType":"text/css","Data":{"Integrity":"sha256-O2O57LJLAfG+DfXG82GzogBKuWZlInOF4BlvZ+dgeyk="}}
|
{"Target":"book.min.6c8b9d2a1fc95075ed7da46ca81060b39add8fff6741ac51259f768929281e2c.css","MediaType":"text/css","Data":{"Integrity":"sha256-bIudKh/JUHXtfaRsqBBgs5rdj/9nQaxRJZ92iSkoHiw="}}
|
@ -3,7 +3,7 @@
|
|||||||
<img src="{{ "svg/menu.svg" | relURL }}" class="book-icon" alt="Menu" />
|
<img src="{{ "svg/menu.svg" | relURL }}" class="book-icon" alt="Menu" />
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<strong>{{ partial "docs/title" . }}</strong>
|
<h3>{{ partial "docs/title" . }}</h3>
|
||||||
|
|
||||||
<label for="toc-control">
|
<label for="toc-control">
|
||||||
{{ if default true (default .Site.Params.BookToC .Params.BookToC) }}
|
{{ if default true (default .Site.Params.BookToC .Params.BookToC) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user