@foxford/ui 1.9.87 → 1.9.90
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/es/components/Avatar/Avatar.sass +1 -5
- package/es/components/Button/Button.sass +8 -23
- package/es/components/EmojiBtn/EmojiBtn.sass +1 -5
- package/es/components/Form/FormField.sass +2 -2
- package/es/components/Grid/Grid.sass +23 -25
- package/es/components/Icon/Icon.sass +2 -16
- package/es/components/SocialLink/SocialLink.sass +1 -9
- package/es/components/Spacer/Spacer.sass +0 -2
- package/es/components/TagBtn/TagBtn.sass +1 -4
- package/es/enhancers/Color/Color.sass +1 -11
- package/es/enhancers/Display/Display.sass +1 -8
- package/lib/components/Avatar/Avatar.sass +1 -5
- package/lib/components/Button/Button.sass +8 -23
- package/lib/components/EmojiBtn/EmojiBtn.sass +1 -5
- package/lib/components/Form/FormField.sass +2 -2
- package/lib/components/Grid/Grid.sass +23 -25
- package/lib/components/Icon/Icon.sass +2 -16
- package/lib/components/SocialLink/SocialLink.sass +1 -9
- package/lib/components/Spacer/Spacer.sass +0 -2
- package/lib/components/TagBtn/TagBtn.sass +1 -4
- package/lib/enhancers/Color/Color.sass +1 -11
- package/lib/enhancers/Display/Display.sass +1 -8
- package/package.json +1 -1
- package/packages/Button/Button.css +1 -1
- package/packages/Button/_BaseButton.css +1 -1
- package/packages/Button/helpers.css +1 -1
- package/packages/Button/index.css +1 -1
- package/packages/Button/params.css +1 -1
- package/packages/Checkbox/Checkbox.css +1 -1
- package/packages/Checkbox/Group.css +1 -1
- package/packages/Checkbox/index.css +1 -1
- package/packages/ComplexContextMenu/ComplexContextMenu.css +2 -2
- package/packages/ComplexContextMenu/ComplexContextMenu.js +1 -1
- package/packages/ComplexContextMenu/index.css +2 -2
- package/packages/ComplexContextMenu/index.js +1 -1
- package/packages/ComplexContextMenu/mocks.complexContextMenu.css +2 -2
- package/packages/ComplexContextMenu/styles.css +2 -2
- package/packages/Container/Container.css +2 -2
- package/packages/Container/index.css +2 -2
- package/packages/ContextMenu/ContextMenu.css +2 -2
- package/packages/ContextMenu/index.css +2 -2
- package/packages/ContextMenu/styles.css +2 -2
- package/packages/EmojiBtn/EmojiBtn.css +2 -2
- package/packages/EmojiBtn/emojiBtnData.css +2 -2
- package/packages/EmojiBtn/index.css +2 -2
- package/packages/EmptyList/EmptyList.css +2 -2
- package/packages/EmptyList/index.css +2 -2
- package/packages/Form/Form.css +2 -2
- package/packages/Form/FormButton.css +2 -2
- package/packages/Form/FormField.css +2 -2
- package/packages/Form/FormInput.css +2 -2
- package/packages/Form/index.css +2 -2
- package/packages/Grid/Col.css +2 -2
- package/packages/Grid/Col.js +1 -1
- package/packages/Grid/Grid.css +2 -2
- package/packages/Grid/Grid.js +1 -1
- package/packages/Grid/Row.css +2 -2
- package/packages/Grid/Row.js +1 -1
- package/packages/Grid/index.css +2 -2
- package/packages/Grid/index.js +1 -1
- package/packages/Header/Header.css +2 -2
- package/packages/Header/index.css +2 -2
- package/packages/Hidden/Hidden.css +2 -2
- package/packages/Hidden/index.css +2 -2
- package/packages/Icon/Icon.css +2 -2
- package/packages/Icon/_Icons.css +2 -2
- package/packages/Icon/index.css +2 -2
- package/packages/Indicator/Indicator.css +2 -2
- package/packages/Indicator/IndicatorBar.css +2 -2
- package/packages/Indicator/index.css +2 -2
- package/packages/Input/Input.css +2 -2
- package/packages/Input/index.css +2 -2
- package/packages/InputPhone/InputPhone.css +2 -2
- package/packages/InputPhone/index.css +2 -2
- package/packages/List/List.css +2 -2
- package/packages/List/index.css +2 -2
- package/packages/Logo/Logo.css +2 -2
- package/packages/Logo/index.css +2 -2
- package/packages/Modal/Close.css +2 -2
- package/packages/Modal/Modal.css +2 -2
- package/packages/Modal/index.css +2 -2
- package/packages/Paper/Paper.css +2 -2
- package/packages/Paper/Section.css +2 -2
- package/packages/Paper/index.css +2 -2
- package/packages/Phone/Phone.css +2 -2
- package/packages/Phone/index.css +2 -2
- package/packages/Progress/Progress.css +2 -2
- package/packages/Progress/index.css +2 -2
- package/packages/ProgressCircle/ProgressCircle.css +2 -2
- package/packages/ProgressCircle/index.css +2 -2
- package/packages/ProgressSegmented/ProgressSegmented.css +2 -2
- package/packages/ProgressSegmented/index.css +2 -2
- package/packages/Radio/Group.css +2 -2
- package/packages/Radio/Radio.css +2 -2
- package/packages/Radio/index.css +2 -2
- package/packages/Rating/Rating.css +2 -2
- package/packages/Rating/index.css +2 -2
- package/packages/Scrollable/Scrollable.css +2 -2
- package/packages/Scrollable/index.css +2 -2
- package/packages/Section/Section.css +2 -2
- package/packages/Section/index.css +2 -2
- package/packages/Select/Select.css +2 -2
- package/packages/Select/index.css +2 -2
- package/packages/Separator/Separator.css +2 -2
- package/packages/Separator/index.css +2 -2
- package/packages/SocialLink/SocialLink.css +2 -2
- package/packages/SocialLink/index.css +2 -2
- package/packages/SocialLink/mocks.css +2 -2
- package/packages/Spacer/Spacer.css +2 -2
- package/packages/Spacer/index.css +2 -2
- package/packages/Spinner/Spinner.css +2 -2
- package/packages/Spinner/index.css +2 -2
- package/packages/Switcher/Switcher.css +2 -2
- package/packages/Switcher/index.css +2 -2
- package/packages/Tabs/Tab.css +2 -2
- package/packages/Tabs/Tabs.css +2 -2
- package/packages/Tabs/index.css +2 -2
- package/packages/TagBtn/TagBtn.css +2 -2
- package/packages/TagBtn/index.css +2 -2
- package/packages/Text/Text.css +2 -2
- package/packages/Text/index.css +2 -2
- package/packages/Textarea/Textarea.css +2 -2
- package/packages/Textarea/index.css +2 -2
- package/packages/Tooltip/Tooltip.css +2 -2
- package/packages/Tooltip/index.css +2 -2
- package/packages/Tooltip/styles.css +2 -2
- package/packages/Visible/Visible.css +2 -2
- package/packages/Visible/index.css +2 -2
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$sizes: ('l': 120px 120px,
|
|
5
|
-
'm': 68px 68px,
|
|
6
|
-
'sm': 52px 52px,
|
|
7
|
-
's': 40px 40px,
|
|
8
|
-
'xs': 32px 32px)
|
|
4
|
+
$sizes: ('l': 120px 120px,'m': 68px 68px,'sm': 52px 52px,'s': 40px 40px,'xs': 32px 32px)
|
|
9
5
|
|
|
10
6
|
@value sizes #{$sizes}
|
|
11
7
|
|
|
@@ -4,22 +4,10 @@
|
|
|
4
4
|
/* Constants */
|
|
5
5
|
|
|
6
6
|
$props: ('height': height)
|
|
7
|
-
$sizesRound: ('l': 52px,
|
|
8
|
-
'm': 48px,
|
|
9
|
-
'ms': 40px,
|
|
10
|
-
's': 32px)
|
|
7
|
+
$sizesRound: ('l': 52px,'m': 48px,'ms': 40px,'s': 32px)
|
|
11
8
|
$heights: $sizesNumeric
|
|
12
|
-
$widths: ('l': 280px,
|
|
13
|
-
'
|
|
14
|
-
's': 180px,
|
|
15
|
-
'xs': 140px)
|
|
16
|
-
$themes: ('default': $accent $white null null,
|
|
17
|
-
'primary': $primary $white null null,
|
|
18
|
-
'secondary': $atlantis $white null null,
|
|
19
|
-
'white': $white $mineShaft $mercury null,
|
|
20
|
-
'whiteAccent': $white $accent $mercury null,
|
|
21
|
-
'opacityWhite': $transparent $white $mercury $mineShaft,
|
|
22
|
-
'vk': $vk $white null null)
|
|
9
|
+
$widths: ('l': 280px,'m': 245px,'s': 180px,'xs': 140px)
|
|
10
|
+
$themes: ('default': $accent $white null null,'primary': $primary $white null null,'secondary': $atlantis $white null null,'white': $white $mineShaft $mercury null,'whiteAccent': $white $accent $mercury null,'opacityWhite': $transparent $white $mercury $mineShaft,'vk': $vk $white null null)
|
|
23
11
|
|
|
24
12
|
@value props #{$props}
|
|
25
13
|
@value sizesRound #{$sizesRound}
|
|
@@ -36,7 +24,6 @@ $themes: ('default': $accent $white null null,
|
|
|
36
24
|
100%
|
|
37
25
|
background-position: 50px 50px
|
|
38
26
|
|
|
39
|
-
|
|
40
27
|
/* Mixins */
|
|
41
28
|
|
|
42
29
|
@mixin button($color: $white, $bgColor: $accent, $hoverBgColor: null, $hoverColor: null)
|
|
@@ -78,11 +65,11 @@ $themes: ('default': $accent $white null null,
|
|
|
78
65
|
|
|
79
66
|
&.basic,
|
|
80
67
|
&.inverted,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active,
|
|
70
|
+
&.hovered,
|
|
71
|
+
&.pressed
|
|
72
|
+
color: $color !important
|
|
86
73
|
|
|
87
74
|
&.opacity
|
|
88
75
|
&:not(:hover),
|
|
@@ -103,7 +90,6 @@ $themes: ('default': $accent $white null null,
|
|
|
103
90
|
&.pressed
|
|
104
91
|
box-shadow: inset 0 4px 0px 0px rgba(0, 0, 0, 0.14) !important
|
|
105
92
|
|
|
106
|
-
|
|
107
93
|
&:not(.loading)
|
|
108
94
|
&.disabled,
|
|
109
95
|
&:disabled
|
|
@@ -214,7 +200,6 @@ $themes: ('default': $accent $white null null,
|
|
|
214
200
|
width: 100%
|
|
215
201
|
min-width: initial
|
|
216
202
|
|
|
217
|
-
|
|
218
203
|
.text
|
|
219
204
|
display: inline-block
|
|
220
205
|
line-height: 1
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$sizes: ('l': 48px 48px,
|
|
5
|
-
'm': 40px 40px,
|
|
6
|
-
's': 24px 24px)
|
|
4
|
+
$sizes: ('l': 48px 48px,'m': 40px 40px,'s': 24px 24px)
|
|
7
5
|
|
|
8
6
|
@value sizes #{$sizes}
|
|
9
7
|
|
|
@@ -67,5 +65,3 @@ $sizes: ('l': 48px 48px,
|
|
|
67
65
|
|
|
68
66
|
&.disabled
|
|
69
67
|
display: none
|
|
70
|
-
|
|
71
|
-
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$sizes: ("xl": 380px, "l": 320px, "m": 280px, "s": 80px)
|
|
5
|
-
$vAligns: ("top": top, "center": center, "baseline": baseline, "middle": middle, "bottom": bottom)
|
|
4
|
+
$sizes: ("xl": 380px, "l": 320px, "m": 280px, "s": 80px)
|
|
5
|
+
$vAligns: ("top": top, "center": center, "baseline": baseline, "middle": middle, "bottom": bottom)
|
|
6
6
|
|
|
7
7
|
@value sizes #{$sizes}
|
|
8
8
|
@value vAligns #{$vAligns}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
* Partially based on [waffle-grid](https://lucasgruwez.github.io/waffle-grid)
|
|
4
|
+
* Grid config
|
|
5
|
+
*/
|
|
6
6
|
|
|
7
7
|
// Class names
|
|
8
8
|
$grid-classname: 'grid' !default
|
|
@@ -26,21 +26,20 @@ $gridGutterMaxS: $gutter-width
|
|
|
26
26
|
// Breakpoints
|
|
27
27
|
$breakpointsGrid: (('l', $maxLargeScreen, (4, 8, 12), $gridGutterMinM), ('m', $maxMediumScreen, (4, 6, 8), $gridGutterMinM), ('s', $maxSmallScreen, (4, 6), $gridGutterMaxS))
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
// Pushes and Pulls
|
|
31
|
-
$pushes: true !default
|
|
32
|
-
$pulls: true !default
|
|
30
|
+
$pushes: true !default
|
|
31
|
+
$pulls: true !default
|
|
33
32
|
|
|
34
33
|
/* grid */
|
|
35
34
|
.#{$grid-classname}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
display: flex
|
|
36
|
+
flex-direction: column
|
|
37
|
+
width: $grid-width
|
|
38
|
+
max-width: $grid-max-width
|
|
39
|
+
margin: 0 auto
|
|
40
|
+
&.full-width
|
|
41
|
+
width: 100%
|
|
42
|
+
max-width: 100%
|
|
44
43
|
|
|
45
44
|
/* row */
|
|
46
45
|
.#{$row-classname}
|
|
@@ -51,7 +50,6 @@ $pulls: true !default;
|
|
|
51
50
|
margin-left: -$gutter-width / 2
|
|
52
51
|
margin-right: -$gutter-width / 2
|
|
53
52
|
|
|
54
|
-
|
|
55
53
|
/* column */
|
|
56
54
|
.#{$column-classname}
|
|
57
55
|
box-sizing: border-box
|
|
@@ -129,25 +127,25 @@ $pulls: true !default;
|
|
|
129
127
|
|
|
130
128
|
/* column widths */
|
|
131
129
|
@each $col-am in $grid-columns
|
|
132
|
-
|
|
130
|
+
@for $i from 1 through $col-am
|
|
133
131
|
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
.#{$column-classname}-#{$i}-of-#{$col-am}
|
|
133
|
+
width: calc(#{percentage($i/$col-am)} - #{$gutter-width})
|
|
136
134
|
// end width
|
|
137
135
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
@if ($pushes)
|
|
137
|
+
.push-#{$i}-of-#{$col-am}
|
|
138
|
+
margin-left: calc(#{percentage($i/$col-am)} + #{$gutter-width} / 2)
|
|
141
139
|
// end pushes
|
|
142
140
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
@if ($pulls)
|
|
142
|
+
.pull-#{$i}-of-#{$col-am}
|
|
143
|
+
margin-left: calc(-#{percentage($i/$col-am)} + #{$gutter-width} / 2)
|
|
146
144
|
// end pulls
|
|
147
145
|
|
|
148
146
|
@each $bp in $breakpointsGrid
|
|
149
147
|
|
|
150
|
-
|
|
148
|
+
@media (max-width: #{nth($bp, 2)})
|
|
151
149
|
.#{$row-classname}
|
|
152
150
|
margin-left: -(nth($bp, 4)/2)
|
|
153
151
|
margin-right: -(nth($bp, 4)/2)
|
|
@@ -3,23 +3,9 @@
|
|
|
3
3
|
@import '../../utils/utils'
|
|
4
4
|
|
|
5
5
|
$props: ('size': 'font-size')
|
|
6
|
-
$legacySizes: ('xxxl': 42px,
|
|
7
|
-
'xxl': 38px,
|
|
8
|
-
'xl': 34px,
|
|
9
|
-
'lm': 32px,
|
|
10
|
-
'l': 30px,
|
|
11
|
-
'm': 26px,
|
|
12
|
-
's': 22px,
|
|
13
|
-
'xs': 18px,
|
|
14
|
-
'xxs': 14px,
|
|
15
|
-
'xxxs': 10px)
|
|
6
|
+
$legacySizes: ('xxxl': 42px,'xxl': 38px,'xl': 34px,'lm': 32px,'l': 30px,'m': 26px,'s': 22px,'xs': 18px,'xxs': 14px,'xxxs': 10px)
|
|
16
7
|
$localSizes: map-merge($legacySizes, $sizesNumeric)
|
|
17
|
-
$vAligns: ('top': top,
|
|
18
|
-
'middle': middle,
|
|
19
|
-
'bottom': bottom,
|
|
20
|
-
'text-top': text-top,
|
|
21
|
-
'text-bottom': text-bottom,
|
|
22
|
-
'baseline': baseline)
|
|
8
|
+
$vAligns: ('top': top,'middle': middle,'bottom': bottom,'text-top': text-top,'text-bottom': text-bottom,'baseline': baseline)
|
|
23
9
|
|
|
24
10
|
@value sizes #{$localSizes}
|
|
25
11
|
@value vAligns #{$vAligns}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
@import '../../utils/variables.scss'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$icons: ('vk': 'vk',
|
|
5
|
-
'vkInverse': 'vkinverse',
|
|
6
|
-
'yt': 'yt',
|
|
7
|
-
'ok': 'ok',
|
|
8
|
-
'ig': 'insta',
|
|
9
|
-
'fb': 'fb',
|
|
10
|
-
'eljur': 'eljur',
|
|
11
|
-
'mailru': 'mailru',
|
|
12
|
-
'gp': 'gp')
|
|
4
|
+
$icons: ('vk': 'vk','vkInverse': 'vkinverse','yt': 'yt','ok': 'ok','ig': 'insta','fb': 'fb','eljur': 'eljur','mailru': 'mailru','gp': 'gp')
|
|
13
5
|
|
|
14
6
|
$localSizes: ('l': 44px 44px, 'm': 40px 40px, 's': 32px 32px)
|
|
15
7
|
|
|
@@ -4,17 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
$props: ('color': color)
|
|
6
6
|
|
|
7
|
-
$additionalColors: ('black': $tundora,
|
|
8
|
-
'blue': $accent,
|
|
9
|
-
'red': $pomegranate,
|
|
10
|
-
'green': $atlantis,
|
|
11
|
-
'grey': $silver,
|
|
12
|
-
'darkgrey': $mineShaft,
|
|
13
|
-
'lightgrey': $alto,
|
|
14
|
-
'superlightgrey': $mercury,
|
|
15
|
-
'primary': $primary,
|
|
16
|
-
'accent': $accent,
|
|
17
|
-
'inherit': inherit)
|
|
7
|
+
$additionalColors: ('black': $tundora,'blue': $accent,'red': $pomegranate,'green': $atlantis,'grey': $silver,'darkgrey': $mineShaft,'lightgrey': $alto,'superlightgrey': $mercury,'primary': $primary,'accent': $accent,'inherit': inherit)
|
|
18
8
|
$localColors: map-merge($colors, $additionalColors)
|
|
19
9
|
$localColors: map-merge($localColors, $theme-colors)
|
|
20
10
|
|
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
$props: ('display': display)
|
|
5
5
|
|
|
6
|
-
$displays: ('block': block,
|
|
7
|
-
'inline': inline,
|
|
8
|
-
'inline-block': inline-block,
|
|
9
|
-
'flex': flex,
|
|
10
|
-
'inline-flex': inline-flex,
|
|
11
|
-
'table-cell': table-cell,
|
|
12
|
-
'inherit': inherit,
|
|
13
|
-
'none': none)
|
|
6
|
+
$displays: ('block': block,'inline': inline,'inline-block': inline-block,'flex': flex,'inline-flex': inline-flex,'table-cell': table-cell,'inherit': inherit,'none': none)
|
|
14
7
|
|
|
15
8
|
@value displays #{$displays}
|
|
16
9
|
@value props #{$props}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$sizes: ('l': 120px 120px,
|
|
5
|
-
'm': 68px 68px,
|
|
6
|
-
'sm': 52px 52px,
|
|
7
|
-
's': 40px 40px,
|
|
8
|
-
'xs': 32px 32px)
|
|
4
|
+
$sizes: ('l': 120px 120px,'m': 68px 68px,'sm': 52px 52px,'s': 40px 40px,'xs': 32px 32px)
|
|
9
5
|
|
|
10
6
|
@value sizes #{$sizes}
|
|
11
7
|
|
|
@@ -4,22 +4,10 @@
|
|
|
4
4
|
/* Constants */
|
|
5
5
|
|
|
6
6
|
$props: ('height': height)
|
|
7
|
-
$sizesRound: ('l': 52px,
|
|
8
|
-
'm': 48px,
|
|
9
|
-
'ms': 40px,
|
|
10
|
-
's': 32px)
|
|
7
|
+
$sizesRound: ('l': 52px,'m': 48px,'ms': 40px,'s': 32px)
|
|
11
8
|
$heights: $sizesNumeric
|
|
12
|
-
$widths: ('l': 280px,
|
|
13
|
-
'
|
|
14
|
-
's': 180px,
|
|
15
|
-
'xs': 140px)
|
|
16
|
-
$themes: ('default': $accent $white null null,
|
|
17
|
-
'primary': $primary $white null null,
|
|
18
|
-
'secondary': $atlantis $white null null,
|
|
19
|
-
'white': $white $mineShaft $mercury null,
|
|
20
|
-
'whiteAccent': $white $accent $mercury null,
|
|
21
|
-
'opacityWhite': $transparent $white $mercury $mineShaft,
|
|
22
|
-
'vk': $vk $white null null)
|
|
9
|
+
$widths: ('l': 280px,'m': 245px,'s': 180px,'xs': 140px)
|
|
10
|
+
$themes: ('default': $accent $white null null,'primary': $primary $white null null,'secondary': $atlantis $white null null,'white': $white $mineShaft $mercury null,'whiteAccent': $white $accent $mercury null,'opacityWhite': $transparent $white $mercury $mineShaft,'vk': $vk $white null null)
|
|
23
11
|
|
|
24
12
|
@value props #{$props}
|
|
25
13
|
@value sizesRound #{$sizesRound}
|
|
@@ -36,7 +24,6 @@ $themes: ('default': $accent $white null null,
|
|
|
36
24
|
100%
|
|
37
25
|
background-position: 50px 50px
|
|
38
26
|
|
|
39
|
-
|
|
40
27
|
/* Mixins */
|
|
41
28
|
|
|
42
29
|
@mixin button($color: $white, $bgColor: $accent, $hoverBgColor: null, $hoverColor: null)
|
|
@@ -78,11 +65,11 @@ $themes: ('default': $accent $white null null,
|
|
|
78
65
|
|
|
79
66
|
&.basic,
|
|
80
67
|
&.inverted,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active,
|
|
70
|
+
&.hovered,
|
|
71
|
+
&.pressed
|
|
72
|
+
color: $color !important
|
|
86
73
|
|
|
87
74
|
&.opacity
|
|
88
75
|
&:not(:hover),
|
|
@@ -103,7 +90,6 @@ $themes: ('default': $accent $white null null,
|
|
|
103
90
|
&.pressed
|
|
104
91
|
box-shadow: inset 0 4px 0px 0px rgba(0, 0, 0, 0.14) !important
|
|
105
92
|
|
|
106
|
-
|
|
107
93
|
&:not(.loading)
|
|
108
94
|
&.disabled,
|
|
109
95
|
&:disabled
|
|
@@ -214,7 +200,6 @@ $themes: ('default': $accent $white null null,
|
|
|
214
200
|
width: 100%
|
|
215
201
|
min-width: initial
|
|
216
202
|
|
|
217
|
-
|
|
218
203
|
.text
|
|
219
204
|
display: inline-block
|
|
220
205
|
line-height: 1
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$sizes: ('l': 48px 48px,
|
|
5
|
-
'm': 40px 40px,
|
|
6
|
-
's': 24px 24px)
|
|
4
|
+
$sizes: ('l': 48px 48px,'m': 40px 40px,'s': 24px 24px)
|
|
7
5
|
|
|
8
6
|
@value sizes #{$sizes}
|
|
9
7
|
|
|
@@ -67,5 +65,3 @@ $sizes: ('l': 48px 48px,
|
|
|
67
65
|
|
|
68
66
|
&.disabled
|
|
69
67
|
display: none
|
|
70
|
-
|
|
71
|
-
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$sizes: ("xl": 380px, "l": 320px, "m": 280px, "s": 80px)
|
|
5
|
-
$vAligns: ("top": top, "center": center, "baseline": baseline, "middle": middle, "bottom": bottom)
|
|
4
|
+
$sizes: ("xl": 380px, "l": 320px, "m": 280px, "s": 80px)
|
|
5
|
+
$vAligns: ("top": top, "center": center, "baseline": baseline, "middle": middle, "bottom": bottom)
|
|
6
6
|
|
|
7
7
|
@value sizes #{$sizes}
|
|
8
8
|
@value vAligns #{$vAligns}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '../../utils/variables'
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
* Partially based on [waffle-grid](https://lucasgruwez.github.io/waffle-grid)
|
|
4
|
+
* Grid config
|
|
5
|
+
*/
|
|
6
6
|
|
|
7
7
|
// Class names
|
|
8
8
|
$grid-classname: 'grid' !default
|
|
@@ -26,21 +26,20 @@ $gridGutterMaxS: $gutter-width
|
|
|
26
26
|
// Breakpoints
|
|
27
27
|
$breakpointsGrid: (('l', $maxLargeScreen, (4, 8, 12), $gridGutterMinM), ('m', $maxMediumScreen, (4, 6, 8), $gridGutterMinM), ('s', $maxSmallScreen, (4, 6), $gridGutterMaxS))
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
// Pushes and Pulls
|
|
31
|
-
$pushes: true !default
|
|
32
|
-
$pulls: true !default
|
|
30
|
+
$pushes: true !default
|
|
31
|
+
$pulls: true !default
|
|
33
32
|
|
|
34
33
|
/* grid */
|
|
35
34
|
.#{$grid-classname}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
display: flex
|
|
36
|
+
flex-direction: column
|
|
37
|
+
width: $grid-width
|
|
38
|
+
max-width: $grid-max-width
|
|
39
|
+
margin: 0 auto
|
|
40
|
+
&.full-width
|
|
41
|
+
width: 100%
|
|
42
|
+
max-width: 100%
|
|
44
43
|
|
|
45
44
|
/* row */
|
|
46
45
|
.#{$row-classname}
|
|
@@ -51,7 +50,6 @@ $pulls: true !default;
|
|
|
51
50
|
margin-left: -$gutter-width / 2
|
|
52
51
|
margin-right: -$gutter-width / 2
|
|
53
52
|
|
|
54
|
-
|
|
55
53
|
/* column */
|
|
56
54
|
.#{$column-classname}
|
|
57
55
|
box-sizing: border-box
|
|
@@ -129,25 +127,25 @@ $pulls: true !default;
|
|
|
129
127
|
|
|
130
128
|
/* column widths */
|
|
131
129
|
@each $col-am in $grid-columns
|
|
132
|
-
|
|
130
|
+
@for $i from 1 through $col-am
|
|
133
131
|
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
.#{$column-classname}-#{$i}-of-#{$col-am}
|
|
133
|
+
width: calc(#{percentage($i/$col-am)} - #{$gutter-width})
|
|
136
134
|
// end width
|
|
137
135
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
@if ($pushes)
|
|
137
|
+
.push-#{$i}-of-#{$col-am}
|
|
138
|
+
margin-left: calc(#{percentage($i/$col-am)} + #{$gutter-width} / 2)
|
|
141
139
|
// end pushes
|
|
142
140
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
@if ($pulls)
|
|
142
|
+
.pull-#{$i}-of-#{$col-am}
|
|
143
|
+
margin-left: calc(-#{percentage($i/$col-am)} + #{$gutter-width} / 2)
|
|
146
144
|
// end pulls
|
|
147
145
|
|
|
148
146
|
@each $bp in $breakpointsGrid
|
|
149
147
|
|
|
150
|
-
|
|
148
|
+
@media (max-width: #{nth($bp, 2)})
|
|
151
149
|
.#{$row-classname}
|
|
152
150
|
margin-left: -(nth($bp, 4)/2)
|
|
153
151
|
margin-right: -(nth($bp, 4)/2)
|
|
@@ -3,23 +3,9 @@
|
|
|
3
3
|
@import '../../utils/utils'
|
|
4
4
|
|
|
5
5
|
$props: ('size': 'font-size')
|
|
6
|
-
$legacySizes: ('xxxl': 42px,
|
|
7
|
-
'xxl': 38px,
|
|
8
|
-
'xl': 34px,
|
|
9
|
-
'lm': 32px,
|
|
10
|
-
'l': 30px,
|
|
11
|
-
'm': 26px,
|
|
12
|
-
's': 22px,
|
|
13
|
-
'xs': 18px,
|
|
14
|
-
'xxs': 14px,
|
|
15
|
-
'xxxs': 10px)
|
|
6
|
+
$legacySizes: ('xxxl': 42px,'xxl': 38px,'xl': 34px,'lm': 32px,'l': 30px,'m': 26px,'s': 22px,'xs': 18px,'xxs': 14px,'xxxs': 10px)
|
|
16
7
|
$localSizes: map-merge($legacySizes, $sizesNumeric)
|
|
17
|
-
$vAligns: ('top': top,
|
|
18
|
-
'middle': middle,
|
|
19
|
-
'bottom': bottom,
|
|
20
|
-
'text-top': text-top,
|
|
21
|
-
'text-bottom': text-bottom,
|
|
22
|
-
'baseline': baseline)
|
|
8
|
+
$vAligns: ('top': top,'middle': middle,'bottom': bottom,'text-top': text-top,'text-bottom': text-bottom,'baseline': baseline)
|
|
23
9
|
|
|
24
10
|
@value sizes #{$localSizes}
|
|
25
11
|
@value vAligns #{$vAligns}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
@import '../../utils/variables.scss'
|
|
2
2
|
@import '../../utils/utils'
|
|
3
3
|
|
|
4
|
-
$icons: ('vk': 'vk',
|
|
5
|
-
'vkInverse': 'vkinverse',
|
|
6
|
-
'yt': 'yt',
|
|
7
|
-
'ok': 'ok',
|
|
8
|
-
'ig': 'insta',
|
|
9
|
-
'fb': 'fb',
|
|
10
|
-
'eljur': 'eljur',
|
|
11
|
-
'mailru': 'mailru',
|
|
12
|
-
'gp': 'gp')
|
|
4
|
+
$icons: ('vk': 'vk','vkInverse': 'vkinverse','yt': 'yt','ok': 'ok','ig': 'insta','fb': 'fb','eljur': 'eljur','mailru': 'mailru','gp': 'gp')
|
|
13
5
|
|
|
14
6
|
$localSizes: ('l': 44px 44px, 'm': 40px 40px, 's': 32px 32px)
|
|
15
7
|
|
|
@@ -4,17 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
$props: ('color': color)
|
|
6
6
|
|
|
7
|
-
$additionalColors: ('black': $tundora,
|
|
8
|
-
'blue': $accent,
|
|
9
|
-
'red': $pomegranate,
|
|
10
|
-
'green': $atlantis,
|
|
11
|
-
'grey': $silver,
|
|
12
|
-
'darkgrey': $mineShaft,
|
|
13
|
-
'lightgrey': $alto,
|
|
14
|
-
'superlightgrey': $mercury,
|
|
15
|
-
'primary': $primary,
|
|
16
|
-
'accent': $accent,
|
|
17
|
-
'inherit': inherit)
|
|
7
|
+
$additionalColors: ('black': $tundora,'blue': $accent,'red': $pomegranate,'green': $atlantis,'grey': $silver,'darkgrey': $mineShaft,'lightgrey': $alto,'superlightgrey': $mercury,'primary': $primary,'accent': $accent,'inherit': inherit)
|
|
18
8
|
$localColors: map-merge($colors, $additionalColors)
|
|
19
9
|
$localColors: map-merge($localColors, $theme-colors)
|
|
20
10
|
|
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
$props: ('display': display)
|
|
5
5
|
|
|
6
|
-
$displays: ('block': block,
|
|
7
|
-
'inline': inline,
|
|
8
|
-
'inline-block': inline-block,
|
|
9
|
-
'flex': flex,
|
|
10
|
-
'inline-flex': inline-flex,
|
|
11
|
-
'table-cell': table-cell,
|
|
12
|
-
'inherit': inherit,
|
|
13
|
-
'none': none)
|
|
6
|
+
$displays: ('block': block,'inline': inline,'inline-block': inline-block,'flex': flex,'inline-flex': inline-flex,'table-cell': table-cell,'inherit': inherit,'none': none)
|
|
14
7
|
|
|
15
8
|
@value displays #{$displays}
|
|
16
9
|
@value props #{$props}
|