331 lines
5.3 KiB
CSS
331 lines
5.3 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-size: 16px;
|
||
}
|
||
|
||
|
||
/*
|
||
* 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.
|
||
*/
|
||
|
||
.sidebar {
|
||
text-align: left;
|
||
padding: 2rem 1rem;
|
||
color: #00ff41;
|
||
background-color: #000000;
|
||
}
|
||
|
||
@media (min-width: 48em) {
|
||
.sidebar {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
bottom: 0;
|
||
width: 18rem;
|
||
text-align: left;
|
||
}
|
||
}
|
||
|
||
/* Sidebar links */
|
||
.sidebar a {
|
||
color: #39ff14;
|
||
}
|
||
|
||
/* About section */
|
||
|
||
.sidebar-about h1 {
|
||
color: #00eb3b;
|
||
margin-top: 0;
|
||
font-family: "JetBrains Mono", "Fira Code", "Courier New", "Consolas", "Monaco", monospace;
|
||
font-size: 2rem;
|
||
font-weight: normal;
|
||
}
|
||
|
||
.sidebar-about h1 a,
|
||
.sidebar-about h1 a:hover {
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
.sidebar-about .lead {
|
||
font-size: .8rem;
|
||
}
|
||
|
||
.sidebar-about .profile-picture {
|
||
margin: 0 auto;
|
||
border-radius: 50%;
|
||
border: 2px solid #0001;
|
||
max-width: 5rem;
|
||
}
|
||
|
||
/* Sidebar nav */
|
||
|
||
.sidebar-nav {
|
||
margin-bottom: 1rem;
|
||
list-style: none;
|
||
padding-left: 0;
|
||
}
|
||
|
||
/* Hauptpunkte: größer und mehr Abstand */
|
||
.sidebar-nav > li {
|
||
margin-top: 0.6rem;
|
||
}
|
||
|
||
.sidebar-nav > li > a {
|
||
font-size: 1.05rem;
|
||
font-weight: bold;
|
||
}
|
||
|
||
/* Unterpunkte: kleiner und eingerückt */
|
||
.sidebar-subnav {
|
||
list-style: none;
|
||
padding-left: 1rem;
|
||
margin-top: 0.2rem;
|
||
}
|
||
|
||
.sidebar-subnav > li > a {
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
/* CLI-Style-Pfeil vor Unterpunkten */
|
||
.sidebar-subnav > li::before {
|
||
content: "› ";
|
||
color: #00ff41;
|
||
}
|
||
|
||
.sidebar-social {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
|
||
.sidebar-social-item {
|
||
display: block;
|
||
padding: .25rem 0.8rem;
|
||
background: #fff2;
|
||
margin: 0 .2rem;
|
||
border-radius: .25rem;
|
||
text-transform: uppercase;
|
||
font-size: .8rem;
|
||
font-weight: bold;
|
||
}
|
||
|
||
a.sidebar-social-item:hover,
|
||
a.sidebar-social-item:focus {
|
||
background: #0001;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.sidebar-social-item.active {
|
||
color: #0001;
|
||
background: #fff;
|
||
}
|
||
|
||
a.sidebar-social-item.active:hover,
|
||
a.sidebar-social-item.active:focus {
|
||
color: #fff;
|
||
}
|
||
|
||
.sidebar-footer {
|
||
font-size: .7rem;
|
||
margin-bottom: 0;
|
||
margin-top: .5rem;
|
||
}
|
||
|
||
/* 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.
|
||
*/
|
||
|
||
@media (min-width: 48em) {
|
||
.sidebar-sticky {
|
||
position: absolute;
|
||
top: 2rem;
|
||
right: 1rem;
|
||
left: 1rem;
|
||
}
|
||
}
|
||
|
||
|
||
/* 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: 50rem;
|
||
margin-left: 20rem;
|
||
margin-right: 2rem;
|
||
}
|
||
}
|
||
|
||
|
||
@media (min-width: 64em) {
|
||
.content {
|
||
max-width: 60rem;
|
||
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 {
|
||
left: auto;
|
||
right: 0;
|
||
}
|
||
|
||
.layout-reverse .content {
|
||
margin-left: 2rem;
|
||
margin-right: 20rem;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 64em) {
|
||
.layout-reverse .content {
|
||
margin-left: 4rem;
|
||
margin-right: 22rem;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
/*
|
||
* 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 */
|
||
.theme-base-08 .sidebar {
|
||
background-color: #ac4142;
|
||
}
|
||
|
||
.theme-base-08 .content a,
|
||
.theme-base-08 .related-posts li a:hover {
|
||
color: #ac4142;
|
||
}
|
||
|
||
/* Orange */
|
||
.theme-base-09 .sidebar {
|
||
background-color: #d28445;
|
||
}
|
||
|
||
.theme-base-09 .content a,
|
||
.theme-base-09 .related-posts li a:hover {
|
||
color: #d28445;
|
||
}
|
||
|
||
/* Yellow */
|
||
.theme-base-0a .sidebar {
|
||
background-color: #f4bf75;
|
||
}
|
||
|
||
.theme-base-0a .content a,
|
||
.theme-base-0a .related-posts li a:hover {
|
||
color: #f4bf75;
|
||
}
|
||
|
||
/* Green */
|
||
.theme-base-0b .sidebar {
|
||
background-color: #90a959;
|
||
}
|
||
|
||
.theme-base-0b .content a,
|
||
.theme-base-0b .related-posts li a:hover {
|
||
color: #90a959;
|
||
}
|
||
|
||
/* Cyan */
|
||
.theme-base-0c .sidebar {
|
||
background-color: #75b5aa;
|
||
}
|
||
|
||
.theme-base-0c .content a,
|
||
.theme-base-0c .related-posts li a:hover {
|
||
color: #75b5aa;
|
||
}
|
||
|
||
/* Blue */
|
||
.theme-base-0d .sidebar {
|
||
background-color: #111111;
|
||
border-right: 2px solid #00ff41;
|
||
}
|
||
|
||
.theme-base-0d .content a,
|
||
.theme-base-0d .related-posts li a:hover {
|
||
color: #39ff14;
|
||
}
|
||
|
||
/* Magenta */
|
||
.theme-base-0e .sidebar {
|
||
background-color: #aa759f;
|
||
}
|
||
|
||
.theme-base-0e .content a,
|
||
.theme-base-0e .related-posts li a:hover {
|
||
color: #aa759f;
|
||
}
|
||
|
||
/* Brown */
|
||
.theme-base-0f .sidebar {
|
||
background-color: #8f5536;
|
||
}
|
||
|
||
.theme-base-0f .content a,
|
||
.theme-base-0f .related-posts li a:hover {
|
||
color: #8f5536;
|
||
} |