2014-04-26 22:25:13 +00:00
|
|
|
/*
|
2014-05-14 22:57:17 +00:00
|
|
|
* __ __
|
|
|
|
* /\ \ /\ \
|
|
|
|
* \ \ \___ __ __ \_\ \ __
|
|
|
|
* \ \ _ `\/\ \/\ \ /'_` \ /'__`\
|
|
|
|
* \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
|
|
|
|
* \ \_\ \_\/`____ \ \___,_\ \____\
|
|
|
|
* \/_/\/_/`/___/> \/__,_ /\/____/
|
|
|
|
* /\___/
|
|
|
|
* \/__/
|
|
|
|
*
|
|
|
|
* Designed, built, and released under MIT license by @mdo. Learn more at
|
|
|
|
* https://github.com/poole/hyde.
|
|
|
|
*/
|
2014-04-26 22:25:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Contents
|
|
|
|
*
|
2014-05-14 22:57:17 +00:00
|
|
|
* Global resets
|
|
|
|
* Sidebar
|
2014-04-26 22:25:13 +00:00
|
|
|
* Container
|
2014-05-14 22:57:17 +00:00
|
|
|
* Reverse layout
|
2014-04-26 22:25:13 +00:00
|
|
|
* Themes
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2014-05-14 22:57:17 +00:00
|
|
|
* Global resets
|
2014-04-26 22:25:13 +00:00
|
|
|
*
|
|
|
|
* Update the foundational and global aspects of the page.
|
|
|
|
*/
|
|
|
|
|
2014-05-14 22:57:17 +00:00
|
|
|
html {
|
|
|
|
font-family: "PT Sans", Helvetica, Arial, sans-serif;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 48em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
html {
|
|
|
|
font-size: 16px;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
}
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 58em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
html {
|
|
|
|
font-size: 20px;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2014-05-14 22:57:17 +00:00
|
|
|
* Sidebar
|
2014-04-26 22:25:13 +00:00
|
|
|
*
|
2014-05-14 22:57:17 +00:00
|
|
|
* 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.
|
2014-04-26 22:25:13 +00:00
|
|
|
*/
|
|
|
|
|
2014-05-14 22:57:17 +00:00
|
|
|
.sidebar {
|
|
|
|
text-align: center;
|
|
|
|
padding: 2rem 1rem;
|
|
|
|
color: rgba(255,255,255,.5);
|
|
|
|
background-color: #202020;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 48em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
.sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 18rem;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
|
2014-05-14 22:57:17 +00:00
|
|
|
/* Sidebar links */
|
|
|
|
.sidebar a {
|
2014-04-26 22:25:13 +00:00
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2014-05-14 22:57:17 +00:00
|
|
|
/* About section */
|
|
|
|
.sidebar-about h1 {
|
2014-04-26 22:25:13 +00:00
|
|
|
color: #fff;
|
2014-05-14 22:57:17 +00:00
|
|
|
margin-top: 0;
|
|
|
|
font-family: "Abril Fatface", serif;
|
|
|
|
font-size: 3.25rem;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
|
2014-05-14 22:57:17 +00:00
|
|
|
/* Sidebar nav */
|
|
|
|
.sidebar-nav {
|
2014-04-26 22:25:13 +00:00
|
|
|
padding-left: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.sidebar-nav-item {
|
|
|
|
display: block;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
a.sidebar-nav-item:hover,
|
|
|
|
a.sidebar-nav-item:focus {
|
|
|
|
text-decoration: underline;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.sidebar-nav-item.active {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sticky sidebar
|
|
|
|
*
|
|
|
|
* Add the `sidebar-sticky` class to the sidebar's container to affix it the
|
|
|
|
* contents to the bottom of the sidebar in tablets and up.
|
|
|
|
*/
|
|
|
|
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 48em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
.sidebar-sticky {
|
2014-04-26 22:25:13 +00:00
|
|
|
position: absolute;
|
2014-05-14 22:57:17 +00:00
|
|
|
right: 1rem;
|
|
|
|
bottom: 1rem;
|
|
|
|
left: 1rem;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Container
|
|
|
|
*
|
|
|
|
* Align the contents of the site above the proper threshold with some margin-fu
|
2014-05-14 22:57:17 +00:00
|
|
|
* with a 25%-wide `.sidebar`.
|
2014-04-26 22:25:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.content {
|
2014-05-14 22:57:17 +00:00
|
|
|
padding-top: 4rem;
|
|
|
|
padding-bottom: 4rem;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 48em) {
|
2014-04-26 22:25:13 +00:00
|
|
|
.content {
|
2014-05-14 22:57:17 +00:00
|
|
|
max-width: 38rem;
|
|
|
|
margin-left: 20rem;
|
|
|
|
margin-right: 2rem;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 64em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
.content {
|
|
|
|
margin-left: 22rem;
|
|
|
|
margin-right: 4rem;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Reverse layout
|
|
|
|
*
|
2014-05-14 22:57:17 +00:00
|
|
|
* Flip the orientation of the page by placing the `.sidebar` on the right.
|
2014-04-26 22:25:13 +00:00
|
|
|
*/
|
|
|
|
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 48em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
.layout-reverse .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.layout-reverse .content {
|
|
|
|
margin-left: 2rem;
|
|
|
|
margin-right: 20rem;
|
2014-04-26 22:25:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-08 18:59:45 +00:00
|
|
|
@media (min-width: 64em) {
|
2014-05-14 22:57:17 +00:00
|
|
|
.layout-reverse .content {
|
|
|
|
margin-left: 4rem;
|
|
|
|
margin-right: 22rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-26 22:25:13 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Themes
|
|
|
|
*
|
|
|
|
* As of v1.1, Hyde includes optional themes to color the sidebar and links
|
|
|
|
* within blog posts. To use, add the class of your choosing to the `body`.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Base16 (http://chriskempson.github.io/base16/#default) */
|
|
|
|
|
|
|
|
/* Red */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-08 .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #ac4142;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-08 .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-08 .related-posts li a:hover {
|
|
|
|
color: #ac4142;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Orange */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-09 .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #d28445;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-09 .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-09 .related-posts li a:hover {
|
|
|
|
color: #d28445;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Yellow */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0a .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #f4bf75;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0a .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-0a .related-posts li a:hover {
|
|
|
|
color: #f4bf75;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Green */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0b .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #90a959;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0b .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-0b .related-posts li a:hover {
|
|
|
|
color: #90a959;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cyan */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0c .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #75b5aa;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0c .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-0c .related-posts li a:hover {
|
|
|
|
color: #75b5aa;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Blue */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0d .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #6a9fb5;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0d .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-0d .related-posts li a:hover {
|
|
|
|
color: #6a9fb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Magenta */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0e .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #aa759f;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0e .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-0e .related-posts li a:hover {
|
|
|
|
color: #aa759f;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Brown */
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0f .sidebar {
|
2014-04-26 22:25:13 +00:00
|
|
|
background-color: #8f5536;
|
|
|
|
}
|
2014-05-14 22:57:17 +00:00
|
|
|
.theme-base-0f .content a,
|
2014-04-26 22:25:13 +00:00
|
|
|
.theme-base-0f .related-posts li a:hover {
|
|
|
|
color: #8f5536;
|
|
|
|
}
|