-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy path_patterns_divider.scss
65 lines (54 loc) · 1.28 KB
/
_patterns_divider.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
@import 'settings';
@mixin horizontal-dividers() {
padding-bottom: $spv--large;
padding-top: $spv--large;
&:not(:first-child)::before {
bottom: auto;
content: '';
height: 1px;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}
}
@mixin vertical-dividers() {
padding-bottom: 0;
padding-top: 0;
&:not(:first-child)::before {
bottom: 0;
content: '';
height: auto;
left: map-get($grid-gutter-widths, default) * -0.5;
position: absolute;
right: auto;
top: 0;
width: 1px;
}
}
@mixin vf-p-divider {
.p-divider {
@extend %vf-row;
margin-bottom: $spv--x-large;
}
.p-divider__block {
color: $colors--theme--text-default;
position: relative;
&:not(:first-child)::before {
background-color: $colors--theme--border-default;
}
@include horizontal-dividers();
// Medium screens will have horizontal dividers unless col-medium-...
// classes have been applied.
@media (min-width: $threshold-4-6-col) {
// If a col-medium- class has been applied then use vertical dividers.
&[class*='#{$grid-medium-col-prefix}'] {
@include vertical-dividers();
}
}
@media (min-width: $threshold-6-12-col) {
@include vertical-dividers();
}
}
}