#215, Add support for languageDirection param

This commit is contained in:
Alex Shpak 2020-05-17 13:09:48 +02:00
parent d5f55b4003
commit 92600f77fe
7 changed files with 22 additions and 19 deletions

View File

@ -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 {
a.collapsed {
display: flex;
justify-content: space-between;
&::after {
content: "";
position: absolute;
right: 0;
}
}
}
@ -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;
}

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -30,7 +30,7 @@ $endLevel: 6;
&:before {
content: counters(item, ".") ". ";
float: left;
margin-right: $padding-4;
margin-inline-end: $padding-4;
}
}
}

View File

@ -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="}}

View File

@ -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" . }}