Change up all the things to do Sass support
[blog] / _scss / pagination.scss
1 // Pagination
2 //
3 // Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
4 // there are no more previous or next posts to show.
5
6 .pagination {
7   overflow: hidden; // clearfix
8   margin: 0 -1.5rem 1rem;
9   font-family: "PT Sans", Helvetica, Arial, sans-serif;
10   color: #ccc;
11   text-align: center;
12 }
13
14 // Pagination items can be `span`s or `a`s
15 .pagination-item {
16   display: block;
17   padding: 1rem;
18   border: solid #eee;
19   border-width: 1px 0;
20
21   &:first-child {
22     margin-bottom: -1px;
23   }
24 }
25
26 // Only provide a hover state for linked pagination items
27 a.pagination-item:hover {
28   background-color: #f5f5f5;
29 }
30
31 @media (min-width: 30em) {
32   .pagination {
33     margin: 3rem 0;
34   }
35
36   .pagination-item {
37     float: left;
38     width: 50%;
39     border-width: 1px;
40
41     &:first-child {
42       margin-bottom: 0;
43       border-top-left-radius:    4px;
44       border-bottom-left-radius: 4px;
45     }
46     &:last-child {
47       margin-left: -1px;
48       border-top-right-radius:    4px;
49       border-bottom-right-radius: 4px;
50     }
51   }
52 }