-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstyle.scss
78 lines (64 loc) · 1.06 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
* {
box-sizing: border-box;
}
body {
background-color: #f4f4f4;
}
#wrap {
max-width: 1140px;
margin: 0 auto;
}
$image-width: 25%;
$image-height: 160px;
$image-gutter: 20px;
#image-grid {
display: flex;
flex-wrap: wrap;
margin: 0 $image-gutter / -2;
.image-wrap {
display: flex;
flex-flow: column;
justify-content: space-between;
flex: 0 1 calc( #{$image-width} - #{$image-gutter} );
padding: $image-gutter;
margin: 0 ( $image-gutter / 2 ) $image-gutter;
border: 1px solid rgba(0,0,0,0.1);
border-radius: 3px;
background-color: #fff;
&.image-light {
background-color: #222;
.content {
strong {
color: #fff;
}
small {
color: #ddd;
}
}
}
}
.image {
height: $image-height;
margin: 0 auto;
line-height: $image-height;
img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
vertical-align: middle;
}
}
.content {
margin-bottom: 0;
strong {
display: block;
font-size: 13px;
color: #555;
word-break: break-all;
}
small {
color: #888;
font-size: 11px;
}
}
}