#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 { ul {
padding-left: $padding-16; padding-inline-start: $padding-16;
} }
} }
@ -93,7 +93,7 @@ ul.pagination {
height: 1.5em; height: 1.5em;
width: auto; width: auto;
vertical-align: middle; vertical-align: middle;
margin-right: $padding-8; margin-inline-end: $padding-8;
} }
} }
@ -117,10 +117,13 @@ ul.pagination {
color: $color-link; color: $color-link;
} }
a.collapsed::after { a.collapsed {
display: flex;
justify-content: space-between;
&::after {
content: ""; content: "";
position: absolute; }
right: 0;
} }
} }
@ -137,7 +140,7 @@ ul.pagination {
} }
> ul { > ul {
padding-left: 0; padding-inline-start: 0;
} }
} }
@ -229,7 +232,7 @@ ul.pagination {
img { img {
height: 1em; height: 1em;
margin-right: $padding-8; margin-inline-end: $padding-8;
} }
} }
@ -306,7 +309,7 @@ aside nav,
@media screen and (max-width: $mobile-breakpoint) { @media screen and (max-width: $mobile-breakpoint) {
.book-menu { .book-menu {
margin-left: -$menu-width; margin-inline-start: -$menu-width;
font-size: $font-size-base; font-size: $font-size-base;
} }

View file

@ -69,7 +69,7 @@
margin: $padding-16 0; margin: $padding-16 0;
padding: $padding-8 $padding-16 $padding-8 ($padding-16 - $padding-4); //to keep total left space 16dp 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; border-radius: $border-radius;
:first-child { margin-top: 0; } :first-child { margin-top: 0; }
@ -101,7 +101,7 @@
} }
ul, ol { ul, ol {
padding-left: $padding-16 * 2; padding-inline-start: $padding-16 * 2;
} }
dl { dl {
@ -111,7 +111,7 @@
} }
dd { dd {
margin-left: $padding-16 * 2; margin-inline-start: $padding-16 * 2;
} }
} }
@ -119,11 +119,11 @@
.highlight table tr { .highlight table tr {
td:nth-child(1) pre { td:nth-child(1) pre {
margin: 0; margin: 0;
padding-right: 0; padding-inline-end: 0;
} }
td:nth-child(2) pre { td:nth-child(2) pre {
margin: 0; margin: 0;
padding-left: 0; padding-inline-start: 0;
} }
} }

View file

@ -93,7 +93,7 @@
.book-hint { .book-hint {
@each $name, $color in $hint-colors { @each $name, $color in $hint-colors {
&.#{$name} { &.#{$name} {
border-left-color: $color; border-color: $color;
background-color: rgba($color, 0.1); background-color: rgba($color, 0.1);
} }
} }

View file

@ -30,7 +30,7 @@ $endLevel: 6;
&:before { &:before {
content: counters(item, ".") ". "; content: counters(item, ".") ". ";
float: left; 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> <!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}"> <html lang="{{ .Site.Language.Lang }}" dir={{ .Site.Language.LanguageDirection }}>
<head> <head>
{{ partial "docs/html-head" . }} {{ partial "docs/html-head" . }}