styles update for container and some html elements; example content post updated
[blog] / public / css / poole.css
1 /*
2  *                        ___
3  *                       /\_ \
4  *  _____     ___     ___\//\ \      __
5  * /\ '__`\  / __`\  / __`\\ \ \   /'__`\
6  * \ \ \_\ \/\ \_\ \/\ \_\ \\_\ \_/\  __/
7  *  \ \ ,__/\ \____/\ \____//\____\ \____\
8  *   \ \ \/  \/___/  \/___/ \/____/\/____/
9  *    \ \_\
10  *     \/_/
11  *
12  * In the novel, *The Strange Case of Dr. Jeykll and Mr. Hyde*, Mr. Poole is Dr.
13  * Jekyll's virtuous and loyal butler. Similarly, Poole is an upstanding and
14  * effective foundation for Jekyll themes.
15  *
16  * Designed, built, and released under MIT license by @mdo.
17  *
18  * Learn more at https://github.com/poole/poole.
19  */
20
21
22 /*
23  * Contents
24  *
25  * Body resets
26  * Custom type
27  * Messages
28  * Container
29  * Masthead
30  * Posts and pages
31  * Pagination
32  * Reverse layout
33  * Themes
34  */
35
36
37 /*
38  * Body resets
39  *
40  * Update the foundational and global aspects of the page.
41  */
42
43 * {
44   -webkit-box-sizing: border-box;
45      -moz-box-sizing: border-box;
46           box-sizing: border-box;
47 }
48
49 html,
50 body {
51   margin: 0;
52   padding: 0;
53 }
54
55 html {
56   font-family: "PT Sans", Helvetica, Arial, sans-serif;
57   font-size: 16px;
58   line-height: 1.5;
59 }
60 @media (min-width: 38rem) {
61   html {
62     font-size: 20px;
63   }
64 }
65
66 body {
67   color: #515151;
68   background-color: #fff;
69   -webkit-text-size-adjust: 100%;
70       -ms-text-size-adjust: 100%;
71 }
72
73 /* No `:visited` state is required by default (browsers will use `a`) */
74 a {
75   color: #268bd2;
76   text-decoration: none;
77 }
78 /* `:focus` is linked to `:hover` for basic accessibility */
79 a:hover,
80 a:focus {
81   text-decoration: underline;
82 }
83
84 /* Headings */
85 h1, h2, h3, h4, h5, h6 {
86   margin-bottom: .5rem;
87   font-weight: bold;
88   line-height: 1.25;
89   color: #313131;
90   text-rendering: optimizeLegibility;
91 }
92 h1 {
93   font-size: 2rem;
94 }
95 h2 {
96   margin-top: 1rem;
97   font-size: 1.5rem;
98 }
99 h3 {
100   margin-top: 1.5rem;
101   font-size: 1.25rem;
102 }
103 h4, h5, h6 {
104   margin-top: 1rem;
105   font-size: 1rem;
106 }
107
108 /* Body text */
109 p {
110   margin-top: 0;
111   margin-bottom: 1rem;
112 }
113
114 strong {
115   color: #303030;
116 }
117
118
119 /* Lists */
120 ul, ol, dl {
121   margin-top: 0;
122   margin-bottom: 1rem;
123 }
124
125 dt {
126   font-weight: bold;
127 }
128 dd {
129   margin-bottom: .5rem;
130 }
131
132 /* Misc */
133 hr {
134   position: relative;
135   margin: 1.5rem 0;
136   border: 0;
137   border-top: 1px solid #eee;
138   border-bottom: 1px solid #fff;
139 }
140
141 abbr {
142   font-size: 85%;
143   font-weight: bold;
144   color: #555;
145   text-transform: uppercase;
146 }
147 abbr[title] {
148   cursor: help;
149   border-bottom: 1px dotted #e5e5e5;
150 }
151
152 /* Code */
153 code,
154 pre {
155   font-family: Menlo, Monaco, "Courier New", monospace;
156 }
157 code {
158   padding: .25em .5em;
159   font-size: 85%;
160   color: #bf616a;
161   background-color: #f9f9f9;
162   border-radius: 3px;
163 }
164 pre {
165   display: block;
166   margin-top: 0;
167   margin-bottom: 1rem;
168   padding: 1rem;
169   font-size: .8rem;
170   line-height: 1.4;
171   white-space: pre;
172   white-space: pre-wrap;
173   word-break: break-all;
174   word-wrap: break-word;
175   background-color: #f9f9f9;
176 }
177 pre code {
178   padding: 0;
179   font-size: 100%;
180   color: inherit;
181   background-color: transparent;
182 }
183 .highlight {
184   margin-bottom: 1rem;
185   border-radius: 4px;
186 }
187 .highlight pre {
188   margin-bottom: 0;
189 }
190
191 /* Quotes */
192 blockquote {
193   padding: .5rem 1rem;
194   margin: .8rem 0;
195   color: #7a7a7a;
196   border-left: .25rem solid #e5e5e5;
197 }
198 blockquote p:last-child {
199   margin-bottom: 0;
200 }
201 @media (min-width: 30rem) {
202   blockquote {
203     padding-right: 5rem;
204     padding-left: 1.25rem;
205   }
206 }
207
208 img {
209   display: block;
210   margin: 0 0 1rem;
211   border-radius: 5px;
212 }
213
214 /* Tables */
215 table {
216   margin-bottom: 1rem;
217   width: 100%;
218   border: 1px solid #e5e5e5;
219   border-collapse: collapse;
220 }
221 td,
222 th {
223   padding: .25rem .5rem;
224   border: 1px solid #e5e5e5;
225 }
226 tbody tr:nth-child(odd) td,
227 tbody tr:nth-child(odd) th {
228   background-color: #f9f9f9;
229 }
230
231
232 /*
233  * Custom type
234  *
235  * Extend paragraphs with `.lead` for larger introductory text.
236  */
237
238 .lead {
239   font-size: 1.25rem;
240   font-weight: 300;
241 }
242
243
244 /*
245  * Messages
246  *
247  * Show alert messages to users. You may add it to single elements like a `<p>`,
248  * or to a parent if there are multiple elements to show.
249  */
250
251 .message {
252   margin-bottom: 1rem;
253   padding: 1rem;
254   color: #717171;
255   background-color: #f9f9f9;
256 }
257
258
259 /*
260  * Container
261  *
262  * Center the page content.
263  */
264
265 .container {
266   max-width: 38rem;
267   padding-left:  1rem;
268   padding-right: 1rem;
269   margin-left:  auto;
270   margin-right: auto;
271 }
272
273
274 /*
275  * Masthead
276  *
277  * Super small header above the content for site name and short description.
278  */
279
280 .masthead {
281   padding-top:    1rem;
282   padding-bottom: 1rem;
283   margin-bottom: 3rem;
284 }
285 .masthead-title {
286   margin-top: 0;
287   margin-bottom: 0;
288   color: #505050;
289 }
290 .masthead-title a {
291   color: #505050;
292 }
293 .masthead-title small {
294   font-size: 75%;
295   font-weight: 400;
296   color: #c0c0c0;
297   letter-spacing: 0;
298 }
299
300
301 /*
302  * Posts and pages
303  *
304  * Each post is wrapped in `.post` and is used on default and post layouts. Each
305  * page is wrapped in `.page` and is only used on the page layout.
306  */
307
308 .page,
309 .post {
310   margin-bottom: 4em;
311 }
312
313 /* Blog post or page title */
314 .page-title,
315 .post-title,
316 .post-title a {
317   color: #303030;
318 }
319 .page-title,
320 .post-title {
321   margin-top: 0;
322 }
323
324 /* Meta data line below post title */
325 .post-date {
326   display: block;
327   margin-top: -.5rem;
328   margin-bottom: 1rem;
329   color: #9a9a9a;
330 }
331
332 /* Related posts */
333 .related {
334   padding-top: 2rem;
335   padding-bottom: 2rem;
336   border-top: 1px solid #eee;
337 }
338 .related-posts {
339   padding-left: 0;
340   list-style: none;
341 }
342 .related-posts h3 {
343   margin-top: 0;
344 }
345 .related-posts li small {
346   font-size: 75%;
347   color: #999;
348 }
349 .related-posts li a:hover {
350   color: #268bd2;
351   text-decoration: none;
352 }
353 .related-posts li a:hover small {
354   color: inherit;
355 }
356
357
358 /*
359  * Pagination
360  *
361  * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
362  * there are no more previous or next posts to show.
363  */
364
365 .pagination {
366   overflow: hidden; /* clearfix */
367   margin-left: -1rem;
368   margin-right: -1rem;
369   font-family: "PT Sans", Helvetica, Arial, sans-serif;
370   color: #ccc;
371   text-align: center;
372 }
373
374 /* Pagination items can be `span`s or `a`s */
375 .pagination-item {
376   display: block;
377   padding: 1rem;
378   border: 1px solid #eee;
379 }
380 .pagination-item:first-child {
381   margin-bottom: -1px;
382 }
383
384 /* Only provide a hover state for linked pagination items */
385 a.pagination-item:hover {
386   background-color: #f5f5f5;
387 }
388
389 @media (min-width: 30rem) {
390   .pagination {
391     margin: 3rem 0;
392   }
393   .pagination-item {
394     float: left;
395     width: 50%;
396   }
397   .pagination-item:first-child {
398     margin-bottom: 0;
399     border-top-left-radius:    4px;
400     border-bottom-left-radius: 4px;
401   }
402   .pagination-item:last-child {
403     margin-left: -1px;
404     border-top-right-radius:    4px;
405     border-bottom-right-radius: 4px;
406   }
407 }