~xdavidwu/xdavidwu.link

ref: ad37e31869405ec1c9cd15f83570773f03bf9cf8 xdavidwu.link/_sass/minimal-mistakes/_navigation.scss -rw-r--r-- 5.6 KiB
ad37e318xdavidwu sass: pagination: fix right alignment 1 year, 8 months ago
                                                                                
8d046af7 Michael Rose
7815e717 Michael Rose
889fdd08 Michael Rose
7815e717 Michael Rose
8d046af7 Michael Rose
7815e717 Michael Rose
8d046af7 Michael Rose
7815e717 Michael Rose
889fdd08 Michael Rose
d9dc6e23 Michael Rose
8d046af7 Michael Rose
7815e717 Michael Rose
889fdd08 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d541d45c Michael Rose
7815e717 Michael Rose
8d046af7 Michael Rose
d541d45c Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
570864df Michael Rose
7815e717 Michael Rose
570864df Michael Rose
7815e717 Michael Rose
570864df Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
d541d45c Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d541d45c Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
570864df Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
4df2367e Michael Rose
7815e717 Michael Rose
0feeb218 Michael Rose
7815e717 Michael Rose
2969225a Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
d0430852 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
e939ce19 Michael Rose
7815e717 Michael Rose
5a49254b Michael Rose
7815e717 Michael Rose
5a49254b Michael Rose
7815e717 Michael Rose
5a49254b Michael Rose
d9dc6e23 Michael Rose
7815e717 Michael Rose
e939ce19 Michael Rose
7815e717 Michael Rose
e939ce19 Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
004189af Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
e939ce19 Michael Rose
0d8a7685 Michael Rose
2969225a Michael Rose
7815e717 Michael Rose
2969225a Michael Rose
7815e717 Michael Rose
549e9559 Michael Rose
7815e717 Michael Rose
953c6455 Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
d9dc6e23 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
55feca46 Michael Rose
7815e717 Michael Rose
55feca46 Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
953c6455 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
953c6455 Michael Rose
7815e717 Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
b121d050 Michael Rose
7815e717 Michael Rose
0d8a7685 Michael Rose
917548b0 Michael Rose
b121d050 Michael Rose
917548b0 Michael Rose
0d8a7685 Michael Rose
917548b0 Michael Rose
b121d050 Michael Rose
917548b0 Michael Rose
b121d050 Michael Rose
917548b0 Michael Rose
b121d050 Michael Rose
0d8a7685 Michael Rose
7815e717 Michael Rose
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/*
   Breadcrumb navigation links
   ========================================================================== */

.breadcrumbs {
  @include clearfix;
  margin: 0 auto;
  max-width: 100%;
  padding-left: 1em;
  padding-right: 1em;
  animation: $intro-transition;
  animation-delay: 0.3s;

  @include breakpoint($x-large) {
    max-width: $x-large;
  }

  ol {
    padding: 0;
    list-style: none;
    font-size: $type-size-6;

    @include breakpoint($large) {
      float: right;
      width: calc(100% - #{$right-sidebar-width-narrow});
    }

    @include breakpoint($x-large) {
      width: calc(100% - #{$right-sidebar-width});
    }
  }

  li {
    display: inline;
  }

  .current {
    font-weight: bold;
  }
}

/*
     Post pagination navigation links
     ========================================================================== */

.pagination {
  @include clearfix();
  float: left;
  margin-top: 1em;
  padding-top: 1em;
  padding-bottom: 1.5em;
  width: 100%;

  ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }

  li {
    display: block;
    float: left;
    margin-left: -1px;

    a {
      display: block;
      margin-bottom: 0.25em;
      padding: 0.5em 1em;
      font-size: 14px;
      font-weight: bold;
      line-height: 1.5;
      text-align: center;
      text-decoration: none;
      border-width: 1px;
      border-style: solid;
      border-radius: 0;

      &.disabled {
        pointer-events: none;
        cursor: not-allowed;
      }
    }

    &:first-child {
      margin-left: 0;

      a {
        border-top-left-radius: $border-radius;
        border-bottom-left-radius: $border-radius;
      }
    }

    &:last-child {
      a {
        border-top-right-radius: $border-radius;
        border-bottom-right-radius: $border-radius;
      }
    }
  }

  /* next/previous buttons */
  &--pager {
    display: block;
    padding: 0.5em 0em;
    font-size: $type-size-5;

    &.right {
      text-align: end;
    }
  }
}

.page__content + .pagination,
.page__meta + .pagination,
.page__share + .pagination,
.page__comments + .pagination {
  margin-top: 2em;
  padding-top: 2em;
  border-top-width: 1px;
  border-top-style: solid;
}

/*
     Navigation list
     ========================================================================== */

.nav__list {
  margin-bottom: 1.5em;

  input[type="checkbox"],
  label {
    display: none;
  }

  @include breakpoint(max-width $large - 1px) {
    label {
      position: relative;
      display: inline-block;
      padding: 0.5em 2.5em 0.5em 1em;
      font-size: $type-size-6;
      font-weight: bold;
      border-width: 1px;
      border-style: solid;
      border-radius: $border-radius;
      z-index: 20;
      transition: 0.2s ease-out;
      cursor: pointer;

      &:before,
      &:after {
        content: "";
        position: absolute;
        right: 1em;
        top: 1.25em;
        width: 0.75em;
        height: 0.125em;
        line-height: 1;
        transition: 0.2s ease-out;
      }

      &:after {
        transform: rotate(90deg);
      }
    }

    /* on hover show expand*/
    label:hover:after {
      transform: rotate(90deg);
    }

    input:checked + label:hover:after {
      transform: rotate(0);
    }

    ul {
      margin-bottom: 1em;
    }

    a {
      display: block;
      padding: 0.25em 0;

      @include breakpoint($large) {
        padding-top: 0.125em;
        padding-bottom: 0.125em;
      }

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.nav__list .nav__items {
  margin: 0;
  font-size: 1.25rem;

  .active {
    margin-left: -0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    font-weight: bold;
  }

  @include breakpoint(max-width $large - 1px) {
    position: relative;
    max-height: 0;
    opacity: 0%;
    overflow: hidden;
    z-index: 10;
    transition: 0.3s ease-in-out;
    transform: translate(0, 10%);
  }
}

@include breakpoint(max-width $large - 1px) {
  .nav__list input:checked ~ .nav__items {
    transition: 0.5s ease-in-out;
    max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
    overflow: visible;
    opacity: 1;
    margin-top: 1em;
    transform: translate(0, 0);
  }
}

.nav__title {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: $type-size-5;
  font-weight: bold;
}

.nav__sub-title {
  display: block;
  margin: 0.5rem 0;
  padding: 0.25rem 0;
  font-size: $type-size-6;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

/*
     Table of contents navigation
     ========================================================================== */

.toc {
  border-width: 1px;
  border-style: solid;
  border-radius: $border-radius;
  box-shadow: $box-shadow;

  .nav__title {
    font-size: $type-size-6;
    border-top-left-radius: $border-radius;
    border-top-right-radius: $border-radius;
  }
}

.toc__menu {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
  font-size: $type-size-6;

  @include breakpoint($large) {
    font-size: $type-size-7;
  }

  a {
    display: block;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    line-height: 1.5;
    border-bottom-width: 1px;
    border-bottom-style: solid;
  }

  li ul > li a {
    padding-left: 1.25rem;
    font-weight: normal;
  }

  li ul li ul > li a {
    padding-left: 1.75rem;
  }

  li ul li ul li ul > li a {
    padding-left: 2.25rem;
  }

  li ul li ul li ul li ul > li a {
    padding-left: 2.75rem;
  }

  li ul li ul li ul li ul li ul > li a {
    padding-left: 3.25rem
  }
}