-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlist-with-images.scss
93 lines (77 loc) · 1.7 KB
/
list-with-images.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
.list-with-images {
list-style: none;
&__item {
display: flex;
align-items: center;
margin-bottom: 5vh;
&-icon img {
max-width: 150px;
margin-right: 4vh;
}
.description { margin: 1vh 0; }
.message { text-align: left; }
&_element {
list-style: none;
margin-bottom: 10px;
padding: 0;
padding-left: 10px;
position: relative;
&::before {
background-color: $white;
border: 1px solid $buzok;
border-radius: 50%;
content: '';
height: 12px;
left: -18px;
position: absolute;
top: 14px;
transform: translateY(-50%);
vertical-align: text-top;
width: 12px;
}
}
}
}
.list-with-images.horizontal {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.list-with-images__item {
display: flex;
flex-direction: column;
max-width: 28%;
.message { text-align: center; }
.description {
font-size: 1em;
line-height: 1.6;
}
&-icon img { margin-right: 0; }
}
}
@media screen and (max-width: 767px) {
.list-with-images__item {
flex-wrap: wrap;
max-width: 400px;
margin: 0 auto;
&-icon {
margin: 0 auto;
img {
max-width: 120px;
margin-right: 0;
}
}
.description { font-size: .8em; }
.message { text-align: center; }
}
.list-with-images.horizontal {
.list-with-images__item {
max-width: 400px;
width: 100%;
.description { font-size: .8em; }
}
}
}
@media screen and (max-width: 767px) {
.list-with-images.horizontal { justify-content: space-around; }
.list-with-images__item-icon img { margin-right: 0; }
}