mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
#215, Add support for languageDirection param
This commit is contained in:
parent
d5f55b4003
commit
92600f77fe
@ -63,7 +63,7 @@ aside nav ul {
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: $padding-16;
|
||||
padding-inline-start: $padding-16;
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ ul.pagination {
|
||||
height: 1.5em;
|
||||
width: auto;
|
||||
vertical-align: middle;
|
||||
margin-right: $padding-8;
|
||||
margin-inline-end: $padding-8;
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,10 +117,13 @@ ul.pagination {
|
||||
color: $color-link;
|
||||
}
|
||||
|
||||
a.collapsed::after {
|
||||
content: "▸";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
a.collapsed {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
&::after {
|
||||
content: "▸";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -137,7 +140,7 @@ ul.pagination {
|
||||
}
|
||||
|
||||
> ul {
|
||||
padding-left: 0;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -229,7 +232,7 @@ ul.pagination {
|
||||
|
||||
img {
|
||||
height: 1em;
|
||||
margin-right: $padding-8;
|
||||
margin-inline-end: $padding-8;
|
||||
}
|
||||
}
|
||||
|
||||
@ -306,7 +309,7 @@ aside nav,
|
||||
|
||||
@media screen and (max-width: $mobile-breakpoint) {
|
||||
.book-menu {
|
||||
margin-left: -$menu-width;
|
||||
margin-inline-start: -$menu-width;
|
||||
font-size: $font-size-base;
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@
|
||||
margin: $padding-16 0;
|
||||
padding: $padding-8 $padding-16 $padding-8 ($padding-16 - $padding-4); //to keep total left space 16dp
|
||||
|
||||
border-left: $padding-4 solid $gray-200;
|
||||
border-inline-start: $padding-4 solid $gray-200;
|
||||
border-radius: $border-radius;
|
||||
|
||||
:first-child { margin-top: 0; }
|
||||
@ -101,7 +101,7 @@
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding-left: $padding-16 * 2;
|
||||
padding-inline-start: $padding-16 * 2;
|
||||
}
|
||||
|
||||
dl {
|
||||
@ -111,7 +111,7 @@
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-left: $padding-16 * 2;
|
||||
margin-inline-start: $padding-16 * 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,11 +119,11 @@
|
||||
.highlight table tr {
|
||||
td:nth-child(1) pre {
|
||||
margin: 0;
|
||||
padding-right: 0;
|
||||
padding-inline-end: 0;
|
||||
}
|
||||
td:nth-child(2) pre {
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@
|
||||
.book-hint {
|
||||
@each $name, $color in $hint-colors {
|
||||
&.#{$name} {
|
||||
border-left-color: $color;
|
||||
border-color: $color;
|
||||
background-color: rgba($color, 0.1);
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ $endLevel: 6;
|
||||
&:before {
|
||||
content: counters(item, ".") ". ";
|
||||
float: left;
|
||||
margin-right: $padding-4;
|
||||
margin-inline-end: $padding-4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"Target":"book.min.6df681b0bb21155cba49f6078e3559216772d8e03e780d240c73ea21817ed5e5.css","MediaType":"text/css","Data":{"Integrity":"sha256-bfaBsLshFVy6SfYHjjVZIWdy2OA+eA0kDHPqIYF+1eU="}}
|
||||
{"Target":"book.min.c3e2d100ba2319549e09b81b242634766bd799847cf02e1d6fa2426a64db14dc.css","MediaType":"text/css","Data":{"Integrity":"sha256-w+LRALojGVSeCbgbJCY0dmvXmYR88C4db6JCamTbFNw="}}
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.Lang }}">
|
||||
<html lang="{{ .Site.Language.Lang }}" dir={{ .Site.Language.LanguageDirection }}>
|
||||
|
||||
<head>
|
||||
{{ partial "docs/html-head" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user