@woosmap/ui 2.56.0 → 3.2.0
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/.storybook/preview.js +2 -2
- package/package.json +2 -2
- package/src/components/Demo/SkeletonDemo.js +17 -87
- package/src/components/Dropdown/Dropdown.js +9 -7
- package/src/components/Map/drawOnMap.js +46 -40
- package/src/styles/next-website/button.styl +343 -0
- package/src/styles/next-website/colors.styl +279 -0
- package/src/styles/next-website/demo.styl +65 -0
- package/src/styles/next-website/dropdown.styl +82 -0
- package/src/styles/next-website/font.styl +1 -0
- package/src/styles/next-website/input.styl +136 -0
- package/src/styles/next-website/mixins.styl +126 -0
- package/src/styles/next-website/select.styl +111 -0
- package/src/styles/next-website/tab.styl +41 -0
- package/src/styles/next-website/variables.styl +110 -0
- package/src/styles/style-next-website.styl +12 -12
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
|
|
2
|
+
// Main colors
|
|
3
|
+
$logo1 = rgba(79, 195, 247, 1) // #4fc3f7
|
|
4
|
+
$logo2 = rgba(85, 134, 255, 1) // #5586ff
|
|
5
|
+
$logo3 = rgba(61, 90, 254, 1) // #3d5afe
|
|
6
|
+
$logo4 = rgba(57, 73, 171, 1) // #3949ab
|
|
7
|
+
$logo5 = rgba(197, 17, 98, 1) // #c51162
|
|
8
|
+
$logo6 = rgba(245, 0, 87, 1) // #f50057
|
|
9
|
+
$logo7 = rgba(255, 82, 82, 1) // #ff5252
|
|
10
|
+
$logo8 = rgba(255, 171, 0, 1) // #ffab00
|
|
11
|
+
|
|
12
|
+
$linkColorDark = #01b3ff
|
|
13
|
+
$linkColor = $logo3
|
|
14
|
+
|
|
15
|
+
$primary = $logo3 // 3d5afe
|
|
16
|
+
$primary90 = rgba(61, 90, 254, .9)
|
|
17
|
+
$primary80 = rgba(61, 90, 254, .8)
|
|
18
|
+
$primary70 = rgba(61, 90, 254, .7)
|
|
19
|
+
$primary60 = rgba(61, 90, 254, .6)
|
|
20
|
+
$primary50 = rgba(61, 90, 254, .5)
|
|
21
|
+
$primary40 = rgba(61, 90, 254, .4)
|
|
22
|
+
$primary30 = rgba(61, 90, 254, .3)
|
|
23
|
+
$primary25 = rgba(61, 90, 254, .25)
|
|
24
|
+
$primary20 = rgba(61, 90, 254, .2)
|
|
25
|
+
$primary15 = rgba(61, 90, 254, .15)
|
|
26
|
+
$primary14 = rgba(61, 90, 254, .14)
|
|
27
|
+
$primary13 = rgba(61, 90, 254, .13)
|
|
28
|
+
$primary12 = rgba(61, 90, 254, .12)
|
|
29
|
+
$primary11 = rgba(61, 90, 254, .11)
|
|
30
|
+
$primary10 = rgba(61, 90, 254, .1)
|
|
31
|
+
$primary9 = rgba(61, 90, 254, .09)
|
|
32
|
+
$primary8 = rgba(61, 90, 254, .08)
|
|
33
|
+
$primary7 = rgba(61, 90, 254, .07)
|
|
34
|
+
$primary6 = rgba(61, 90, 254, .06)
|
|
35
|
+
$primary5 = rgba(61, 90, 254, .05)
|
|
36
|
+
$primary4 = rgba(61, 90, 254, .04)
|
|
37
|
+
$primary3 = rgba(61, 90, 254, .03)
|
|
38
|
+
$primary2 = rgba(61, 90, 254, .02)
|
|
39
|
+
$primary1 = rgba(61, 90, 254, .01)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
$secondary = #252525
|
|
43
|
+
$secondary-medium60 = $secondary
|
|
44
|
+
$secondary-medium40 = $secondary
|
|
45
|
+
$secondary-medium30 = $secondary
|
|
46
|
+
$secondary-medium25 = $secondary
|
|
47
|
+
|
|
48
|
+
$bodyColor = #F8FAFD
|
|
49
|
+
// Texts & Components
|
|
50
|
+
$textColor = $secondary
|
|
51
|
+
|
|
52
|
+
$category = #A6A9B4
|
|
53
|
+
|
|
54
|
+
$darkGradient1 = #262D3E
|
|
55
|
+
$darkGradient2 = #31436C
|
|
56
|
+
|
|
57
|
+
$coloredGradient1 = $logo3
|
|
58
|
+
$coloredGradient2 = $logo6
|
|
59
|
+
$coloredGradient3 = $logo8
|
|
60
|
+
|
|
61
|
+
$buttonHover = $success2
|
|
62
|
+
$buttonBorderColor = #454545
|
|
63
|
+
$borderColor = #ebebed
|
|
64
|
+
|
|
65
|
+
$special = #FF368B
|
|
66
|
+
$special2 = #ff3260
|
|
67
|
+
$special3 = #46cebc
|
|
68
|
+
$focus = #3633ff
|
|
69
|
+
|
|
70
|
+
$favorite = #ffc200
|
|
71
|
+
|
|
72
|
+
$modalBg = rgba(0, 11, 31, .85)
|
|
73
|
+
|
|
74
|
+
// Labels
|
|
75
|
+
$labelBlue = #52a6e2
|
|
76
|
+
$labelMauve = #7d74c7
|
|
77
|
+
$labelGreen = #47bb90
|
|
78
|
+
$labelGrey = #7a86a7
|
|
79
|
+
$labelOrange = #dc9d40
|
|
80
|
+
$labelRed = #dc4e7e
|
|
81
|
+
|
|
82
|
+
// Metric
|
|
83
|
+
$metricsProjects = rgba(71, 72, 107, 1) // #47486b
|
|
84
|
+
$metricsProjects80 = rgba(71, 72, 107, .8) // #47486b
|
|
85
|
+
$metricsProjects60 = rgba(71, 72, 107, .6) // #47486b
|
|
86
|
+
$metricsProjects20 = rgba(71, 72, 107, .2) // #47486b
|
|
87
|
+
$metricsProjects10 = rgba(71, 72, 107, .1) // #47486b
|
|
88
|
+
$metricsProjects5 = rgba(71, 72, 107, .05) // #47486b
|
|
89
|
+
$metricsAssets = $metricsProjects
|
|
90
|
+
$metricsMembers = rgba(100, 107, 142, 1) // #646b8e
|
|
91
|
+
$metricsMembers20 = rgba(100, 107, 142, .2) // #646b8e
|
|
92
|
+
$metricsMembers10 = rgba(100, 107, 142, .1) // #646b8e
|
|
93
|
+
$metricsMembers5 = rgba(100, 107, 142, .05) // #646b8e
|
|
94
|
+
$metricsTeams = #839ba7
|
|
95
|
+
|
|
96
|
+
$metricsTopProjects = rgba(237, 247, 249, 1) // #edf7f9
|
|
97
|
+
$metricsLastCreatedProjects = rgba(233, 249, 242, 1) // #e9f9f2
|
|
98
|
+
|
|
99
|
+
$apiKey = #595390
|
|
100
|
+
|
|
101
|
+
// Privilege
|
|
102
|
+
$superuser = #277ed7
|
|
103
|
+
$staff = #ec4a8e
|
|
104
|
+
$owner = #4e6d94
|
|
105
|
+
$co-owner = #6fbb8a
|
|
106
|
+
|
|
107
|
+
// Plans
|
|
108
|
+
$free = #72b3a7
|
|
109
|
+
$standard = #4b7bd3
|
|
110
|
+
$enterprise = #c3417d
|
|
111
|
+
|
|
112
|
+
// Alerts
|
|
113
|
+
$success2 = rgba(14, 206, 170, 1)// #0eceaa
|
|
114
|
+
|
|
115
|
+
$success = rgba(47, 188, 114, 1)
|
|
116
|
+
$success-light = #0ff1c6
|
|
117
|
+
$success-dark = #0cc7a4
|
|
118
|
+
|
|
119
|
+
$success80 = rgba(47, 188, 114, .8)
|
|
120
|
+
$success70 = rgba(47, 188, 114, .7)
|
|
121
|
+
$success60 = rgba(47, 188, 114, .6)
|
|
122
|
+
$success50 = rgba(47, 188, 114, .5)
|
|
123
|
+
$success20 = rgba(47, 188, 114, .2)
|
|
124
|
+
$success50 = rgba(47, 188, 114, .5)
|
|
125
|
+
|
|
126
|
+
$error = rgba(220, 55, 71, 1) // #FF1744
|
|
127
|
+
$error-light = #ff6785
|
|
128
|
+
$error-dark = #ca0f33
|
|
129
|
+
|
|
130
|
+
$error50 = rgba(220, 55, 71, 5)
|
|
131
|
+
$error12 = rgba(220, 55, 71, .12)
|
|
132
|
+
$error30 = rgba(220, 55, 71, .3)
|
|
133
|
+
|
|
134
|
+
$info = rgba(0, 124, 255, 1) // #00B0FF
|
|
135
|
+
$info12 = rgba(0, 124, 255, .12)
|
|
136
|
+
$info30 = rgba(0, 124, 255, .3)
|
|
137
|
+
|
|
138
|
+
$warning = rgba(240, 116, 34, 1) // #ff6a00
|
|
139
|
+
$warning12 = rgba(240, 116, 34, .12)
|
|
140
|
+
$warning30 = rgba(240, 116, 34, .3)
|
|
141
|
+
|
|
142
|
+
$tip = rgba(240, 186, 34, 1) // #f0ba22
|
|
143
|
+
$tip12 = rgba(240, 186, 34, .12)
|
|
144
|
+
$tip50 = rgba(240, 186, 34, .5)
|
|
145
|
+
$tipInverse = rgba(223, 169, 16, 1)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
$flashError = $error
|
|
149
|
+
$flashBgError = $error12
|
|
150
|
+
$flashBorderError = $error30
|
|
151
|
+
|
|
152
|
+
$flashSuccess = $success
|
|
153
|
+
$flashBgSuccess = $success20
|
|
154
|
+
$flashBorderSuccess = $success50
|
|
155
|
+
|
|
156
|
+
$flashInfo = $info
|
|
157
|
+
$flashBgInfo = $info12
|
|
158
|
+
$flashBorderInfo = $info30
|
|
159
|
+
|
|
160
|
+
$flashWarning = $warning
|
|
161
|
+
$flashBgWarning = $warning12
|
|
162
|
+
$flashBorderWarning = $warning30
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
$flashTip = $tip
|
|
166
|
+
$flashBgTip = $tip12
|
|
167
|
+
$flashBorderTip = $tip50
|
|
168
|
+
$flashTipInverse = $tipInverse
|
|
169
|
+
|
|
170
|
+
$flashHowto = $howto
|
|
171
|
+
$flashBgHowto = $howtoLight
|
|
172
|
+
$flashBorderHowto = $howtoDark
|
|
173
|
+
|
|
174
|
+
// Switch
|
|
175
|
+
$switch-inactive=$dark40
|
|
176
|
+
$switch-disabled= $dark10
|
|
177
|
+
$switch-active= $success2
|
|
178
|
+
$switch-focus= $primary
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
// Tabs
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
// DEMO
|
|
185
|
+
$demoWrapper = $primary5
|
|
186
|
+
$demoWrapper2 = $primary20
|
|
187
|
+
$demoWrapperBorder = $light
|
|
188
|
+
$result = $tabContent
|
|
189
|
+
$resultDark = $tabHeaderDark
|
|
190
|
+
$resultMatch = #ffe000
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
// Inputs
|
|
194
|
+
$inputBorderColor =$buttonBorderColor
|
|
195
|
+
$placeHolderColor = #a4a4a4
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
$dark = rgba(0, 0, 0, 1)
|
|
199
|
+
$dark90 = rgba(0, 0, 0, .9)
|
|
200
|
+
$dark80 = rgba(0, 0, 0, .8)
|
|
201
|
+
$dark70 = rgba(0, 0, 0, .7)
|
|
202
|
+
$dark60 = rgba(0, 0, 0, .6)
|
|
203
|
+
$dark50 = rgba(0, 0, 0, .5)
|
|
204
|
+
$dark40 = rgba(0, 0, 0, .4)
|
|
205
|
+
$dark35 = rgba(0, 0, 0, .35)
|
|
206
|
+
$dark30 = rgba(0, 0, 0, .3)
|
|
207
|
+
$dark25 = rgba(0, 0, 0, .25)
|
|
208
|
+
$dark20 = rgba(0, 0, 0, .2)
|
|
209
|
+
$dark15 = rgba(0, 0, 0, .15)
|
|
210
|
+
$dark14 = rgba(0, 0, 0, .14)
|
|
211
|
+
$dark13 = rgba(0, 0, 0, .13)
|
|
212
|
+
$dark12 = rgba(0, 0, 0, .12)
|
|
213
|
+
$dark11 = rgba(0, 0, 0, .11)
|
|
214
|
+
$dark10 = rgba(0, 0, 0, .1)
|
|
215
|
+
$dark9 = rgba(0, 0, 0, .09)
|
|
216
|
+
$dark8 = rgba(0, 0, 0, .08)
|
|
217
|
+
$dark7 = rgba(0, 0, 0, .07)
|
|
218
|
+
$dark6 = rgba(0, 0, 0, .06)
|
|
219
|
+
$dark5 = rgba(0, 0, 0, .05)
|
|
220
|
+
$dark4 = rgba(0, 0, 0, .04)
|
|
221
|
+
$dark3 = rgba(0, 0, 0, .03)
|
|
222
|
+
$dark2 = rgba(0, 0, 0, .02)
|
|
223
|
+
$dark1 = rgba(0, 0, 0, .01)
|
|
224
|
+
|
|
225
|
+
$light = rgba(255, 255, 255, 1)
|
|
226
|
+
$light90 = rgba(255, 255, 255, .9)
|
|
227
|
+
$light80 = rgba(255, 255, 255, .8)
|
|
228
|
+
$light70 = rgba(255, 255, 255, .7)
|
|
229
|
+
$light60 = rgba(255, 255, 255, .6)
|
|
230
|
+
$light50 = rgba(255, 255, 255, .5)
|
|
231
|
+
$light40 = rgba(255, 255, 255, .4)
|
|
232
|
+
$light30 = rgba(255, 255, 255, .3)
|
|
233
|
+
$light20 = rgba(255, 255, 255, .2)
|
|
234
|
+
$light10 = rgba(255, 255, 255, .1)
|
|
235
|
+
$light9 = rgba(255, 255, 255, .09)
|
|
236
|
+
$light8 = rgba(255, 255, 255, .08)
|
|
237
|
+
$light7 = rgba(255, 255, 255, .07)
|
|
238
|
+
$light6 = rgba(255, 255, 255, .06)
|
|
239
|
+
$light5 = rgba(255, 255, 255, .05)
|
|
240
|
+
$light4 = rgba(255, 255, 255, .04)
|
|
241
|
+
$light3 = rgba(255, 255, 255, .03)
|
|
242
|
+
$light2 = rgba(255, 255, 255, .02)
|
|
243
|
+
$light1 = rgba(255, 255, 255, .01)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
// Products
|
|
248
|
+
|
|
249
|
+
$localitiesDark = rgba(0, 152, 220, 1) // #00b0ff
|
|
250
|
+
$localities = rgba(0, 176, 255, 1) // #00B0FF
|
|
251
|
+
$localities10 = rgba(0, 176, 255, .1)
|
|
252
|
+
|
|
253
|
+
$geolocationDark = rgba(1, 175, 73, 1) // #01af49
|
|
254
|
+
$geolocation = rgba(0, 200, 83, 1) // #00c853
|
|
255
|
+
$geolocation10 = rgba(0, 200, 83, .1)
|
|
256
|
+
|
|
257
|
+
$distanceDark = rgba(255, 115, 0, 1) // #FF7300
|
|
258
|
+
$distance = rgba(255, 145, 0, 1) // #FF9100
|
|
259
|
+
$distance10 = rgba(255, 145, 0, .1)
|
|
260
|
+
|
|
261
|
+
$storesDark = rgba(37, 109, 212, 1) // #256dd4
|
|
262
|
+
$stores = rgba(56, 138, 255, 1) // #388aff
|
|
263
|
+
$stores10 = rgba(56, 138, 255, .1)
|
|
264
|
+
|
|
265
|
+
$addressDark = rgba(59, 179, 195, 1) // #38b3c3
|
|
266
|
+
$address = rgba(77, 208, 255, 1) // #4dd0ff
|
|
267
|
+
$address10 = rgba(77, 208, 255, .1)
|
|
268
|
+
|
|
269
|
+
$mapDark = rgba(134, 106, 96, 1) // #866a60
|
|
270
|
+
$map = rgba(161, 136, 127, 1) // #A1887F
|
|
271
|
+
$map10 = rgba(161, 136, 127, .1)
|
|
272
|
+
|
|
273
|
+
$merchantDark = rgba(81, 107, 119, 1) // #516b77
|
|
274
|
+
$merchant = rgba(120, 144, 156, 1) // #78909C
|
|
275
|
+
$merchant10 = rgba(120, 144, 156, .1)
|
|
276
|
+
|
|
277
|
+
$trafficDark = rgba(2165, 46, 111, 1)// #D82E6F
|
|
278
|
+
$traffic = rgba(255, 124, 129, 1) // #ff7c81
|
|
279
|
+
$traffic10 = rgba(255, 124, 129, .1)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
$demoResultHeaders = 6rem
|
|
2
|
+
$demofilterWidth = 27.4rem
|
|
3
|
+
.demo
|
|
4
|
+
fullwh()
|
|
5
|
+
margin 6rem auto
|
|
6
|
+
.title
|
|
7
|
+
font-size $title3
|
|
8
|
+
&__header
|
|
9
|
+
fullw()
|
|
10
|
+
position relative
|
|
11
|
+
&__content
|
|
12
|
+
fullw()
|
|
13
|
+
br()
|
|
14
|
+
overflow hidden
|
|
15
|
+
position relative
|
|
16
|
+
box-shadow 0 0 3rem rgba($logo2, .15)
|
|
17
|
+
color #fff
|
|
18
|
+
&__showcase
|
|
19
|
+
&__data
|
|
20
|
+
display flex
|
|
21
|
+
&__filters
|
|
22
|
+
font-size 1.5rem
|
|
23
|
+
font-weight 700
|
|
24
|
+
padding 3.2rem 2.6rem
|
|
25
|
+
width $demofilterWidth
|
|
26
|
+
min-height 71rem
|
|
27
|
+
background-color rgba($logo2, .82)
|
|
28
|
+
&__map
|
|
29
|
+
flex-grow 1
|
|
30
|
+
background-color $logo2
|
|
31
|
+
&__results
|
|
32
|
+
font-size 1.5rem
|
|
33
|
+
font-weight 700
|
|
34
|
+
width $demofilterWidth
|
|
35
|
+
display flex
|
|
36
|
+
flex-direction column
|
|
37
|
+
&__header
|
|
38
|
+
display flex
|
|
39
|
+
align-items center
|
|
40
|
+
flex-shrink 0
|
|
41
|
+
padding 0 2.6rem
|
|
42
|
+
height $demoResultHeaders
|
|
43
|
+
background-color $logo2
|
|
44
|
+
&__content
|
|
45
|
+
font-weight 400
|
|
46
|
+
color $textColor
|
|
47
|
+
padding 3.2rem 2.6rem
|
|
48
|
+
min-height $demofilterWidth
|
|
49
|
+
background-color #eff3ff
|
|
50
|
+
&__code
|
|
51
|
+
flex-grow 1
|
|
52
|
+
display flex
|
|
53
|
+
flex-direction column
|
|
54
|
+
&__header
|
|
55
|
+
display flex
|
|
56
|
+
align-items center
|
|
57
|
+
flex-shrink 0
|
|
58
|
+
padding 0 2.6rem
|
|
59
|
+
height $demoResultHeaders
|
|
60
|
+
background-color rgba($logo2, .82)
|
|
61
|
+
&__content
|
|
62
|
+
padding 2.6rem
|
|
63
|
+
background-color #fff
|
|
64
|
+
height 100%
|
|
65
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.dropdown
|
|
2
|
+
position unset
|
|
3
|
+
&__container
|
|
4
|
+
position absolute
|
|
5
|
+
top 6rem
|
|
6
|
+
left 0
|
|
7
|
+
width 100%
|
|
8
|
+
display flex
|
|
9
|
+
align-items flex-start
|
|
10
|
+
justify-content center
|
|
11
|
+
&__menu
|
|
12
|
+
width 97%
|
|
13
|
+
max-width 102.2rem
|
|
14
|
+
padding 1.6rem 2rem 2rem 2rem
|
|
15
|
+
position relative
|
|
16
|
+
left auto !important
|
|
17
|
+
right auto !important
|
|
18
|
+
top auto !important
|
|
19
|
+
bottom auto !important
|
|
20
|
+
transform unset !important
|
|
21
|
+
margin-top 0 !important
|
|
22
|
+
&__section
|
|
23
|
+
flex-shrink 1
|
|
24
|
+
max-width 22.5rem
|
|
25
|
+
min-width 18rem
|
|
26
|
+
width 100%
|
|
27
|
+
margin 0 1rem
|
|
28
|
+
&__item
|
|
29
|
+
font-size 1.3rem
|
|
30
|
+
line-height 2.4rem
|
|
31
|
+
display flex
|
|
32
|
+
flex-direction column
|
|
33
|
+
align-items flex-start
|
|
34
|
+
justify-content center
|
|
35
|
+
flex-shrink 0
|
|
36
|
+
border-radius $borderRadius !important
|
|
37
|
+
height auto
|
|
38
|
+
min-height $buttonHeight + .6rem
|
|
39
|
+
> :not(.btn):not(.popover__child)
|
|
40
|
+
min-height $buttonHeight + .6rem
|
|
41
|
+
trans()
|
|
42
|
+
padding 0 1.2rem 0 .6rem
|
|
43
|
+
text-decoration none
|
|
44
|
+
flex-shrink 0
|
|
45
|
+
cursor pointer
|
|
46
|
+
&:hover
|
|
47
|
+
background-color $dark2
|
|
48
|
+
color $dark
|
|
49
|
+
.dropdown__menu__item
|
|
50
|
+
&__icon
|
|
51
|
+
background-color $logo4
|
|
52
|
+
&__desc
|
|
53
|
+
color $dark
|
|
54
|
+
&__icon
|
|
55
|
+
br()
|
|
56
|
+
sq(3.2)
|
|
57
|
+
trans()
|
|
58
|
+
display flex
|
|
59
|
+
align-items center
|
|
60
|
+
justify-content center
|
|
61
|
+
flex-shrink 0
|
|
62
|
+
background $logo2
|
|
63
|
+
margin-right 1rem
|
|
64
|
+
.icon
|
|
65
|
+
fill #fff !important
|
|
66
|
+
&__container
|
|
67
|
+
display flex
|
|
68
|
+
flex-direction column
|
|
69
|
+
flex-shrink 0
|
|
70
|
+
&__title
|
|
71
|
+
font-size 1.1rem
|
|
72
|
+
text-transform uppercase
|
|
73
|
+
color $category
|
|
74
|
+
font-weight 600
|
|
75
|
+
padding 0 1.2rem 0 .6rem
|
|
76
|
+
&__name
|
|
77
|
+
font-weight 600
|
|
78
|
+
&__desc
|
|
79
|
+
color $category
|
|
80
|
+
.category
|
|
81
|
+
flex-shrink 0
|
|
82
|
+
margin-top 2rem
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;0,500;1,600;1,700;1,900&display=swap');
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
.input
|
|
2
|
+
width 100%
|
|
3
|
+
&__container
|
|
4
|
+
position relative
|
|
5
|
+
&__label
|
|
6
|
+
display block
|
|
7
|
+
margin-bottom 1rem
|
|
8
|
+
.input--large &
|
|
9
|
+
margin-bottom 1rem
|
|
10
|
+
font-size $inputFontSizeLarge
|
|
11
|
+
.input--small &
|
|
12
|
+
margin-bottom .6rem
|
|
13
|
+
font-size $inputFontSizeSmall
|
|
14
|
+
&__error
|
|
15
|
+
color $error
|
|
16
|
+
display block
|
|
17
|
+
margin .5rem 0 .5rem 0
|
|
18
|
+
&--iconed
|
|
19
|
+
.icon
|
|
20
|
+
fill $inputBorderColor
|
|
21
|
+
position absolute
|
|
22
|
+
left 1rem
|
|
23
|
+
top .7rem
|
|
24
|
+
&.input--large
|
|
25
|
+
.icon
|
|
26
|
+
left 1.2rem
|
|
27
|
+
top 1rem
|
|
28
|
+
&.input--filter
|
|
29
|
+
.icon
|
|
30
|
+
left -.4rem
|
|
31
|
+
top .7rem
|
|
32
|
+
&.input--large
|
|
33
|
+
.icon
|
|
34
|
+
left -.4rem
|
|
35
|
+
top 1.1rem
|
|
36
|
+
&.input--small
|
|
37
|
+
.icon
|
|
38
|
+
left -.4rem
|
|
39
|
+
top .3rem
|
|
40
|
+
&.input--small
|
|
41
|
+
.icon
|
|
42
|
+
left .8rem
|
|
43
|
+
top .4rem
|
|
44
|
+
&--checkbox
|
|
45
|
+
&--radio
|
|
46
|
+
position relative
|
|
47
|
+
.input__label
|
|
48
|
+
cursor pointer
|
|
49
|
+
&--disabled
|
|
50
|
+
.input
|
|
51
|
+
&__item
|
|
52
|
+
&__label
|
|
53
|
+
cursor default !important
|
|
54
|
+
opacity .4
|
|
55
|
+
&__line
|
|
56
|
+
.input--checkbox &
|
|
57
|
+
.input--radio &
|
|
58
|
+
display flex
|
|
59
|
+
align-items center
|
|
60
|
+
line-height 1
|
|
61
|
+
.input__label
|
|
62
|
+
order 1
|
|
63
|
+
margin 0 0 0 1rem
|
|
64
|
+
&__item
|
|
65
|
+
&:not([type=button]):not([type=checkbox]):not([type=radio]):not([type=textarea])
|
|
66
|
+
height $inputHeight
|
|
67
|
+
padding $inputPadding
|
|
68
|
+
.input--large &
|
|
69
|
+
height $inputHeightLarge
|
|
70
|
+
padding $inputPaddingLarge
|
|
71
|
+
.input--small &
|
|
72
|
+
height $inputHeightSmall
|
|
73
|
+
padding $inputPaddingSmall
|
|
74
|
+
.input--filter &
|
|
75
|
+
padding 0
|
|
76
|
+
&:not([type=button]):not([type=checkbox]):not([type=radio])
|
|
77
|
+
br()
|
|
78
|
+
placeHolderColor($placeHolderColor)
|
|
79
|
+
min-width $inputMinWidth
|
|
80
|
+
width 100%
|
|
81
|
+
background-color $light
|
|
82
|
+
border .1rem solid $inputBorderColor
|
|
83
|
+
.mini &
|
|
84
|
+
max-width 6rem
|
|
85
|
+
min-width 6rem
|
|
86
|
+
text-align center
|
|
87
|
+
.input--filter &
|
|
88
|
+
br(0)
|
|
89
|
+
border-width 0 0 .1rem 0
|
|
90
|
+
background-color transparent
|
|
91
|
+
&:focus
|
|
92
|
+
border-color $secondary
|
|
93
|
+
.input--iconed &
|
|
94
|
+
padding-left 4rem
|
|
95
|
+
.input--large &
|
|
96
|
+
font-size $inputFontSizeLarge
|
|
97
|
+
line-height $inputLineHeightLarge
|
|
98
|
+
.input--iconed.input--large &
|
|
99
|
+
padding-left 4.6rem
|
|
100
|
+
.input--filter.input--iconed &
|
|
101
|
+
padding-left 2.6rem
|
|
102
|
+
padding-bottom 0
|
|
103
|
+
.input--filter.input--iconed.input--large &
|
|
104
|
+
padding-left 2.8rem
|
|
105
|
+
padding-bottom 0
|
|
106
|
+
.input--filter.input--iconed.input--small &
|
|
107
|
+
padding-left 2.4rem
|
|
108
|
+
padding-bottom .4rem
|
|
109
|
+
.input--small &
|
|
110
|
+
font-size $inputFontSizeSmall
|
|
111
|
+
min-width $inputHeightSmall
|
|
112
|
+
.input--iconed.input--small &
|
|
113
|
+
padding-left 3.4rem
|
|
114
|
+
.input--noborder &
|
|
115
|
+
border 0
|
|
116
|
+
&.error
|
|
117
|
+
border-color $error
|
|
118
|
+
&:focus
|
|
119
|
+
border-color $secondary
|
|
120
|
+
|
|
121
|
+
&[type=textarea]
|
|
122
|
+
padding round($padding / 1.7) $padding
|
|
123
|
+
height $inputHeight * 2
|
|
124
|
+
&[type=radio]
|
|
125
|
+
all revert
|
|
126
|
+
cursor pointer
|
|
127
|
+
&[type=checkbox]
|
|
128
|
+
all revert
|
|
129
|
+
cursor pointer
|
|
130
|
+
line-height revert
|
|
131
|
+
&[type=number]
|
|
132
|
+
-moz-appearance textfield
|
|
133
|
+
input::-webkit-outer-spin-button
|
|
134
|
+
input::-webkit-inner-spin-button
|
|
135
|
+
-webkit-appearance none
|
|
136
|
+
margin 0
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// Make square
|
|
2
|
+
sq($size = $buttonHeight)
|
|
3
|
+
$size = unit($size, rem)
|
|
4
|
+
width $size
|
|
5
|
+
height $size
|
|
6
|
+
|
|
7
|
+
// It gives a margin right to all children except the last one.
|
|
8
|
+
mbi($a = 1.8)
|
|
9
|
+
$a = unit($a, rem)
|
|
10
|
+
> :not(:last-child)
|
|
11
|
+
margin-right $a
|
|
12
|
+
|
|
13
|
+
// It gives a margin bottom to all children except the last one.
|
|
14
|
+
mbib($a = 3)
|
|
15
|
+
$a = unit($a, rem)
|
|
16
|
+
> :not(:last-child)
|
|
17
|
+
margin-bottom $a
|
|
18
|
+
|
|
19
|
+
// Gives a border-radius : e. g. : br(3) = border-radius 3rem
|
|
20
|
+
br($a = $borderRadius)
|
|
21
|
+
if ($a >= 50) {
|
|
22
|
+
$a = unit($a, '%');
|
|
23
|
+
} else {
|
|
24
|
+
$a = unit($a, rem);
|
|
25
|
+
}
|
|
26
|
+
border-radius $a
|
|
27
|
+
|
|
28
|
+
// Border and shadow style of dropdowns
|
|
29
|
+
box()
|
|
30
|
+
br()
|
|
31
|
+
box-shadow 0 2rem 2rem $dark10
|
|
32
|
+
border .1rem solid $borderColor
|
|
33
|
+
|
|
34
|
+
// Buttons mixins
|
|
35
|
+
|
|
36
|
+
hover()
|
|
37
|
+
&:hover
|
|
38
|
+
background-color $buttonHover
|
|
39
|
+
color $light
|
|
40
|
+
.icon
|
|
41
|
+
fill $light
|
|
42
|
+
focus()
|
|
43
|
+
&:focus-visible
|
|
44
|
+
box-shadow 0 0 .1rem .2rem $focus
|
|
45
|
+
z-index 1
|
|
46
|
+
trans()
|
|
47
|
+
transition all .3s
|
|
48
|
+
|
|
49
|
+
btn()
|
|
50
|
+
br()
|
|
51
|
+
flexBtn()
|
|
52
|
+
buttonFont()
|
|
53
|
+
hover()
|
|
54
|
+
focus()
|
|
55
|
+
trans()
|
|
56
|
+
white-space nowrap
|
|
57
|
+
|
|
58
|
+
flexBtn()
|
|
59
|
+
flex-shrink 0
|
|
60
|
+
display inline-flex
|
|
61
|
+
align-items center
|
|
62
|
+
justify-content flex-start
|
|
63
|
+
|
|
64
|
+
buttonFont()
|
|
65
|
+
height $buttonHeight
|
|
66
|
+
font-size $buttonFontSize
|
|
67
|
+
line-height $buttonLineHeight
|
|
68
|
+
padding $buttonPadding
|
|
69
|
+
|
|
70
|
+
buttonSmall()
|
|
71
|
+
height $buttonHeightSmall
|
|
72
|
+
font-size $buttonFontSizeSmall
|
|
73
|
+
line-height $buttonLineHeightSmall
|
|
74
|
+
padding $buttonPaddingSmall
|
|
75
|
+
&.btn--no-label
|
|
76
|
+
&.btn--link
|
|
77
|
+
&.btn--link-primary
|
|
78
|
+
&.btn--link-info
|
|
79
|
+
&.btn--link-flex
|
|
80
|
+
height auto
|
|
81
|
+
line-height unset
|
|
82
|
+
|
|
83
|
+
buttonLarge()
|
|
84
|
+
height $buttonHeightLarge
|
|
85
|
+
font-size $buttonFontSizeLarge
|
|
86
|
+
line-height $buttonLineHeightLarge
|
|
87
|
+
padding $buttonPaddingLarge
|
|
88
|
+
&.btn--no-label
|
|
89
|
+
&.btn--link
|
|
90
|
+
&.btn--link-primary
|
|
91
|
+
&.btn--link-info
|
|
92
|
+
&.btn--link-flex
|
|
93
|
+
height auto
|
|
94
|
+
line-height unset
|
|
95
|
+
|
|
96
|
+
fullw()
|
|
97
|
+
width 100%
|
|
98
|
+
min-width 0
|
|
99
|
+
fullh()
|
|
100
|
+
height 100%
|
|
101
|
+
min-height 0
|
|
102
|
+
fullwh()
|
|
103
|
+
height 100%
|
|
104
|
+
width 100%
|
|
105
|
+
min-width 0
|
|
106
|
+
min-height 0
|
|
107
|
+
|
|
108
|
+
wrapper()
|
|
109
|
+
margin 0 auto
|
|
110
|
+
padding 0 $padding
|
|
111
|
+
max-width $wrapperWidth
|
|
112
|
+
width 100%
|
|
113
|
+
|
|
114
|
+
textShadow($c = $dark30)
|
|
115
|
+
text-shadow .1rem .1rem .1rem $c
|
|
116
|
+
rainbow()
|
|
117
|
+
background $primary
|
|
118
|
+
background linear-gradient(45deg, $coloredGradient1 0%, $coloredGradient2 50%, $coloredGradient3 100%)
|
|
119
|
+
rainbowInverse()
|
|
120
|
+
background $primary
|
|
121
|
+
background linear-gradient(45deg, $coloredGradient3 0%, $coloredGradient2 50%, $coloredGradient1 100%)
|
|
122
|
+
darkness()
|
|
123
|
+
background $darkGradient2
|
|
124
|
+
background radial-gradient(circle, $darkGradient2 0%, $darkGradient1 40%, #252525 100%)
|
|
125
|
+
tilt()
|
|
126
|
+
transform skewY(-2deg)
|