-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_item.scss
124 lines (103 loc) · 1.98 KB
/
_item.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
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
.item:link, .item:visited {
text-decoration: none;
color: $primary;
@include pad(0 0 default 0);
}
.item:hover h2 {
text-decoration: underline;
}
.item__thumb {
margin-bottom: $gutter/2;
}
.item__thumb .ratio-box {
@include pad-ratio(400, 300);
}
.item__thumb--project .ratio-box {
@include pad-ratio(329, 247);
}
.item__thumb--report .ratio-box {
@include pad-ratio(241, 181);
}
.item__thumb--face .ratio-box {
@include pad-ratio(300, 300);
}
.item__thumb img {
height: 100%;
width: 100%;
}
.item__content .title {
margin: 0;
padding: 0;
font-weight: bold;
font-size: modular-scale(0);
}
.item__content .subtitle {
margin-bottom: 0;
font-size: modular-scale(0);
}
.item .date {
font-size: modular-scale(-1);
line-height: 1;
margin: 0;
@include media($sm) {
font-size: modular-scale(0);
}
}
.item--row {
@include row;
display: block;
margin-top: $gutter;
margin-bottom: $gutter;
}
.item--row .date,
.item--row .byline {
padding-top: 0;
}
.item--row .item__image {
margin-top: $small-spacing;
}
@include media($sm) {
.item__content .title {
font-size: modular-scale(2);
}
.item__content .subtitle {
font-size: modular-scale(2);
}
.item--row {
margin-bottom: $gutter;
}
.item--row .item__date {
@include span-columns(2);
}
.item--row .item__content {
@include span-columns(6);
}
.item--row .item__image {
@include span-columns(4);
margin-top: 0;
}
.reading-notes .item--row .item__date {
@include span-columns(3);
}
.reading-notes .item--row .item__content {
@include span-columns(7);
}
}
@include media($lg) {
.item--row .item__date {
@include span-columns(2);
}
.item--row .item__content {
@include span-columns(6);
}
.item--row .item__image {
@include span-columns(3);
@include shift(1);
}
.reading-notes .item--row .item__date {
@include span-columns(3);
}
.reading-notes .item--row .item__content {
@include span-columns(7);
}
}