1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | $prototype-separator-breakpoints: $global-prototype-breakpoints !default;
|
12 |
|
13 |
|
14 |
|
15 | $prototype-separator-align: center !default;
|
16 |
|
17 |
|
18 |
|
19 | $prototype-separator-height: rem-calc(2) !default;
|
20 |
|
21 |
|
22 |
|
23 | $prototype-separator-width: 3rem !default;
|
24 |
|
25 |
|
26 |
|
27 | $prototype-separator-background: $primary-color !default;
|
28 |
|
29 |
|
30 |
|
31 | $prototype-separator-margin-top: $global-margin !default;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | @mixin separator (
|
40 | $align: $prototype-separator-align,
|
41 | $height: $prototype-separator-height,
|
42 | $width: $prototype-separator-width,
|
43 | $background: $prototype-separator-background,
|
44 | $top: $prototype-separator-margin-top
|
45 | ) {
|
46 | text-align: $align !important;
|
47 | @include clearfix;
|
48 |
|
49 | &::after {
|
50 | @include position(relative);
|
51 | width: $width;
|
52 | border-bottom: $height solid $background;
|
53 | margin: $top auto 0;
|
54 |
|
55 | @if $align == left {
|
56 | margin-left: 0 !important;
|
57 | }
|
58 |
|
59 | @if $align == right {
|
60 | margin-right: 0 !important;
|
61 | }
|
62 | }
|
63 | }
|
64 |
|
65 | @mixin foundation-prototype-separator {
|
66 | .separator-center {
|
67 | @include separator(center);
|
68 | }
|
69 |
|
70 | .separator-left {
|
71 | @include separator(left);
|
72 | }
|
73 |
|
74 | .separator-right {
|
75 | @include separator(right);
|
76 | }
|
77 |
|
78 | @if ($prototype-separator-breakpoints) {
|
79 |
|
80 | @each $size in $breakpoint-classes {
|
81 | @include breakpoint($size) {
|
82 | @if $size != $-zf-zero-breakpoint {
|
83 | .#{$size}-separator-center {
|
84 | @include separator(center);
|
85 | }
|
86 | .#{$size}-separator-left {
|
87 | @include separator(left);
|
88 | }
|
89 | .#{$size}-separator-right {
|
90 | @include separator(right);
|
91 | }
|
92 | }
|
93 | }
|
94 | }
|
95 | }
|
96 | }
|