114 lines
1.9 KiB
CSS
114 lines
1.9 KiB
CSS
/*
|
|
* __ __
|
|
* /\ \ /\ \
|
|
* \ \ \___ __ __ \_\ \ __
|
|
* \ \ _ `\/\ \/\ \ /'_` \ /'__`\
|
|
* \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
|
|
* \ \_\ \_\/`____ \ \___,_\ \____\
|
|
* \/_/\/_/`/___/> \/__,_ /\/____/
|
|
* /\___/
|
|
* \/__/
|
|
*
|
|
* Designed, built, and released under MIT license by @mdo. Learn more at
|
|
* https://github.com/poole/hyde.
|
|
*/
|
|
|
|
|
|
/*
|
|
* Contents
|
|
*
|
|
* Global resets
|
|
* Sidebar
|
|
* Container
|
|
* Reverse layout
|
|
* Themes
|
|
*/
|
|
|
|
|
|
/*
|
|
* Global resets
|
|
*
|
|
* Update the foundational and global aspects of the page.
|
|
*/
|
|
|
|
html {
|
|
font-family: Amiri, "Traditional Arabic", "PT Sans", Helvetica, Arial, sans-serif;
|
|
unicode-bidi: bidi-override;
|
|
direction: rtl;
|
|
}
|
|
|
|
/*
|
|
* Sidebar
|
|
*
|
|
* Flexible banner for housing site name, intro, and "footer" content. Starts
|
|
* out above content in mobile and later moves to the side with wider viewports.
|
|
*/
|
|
|
|
@media (min-width: 48em) {
|
|
.sidebar {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 48em) {
|
|
.sidebar {
|
|
position: fixed;
|
|
right: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
/* About section */
|
|
.sidebar-about h1 {
|
|
font-family: Amiri, "Traditional Arabic", serif;
|
|
}
|
|
|
|
/* Container
|
|
*
|
|
* Align the contents of the site above the proper threshold with some margin-fu
|
|
* with a 25%-wide `.sidebar`.
|
|
*/
|
|
|
|
.content {
|
|
padding-top: 4rem;
|
|
padding-bottom: 4rem;
|
|
}
|
|
|
|
@media (min-width: 48em) {
|
|
.content {
|
|
max-width: 38rem;
|
|
margin-left: 2rem;
|
|
margin-right: 20rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 86em) {
|
|
.content {
|
|
margin-left: 22rem;
|
|
margin-right: 4rem;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Reverse layout
|
|
*
|
|
* Flip the orientation of the page by placing the `.sidebar` on the right.
|
|
*/
|
|
|
|
@media (min-width: 48em) {
|
|
.layout-reverse .sidebar {
|
|
right: auto;
|
|
left: 0;
|
|
}
|
|
.layout-reverse .content {
|
|
margin-right: 2rem;
|
|
margin-left: 20rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 64em) {
|
|
.layout-reverse .content {
|
|
margin-right: 4rem;
|
|
margin-left: 22rem;
|
|
}
|
|
}
|