@oruga-ui/theme-oruga 0.0.1

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.
Files changed (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/dist/oruga-full.css +3778 -0
  4. package/dist/oruga-full.min.css +1 -0
  5. package/dist/oruga.css +2209 -0
  6. package/dist/oruga.min.css +1 -0
  7. package/dist/scss/components/_autocomplete.scss +130 -0
  8. package/dist/scss/components/_button.scss +242 -0
  9. package/dist/scss/components/_carousel.scss +256 -0
  10. package/dist/scss/components/_checkbox.scss +183 -0
  11. package/dist/scss/components/_collapse.scss +12 -0
  12. package/dist/scss/components/_datepicker.scss +592 -0
  13. package/dist/scss/components/_datetimepicker.scss +10 -0
  14. package/dist/scss/components/_dropdown.scss +241 -0
  15. package/dist/scss/components/_field.scss +154 -0
  16. package/dist/scss/components/_icon.scss +53 -0
  17. package/dist/scss/components/_input.scss +153 -0
  18. package/dist/scss/components/_inputitems.scss +175 -0
  19. package/dist/scss/components/_loading.scss +45 -0
  20. package/dist/scss/components/_menu.scss +124 -0
  21. package/dist/scss/components/_modal.scss +103 -0
  22. package/dist/scss/components/_notification.scss +212 -0
  23. package/dist/scss/components/_pagination.scss +256 -0
  24. package/dist/scss/components/_radio.scss +121 -0
  25. package/dist/scss/components/_select.scss +168 -0
  26. package/dist/scss/components/_sidebar.scss +112 -0
  27. package/dist/scss/components/_skeleton.scss +93 -0
  28. package/dist/scss/components/_slider.scss +241 -0
  29. package/dist/scss/components/_steps.scss +599 -0
  30. package/dist/scss/components/_switch.scss +171 -0
  31. package/dist/scss/components/_table.scss +481 -0
  32. package/dist/scss/components/_tabs.scss +385 -0
  33. package/dist/scss/components/_timepicker.scss +116 -0
  34. package/dist/scss/components/_tooltip.scss +345 -0
  35. package/dist/scss/components/_upload.scss +74 -0
  36. package/dist/scss/oruga-common.scss +37 -0
  37. package/dist/scss/oruga-full.scss +9 -0
  38. package/dist/scss/oruga.scss +197 -0
  39. package/dist/scss/utils/_animations.scss +231 -0
  40. package/dist/scss/utils/_base.scss +31 -0
  41. package/dist/scss/utils/_helpers.scss +211 -0
  42. package/dist/scss/utils/_root.scss +28 -0
  43. package/dist/scss/utils/_variables.scss +105 -0
  44. package/dist/theme.js +8 -0
  45. package/package.json +72 -0
  46. package/src/App.vue +104 -0
  47. package/src/assets/scss/components/_autocomplete.scss +130 -0
  48. package/src/assets/scss/components/_button.scss +242 -0
  49. package/src/assets/scss/components/_carousel.scss +256 -0
  50. package/src/assets/scss/components/_checkbox.scss +183 -0
  51. package/src/assets/scss/components/_collapse.scss +12 -0
  52. package/src/assets/scss/components/_datepicker.scss +592 -0
  53. package/src/assets/scss/components/_datetimepicker.scss +10 -0
  54. package/src/assets/scss/components/_dropdown.scss +241 -0
  55. package/src/assets/scss/components/_field.scss +154 -0
  56. package/src/assets/scss/components/_icon.scss +53 -0
  57. package/src/assets/scss/components/_input.scss +153 -0
  58. package/src/assets/scss/components/_inputitems.scss +175 -0
  59. package/src/assets/scss/components/_loading.scss +45 -0
  60. package/src/assets/scss/components/_menu.scss +124 -0
  61. package/src/assets/scss/components/_modal.scss +103 -0
  62. package/src/assets/scss/components/_notification.scss +212 -0
  63. package/src/assets/scss/components/_pagination.scss +256 -0
  64. package/src/assets/scss/components/_radio.scss +121 -0
  65. package/src/assets/scss/components/_select.scss +168 -0
  66. package/src/assets/scss/components/_sidebar.scss +112 -0
  67. package/src/assets/scss/components/_skeleton.scss +93 -0
  68. package/src/assets/scss/components/_slider.scss +241 -0
  69. package/src/assets/scss/components/_steps.scss +599 -0
  70. package/src/assets/scss/components/_switch.scss +171 -0
  71. package/src/assets/scss/components/_table.scss +481 -0
  72. package/src/assets/scss/components/_tabs.scss +385 -0
  73. package/src/assets/scss/components/_timepicker.scss +116 -0
  74. package/src/assets/scss/components/_tooltip.scss +345 -0
  75. package/src/assets/scss/components/_upload.scss +74 -0
  76. package/src/assets/scss/oruga-common.scss +37 -0
  77. package/src/assets/scss/oruga-full.scss +9 -0
  78. package/src/assets/scss/oruga.scss +197 -0
  79. package/src/assets/scss/utils/_animations.scss +231 -0
  80. package/src/assets/scss/utils/_base.scss +31 -0
  81. package/src/assets/scss/utils/_helpers.scss +211 -0
  82. package/src/assets/scss/utils/_root.scss +28 -0
  83. package/src/assets/scss/utils/_variables.scss +105 -0
  84. package/src/components/Autocomplete.vue +606 -0
  85. package/src/components/Button.vue +80 -0
  86. package/src/components/Carousel.vue +296 -0
  87. package/src/components/Checkbox.vue +134 -0
  88. package/src/components/Collapse.vue +132 -0
  89. package/src/components/Datepicker.vue +285 -0
  90. package/src/components/Datetimepicker.vue +127 -0
  91. package/src/components/Dropdown.vue +284 -0
  92. package/src/components/Field.vue +243 -0
  93. package/src/components/Icon.vue +66 -0
  94. package/src/components/Input.vue +121 -0
  95. package/src/components/Loading.vue +71 -0
  96. package/src/components/Modal.vue +171 -0
  97. package/src/components/Notification.vue +136 -0
  98. package/src/components/Pagination.vue +97 -0
  99. package/src/components/Radio.vue +95 -0
  100. package/src/components/Select.vue +155 -0
  101. package/src/components/Sidebar.vue +56 -0
  102. package/src/components/Skeleton.vue +57 -0
  103. package/src/components/Slider.vue +226 -0
  104. package/src/components/Steps.vue +234 -0
  105. package/src/components/Switch.vue +134 -0
  106. package/src/components/Table.vue +285 -0
  107. package/src/components/Tabs.vue +208 -0
  108. package/src/components/Taginput.vue +507 -0
  109. package/src/components/Timepicker.vue +124 -0
  110. package/src/components/Tooltip.vue +149 -0
  111. package/src/components/Upload.vue +66 -0
  112. package/src/main.ts +29 -0
  113. package/src/plugins/theme.ts +1 -0
  114. package/src/router/index.ts +39 -0
  115. package/src/views/Home.vue +24 -0
  116. package/types/index.d.ts +1 -0
@@ -0,0 +1,171 @@
1
+ @use "sass:list";
2
+
3
+ /* @docs */
4
+ $switch-active-background-color: $primary !default;
5
+ $switch-action-background: #f5f5f5 !default;
6
+ $switch-background: $grey-light !default;
7
+ $switch-border-radius: $base-border-radius !default;
8
+ $switch-box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05),
9
+ 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05) !default;
10
+ $switch-disabled-opacity: $base-disabled-opacity !default;
11
+ $switch-margin-label: 0.5em !default;
12
+ $switch-padding: 0.2em !default;
13
+ $switch-rounded-border-radius: $base-rounded-border-radius !default;
14
+ $switch-width: 2.75 * 1em !default;
15
+ /* @docs */
16
+
17
+ .o-switch {
18
+ cursor: pointer;
19
+ display: inline-flex;
20
+ align-items: center;
21
+ position: relative;
22
+
23
+ @include unselectable;
24
+
25
+ @each $name, $pair in $colors {
26
+ $color: list.nth($pair, 1);
27
+ &--#{$name} {
28
+ .o-switch__check--checked {
29
+ @include avariable("background", ("variant-" + #{$name}), $color);
30
+ }
31
+ }
32
+ &--#{$name}-passive {
33
+ .o-switch__check:not(.o-switch__check--checked) {
34
+ @include avariable("background", ("variant-" + #{$name}), $color);
35
+ }
36
+ }
37
+ }
38
+ @each $name, $value in $sizes {
39
+ &--#{$name} {
40
+ @include avariable("font-size", ("font-size-" + #{name}), $value);
41
+ }
42
+ }
43
+
44
+ &__label {
45
+ @include avariable(
46
+ "margin-left",
47
+ "switch-margin-label",
48
+ $switch-margin-label
49
+ );
50
+ }
51
+
52
+ &--left {
53
+ flex-direction: row-reverse;
54
+
55
+ .o-switch__label {
56
+ margin-left: 0;
57
+
58
+ @include avariable(
59
+ "margin-right",
60
+ "switch-margin-label",
61
+ $switch-margin-label
62
+ );
63
+ }
64
+ }
65
+
66
+ &__check-switch {
67
+ content: "";
68
+ display: block;
69
+
70
+ @include evariable(
71
+ "height",
72
+ "calc(($width - $padding * 2) * 0.5)",
73
+ eparam("$width", variable("switch-width", $switch-width)),
74
+ eparam("$padding", variable("switch-padding", $switch-padding))
75
+ );
76
+ @include evariable(
77
+ "width",
78
+ "calc(($width - $padding * 2) * 0.5)",
79
+ eparam("$width", variable("switch-width", $switch-width)),
80
+ eparam("$padding", variable("switch-padding", $switch-padding))
81
+ );
82
+ @include avariable(
83
+ "background",
84
+ "switch-action-background",
85
+ $switch-action-background
86
+ );
87
+ @include avariable("box-shadow", "switch-box-shadow", $switch-box-shadow);
88
+ transition-property: transform;
89
+
90
+ @include avariable(
91
+ "transition-duration",
92
+ "transition-duration",
93
+ $speed-slow
94
+ );
95
+ @include avariable(
96
+ "transition-timing-function",
97
+ "transition-timing",
98
+ $easing
99
+ );
100
+ will-change: transform;
101
+ transform-origin: left;
102
+ }
103
+
104
+ &__check {
105
+ display: flex;
106
+ align-items: center;
107
+ flex-shrink: 0;
108
+
109
+ @include avariable("width", "switch-width", $switch-width);
110
+ @include evariable(
111
+ "height",
112
+ "calc($width * 0.5 + $padding)",
113
+ eparam("$width", variable("switch-width", $switch-width)),
114
+ eparam("$padding", variable("switch-padding", $switch-padding))
115
+ );
116
+ @include avariable("padding", "switch-padding", $switch-padding);
117
+ @include avariable("background", "switch-background", $switch-background);
118
+ @include avariable(
119
+ "border-radius",
120
+ "switch-border-radius",
121
+ $switch-border-radius
122
+ );
123
+ transition-property: background;
124
+
125
+ @include avariable(
126
+ "transition-duration",
127
+ "transition-duration",
128
+ $speed-slow
129
+ );
130
+ @include avariable(
131
+ "transition-timing-function",
132
+ "transition-timing",
133
+ $easing
134
+ );
135
+
136
+ &--checked {
137
+ @include avariable(
138
+ "background",
139
+ "switch-active-background-color",
140
+ $switch-active-background-color
141
+ );
142
+
143
+ .o-switch__check-switch {
144
+ transform: translate3d(100%, 0, 0);
145
+ }
146
+ }
147
+ }
148
+
149
+ &__input {
150
+ position: absolute;
151
+ left: 0;
152
+ opacity: 0;
153
+ z-index: -1;
154
+ }
155
+
156
+ &--rounded {
157
+ @include avariable(
158
+ "border-radius",
159
+ "switch-rounded-border-radius",
160
+ $switch-rounded-border-radius
161
+ );
162
+ }
163
+
164
+ &--disabled {
165
+ @include avariable(
166
+ "opacity",
167
+ "switch-disabled-opacity",
168
+ $switch-disabled-opacity
169
+ );
170
+ }
171
+ }
@@ -0,0 +1,481 @@
1
+ @use "sass:list";
2
+
3
+ /* @docs */
4
+ $table-background-color: #fff !default;
5
+ $table-background: #f5f5f5 !default;
6
+ $table-boder: 1px solid transparent !default;
7
+ $table-border-radius: $base-border-radius !default;
8
+ $table-card-box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default;
9
+ $table-card-cell-font-weight: 600 !default;
10
+ $table-card-cell-padding: 0 0.5em 0 0 !default;
11
+ $table-card-cell-text-align: left !default;
12
+ $table-card-detail-margin: -1rem 0 0 0;
13
+ $table-card-margin: 0 0 1rem 0;
14
+ $table-color: black !default;
15
+ $table-current-sort-border-color: $grey !default;
16
+ $table-current-sort-font-weight: 700 !default;
17
+ $table-current-sort-hover-border-color: $grey !default;
18
+ $table-detail-background: #fafafa !default;
19
+ $table-detail-box-shadow: inset 0 1px 3px $grey !default;
20
+ $table-detail-chevron-color: $primary !default;
21
+ $table-detail-chevron-width: 40px !default;
22
+ $table-detail-padding: 1rem !default;
23
+ $table-focus-border-color: $primary !default;
24
+ $table-focus-box-shadow: 0 0 0 0.125em rgba($primary, 0.25) !default;
25
+ $table-hoverable-background-color: #fafafa !default;
26
+ $table-narrow-padding: 0.25em 0.5em !default;
27
+ $table-row-active-background-color: $primary !default;
28
+ $table-row-active-color: $primary-invert !default;
29
+ $table-sticky-header-height: 300px !default;
30
+ $table-sticky-zindex: 1 !default;
31
+ $table-striped-background-color: #fafafa !default;
32
+ $table-td-border: 1px solid $grey-lighter !default;
33
+ $table-td-padding: 0.5em 0.75em !default;
34
+ $table-th-border: 2px solid $grey-lighter !default;
35
+ $table-th-checkbox-width: 40px !default;
36
+ $table-th-color: #363636 !default;
37
+ $table-th-detail-width: 14px !default;
38
+ $table-th-font-weight: 600 !default;
39
+ $table-th-padding: 0.5em 0.75em !default;
40
+ /* @docs */
41
+
42
+ $SUM_EXPRESSION: "calc($param + $factor)";
43
+
44
+ .o-table {
45
+ display: table;
46
+ width: 100%;
47
+ border-collapse: separate;
48
+ border-spacing: 0;
49
+
50
+ @include avariable("border", "table-boder", $table-boder);
51
+ @include avariable(
52
+ "border-radius",
53
+ "table-border-radius",
54
+ $table-border-radius
55
+ );
56
+ @include avariable(
57
+ "background-color",
58
+ "table-background-color",
59
+ $table-background-color
60
+ );
61
+ @include avariable("color", "table-color", $table-color);
62
+
63
+ &__root {
64
+ position: relative;
65
+ }
66
+
67
+ &__wrapper {
68
+ transition: opacity $speed $easing;
69
+ position: relative;
70
+
71
+ &--sticky-header {
72
+ @include avariable(
73
+ "height",
74
+ "table-sticky-header-height",
75
+ $table-sticky-header-height
76
+ );
77
+ overflow-y: auto;
78
+
79
+ th {
80
+ position: -webkit-sticky;
81
+ position: sticky;
82
+ left: 0;
83
+ top: 0;
84
+
85
+ @include avariable(
86
+ "background",
87
+ "table-background-color",
88
+ $table-background-color
89
+ );
90
+ }
91
+ }
92
+
93
+ &--scrollable {
94
+ -webkit-overflow-scrolling: touch;
95
+ overflow-x: auto;
96
+ max-width: 100%;
97
+ }
98
+
99
+ &--mobile {
100
+ overflow-x: auto;
101
+
102
+ .o-table__mobile-sort {
103
+ display: block;
104
+ }
105
+ // cards
106
+ .o-table {
107
+ background-color: transparent;
108
+ }
109
+
110
+ thead {
111
+ tr {
112
+ box-shadow: none;
113
+ border-width: 0;
114
+
115
+ th {
116
+ display: none;
117
+ }
118
+
119
+ .o-table-th-checkbox {
120
+ display: block;
121
+ width: 100%;
122
+ text-align: right;
123
+ border: 0;
124
+ }
125
+ }
126
+ }
127
+
128
+ tfoot {
129
+ th {
130
+ border: 0;
131
+ display: inherit;
132
+ }
133
+ }
134
+
135
+ tr {
136
+ @include avariable(
137
+ "box-shadow",
138
+ "table-card-box-shadow",
139
+ $table-card-box-shadow
140
+ );
141
+ max-width: 100%;
142
+ position: relative;
143
+ display: block;
144
+
145
+ td {
146
+ border: 0;
147
+ display: inherit;
148
+
149
+ &:last-child {
150
+ border-bottom: 0;
151
+ }
152
+ }
153
+
154
+ &:not(:last-child) {
155
+ @include avariable("margin", "table-card-margin", $table-card-margin);
156
+ }
157
+
158
+ &:not(.o-table__tr--selected) {
159
+ background: inherit;
160
+ background: $table-background-color;
161
+
162
+ &:hover {
163
+ background-color: inherit;
164
+ background-color: $table-background-color;
165
+ }
166
+ }
167
+
168
+ &.o-table--detailed {
169
+ @include avariable(
170
+ "margin",
171
+ "table-card-detail-margin",
172
+ $table-card-detail-margin
173
+ );
174
+ }
175
+ }
176
+
177
+ tr:not(.o-table--detailed):not(.o-table--empty):not(.o-table__footer) {
178
+ td {
179
+ display: flex;
180
+ width: auto;
181
+ justify-content: space-between;
182
+ text-align: right;
183
+
184
+ @include avariable(
185
+ "border-bottom",
186
+ "table-background",
187
+ ($table-background 1px solid)
188
+ );
189
+
190
+ &:before {
191
+ content: attr(data-label);
192
+
193
+ @include avariable(
194
+ "font-weight",
195
+ "table-card-cell-font-weight",
196
+ $table-card-cell-font-weight
197
+ );
198
+ @include avariable(
199
+ "padding-right",
200
+ "table-card-cell-padding",
201
+ $table-card-cell-padding
202
+ );
203
+ @include avariable(
204
+ "text-align",
205
+ "table-card-cell-text-align",
206
+ $table-card-cell-text-align
207
+ );
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ &__mobile-sort {
215
+ display: none;
216
+ }
217
+
218
+ &__th {
219
+ vertical-align: top;
220
+ text-align: left;
221
+ position: relative;
222
+
223
+ @include avariable(
224
+ "font-weight",
225
+ "table-th-font-weight",
226
+ $table-th-font-weight
227
+ );
228
+ @include avariable("color", "table-th-color", $table-th-color);
229
+ @include avariable("border-bottom", "table-th-border", $table-th-border);
230
+ @include avariable("padding", "table-th-padding", $table-th-padding);
231
+
232
+ &--centered {
233
+ text-align: center;
234
+ }
235
+
236
+ &--right {
237
+ text-align: right;
238
+ }
239
+
240
+ &__sort-icon {
241
+ position: absolute;
242
+ right: 0;
243
+ }
244
+
245
+ &-checkbox {
246
+ @include avariable(
247
+ "width",
248
+ "table-th-checkbox-width",
249
+ $table-th-checkbox-width
250
+ );
251
+ }
252
+
253
+ &-current-sort {
254
+ @include avariable(
255
+ "border-color",
256
+ "table-current-sort-border-color",
257
+ $table-current-sort-border-color
258
+ );
259
+ @include avariable(
260
+ "font-weight",
261
+ "table-current-sort-font-weight",
262
+ $table-current-sort-font-weight
263
+ );
264
+ }
265
+
266
+ &--sortable {
267
+ cursor: pointer;
268
+
269
+ &:hover {
270
+ @include avariable(
271
+ "border-color",
272
+ "table-current-sort-hover-border-color",
273
+ $table-current-sort-hover-border-color
274
+ );
275
+ }
276
+ }
277
+
278
+ &--sticky {
279
+ position: -webkit-sticky;
280
+ position: sticky;
281
+ left: 0;
282
+ top: 0;
283
+
284
+ @include evariable(
285
+ "z-index",
286
+ $SUM_EXPRESSION,
287
+ eparam("$param", variable("table-sticky-zindex", $table-sticky-zindex)),
288
+ eparam("$factor", 2)
289
+ );
290
+ @include avariable(
291
+ "background",
292
+ "table-background-color",
293
+ $table-background-color
294
+ );
295
+ }
296
+
297
+ &--unselectable {
298
+ @include unselectable;
299
+ }
300
+
301
+ &--detailed {
302
+ @include avariable(
303
+ "width",
304
+ "table-th-detail-width",
305
+ $table-th-detail-width
306
+ );
307
+ }
308
+ }
309
+
310
+ &__td {
311
+ vertical-align: top;
312
+ text-align: left;
313
+
314
+ @include avariable("border-bottom", "table-td-border", $table-td-border);
315
+ @include avariable("padding", "table-td-padding", $table-td-padding);
316
+
317
+ &--sticky {
318
+ position: -webkit-sticky;
319
+ position: sticky;
320
+ left: 0;
321
+
322
+ @include avariable(
323
+ "z-index",
324
+ "table-sticky-zindex",
325
+ $table-sticky-zindex
326
+ );
327
+ @include avariable(
328
+ "background",
329
+ "table-background-color",
330
+ $table-background-color
331
+ );
332
+ }
333
+
334
+ &--right {
335
+ text-align: right;
336
+ }
337
+
338
+ &--centered {
339
+ text-align: center;
340
+ }
341
+
342
+ &-chevron {
343
+ vertical-align: middle;
344
+
345
+ @include avariable(
346
+ "width",
347
+ "table-detail-chevron-width",
348
+ $table-detail-chevron-width
349
+ );
350
+ @include avariable(
351
+ "color",
352
+ "table-detail-chevron-color",
353
+ $table-detail-chevron-color
354
+ );
355
+ }
356
+ }
357
+
358
+ &:focus {
359
+ @include avariable(
360
+ "border-color",
361
+ "table-focus-border-color",
362
+ $table-focus-border-color
363
+ );
364
+ @include avariable(
365
+ "box-shadow",
366
+ "table-focus-box-shadow",
367
+ $table-focus-box-shadow
368
+ );
369
+ }
370
+
371
+ &--bordered {
372
+ tr:last-child {
373
+ td,
374
+ th {
375
+ @include avariable("border", "table-td-border", $table-td-border);
376
+ }
377
+ }
378
+
379
+ td,
380
+ th {
381
+ @include avariable("border", "table-td-border", $table-td-border);
382
+ }
383
+ }
384
+
385
+ &--striped {
386
+ tbody tr:not(.o-table__tr--selected):nth-child(2n) {
387
+ @include avariable(
388
+ "background-color",
389
+ "table-striped-background-color",
390
+ $table-striped-background-color
391
+ );
392
+ }
393
+ }
394
+
395
+ &--narrowed {
396
+ td,
397
+ th {
398
+ @include avariable(
399
+ "padding",
400
+ "table-narrow-padding",
401
+ $table-narrow-padding
402
+ );
403
+ }
404
+ }
405
+
406
+ &--hoverable {
407
+ tbody tr:not(.o-table__tr--selected):hover {
408
+ @include avariable(
409
+ "background-color",
410
+ "table-hoverable-background-color",
411
+ $table-hoverable-background-color
412
+ );
413
+ }
414
+ }
415
+
416
+ &__detail {
417
+ @include avariable(
418
+ "box-shadow",
419
+ "table-detail-box-shadow",
420
+ $table-detail-box-shadow
421
+ );
422
+ @include avariable(
423
+ "background",
424
+ "table-detail-background",
425
+ $table-detail-background
426
+ );
427
+
428
+ td {
429
+ @include avariable(
430
+ "padding",
431
+ "table-detail-padding",
432
+ $table-detail-padding
433
+ );
434
+ }
435
+ }
436
+
437
+ &__tr--selected {
438
+ background-color: $table-row-active-background-color;
439
+ color: $table-row-active-color;
440
+
441
+ @each $name, $pair in $colors {
442
+ $color: list.nth($pair, 1);
443
+ $color-invert: list.nth($pair, 2);
444
+ &-#{$name} {
445
+ background-color: $color;
446
+ color: $color-invert;
447
+ }
448
+ }
449
+ }
450
+
451
+ &__pagination {
452
+ align-items: center;
453
+ justify-content: space-between;
454
+ display: flex;
455
+ // left
456
+ > div:first-child {
457
+ align-items: center;
458
+ justify-content: flex-start;
459
+ }
460
+ // right
461
+ > div:last-child {
462
+ align-items: center;
463
+ justify-content: flex-end;
464
+
465
+ > div {
466
+ align-items: center;
467
+ display: flex;
468
+ flex-basis: auto;
469
+ flex-grow: 0;
470
+ flex-shrink: 0;
471
+ justify-content: center;
472
+ }
473
+ }
474
+ // left - right
475
+ > div {
476
+ flex-basis: auto;
477
+ flex-grow: 0;
478
+ flex-shrink: 0;
479
+ }
480
+ }
481
+ }