]> njoseph.me Git - hyde.git/blame - static/css/hyde.css
First setup of blog
[hyde.git] / static / css / hyde.css
CommitLineData
da66ac19 1/*
0576ec06
DS
2 * __ __
3 * /\ \ /\ \
4 * \ \ \___ __ __ \_\ \ __
5 * \ \ _ `\/\ \/\ \ /'_` \ /'__`\
6 * \ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
7 * \ \_\ \_\/`____ \ \___,_\ \____\
8 * \/_/\/_/`/___/> \/__,_ /\/____/
9 * /\___/
10 * \/__/
11 *
12 * Designed, built, and released under MIT license by @mdo. Learn more at
13 * https://github.com/poole/hyde.
14 */
da66ac19 15
16
17/*
18 * Contents
19 *
0576ec06
DS
20 * Global resets
21 * Sidebar
da66ac19 22 * Container
0576ec06 23 * Reverse layout
da66ac19 24 * Themes
25 */
26
27
28/*
0576ec06 29 * Global resets
da66ac19 30 *
31 * Update the foundational and global aspects of the page.
32 */
33
0576ec06 34html {
9806fde3
JN
35 /* font-family: "PT Sans", Helvetica, Arial, sans-serif; */
36 font-family: "PT Sans";
da66ac19 37}
6d654601 38@media (min-width: 48em) {
0576ec06
DS
39 html {
40 font-size: 16px;
da66ac19 41 }
42}
6d654601 43@media (min-width: 58em) {
0576ec06
DS
44 html {
45 font-size: 20px;
da66ac19 46 }
47}
48
49
50/*
0576ec06 51 * Sidebar
da66ac19 52 *
0576ec06
DS
53 * Flexible banner for housing site name, intro, and "footer" content. Starts
54 * out above content in mobile and later moves to the side with wider viewports.
da66ac19 55 */
56
0576ec06
DS
57.sidebar {
58 text-align: center;
59 padding: 2rem 1rem;
60 color: rgba(255,255,255,.5);
61 background-color: #202020;
da66ac19 62}
6d654601 63@media (min-width: 48em) {
0576ec06
DS
64 .sidebar {
65 position: fixed;
66 top: 0;
67 left: 0;
68 bottom: 0;
69 width: 18rem;
70 text-align: left;
71 }
da66ac19 72}
73
0576ec06
DS
74/* Sidebar links */
75.sidebar a {
da66ac19 76 color: #fff;
da66ac19 77}
78
0576ec06
DS
79/* About section */
80.sidebar-about h1 {
da66ac19 81 color: #fff;
0576ec06
DS
82 margin-top: 0;
83 font-family: "Abril Fatface", serif;
84 font-size: 3.25rem;
da66ac19 85}
86
0576ec06
DS
87/* Sidebar nav */
88.sidebar-nav {
da66ac19 89 padding-left: 0;
90 list-style: none;
91}
0576ec06
DS
92.sidebar-nav-item {
93 display: block;
da66ac19 94}
0576ec06
DS
95a.sidebar-nav-item:hover,
96a.sidebar-nav-item:focus {
97 text-decoration: underline;
da66ac19 98}
0576ec06
DS
99.sidebar-nav-item.active {
100 font-weight: bold;
101}
102
103/* Sticky sidebar
104 *
105 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
106 * contents to the bottom of the sidebar in tablets and up.
107 */
108
6d654601 109@media (min-width: 48em) {
0576ec06 110 .sidebar-sticky {
da66ac19 111 position: absolute;
0576ec06
DS
112 right: 1rem;
113 bottom: 1rem;
114 left: 1rem;
da66ac19 115 }
116}
117
118
119/* Container
120 *
121 * Align the contents of the site above the proper threshold with some margin-fu
0576ec06 122 * with a 25%-wide `.sidebar`.
da66ac19 123 */
124
125.content {
0576ec06
DS
126 padding-top: 4rem;
127 padding-bottom: 4rem;
da66ac19 128}
129
6d654601 130@media (min-width: 48em) {
da66ac19 131 .content {
0576ec06
DS
132 max-width: 38rem;
133 margin-left: 20rem;
134 margin-right: 2rem;
da66ac19 135 }
136}
137
6d654601 138@media (min-width: 64em) {
0576ec06
DS
139 .content {
140 margin-left: 22rem;
141 margin-right: 4rem;
da66ac19 142 }
143}
144
da66ac19 145
146/*
147 * Reverse layout
148 *
0576ec06 149 * Flip the orientation of the page by placing the `.sidebar` on the right.
da66ac19 150 */
151
6d654601 152@media (min-width: 48em) {
0576ec06 153 .layout-reverse .sidebar {
da66ac19 154 left: auto;
155 right: 0;
156 }
0576ec06
DS
157 .layout-reverse .content {
158 margin-left: 2rem;
159 margin-right: 20rem;
da66ac19 160 }
161}
162
6d654601 163@media (min-width: 64em) {
0576ec06
DS
164 .layout-reverse .content {
165 margin-left: 4rem;
166 margin-right: 22rem;
167 }
168}
169
170
da66ac19 171
172/*
173 * Themes
174 *
175 * As of v1.1, Hyde includes optional themes to color the sidebar and links
176 * within blog posts. To use, add the class of your choosing to the `body`.
177 */
178
179/* Base16 (http://chriskempson.github.io/base16/#default) */
180
181/* Red */
0576ec06 182.theme-base-08 .sidebar {
da66ac19 183 background-color: #ac4142;
184}
0576ec06 185.theme-base-08 .content a,
da66ac19 186.theme-base-08 .related-posts li a:hover {
187 color: #ac4142;
188}
189
190/* Orange */
0576ec06 191.theme-base-09 .sidebar {
da66ac19 192 background-color: #d28445;
193}
0576ec06 194.theme-base-09 .content a,
da66ac19 195.theme-base-09 .related-posts li a:hover {
196 color: #d28445;
197}
198
199/* Yellow */
0576ec06 200.theme-base-0a .sidebar {
da66ac19 201 background-color: #f4bf75;
202}
0576ec06 203.theme-base-0a .content a,
da66ac19 204.theme-base-0a .related-posts li a:hover {
205 color: #f4bf75;
206}
207
208/* Green */
0576ec06 209.theme-base-0b .sidebar {
da66ac19 210 background-color: #90a959;
211}
0576ec06 212.theme-base-0b .content a,
da66ac19 213.theme-base-0b .related-posts li a:hover {
214 color: #90a959;
215}
216
217/* Cyan */
0576ec06 218.theme-base-0c .sidebar {
da66ac19 219 background-color: #75b5aa;
220}
0576ec06 221.theme-base-0c .content a,
da66ac19 222.theme-base-0c .related-posts li a:hover {
223 color: #75b5aa;
224}
225
226/* Blue */
0576ec06 227.theme-base-0d .sidebar {
da66ac19 228 background-color: #6a9fb5;
229}
0576ec06 230.theme-base-0d .content a,
da66ac19 231.theme-base-0d .related-posts li a:hover {
232 color: #6a9fb5;
233}
234
235/* Magenta */
0576ec06 236.theme-base-0e .sidebar {
da66ac19 237 background-color: #aa759f;
238}
0576ec06 239.theme-base-0e .content a,
da66ac19 240.theme-base-0e .related-posts li a:hover {
241 color: #aa759f;
242}
243
244/* Brown */
0576ec06 245.theme-base-0f .sidebar {
da66ac19 246 background-color: #8f5536;
247}
0576ec06 248.theme-base-0f .content a,
da66ac19 249.theme-base-0f .related-posts li a:hover {
250 color: #8f5536;
251}