mirror of https://github.com/onweru/compose.git

weru
13.06.2022 aeed4fa202151e0e67240ed4e19e0300c163ddd0
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
@mixin shadow($opacity: 0.17)
  box-shadow: 0 0 3rem rgba(0,0,0,$opacity)
  &:hover
    box-shadow: 0 0 5rem rgba(0,0,0, (1.5 * $opacity))
 
.post
  margin: 0 auto
  width: 100%
  p, h1, h2, h3, h4, h5, h6, blockquote, ol, ul, .highlight_wrap, hr
    max-width: 840px !important
    margin-left: auto
    margin-right: auto
 
  img:not(.icon)
    @media screen and (min-width: 1025px)
      display: block
      width: 100vw
      max-width: 1024px
      margin-left: auto
      margin-right: auto
 
  h2,h3,h4
    margin: 0.5rem auto
    text-align: left
    padding: 5px 0 0 0
 
  p
    padding-bottom: 0.5rem
    padding-top: 0.5rem
    font-size: 1.05rem
 
  &s
    display: flex
    justify-content: space-between
    flex-flow: row wrap
    width: 100%
    align-items: stretch
 
  &s:not(.aside)
    padding: 0 30px
 
  ol
    padding: 1rem 1.25rem
 
  &_body
    img
      width: 100%
      max-width: 100%
  &_inner
    a
      color: var(--theme)
      transition: all 0.3s
      &:hover
        opacity: 0.8
        text-decoration: underline
 
    img:not(.icon)
      margin-bottom: 2rem
      box-shadow: 0 1.5rem 1rem -1rem rgba(0,0,0,0.25)
      ~ h1, ~ h2, ~ h3, ~ h4
        margin-top: 0
        padding-top: 0
 
  .icon
    margin-top: 0
    margin-bottom: 0
 
  &_date
    color: var(--theme)
 
  &_copy
    opacity: 0
    transition: opacity 0.3s ease-out
 
  &_item
    @include shadow
    margin: 1.25rem 0
    border-radius: 10px
    overflow: hidden
    width: 100%
    @media screen and (min-width:667px)
      width: 47%
 
  &_item:hover &_copy
    opacity: 1
 
  &_link
    padding: 2.5px 0
    font-size: 1.25em
    margin: 2.5px 0
    text-align: left
 
  &_meta
    overflow: hidden
    opacity: 0.8
    font-size: 0.84rem
    font-weight: 500
    display: inline-grid
    grid-template-columns: auto 1fr
    background-color: var(--light)
    padding: 0
    align-items: center
    border-radius: 0.3rem
    color: var(--dark)
    text-transform: capitalize
    a
      &:hover
        color: var(--theme)
        text-decoration: underline
        opacity: 0.9
 
  &_extra
    display: flex
    justify-content: flex-end
 
  &_tag
    font-size: 0.75rem !important
    font-weight: 500
    background: var(--theme)
    color: var(--light)
    padding: 0.25rem 0.67rem !important
    text-transform: uppercase
    display: inline-flex
    border-radius: 5px
 
  &_title
    margin: -1rem 0 1rem
 
  &_time
    background: var(--theme)
    display: inline-grid
    padding: 0.2rem 0.75rem
    color: var(--light)
 
  &_thumbnail
    width: 100%
    margin: 0
 
  &_nav
    padding: 3rem 1.5rem
    display: grid
    margin: 2.25rem auto 1rem
    text-align: center
    color: var(--theme)
    // box-shadow: 0 1rem 3rem -1rem rgba(0,0,0,0.15)
    text-transform: uppercase
    &, span
      position: relative
      z-index: 3
 
    &::before
      content: ""
      position: absolute
      background: var(--accent)
      top: 0
      left: 0
      bottom: 0
      right: 0
      z-index: 1
      border-radius: 1rem
 
  &_next
    display: inline-grid
    margin: 0 auto
    width: 10rem
    grid-template-columns: 1fr 1.33rem
    &::after
      content: ""
      background-image: url($next-icon-path)
      background-repeat: repeat no-repeat
      background-size: 0.8rem
      background-position: center right
 
// .pager
//   display: grid
//   grid-template-columns: 2.5rem 1fr 2.5rem
//   margin: 2rem auto 0
//   max-width: 12.5rem
//   &, &_item
//     justify-content: center
//     align-items: center
 
//   &_item
//     height: 2.5rem
//     width: 2.5rem
//     display: inline-flex
//     margin-left: 5px
//     margin-right: 5px
//     background-color: var(--accent)
//     color: var(--light)
//     border-radius: 50%
//     &:hover
//       opacity: 0.5
 
//   span
//     text-align: center
 
.excerpt
  padding: 0 10px 1.5rem 10px
  position: relative
  z-index: 1
  &_meta
    display: flex
    justify-content: space-between
    align-items: center
    transform: translateY(-2.5rem)
    position: relative
    z-index: 5
 
.archive
  &_item
    display: grid
    padding: 1.5rem 0
 
  &_title
    margin: 0
 
.article
  box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.12)
  overflow: hidden
  border-radius: 0.5rem
  &_title
    margin: 0
  &_excerpt
    &:not(.visible)
      height: 0
      opacity: 0
    transition: height 0.5s, opacity 0.5s
  &_excerpt,
  &_meta
    transform-origin: bottom
  &_meta
    padding: 10px 1.25rem 1.25rem
    color: var(--text)
    position: relative
    z-index: 2
    transition: margin-top 0.5s
    background: var(--bg)
    &.center_y
      transform-origin: center
      transition: transform 0.5s
      display: flex
      flex-direction: column
      justify-content: center
      @media screen and (min-width: 42rem)
        left: -2rem
 
  &_thumb
    display: grid
    position: relative
    z-index: 0
    overflow: hidden
    height: 15rem
    background-size: cover
    background-position: 50% 50%
    @media screen and (min-width: 35rem)
      height: 22.5rem
 
    img
      transition: transform 0.5s, opacity 0.5s
 
    &::after
      content: ''
      position: absolute
      top: 0
      left: 0
      width: 100%
      bottom: 0
      z-index: 1
      background: var(--bg)
      opacity: 0
      transition: opacity 0.1s ease-out
 
  &_showcase &_thumb
    height: 15rem
 
  &_showcase &_meta
    padding-top: 1.5rem
 
  &:hover &_thumb
    img
      transform: scale(1.1)
 
    &::after
      transition: opacity 0.1s ease-out
      opacity: 0.5
 
  &:hover &_excerpt:not(.visible)
    height: 75px
    opacity: 1
 
  &:hover &_meta
    &:not(.center_y)
      margin-top: -75px
 
    @media screen and (min-width: 769px)
      &.center_y
        transform: translateX(-3rem)
 
  &:hover
    box-shadow: 0 1.5rem 6rem rgba(0,0,0,0.17)
    a
      color: initial !important
 
  &_hidden
    display: none