-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_media.scss
55 lines (46 loc) · 1.13 KB
/
_media.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
@mixin media__wrapper {
@include display(flex);
@include flex-direction(column);
}
@mixin media__item ($image-wrap-width, $breakpoint: $small-screen-max) {
@include display(flex);
@include flex-grow(1);
@include flex-shrink(1);
@include flex-basis(auto);
margin-bottom: $base-spacing;
&:last-child {
margin-bottom: 0;
}
@media only screen and (max-width: $breakpoint) {
@include flex-direction(column);
margin-bottom: $base-spacing * 2;
text-align: center;
}
&__img-wrap {
@include flex-grow(0);
@include flex-shrink(0);
@include flex-basis(auto);
width: $image-wrap-width;
margin-right: $base-spacing;
@media only screen and (max-width: $breakpoint) {
width: 100%;
margin-right: 0;
margin-bottom: $base-margin;
}
}
&__text {
@include flex-grow(1);
@include flex-shrink(1);
@include flex-basis(auto);
@media only screen and (max-width: $breakpoint) {
@include flex-shrink(0);
}
&--headline {
font-size: $base-font-size;
margin-bottom: 0;
}
&--description {
color: $paragraph-text-color;
}
}
}