bobjoll 1.634.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +26 -0
- package/scripts/script.js +199 -0
- package/scss/layout/_footer.scss +10 -0
- package/scss/layout/_header.scss +10 -0
- package/scss/modules/_fonts.scss +26 -0
- package/scss/modules/_reset.scss +219 -0
- package/scss/modules/bourbon/addons/_clearfix.scss +25 -0
- package/scss/modules/bourbon/addons/_ellipsis.scss +30 -0
- package/scss/modules/bourbon/addons/_position.scss +48 -0
- package/scss/modules/bourbon/addons/_prefixer.scss +66 -0
- package/scss/modules/bourbon/addons/_size.scss +51 -0
- package/scss/modules/bourbon/addons/_timing-functions.scss +34 -0
- package/scss/modules/bourbon/addons/_triangle.scss +63 -0
- package/scss/modules/bourbon/css3/_calc.scss +4 -0
- package/scss/modules/bourbon/css3/_flex-box.scss +287 -0
- package/scss/modules/bourbon/css3/_keyframes.scss +36 -0
- package/scss/modules/bourbon/css3/_linear-gradient.scss +38 -0
- package/scss/modules/bourbon/css3/_placeholder.scss +8 -0
- package/scss/modules/bourbon/css3/_selection.scss +42 -0
- package/scss/modules/bourbon/css3/_transition.scss +71 -0
- package/scss/modules/mixins/_component.scss +9 -0
- package/scss/modules/mixins/_grid.scss +75 -0
- package/scss/modules/mixins/_helpers.scss +224 -0
- package/scss/modules/variables/_colors.scss +447 -0
- package/scss/modules/variables/_general.scss +235 -0
- package/scss/partials/_accordion-v1-0.scss +165 -0
- package/scss/partials/_autocomplete-v1-0.scss +55 -0
- package/scss/partials/_general-v1-0.scss +51 -0
- package/scss/partials/_grid-v1-0.scss +109 -0
- package/scss/partials/_helper-v1-0.scss +299 -0
- package/scss/partials/_icon-v2-0.scss +323 -0
- package/scss/partials/_list-v1-0.scss +100 -0
- package/scss/partials/_modal-v1-0.scss +159 -0
- package/scss/partials/_notification-v1-1.scss +297 -0
- package/scss/partials/_progress-bar-v1.0.scss +25 -0
- package/scss/partials/_range-v1.0.scss +75 -0
- package/scss/partials/_tooltipFixed-v1.0.scss +128 -0
- package/scss/partials/_typography-v1-0.scss +201 -0
- package/scss/partials/animations/_fade.scss +23 -0
- package/scss/partials/animations/_rotate.scss +11 -0
- package/scss/partials/animations/_scale.scss +23 -0
- package/scss/partials/animations/_slide.scss +31 -0
- package/scss/partials/button-v4-0/_component.scss +304 -0
- package/scss/partials/form/_checkbox-and-radio-v1-0.scss +187 -0
- package/scss/partials/form/_dropdowns-v1-0.scss +323 -0
- package/scss/partials/form/_general-v1-0.scss +166 -0
- package/scss/partials/form/_group-v1-0.scss +157 -0
- package/scss/partials/form/_password-v1-0.scss +28 -0
- package/scss/partials/form/_switch-v1-0.scss +128 -0
- package/scss/partials/form/_upload-v1-0.scss +91 -0
- package/ts/library/common.ts +30 -0
- package/ts/library/cookie.ts +47 -0
- package/ts/library/delegate.ts +122 -0
- package/ts/library/dom.ts +124 -0
- package/ts/library/event.ts +138 -0
- package/ts/library/extend.js +32 -0
- package/ts/library/gr/dom.q.ts +12 -0
- package/ts/library/gr/social/dependency/twitter_pu.js +66 -0
- package/ts/library/gr/social/facebook.ts +154 -0
- package/ts/library/gr/social/google.ts +127 -0
- package/ts/library/gr/social/index.ts +35 -0
- package/ts/library/gr/social/twitter.ts +65 -0
- package/ts/library/helpers.ts +9 -0
- package/ts/library/number-abbreviate.js +57 -0
- package/ts/library/settings.ts +7 -0
- package/ts/library/storage.ts +131 -0
- package/ts/library/svg4everybody.legacy.js +122 -0
- package/ts/partials/accordion-v1.0.ts +104 -0
- package/ts/partials/accordionTabs-v1.0.ts +27 -0
- package/ts/partials/alert-v1.0.ts +51 -0
- package/ts/partials/copy-v1.0.ts +17 -0
- package/ts/partials/countdown-v1.0.ts +119 -0
- package/ts/partials/dropdown-v1.0.ts +247 -0
- package/ts/partials/hbs-v1.0.ts +9 -0
- package/ts/partials/modal-v1.0.ts +213 -0
- package/ts/partials/notifications-v1.1.ts +376 -0
- package/ts/partials/notify-v1.0.ts +746 -0
- package/ts/partials/password-v1.0.ts +19 -0
- package/ts/partials/popover-v1.0.ts +125 -0
- package/ts/partials/progress-bar-v1.0.ts +29 -0
- package/ts/partials/scroll-v1.0.ts +169 -0
- package/ts/partials/scrollable-v1.0.ts +90 -0
- package/ts/partials/tabs-v1.0.ts +79 -0
- package/ts/partials/tags-v1.0.ts +21 -0
- package/ts/partials/trigger-v2.0.ts +155 -0
- package/ts/partials/upload-v1.0.ts +17 -0
- package/ts/views/hbs/alert-v1.0/element.html.hbs +35 -0
- package/ts/views/hbs/countdown-v1.0/countdown-inner.hbs +39 -0
- package/ts/views/hbs/countdown-v1.0/countdown.hbs +4 -0
- package/ts/views/hbs/dropdown-v1.0/element.html.hbs +70 -0
- package/ts/views/hbs/helpers.js +58 -0
- package/ts/views/hbs/modal-v1.0/element.html.hbs +17 -0
- package/ts/views/hbs/notification-v1.1/element-disable.html.hbs +26 -0
- package/ts/views/hbs/notification-v1.1/element.html.hbs +43 -0
- package/ts/views/hbs/notification-v1.1/wrapper.html.hbs +4 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
@if $accordion-v1-0 {
|
|
2
|
+
.accordion {
|
|
3
|
+
@include clearfix;
|
|
4
|
+
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
margin: 0 0 $base-spacing;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
line-height: $base-line-height;
|
|
13
|
+
|
|
14
|
+
&:not(.accordion--ready) {
|
|
15
|
+
.accordion__mobile-nav {
|
|
16
|
+
position: absolute;
|
|
17
|
+
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
|
|
20
|
+
border-bottom: $base-border;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.accordion__container > a,
|
|
24
|
+
.accordion__container > button {
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--tabs:not(data-disable-mobile-select) {
|
|
30
|
+
@include breakpoint('xs', 'min') {
|
|
31
|
+
.accordion__container {
|
|
32
|
+
display: inline;
|
|
33
|
+
|
|
34
|
+
border: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.accordion__content {
|
|
38
|
+
float: left;
|
|
39
|
+
|
|
40
|
+
border-top: $base-border;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.accordion__link {
|
|
44
|
+
&:not(.nostyle) {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
|
|
47
|
+
&.active {
|
|
48
|
+
border-bottom: 1px solid color('text', 'general');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__container {
|
|
56
|
+
margin: 0 0 $small-spacing;
|
|
57
|
+
|
|
58
|
+
list-style: none;
|
|
59
|
+
|
|
60
|
+
&:last-child {
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__content {
|
|
66
|
+
@include position(absolute, 100% null null 0);
|
|
67
|
+
|
|
68
|
+
width: 100%;
|
|
69
|
+
|
|
70
|
+
padding: $small-spacing $base-spacing;
|
|
71
|
+
padding-top: 0;
|
|
72
|
+
|
|
73
|
+
p:last-child {
|
|
74
|
+
margin: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__mobile-nav {
|
|
79
|
+
padding: 0 $base-spacing;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__select {
|
|
83
|
+
@include appearance(none);
|
|
84
|
+
|
|
85
|
+
height: $base-element-height;
|
|
86
|
+
|
|
87
|
+
border: none;
|
|
88
|
+
|
|
89
|
+
background: transparent;
|
|
90
|
+
|
|
91
|
+
text-align: center;
|
|
92
|
+
|
|
93
|
+
&__wrapper {
|
|
94
|
+
position: relative;
|
|
95
|
+
|
|
96
|
+
display: inline-block;
|
|
97
|
+
|
|
98
|
+
padding: 0 ($base-triangle-size + $extra-small-spacing) 0 0;
|
|
99
|
+
|
|
100
|
+
&::after {
|
|
101
|
+
@include triangle($base-triangle-size, color('text', 'general'), down);
|
|
102
|
+
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 50%;
|
|
105
|
+
right: 0;
|
|
106
|
+
|
|
107
|
+
transform: translateY(-50%);
|
|
108
|
+
|
|
109
|
+
content: '';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__link {
|
|
115
|
+
&:not(.nostyle) {
|
|
116
|
+
display: block;
|
|
117
|
+
padding: $small-spacing $small-spacing $small-spacing $base-spacing;
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
color: color('accordion', 'general');
|
|
120
|
+
|
|
121
|
+
.icon {
|
|
122
|
+
color: color('accordion', 'general');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.state--active {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.active {
|
|
130
|
+
color: color('link', 'general');
|
|
131
|
+
|
|
132
|
+
.icon {
|
|
133
|
+
color: color('link', 'general');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.state--active {
|
|
137
|
+
display: block;
|
|
138
|
+
}
|
|
139
|
+
.state--inactive {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.active + .accordion__content {
|
|
146
|
+
position: relative;
|
|
147
|
+
|
|
148
|
+
display: block;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&--inverted {
|
|
153
|
+
color: color('text-inverted', 'general');
|
|
154
|
+
|
|
155
|
+
a:not(.button) {
|
|
156
|
+
color: color('link-inverted', 'general', 0.75);
|
|
157
|
+
|
|
158
|
+
&:hover,
|
|
159
|
+
&.active {
|
|
160
|
+
color: color('link-inverted', 'general');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
} // End if
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@if $accordion-v1-0 {
|
|
2
|
+
.autocomplete {
|
|
3
|
+
@include position(absolute, null null null null);
|
|
4
|
+
|
|
5
|
+
overflow: auto;
|
|
6
|
+
|
|
7
|
+
display: none;
|
|
8
|
+
|
|
9
|
+
width: 100%;
|
|
10
|
+
|
|
11
|
+
border-bottom-left-radius: $base-border-radius;
|
|
12
|
+
border-bottom-right-radius: $base-border-radius;
|
|
13
|
+
|
|
14
|
+
transform: translateY(-1px);
|
|
15
|
+
|
|
16
|
+
background-color: color('input', 'background');
|
|
17
|
+
|
|
18
|
+
box-shadow: $base-box-shadow;
|
|
19
|
+
|
|
20
|
+
z-index: 100;
|
|
21
|
+
|
|
22
|
+
@include breakpoint('md') {
|
|
23
|
+
height: ($small-element-height * 5) + ($small-element-height / 2);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include element('item') {
|
|
27
|
+
height: $small-element-height;
|
|
28
|
+
|
|
29
|
+
padding: 0 $base-spacing;
|
|
30
|
+
|
|
31
|
+
color: color('text-secondary', 'general');
|
|
32
|
+
text-align: left;
|
|
33
|
+
text-transform: lowercase;
|
|
34
|
+
line-height: $small-element-height;
|
|
35
|
+
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
background-color: color('border', 'general', 1, -4);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.selected {
|
|
43
|
+
background-color: color('border', 'general', 1, -1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
b {
|
|
47
|
+
color: color('text', 'general');
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include modifier('show') {
|
|
52
|
+
display: block;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@if $general-v1-0 {
|
|
2
|
+
body {
|
|
3
|
+
@include prefixer(align-items, flex-start, spec ms);
|
|
4
|
+
@include prefixer(display, flex, spec ms);
|
|
5
|
+
@include prefixer(flex-direction, column, spec ms);
|
|
6
|
+
@include prefixer(flex-wrap, wrap, spec ms);
|
|
7
|
+
|
|
8
|
+
overflow: auto;
|
|
9
|
+
|
|
10
|
+
height: auto;
|
|
11
|
+
min-height: 100vh !important;
|
|
12
|
+
|
|
13
|
+
background-color: color('body', 'background');
|
|
14
|
+
|
|
15
|
+
color: color('text', 'general');
|
|
16
|
+
font-family: $base-font-family;
|
|
17
|
+
font-size: $base-font-size;
|
|
18
|
+
line-height: $base-line-height;
|
|
19
|
+
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
|
|
22
|
+
// IE 11
|
|
23
|
+
@media all and (-ms-high-contrast:none) {
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& > * {
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
main {
|
|
33
|
+
@include prefixer(flex, 1, spec ms);
|
|
34
|
+
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
|
|
37
|
+
& > :last-child {
|
|
38
|
+
margin-bottom: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
section {
|
|
42
|
+
margin: 0 0 $large-spacing;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
* {
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
} // End if
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
%row-flexbox {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
%col {
|
|
8
|
+
@if $grid-mode == 'float' {
|
|
9
|
+
float: left;
|
|
10
|
+
|
|
11
|
+
min-height: 1px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
margin: 0 0 $grid-columns-spacing * 2;
|
|
17
|
+
padding: 0 $grid-columns-spacing;
|
|
18
|
+
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.row {
|
|
23
|
+
@if $grid-mode == 'flexbox' {
|
|
24
|
+
@extend %row-flexbox;
|
|
25
|
+
|
|
26
|
+
@include modifier('space-between') {
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include modifier('horizontal-center') {
|
|
31
|
+
justify-content: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include modifier('vertical-center') {
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include modifier('left') {
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include modifier('right') {
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include modifier('nowrap') {
|
|
47
|
+
flex-wrap: nowrap;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.col {
|
|
53
|
+
@extend %col;
|
|
54
|
+
|
|
55
|
+
flex: 1;
|
|
56
|
+
|
|
57
|
+
&--center {
|
|
58
|
+
align-self: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--top {
|
|
62
|
+
align-self: flex-start;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&--bottom {
|
|
66
|
+
align-self: flex-end;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--stretch {
|
|
70
|
+
align-self: stretch;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@if $grid-v1-0 {
|
|
75
|
+
.container-fluid {
|
|
76
|
+
@include clearfix;
|
|
77
|
+
|
|
78
|
+
padding: 0 $base-spacing;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.container {
|
|
82
|
+
@include clearfix;
|
|
83
|
+
|
|
84
|
+
max-width: map-get($breakpoints, 'xl');
|
|
85
|
+
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
padding: 0 $base-spacing;
|
|
88
|
+
|
|
89
|
+
@include modifier('sm') {
|
|
90
|
+
max-width: map-get($breakpoints, 'lg');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.row {
|
|
95
|
+
@if $grid-mode == 'flexbox' {
|
|
96
|
+
@include grid($grid-columns);
|
|
97
|
+
} @else if $grid-mode == 'float' {
|
|
98
|
+
@include clearfix;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
margin: 0 ($grid-columns-spacing * -1);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.col {
|
|
105
|
+
@extend %col;
|
|
106
|
+
|
|
107
|
+
flex: 1;
|
|
108
|
+
}
|
|
109
|
+
} // End if
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
@if $helper-v1-0 {
|
|
2
|
+
html {
|
|
3
|
+
// Colors
|
|
4
|
+
@include color-classes();
|
|
5
|
+
|
|
6
|
+
// Floating
|
|
7
|
+
.floatl { float: left; }
|
|
8
|
+
.floatr { float: right; }
|
|
9
|
+
.clear { clear: both; }
|
|
10
|
+
.clearfix { @include clearfix; }
|
|
11
|
+
|
|
12
|
+
// Typography
|
|
13
|
+
.roman { font-style: normal }
|
|
14
|
+
.italic { font-style: italic; }
|
|
15
|
+
.light { font-weight: 300; }
|
|
16
|
+
.regular { font-weight: 400; }
|
|
17
|
+
.medium { font-weight: 500; }
|
|
18
|
+
.semibold { font-weight: 600; }
|
|
19
|
+
.bold { font-weight: 700; }
|
|
20
|
+
.ff--base { font-family: $base-font-family; }
|
|
21
|
+
.ff--title { font-family: $title-font-family; }
|
|
22
|
+
|
|
23
|
+
.alignl { text-align: left; }
|
|
24
|
+
.alignr { text-align: right; }
|
|
25
|
+
.alignc { text-align: center; }
|
|
26
|
+
|
|
27
|
+
.font-xs { font-size: $extra-small-font-size; }
|
|
28
|
+
.font-sm { font-size: $small-font-size; }
|
|
29
|
+
.font-md { font-size: $base-font-size; }
|
|
30
|
+
.font-lg { font-size: $large-font-size; }
|
|
31
|
+
.font-xl { font-size: $extra-large-font-size; }
|
|
32
|
+
|
|
33
|
+
.font-h1 { @include font-size($h1-font-size); }
|
|
34
|
+
.font-h2 { @include font-size($h2-font-size); }
|
|
35
|
+
.font-h3 { @include font-size($h3-font-size); }
|
|
36
|
+
.font-h4 { @include font-size($h4-font-size); }
|
|
37
|
+
.font-h5 { @include font-size($h5-font-size); }
|
|
38
|
+
.font-h6 { @include font-size($h6-font-size); }
|
|
39
|
+
|
|
40
|
+
.font-lh-xs { line-height: $extra-small-font-size; }
|
|
41
|
+
.font-lh-sm { line-height: $small-font-size; }
|
|
42
|
+
.font-lh-md { line-height: $base-font-size; }
|
|
43
|
+
.font-lh-lg { line-height: $large-font-size; }
|
|
44
|
+
.font-lh-xl { line-height: $extra-large-font-size; }
|
|
45
|
+
|
|
46
|
+
.resetcase { text-transform: initial; }
|
|
47
|
+
.lowercase { text-transform: lowercase; }
|
|
48
|
+
.uppercase { text-transform: uppercase; }
|
|
49
|
+
.capitalize { text-transform: capitalize; }
|
|
50
|
+
|
|
51
|
+
.strike { text-decoration: line-through; }
|
|
52
|
+
.underline { text-decoration: underline; }
|
|
53
|
+
|
|
54
|
+
.text-inverted { color: color('text-inverted', 'general'); }
|
|
55
|
+
|
|
56
|
+
// Line-height
|
|
57
|
+
.line-height-xs { line-height: $extra-small-element-height; }
|
|
58
|
+
.line-height-sm { line-height: $small-element-height; }
|
|
59
|
+
.line-height-md { line-height: $base-element-height; }
|
|
60
|
+
.line-height-lg { line-height: $large-element-height; }
|
|
61
|
+
.line-height-xl { line-height: $extra-large-element-height; }
|
|
62
|
+
.line-height-reset { line-height: normal; }
|
|
63
|
+
|
|
64
|
+
// Display and visibility
|
|
65
|
+
body.noscript .noscript { display: none !important; }
|
|
66
|
+
|
|
67
|
+
.full-width-fix { margin: 0 ($grid-columns-spacing * -1); }
|
|
68
|
+
.full-width-fix-i { margin: 0 ($grid-columns-spacing * -1) !important; }
|
|
69
|
+
.full-width { width: 100% !important; }
|
|
70
|
+
.full-height { height: 100% !important; }
|
|
71
|
+
.invisible { visibility: hidden; }
|
|
72
|
+
.hide { display: none !important; }
|
|
73
|
+
.inline { display: inline; }
|
|
74
|
+
.inline-i { display: inline !important; }
|
|
75
|
+
.block { display: block; }
|
|
76
|
+
.block-i { display: block !important; }
|
|
77
|
+
.inline-block { display: inline-block; }
|
|
78
|
+
.inline-block-i { display: inline-block !important; }
|
|
79
|
+
.overflow-hidden { overflow: hidden; }
|
|
80
|
+
.overflow-auto { overflow: auto; }
|
|
81
|
+
.overflow-scroll { overflow: scroll !important; }
|
|
82
|
+
.overflow-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
83
|
+
.overflow-visible { overflow: visible; }
|
|
84
|
+
.scrollable {
|
|
85
|
+
overflow-x: hidden;
|
|
86
|
+
overflow-y: auto;
|
|
87
|
+
-webkit-overflow-scrolling: touch;
|
|
88
|
+
|
|
89
|
+
@include breakpoint('md') {
|
|
90
|
+
overflow-y: scroll;
|
|
91
|
+
|
|
92
|
+
&>.container,
|
|
93
|
+
&>.container-fluid {
|
|
94
|
+
min-height: calc(100% + 10px)
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
height: 100%;
|
|
99
|
+
|
|
100
|
+
@include modifier('absolute') {
|
|
101
|
+
@include position(absolute, 0 null null 0);
|
|
102
|
+
|
|
103
|
+
max-height: 100%;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
.v-alignc { vertical-align: middle; }
|
|
107
|
+
.v-alignc-transform { @include transform(translateY(-25%)); }
|
|
108
|
+
.paragraph-readable { max-width: map-get($breakpoints, 'sm'); }
|
|
109
|
+
.paragraph-readable--xs { max-width: map-get($breakpoints, 'xs'); }
|
|
110
|
+
|
|
111
|
+
// Sizes
|
|
112
|
+
.size {
|
|
113
|
+
@each $size in $sizes {
|
|
114
|
+
@include modifier($size) {
|
|
115
|
+
height: map-get($button-sizes, $size);
|
|
116
|
+
|
|
117
|
+
font-size: map-get($font-sizes, $size);
|
|
118
|
+
line-height: map-get($button-sizes, $size);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Margin & Paddings
|
|
124
|
+
$spacing: (
|
|
125
|
+
1: $extra-small-spacing,
|
|
126
|
+
2: $small-spacing,
|
|
127
|
+
3: $base-spacing,
|
|
128
|
+
4: $large-spacing,
|
|
129
|
+
5: $extra-large-spacing
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
.mg-none-i { margin: 0 !important; }
|
|
133
|
+
.mg-x-none-i { margin-left: 0 !important; margin-right: 0 !important; }
|
|
134
|
+
.mg-y-none-i { margin-top: 0 !important; margin-bottom: 0 !important; }
|
|
135
|
+
|
|
136
|
+
@each $name, $space in $spacing {
|
|
137
|
+
.mg-lv#{$name} { margin: $space; }
|
|
138
|
+
.mg-lv#{$name}-i { margin: $space !important; }
|
|
139
|
+
.mg-top-lv#{$name} { margin-top: $space; }
|
|
140
|
+
.mg-top-lv#{$name}-i { margin-top: $space !important; }
|
|
141
|
+
.mg-right-lv#{$name} { margin-right: $space; }
|
|
142
|
+
.mg-right-lv#{$name}-i { margin-right: $space !important; }
|
|
143
|
+
.mg-bottom-lv#{$name} { margin-bottom: $space; }
|
|
144
|
+
.mg-bottom-lv#{$name}-i { margin-bottom: $space !important; }
|
|
145
|
+
.mg-left-lv#{$name} { margin-left: $space; }
|
|
146
|
+
.mg-left-lv#{$name}-i { margin-left: $space !important; }
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.mg-none { margin: 0; }
|
|
150
|
+
.mg-x-none { margin-left: 0; margin-right: 0; }
|
|
151
|
+
.mg-y-none { margin-top: 0; margin-bottom: 0; }
|
|
152
|
+
|
|
153
|
+
.pd-none-i { padding: 0 !important; }
|
|
154
|
+
.pd-x-none-i { padding-left: 0 !important; padding-right: 0 !important; }
|
|
155
|
+
.pd-y-none-i { padding-top: 0 !important; padding-bottom: 0 !important; }
|
|
156
|
+
|
|
157
|
+
@each $name, $space in $spacing {
|
|
158
|
+
.pd-lv#{$name} { padding: $space; }
|
|
159
|
+
.pd-lv#{$name}-i { padding: $space !important; }
|
|
160
|
+
.pd-top-lv#{$name} { padding-top: $space; }
|
|
161
|
+
.pd-top-lv#{$name}-i { padding-top: $space !important; }
|
|
162
|
+
.pd-right-lv#{$name} { padding-right: $space; }
|
|
163
|
+
.pd-right-lv#{$name}-i { padding-right: $space !important; }
|
|
164
|
+
.pd-bottom-lv#{$name} { padding-bottom: $space; }
|
|
165
|
+
.pd-bottom-lv#{$name}-i { padding-bottom: $space !important; }
|
|
166
|
+
.pd-left-lv#{$name} { padding-left: $space; }
|
|
167
|
+
.pd-left-lv#{$name}-i { padding-left: $space !important; }
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.pd-none { padding: 0; }
|
|
171
|
+
.pd-x-none { padding-left: 0; padding-right: 0; }
|
|
172
|
+
.pd-y-none { padding-top: 0; padding-bottom: 0; }
|
|
173
|
+
|
|
174
|
+
.push-left { margin-right: auto; }
|
|
175
|
+
.push-left-i { margin-right: auto !important; }
|
|
176
|
+
.push-right { margin-left: auto; }
|
|
177
|
+
.push-right-i { margin-left: auto !important; }
|
|
178
|
+
.push-center {
|
|
179
|
+
margin-left: auto;
|
|
180
|
+
margin-right: auto;
|
|
181
|
+
}
|
|
182
|
+
.push-center-i {
|
|
183
|
+
margin-left: auto !important;
|
|
184
|
+
margin-right: auto !important;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.show-phone,
|
|
188
|
+
.show-phone-i,
|
|
189
|
+
.show-mobile,
|
|
190
|
+
.show-mobile-i,
|
|
191
|
+
.show-tablet,
|
|
192
|
+
.show-tablet-i,
|
|
193
|
+
.hide-desktop {
|
|
194
|
+
display: none !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@include breakpoint('sm', 'max') {
|
|
198
|
+
.full-width-phone { width: 100%; }
|
|
199
|
+
.left-on-phone { text-align: left; }
|
|
200
|
+
.nofloat-phone { float: none; }
|
|
201
|
+
.show-phone { display: inherit !important; }
|
|
202
|
+
.show-phone-i { display: inherit !important; }
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@include breakpoint('md', 'max') {
|
|
206
|
+
.full-width-mobile { width: 100%; }
|
|
207
|
+
.show-mobile { display: inherit !important; }
|
|
208
|
+
.show-mobile-i { display: inherit !important; }
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@include breakpoint('sm', 'max') {
|
|
212
|
+
.hide-phone { display: none !important; }
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@include breakpoint('md', 'max') {
|
|
216
|
+
.hide-mobile { display: none !important; }
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@include breakpoint('lg', 'max') {
|
|
220
|
+
.hide-tablet { display: none !important; }
|
|
221
|
+
.show-tablet { display: inherit !important; }
|
|
222
|
+
.show-tablet-i { display: inherit !important; }
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@include breakpoint('lg', 'min') {
|
|
226
|
+
.hide-desktop { display: inherit !important; }
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// Video
|
|
230
|
+
.video-wrapper {
|
|
231
|
+
position: relative;
|
|
232
|
+
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
|
|
235
|
+
&::before {
|
|
236
|
+
display: block;
|
|
237
|
+
|
|
238
|
+
padding-bottom: 56.25%; // (1080 / 1920) * 100 (16:9 Aspect ratio)
|
|
239
|
+
|
|
240
|
+
content: '';
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.video, iframe {
|
|
244
|
+
@include position(absolute, 0 null null 0);
|
|
245
|
+
|
|
246
|
+
width: 100%;
|
|
247
|
+
height: 100%;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Aspect ratio (name: width, height)
|
|
252
|
+
.aspect-ratio {
|
|
253
|
+
&::before {
|
|
254
|
+
display: block;
|
|
255
|
+
|
|
256
|
+
width: 100%;
|
|
257
|
+
|
|
258
|
+
content: '';
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@each $name, $map in $aspect-ratios {
|
|
262
|
+
@if (unitless(nth($map, 1)) and unitless(nth($map, 2))) {
|
|
263
|
+
$width: nth($map, 1);
|
|
264
|
+
$height: nth($map, 2);
|
|
265
|
+
$ratio: ($height / $width) * 100;
|
|
266
|
+
|
|
267
|
+
@include modifier($name) {
|
|
268
|
+
&::before {
|
|
269
|
+
padding: 0 0 $ratio + 0%;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// Other
|
|
277
|
+
.notransition {
|
|
278
|
+
@include transition(none !important);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.disabled {
|
|
282
|
+
opacity: .4;
|
|
283
|
+
|
|
284
|
+
pointer-events: none !important;
|
|
285
|
+
|
|
286
|
+
* {
|
|
287
|
+
pointer-events: none !important;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@for $i from 1 through 10 {
|
|
292
|
+
$percentage: ($i * 10) / 100;
|
|
293
|
+
|
|
294
|
+
.opacity-#{$i} {
|
|
295
|
+
opacity: $percentage;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} // End if
|