Fix a couple CSS problems

This commit is contained in:
Pk11 2021-06-28 07:27:54 -05:00
parent a0608ac12d
commit ceee54360b
5 changed files with 20 additions and 10 deletions

2
404.md
View File

@ -3,7 +3,7 @@ title: Error 404
description: Oh no! This page doesn't exist!
permalink: /404.html
layout: default
collection: en-US
lang: en-US
---
# Error! 404!

View File

@ -3,7 +3,7 @@ layout: compress
---
<!DOCTYPE html>
<html lang="{{ page.collection | default: "en-US" }}" {% if site.data.rtl contains page.collection %}dir="rtl"{% endif %}>
<html lang="{{ page.lang | default: "en-US" }}" dir="{% if site.data.rtl contains page.collection %}rtl{% else %}ltr{% endif %}">
<head>
{% include head.html %}
</head>

View File

@ -3,7 +3,7 @@ layout: compress
---
<!DOCTYPE html>
<html lang="{{ page.collection | default: "en-US" }}" {% if site.data.rtl contains page.collection %}dir="rtl"{% endif %}>
<html lang="{{ page.collection | default: "en-US" }}" dir="{% if site.data.rtl contains page.collection %}rtl{% else %}ltr{% endif %}">
<head>
<meta http-equiv="refresh" content="0; URL={{ page.destination }}">

View File

@ -3,7 +3,7 @@ layout: compress
---
<!DOCTYPE html>
<html lang="{{ page.lang | default: "en-US" }}" {% if site.data.rtl contains page.collection %}dir="rtl"{% endif %}>
<html lang="{{ page.lang | default: "en-US" }}" dir="{% if site.data.rtl contains page.collection %}rtl{% else %}ltr{% endif %}">
<head>
{% include head.html %}
</head>

View File

@ -578,18 +578,28 @@ a.footnote::after {
> summary.accordion-button {
color: $header-color;
// Padding for chevron
html[dir=ltr] & {
padding-right: 40px;
}
html[dir=rtl] & {
padding-left: 40px;
}
&::-webkit-details-marker {
display: none;
}
html[dir=ltr] &::after {
&::after {
position: absolute;
right: 1rem;
}
top: 35%;
html[dir=rtl] &::after {
position: absolute;
left: 1rem;
html[dir=ltr] & {
right: 1rem;
}
html[dir=rtl] & {
left: 1rem;
}
}
}