|
27 | 27 | font-size: 0.85rem; |
28 | 28 | } |
29 | 29 |
|
| 30 | +$prompt-older: "Older"; |
| 31 | +$prompt-newer: "Newer"; |
| 32 | + |
30 | 33 | .post-navigation { |
31 | 34 | padding-top: 3rem; |
32 | 35 | padding-bottom: 2rem; |
33 | | -} |
34 | 36 |
|
35 | | -.post-navigation .btn, |
36 | | -.post-navigation .btn.disabled { |
37 | | - width: 50%; |
38 | | - position: relative; |
39 | | - color: var(--link-color, #2a408e); |
40 | | - border-color: var(--main-border, #e9ecef); |
41 | | -} |
| 37 | + .btn, .btn.disabled { |
| 38 | + width: 50%; |
| 39 | + position: relative; |
| 40 | + color: var(--link-color, #2a408e); |
| 41 | + border-color: var(--main-border, #e9ecef); |
| 42 | + } |
42 | 43 |
|
43 | | -.post-navigation .btn:hover { |
44 | | - background: #2a408e; |
45 | | - color: #fff; |
46 | | - border-color: #2a408e; |
47 | | -} |
| 44 | + .btn:hover { |
| 45 | + background: #2a408e; |
| 46 | + color: #fff; |
| 47 | + border-color: #2a408e; |
| 48 | + } |
48 | 49 |
|
49 | | -.post-navigation a.btn.disabled { |
50 | | - pointer-events: auto; |
51 | | - cursor: not-allowed; |
52 | | - background: none; |
53 | | - color: gray; |
54 | | - border-color: var(--main-border, #e9ecef); |
55 | | -} |
| 50 | + .btn.disabled { |
| 51 | + pointer-events: auto; |
| 52 | + cursor: not-allowed; |
| 53 | + background: none; |
| 54 | + color: gray; |
| 55 | + // border-color: var(--main-border, #e9ecef); |
| 56 | + } |
56 | 57 |
|
57 | | -.post-navigation a.btn.btn-outline-primary.disabled:focus { |
58 | | - box-shadow: none; |
59 | | -} |
| 58 | + .btn.btn-outline-primary.disabled:focus { |
| 59 | + box-shadow: none; |
| 60 | + } |
60 | 61 |
|
61 | | -.post-navigation a > p { |
62 | | - font-size: 1.1rem; |
63 | | - line-height: 1.5rem; |
64 | | - margin-top: .3rem; |
65 | | - white-space: normal; |
66 | | -} |
| 62 | + p { |
| 63 | + font-size: 1.1rem; |
| 64 | + line-height: 1.5rem; |
| 65 | + margin-top: .3rem; |
| 66 | + white-space: normal; |
| 67 | + } |
67 | 68 |
|
68 | | -.post-navigation a:first-child { |
69 | | - border-top-right-radius: 0; |
70 | | - border-bottom-right-radius: 0; |
71 | | - left: .5px; |
72 | | -} |
| 69 | + a::before, |
| 70 | + span::before { |
| 71 | + color: var(--text-muted-color, gray); |
| 72 | + font-size: .65rem; |
| 73 | + text-transform: uppercase; |
| 74 | + } |
73 | 75 |
|
74 | | -.post-navigation a:last-child { |
75 | | - border-top-left-radius: 0; |
76 | | - border-bottom-left-radius: 0; |
77 | | - right: .5px; |
78 | | -} |
| 76 | + a:first-child, |
| 77 | + span:first-child { |
| 78 | + border-top-right-radius: 0; |
| 79 | + border-bottom-right-radius: 0; |
| 80 | + left: .5px; |
| 81 | + } |
79 | 82 |
|
80 | | -.post-navigation a::before { |
81 | | - color: var(--text-muted-color, gray); |
82 | | - font-size: .65rem; |
83 | | - text-transform: uppercase; |
84 | | -} |
| 83 | + a:last-child, |
| 84 | + span:last-child { |
| 85 | + border-top-left-radius: 0; |
| 86 | + border-bottom-left-radius: 0; |
| 87 | + right: .5px; |
| 88 | + } |
85 | 89 |
|
86 | | -.post-navigation a:first-child::before { |
87 | | - content: "Older"; |
88 | | -} |
| 90 | + a:first-child::before, |
| 91 | + span:first-child::before { |
| 92 | + content: $prompt-older |
| 93 | + } |
89 | 94 |
|
90 | | -.post-navigation a:last-child::before { |
91 | | - content: "Newer"; |
| 95 | + a:last-child::before, |
| 96 | + span:last-child::before { |
| 97 | + content: $prompt-newer |
| 98 | + } |
92 | 99 | } |
93 | 100 |
|
| 101 | + |
94 | 102 | @keyframes fade-up { |
95 | 103 | from { |
96 | 104 | opacity: 0; |
|
0 commit comments