-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e21de1
commit 7fc3bf1
Showing
7 changed files
with
1,180 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* Prevents two-dimensional scrolling and content loss. */ | ||
h1, | ||
code, | ||
li { | ||
overflow-wrap: break-word; | ||
} | ||
|
||
/* Provides padding to push down the "breadcrumb" navigation in nested pages. */ | ||
.content { | ||
padding: 1em 3em; | ||
} | ||
|
||
/* Improves spacing around custom sidebar section*/ | ||
.sidebar-div { | ||
margin: var(--sidebar-caption-space-above) 0 0 0; | ||
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal); | ||
} | ||
|
||
/* Custom sidebar heading text. Example: Feedback Section heading. */ | ||
.sidebar-heading { | ||
color: var(--color-sidebar-caption-text); | ||
font-size: var(--font-size--normal); | ||
font-weight: 700; | ||
} | ||
|
||
/* Improves text used in custom sidebar section. Example: Feedback section content.*/ | ||
.sidebar-text { | ||
color: var(--color-sidebar-caption-text); | ||
font-size: var(--sidebar-item-font-size); | ||
line-height: 1.4; | ||
} | ||
|
||
/* Removes empty space above the sidebar-tree (under "Feedback" section) */ | ||
.sidebar-tree { | ||
margin-top: 0px; | ||
} | ||
|
||
/* Adds padding around AWS Logo in the left sidebar. */ | ||
.sidebar-logo { | ||
padding: 20% 15%; | ||
} | ||
|
||
/* Hides a div by default. */ | ||
.show-div-sm { | ||
display: none; | ||
} | ||
|
||
/* Hides a div by default. */ | ||
.show-div-md { | ||
display: none; | ||
} | ||
|
||
/* Positions items starting from the right. */ | ||
.justify-content-right { | ||
justify-content: right; | ||
} | ||
|
||
/* Positions items starting from the left. */ | ||
.justify-content-left { | ||
justify-content: left; | ||
} | ||
|
||
/* Hides the sidebar and prevents keyboard users from focusing on elements. */ | ||
.hide-sidebar { | ||
visibility: hidden; | ||
} | ||
|
||
/* Hides the icon by default and applies relevant styling. */ | ||
.nav-close-icon { | ||
color: var(--color-foreground-secondary); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
} | ||
|
||
/* Safeguard for ensuring menus are always visible on larger screens. */ | ||
@media (min-width: 82em) { | ||
.hide-sidebar { | ||
visibility: visible; | ||
} | ||
} | ||
|
||
/* We only want to show the close-icon on medium-small screens. */ | ||
@media (max-width: 67em) { | ||
|
||
/* Displays a div on a small screen. */ | ||
.show-div-sm { | ||
display: flex; | ||
} | ||
} | ||
|
||
@media (max-width: 82em) { | ||
|
||
/* Displays a div on a medium screen. */ | ||
.show-div-md { | ||
display: flex; | ||
} | ||
} | ||
|
||
/* Apply furo styled admonition titles for <h3>. */ | ||
h3.admonition-title { | ||
position: relative; | ||
margin: 0 -0.5rem 0.5rem; | ||
padding-left: 2.5rem; | ||
padding-right: .5rem; | ||
padding-top: .4rem; | ||
padding-bottom: .4rem; | ||
font-weight: 700; | ||
font-size: 1.5em; | ||
line-height: 1.25; | ||
border-radius: unset; | ||
background-color: var(--color-admonition-title-background); | ||
} | ||
|
||
/* Apply furo styled admonition icons before <h3>. */ | ||
h3.admonition-title::before { | ||
content: ""; | ||
position: absolute; | ||
left: 0.5rem; | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
background-color: var(--color-admonition-title); | ||
mask-image: var(--icon-admonition-default); | ||
mask-repeat: no-repeat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="sidebar-div show-div-sm justify-content-right"> | ||
<label class="nav-close-icon" id="nav-menu-close" for="__navigation" tabindex="0"> | ||
<div class="visually-hidden">Toggle site navigation sidebar</div> | ||
<i class="icon"><svg> | ||
<use href="#svg-close"></use> | ||
</svg></i> | ||
</label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="sidebar-div"> | ||
<p class="sidebar-heading">Feedback</p> | ||
<p class="sidebar-text"> | ||
Do you have a suggestion to improve this website or en-tts? | ||
<a href="https://github.com/stefantaubert/en-tts/issues">Give us feedback</a>. | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters