-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
style.scss
82 lines (73 loc) · 1.24 KB
/
style.scss
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
.wp-block-latest-posts {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
&.alignleft {
/*rtl:ignore*/
margin-right: 2em;
}
&.alignright {
/*rtl:ignore*/
margin-left: 2em;
}
&.wp-block-latest-posts__list {
list-style: none;
padding-left: 0;
li {
clear: both;
}
}
&.is-grid {
display: flex;
flex-wrap: wrap;
padding: 0;
li {
margin: 0 1.25em 1.25em 0;
width: 100%;
}
}
@include break-small {
@for $i from 2 through 6 {
&.columns-#{ $i } li {
width: calc((100% / #{ $i }) - 1.25em + (1.25em / #{ $i }));
&:nth-child( #{ $i }n ) {
margin-right: 0;
}
}
}
}
}
.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author {
display: block;
font-size: 0.8125em;
}
.wp-block-latest-posts__post-excerpt {
margin-top: 0.5em;
margin-bottom: 1em;
}
.wp-block-latest-posts__featured-image {
a {
display: inline-block;
}
img {
height: auto;
width: auto;
max-width: 100%;
}
&.alignleft {
/*rtl:ignore*/
margin-right: 1em;
/*rtl:ignore*/
float: left;
}
&.alignright {
/*rtl:ignore*/
margin-left: 1em;
/*rtl:ignore*/
float: right;
}
&.aligncenter {
margin-bottom: 1em;
text-align: center;
}
}