-
Notifications
You must be signed in to change notification settings - Fork 73
/
_category.scss
84 lines (71 loc) · 1.28 KB
/
_category.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
83
84
/***** Category pages *****/
.category {
&-container {
display: flex;
justify-content: flex-end;
}
&-content {
@include desktop {
flex: 0 0 100%;
}
flex: 1;
}
}
.section-tree {
@include tablet {
flex-direction: row;
}
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
.section {
@include tablet {
flex: 0 0 45%;
} /* Two columns for tablet and desktop. Leaving 5% separation between columns */
flex: initial;
}
&-title {
margin-bottom: 0px;
padding-bottom: 6px;
font-size: 22px;
font-weight: $font-weight-semibold;
border-bottom: 1px solid $border-color;
a {
color: $text-color;
}
}
}
.article-list {
list-style: disc;
padding: 0 20px;
margin: 0px 0 16px 12px;
&-item {
font-size: $font-size-bigger;
padding: 8px 0;
position: relative;
&:first-child {
margin-top: 8px;
}
a {
color: $text-color;
}
}
}
.see-all-articles {
padding: 6px 12px;
margin-left: 12px;
border-radius: $border-radius;
background-color: $brand-color;
color: $brand-text-color;
}
.article-promoted {
list-style: none;
}
.icon-star {
font-size: 18px;
position: absolute;
left: -20px;
top: 16px;
}