@oruga-ui/theme-oruga 0.0.1 → 0.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.
Files changed (75) hide show
  1. package/dist/oruga-full.css +530 -388
  2. package/dist/oruga-full.min.css +1 -1
  3. package/dist/oruga.css +364 -225
  4. package/dist/oruga.min.css +1 -1
  5. package/dist/scss/components/_autocomplete.scss +0 -62
  6. package/dist/scss/components/_carousel.scss +10 -6
  7. package/dist/scss/components/_checkbox.scss +4 -4
  8. package/dist/scss/components/_datepicker.scss +11 -11
  9. package/dist/scss/components/_dropdown.scss +144 -31
  10. package/dist/scss/components/_field.scss +8 -8
  11. package/dist/scss/components/_icon.scss +3 -1
  12. package/dist/scss/components/_input.scss +38 -40
  13. package/dist/scss/components/_menu.scss +68 -68
  14. package/dist/scss/components/_pagination.scss +22 -22
  15. package/dist/scss/components/_radio.scss +8 -10
  16. package/dist/scss/components/_sidebar.scss +147 -42
  17. package/dist/scss/components/_switch.scss +4 -2
  18. package/dist/scss/components/_table.scss +14 -10
  19. package/dist/scss/components/_taginput.scss +163 -0
  20. package/dist/scss/components/_tooltip.scss +422 -218
  21. package/dist/scss/oruga-common.scss +1 -1
  22. package/dist/scss/oruga.scss +15 -20
  23. package/dist/scss/utils/_helpers.scss +3 -7
  24. package/dist/scss/utils/_variables.scss +0 -1
  25. package/package.json +28 -28
  26. package/src/App.vue +1 -0
  27. package/src/assets/scss/components/_autocomplete.scss +0 -62
  28. package/src/assets/scss/components/_carousel.scss +10 -6
  29. package/src/assets/scss/components/_checkbox.scss +4 -4
  30. package/src/assets/scss/components/_datepicker.scss +11 -11
  31. package/src/assets/scss/components/_dropdown.scss +144 -31
  32. package/src/assets/scss/components/_field.scss +8 -8
  33. package/src/assets/scss/components/_icon.scss +3 -1
  34. package/src/assets/scss/components/_input.scss +38 -40
  35. package/src/assets/scss/components/_menu.scss +68 -68
  36. package/src/assets/scss/components/_pagination.scss +22 -22
  37. package/src/assets/scss/components/_radio.scss +8 -10
  38. package/src/assets/scss/components/_sidebar.scss +147 -42
  39. package/src/assets/scss/components/_switch.scss +4 -2
  40. package/src/assets/scss/components/_table.scss +14 -10
  41. package/src/assets/scss/components/_taginput.scss +163 -0
  42. package/src/assets/scss/components/_tooltip.scss +422 -218
  43. package/src/assets/scss/oruga-common.scss +1 -1
  44. package/src/assets/scss/oruga.scss +15 -20
  45. package/src/assets/scss/utils/_helpers.scss +3 -7
  46. package/src/assets/scss/utils/_variables.scss +0 -1
  47. package/src/components/Autocomplete.vue +7 -7
  48. package/src/components/Button.vue +28 -28
  49. package/src/components/Carousel.vue +19 -20
  50. package/src/components/Checkbox.vue +43 -42
  51. package/src/components/Collapse.vue +3 -1
  52. package/src/components/Datepicker.vue +7 -10
  53. package/src/components/Datetimepicker.vue +4 -4
  54. package/src/components/Dropdown.vue +146 -101
  55. package/src/components/Field.vue +35 -43
  56. package/src/components/Icon.vue +1 -1
  57. package/src/components/Input.vue +9 -1
  58. package/src/components/Loading.vue +13 -14
  59. package/src/components/Menu.vue +42 -0
  60. package/src/components/Modal.vue +59 -0
  61. package/src/components/Notification.vue +6 -6
  62. package/src/components/Pagination.vue +5 -6
  63. package/src/components/Radio.vue +55 -39
  64. package/src/components/Sidebar.vue +34 -17
  65. package/src/components/Skeleton.vue +43 -25
  66. package/src/components/Slider.vue +2 -2
  67. package/src/components/Steps.vue +13 -14
  68. package/src/components/Switch.vue +22 -19
  69. package/src/components/Table.vue +30 -37
  70. package/src/components/Tabs.vue +3 -2
  71. package/src/components/Taginput.vue +14 -14
  72. package/src/components/Timepicker.vue +4 -6
  73. package/src/components/Tooltip.vue +54 -16
  74. package/dist/scss/components/_inputitems.scss +0 -175
  75. package/src/assets/scss/components/_inputitems.scss +0 -175
@@ -19,33 +19,16 @@ $input-padding: $control-padding-vertical $control-padding-horizontal !default;
19
19
  $input-textarea-max-height: 600px !default;
20
20
  $input-textarea-min-height: 120px !default;
21
21
  $input-textarea-padding: 0.625em !default;
22
- // @deprecated
23
- $input-width: 100% !default;
24
- // @deprecated
25
- $input-max-width: 100% !default;
26
22
  /* @docs */
27
23
 
28
- .o-ctrl-input {
29
- display: block;
30
- position: relative;
31
-
32
- &--expanded {
33
- width: 100%;
34
- flex-grow: 1;
35
- flex-shrink: 1;
36
- }
37
- }
38
-
39
24
  .o-input {
40
25
  -moz-appearance: none;
41
26
  -webkit-appearance: none;
42
27
  display: inline-flex;
43
28
  position: relative;
44
29
  vertical-align: top;
45
- width: $input-width;
46
30
 
47
31
  @include avariable("box-shadow", "input-box-shadow", $input-box-shadow);
48
- @include avariable("max-width", "input-max-width", $input-max-width);
49
32
  @include avariable(
50
33
  "background-color",
51
34
  "input-background-color",
@@ -66,31 +49,18 @@ $input-max-width: 100% !default;
66
49
  @include avariable("padding", "input-padding", $input-padding);
67
50
  @include avariable("margin", "input-margin", $input-margin);
68
51
 
69
- &-iconspace-left {
70
- @include avariable("padding-left", "input-height", $input-height);
71
- }
52
+ &__wrapper {
53
+ display: inline-block;
54
+ position: relative;
72
55
 
73
- &-iconspace-right {
74
- @include avariable("padding-right", "input-height", $input-height);
75
- }
76
-
77
- &--rounded {
78
- @include avariable(
79
- "border-radius",
80
- "input-rounded-border-radius",
81
- $input-rounded-border-radius
82
- );
83
- }
56
+ &--expanded {
57
+ width: 100%;
58
+ flex-grow: 1;
59
+ flex-shrink: 1;
84
60
 
85
- @each $name, $value in $sizes {
86
- &--#{$name} {
87
- @include avariable("font-size", ("input-font-size-" + #{$name}), $value);
88
- }
89
- }
90
- @each $name, $pair in $colors {
91
- $color: list.nth($pair, 1);
92
- &--#{$name} {
93
- @include avariable("border-color", ("variant-" + #{$name}), $color);
61
+ .o-input {
62
+ width: 100%;
63
+ }
94
64
  }
95
65
  }
96
66
 
@@ -150,4 +120,32 @@ $input-max-width: 100% !default;
150
120
  &__icon-left {
151
121
  left: 0;
152
122
  }
123
+
124
+ &--iconspace-left {
125
+ @include avariable("padding-left", "input-height", $input-height);
126
+ }
127
+
128
+ &--iconspace-right {
129
+ @include avariable("padding-right", "input-height", $input-height);
130
+ }
131
+
132
+ &--rounded {
133
+ @include avariable(
134
+ "border-radius",
135
+ "input-rounded-border-radius",
136
+ $input-rounded-border-radius
137
+ );
138
+ }
139
+
140
+ @each $name, $value in $sizes {
141
+ &--#{$name} {
142
+ @include avariable("font-size", ("input-font-size-" + #{$name}), $value);
143
+ }
144
+ }
145
+ @each $name, $pair in $colors {
146
+ $color: list.nth($pair, 1);
147
+ &--#{$name} {
148
+ @include avariable("border-color", ("variant-" + #{$name}), $color);
149
+ }
150
+ }
153
151
  }
@@ -23,21 +23,21 @@ $menu-label-spacing: 1em !default;
23
23
  @include avariable("font-size", ("menu-font-size-" + #{$name}), $value);
24
24
  }
25
25
  }
26
- }
27
-
28
- .o-menu-list {
29
- @include avariable(
30
- "line-height",
31
- ("menu-list-line-height"),
32
- $menu-list-line-height
33
- );
34
26
 
35
- .o-menu-list,
36
- .o-menu-item__wrapper {
27
+ &__list,
28
+ &__item__wrapper {
37
29
  list-style: none;
38
30
  }
39
31
 
40
- .o-menu-item__submenu {
32
+ &__list {
33
+ @include avariable(
34
+ "line-height",
35
+ ("menu-list-line-height"),
36
+ $menu-list-line-height
37
+ );
38
+ }
39
+
40
+ &__item__submenu {
41
41
  @include avariable(
42
42
  "border-left",
43
43
  ("menu-list-border-left"),
@@ -54,71 +54,71 @@ $menu-label-spacing: 1em !default;
54
54
  $menu-nested-list-margin
55
55
  );
56
56
  }
57
- }
58
-
59
- .o-menu-label {
60
- @include avariable("color", ("menu-label-color"), $menu-label-color);
61
- @include avariable(
62
- "font-size",
63
- ("menu-label-font-size"),
64
- $menu-label-font-size
65
- );
66
- text-transform: uppercase;
67
57
 
68
- &:not(:first-child) {
58
+ &__label {
59
+ @include avariable("color", ("menu-label-color"), $menu-label-color);
69
60
  @include avariable(
70
- "margin-top",
71
- ("menu-label-spacing"),
72
- $menu-label-spacing
61
+ "font-size",
62
+ ("menu-label-font-size"),
63
+ $menu-label-font-size
73
64
  );
74
- }
65
+ text-transform: uppercase;
75
66
 
76
- &:not(:last-child) {
77
- @include avariable(
78
- "margin-bottom",
79
- ("menu-label-spacing"),
80
- $menu-label-spacing
81
- );
67
+ &:not(:first-child) {
68
+ @include avariable(
69
+ "margin-top",
70
+ ("menu-label-spacing"),
71
+ $menu-label-spacing
72
+ );
73
+ }
74
+
75
+ &:not(:last-child) {
76
+ @include avariable(
77
+ "margin-bottom",
78
+ ("menu-label-spacing"),
79
+ $menu-label-spacing
80
+ );
81
+ }
82
82
  }
83
- }
84
83
 
85
- .o-menu-item {
86
- @include avariable("color", ("menu-item-color"), $menu-item-color);
87
- @include avariable("padding", ("menu-item-padding"), $menu-item-padding);
88
- display: block;
89
- list-style: none;
84
+ &__item {
85
+ @include avariable("color", ("menu-item-color"), $menu-item-color);
86
+ @include avariable("padding", ("menu-item-padding"), $menu-item-padding);
87
+ display: block;
88
+ list-style: none;
90
89
 
91
- &:hover:not(&--active):not(&--disabled) {
92
- @include avariable(
93
- "color",
94
- ("menu-item-hover-color"),
95
- $menu-item-hover-color
96
- );
97
- @include avariable(
98
- "background-color",
99
- ("menu-item-hover-background-color"),
100
- $menu-item-hover-background-color
101
- );
102
- }
90
+ &:hover:not(&--active):not(&--disabled) {
91
+ @include avariable(
92
+ "color",
93
+ ("menu-item-hover-color"),
94
+ $menu-item-hover-color
95
+ );
96
+ @include avariable(
97
+ "background-color",
98
+ ("menu-item-hover-background-color"),
99
+ $menu-item-hover-background-color
100
+ );
101
+ }
103
102
 
104
- &--active {
105
- @include avariable(
106
- "color",
107
- ("menu-item-active-color"),
108
- $menu-item-active-color
109
- );
110
- @include avariable(
111
- "background-color",
112
- ("menu-item-active-background-color"),
113
- $menu-item-active-background-color
114
- );
115
- }
103
+ &--active {
104
+ @include avariable(
105
+ "color",
106
+ ("menu-item-active-color"),
107
+ $menu-item-active-color
108
+ );
109
+ @include avariable(
110
+ "background-color",
111
+ ("menu-item-active-background-color"),
112
+ $menu-item-active-background-color
113
+ );
114
+ }
116
115
 
117
- &--disabled {
118
- @include avariable(
119
- "color",
120
- ("menu-item-disabled-color"),
121
- $menu-item-disabled-color
122
- );
116
+ &--disabled {
117
+ @include avariable(
118
+ "color",
119
+ ("menu-item-disabled-color"),
120
+ $menu-item-disabled-color
121
+ );
122
+ }
123
123
  }
124
124
  }
@@ -163,6 +163,28 @@ $pagination-rounded-border-radius: $base-rounded-border-radius !default;
163
163
  );
164
164
  }
165
165
 
166
+ &__next {
167
+ order: 3;
168
+ }
169
+
170
+ &__previous {
171
+ order: 2;
172
+ }
173
+
174
+ &__list {
175
+ align-items: center;
176
+ display: flex;
177
+ text-align: center;
178
+ list-style: none;
179
+ flex-wrap: wrap;
180
+ margin: 0;
181
+ padding: 0;
182
+ flex-grow: 1;
183
+ flex-shrink: 1;
184
+ justify-content: flex-start;
185
+ order: 1;
186
+ }
187
+
166
188
  &--simple {
167
189
  justify-content: normal;
168
190
  }
@@ -201,28 +223,6 @@ $pagination-rounded-border-radius: $base-rounded-border-radius !default;
201
223
  }
202
224
  }
203
225
 
204
- &__next {
205
- order: 3;
206
- }
207
-
208
- &__previous {
209
- order: 2;
210
- }
211
-
212
- &__list {
213
- align-items: center;
214
- display: flex;
215
- text-align: center;
216
- list-style: none;
217
- flex-wrap: wrap;
218
- margin: 0;
219
- padding: 0;
220
- flex-grow: 1;
221
- flex-shrink: 1;
222
- justify-content: flex-start;
223
- order: 1;
224
- }
225
-
226
226
  &--mobile {
227
227
  justify-content: flex-start;
228
228
  flex-wrap: wrap;
@@ -11,8 +11,6 @@ $radio-size: 1rem !default;
11
11
  $radio-line-height: 1.25 !default;
12
12
  /* @docs */
13
13
 
14
- $HALF_MARGIN_EXPRESSION: "calc($margin * 0.5)";
15
-
16
14
  @function svg_radio_fill($color, $background-color: "transparent") {
17
15
  $start: '<svg width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">';
18
16
  $content: '<g transform="matrix(4.38544,0,0,4.38544,-94.4336,-58.9876)"><path d="M32.935,13.679C39.102,13.679 44.108,18.685 44.108,24.852C44.108,31.019 39.102,36.025 32.935,36.025C26.768,36.025 21.761,31.019 21.761,24.852C21.761,18.685 26.768,13.679 32.935,13.679ZM32.798,17.05C37.105,17.05 40.601,20.546 40.601,24.852C40.601,29.158 37.105,32.655 32.798,32.655C28.492,32.655 24.996,29.158 24.996,24.852C24.996,20.546 28.492,17.05 32.798,17.05Z" style="fill:#{$color};"/><circle cx="32.84" cy="24.8" r="7.9" style="fill:#{$background-color};"/></g>';
@@ -41,7 +39,7 @@ $HALF_MARGIN_EXPRESSION: "calc($margin * 0.5)";
41
39
  $radio-margin-sibiling
42
40
  );
43
41
 
44
- &__check {
42
+ &__input {
45
43
  @include avariable("width", "radio-size", $radio-size);
46
44
  @include avariable("height", "radio-size", $radio-size);
47
45
  margin: 0;
@@ -104,17 +102,17 @@ $HALF_MARGIN_EXPRESSION: "calc($margin * 0.5)";
104
102
  $color: list.nth($pair, 1);
105
103
  $color-invert: list.nth($pair, 2);
106
104
  &--#{$name} {
107
- .o-radio__check {
105
+ .o-radio__input {
108
106
  background-image: url(svg_radio_empty(
109
107
  variable(("variant-" + #{$name}), $color)
110
108
  ));
111
- }
112
109
 
113
- .o-radio__check--checked {
114
- background-image: url(svg_radio_fill(
115
- variable(("variant-" + #{$name}), $color),
116
- variable(("variant-invert-" + #{$name}), $color-invert)
117
- ));
110
+ &--checked {
111
+ background-image: url(svg_radio_fill(
112
+ variable(("variant-" + #{$name}), $color),
113
+ variable(("variant-invert-" + #{$name}), $color-invert)
114
+ ));
115
+ }
118
116
  }
119
117
  }
120
118
  }
@@ -4,20 +4,36 @@
4
4
  $sidebar-overlay: hsla(0, 0%, 4%, 0.86) !default;
5
5
  $sidebar-box-shadow: 5px 0px 13px 3px rgba($black, 0.1) !default;
6
6
  $sidebar-content-background-color: $grey-lighter !default;
7
- $sidebar-mobile-width: 80px !default;
7
+ $sidebar-border-radius: $base-border-radius !default;
8
+ $sidebar-border-width: 1px !default;
9
+ $sidebar-border-color: rgba(0, 0, 0, 0.175) !default;
10
+ $sidebar-reduced-width: 80px !default;
8
11
  $sidebar-width: 260px !default;
9
- $sidebar-zindex: 38 !default;
12
+ $sidebar-zindex: 100 !default;
10
13
  /* @docs */
11
14
 
12
15
  .o-side {
16
+ display: none;
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ height: 100%;
21
+ width: 100%;
22
+
13
23
  &__content {
24
+ position: absolute;
25
+
14
26
  @include avariable(
15
27
  "background-color",
16
28
  "sidebar-content-background-color",
17
29
  $sidebar-content-background-color
18
30
  );
31
+ @include avariable(
32
+ "border-radius",
33
+ "sidebar-border-radius",
34
+ $sidebar-border-radius
35
+ );
19
36
  @include avariable("box-shadow", "sidebar-box-shadow", $sidebar-box-shadow);
20
- @include avariable("width", "sidebar-width", $sidebar-width);
21
37
  @include evariable(
22
38
  "z-index",
23
39
  "calc($z-index + 1)",
@@ -31,56 +47,134 @@ $sidebar-zindex: 38 !default;
31
47
  }
32
48
  }
33
49
 
34
- &--fixed {
35
- position: fixed;
36
- left: 0;
37
- top: 0;
50
+ // position
51
+ &--right,
52
+ &--left {
53
+ @include avariable(
54
+ "transition-duration",
55
+ "transition-duration",
56
+ $speed-slow
57
+ );
58
+ @include avariable(
59
+ "transition-timing-function",
60
+ "transition-timing",
61
+ $easing
62
+ );
63
+ @include avariable("width", "sidebar-width", $sidebar-width);
64
+ transition: width;
38
65
  }
39
66
 
40
- &--absolute {
41
- position: absolute;
42
- left: 0;
43
- top: 0;
67
+ &--top,
68
+ &--bottom {
69
+ @include avariable(
70
+ "transition-duration",
71
+ "transition-duration",
72
+ $speed-slow
73
+ );
74
+ @include avariable(
75
+ "transition-timing-function",
76
+ "transition-timing",
77
+ $easing
78
+ );
79
+ @include avariable("height", "sidebar-width", $sidebar-width);
80
+ transition: height;
44
81
  }
45
82
 
46
83
  &--right {
47
84
  left: auto;
48
85
  right: 0;
86
+
87
+ @include evariable(
88
+ "border-left",
89
+ "$width solid $color",
90
+ eparam(
91
+ "$width",
92
+ variable("sidebar-border-width", $sidebar-border-width)
93
+ ),
94
+ eparam(
95
+ "$color",
96
+ variable("sidebar-border-color", $sidebar-border-color)
97
+ )
98
+ );
49
99
  }
50
100
 
51
- &--mini {
52
- @include avariable(
53
- "width",
54
- "sidebar-mobile-width",
55
- $sidebar-mobile-width
101
+ &--left {
102
+ left: 0;
103
+ right: auto;
104
+
105
+ @include evariable(
106
+ "border-right",
107
+ "$width solid $color",
108
+ eparam(
109
+ "$width",
110
+ variable("sidebar-border-width", $sidebar-border-width)
111
+ ),
112
+ eparam(
113
+ "$color",
114
+ variable("sidebar-border-color", $sidebar-border-color)
115
+ )
56
116
  );
57
117
  }
58
118
 
59
- &--mini-expand {
60
- &:hover {
61
- transition: width;
62
-
63
- @include avariable(
64
- "transition-duration",
65
- "transition-duration",
66
- $speed-slow
67
- );
68
- @include avariable(
69
- "transition-timing-function",
70
- "transition-timing",
71
- $easing
72
- );
73
- @include avariable("width", "sidebar-width", $sidebar-width);
74
- }
119
+ &--top {
120
+ top: 0;
121
+ bottom: auto;
122
+
123
+ @include evariable(
124
+ "border-bottom",
125
+ "$width solid $color",
126
+ eparam(
127
+ "$width",
128
+ variable("sidebar-border-width", $sidebar-border-width)
129
+ ),
130
+ eparam(
131
+ "$color",
132
+ variable("sidebar-border-color", $sidebar-border-color)
133
+ )
134
+ );
75
135
  }
76
136
 
77
- &--static {
78
- position: static;
137
+ &--bottom {
138
+ top: auto;
139
+ bottom: 0;
140
+
141
+ @include evariable(
142
+ "border-top",
143
+ "$width solid $color",
144
+ eparam(
145
+ "$width",
146
+ variable("sidebar-border-width", $sidebar-border-width)
147
+ ),
148
+ eparam(
149
+ "$color",
150
+ variable("sidebar-border-color", $sidebar-border-color)
151
+ )
152
+ );
79
153
  }
80
154
 
81
- &--absolute,
82
- &--static {
83
- transition: width $speed-slow $easing;
155
+ &--reduced {
156
+ @include avariable(
157
+ "width",
158
+ "sidebar-reduced-width",
159
+ $sidebar-reduced-width
160
+ );
161
+
162
+ &-expand {
163
+ &:hover {
164
+ @include avariable(
165
+ "transition-duration",
166
+ "transition-duration",
167
+ $speed-slow
168
+ );
169
+ @include avariable(
170
+ "transition-timing-function",
171
+ "transition-timing",
172
+ $easing
173
+ );
174
+ @include avariable("width", "sidebar-width", $sidebar-width);
175
+ transition: width;
176
+ }
177
+ }
84
178
  }
85
179
 
86
180
  &--fullwidth {
@@ -91,11 +185,6 @@ $sidebar-zindex: 38 !default;
91
185
  &--fullheight {
92
186
  height: 100%;
93
187
  max-height: 100%;
94
- overflow: hidden;
95
- overflow-y: auto;
96
- display: flex;
97
- flex-direction: column;
98
- align-content: stretch;
99
188
  }
100
189
  }
101
190
 
@@ -109,4 +198,20 @@ $sidebar-zindex: 38 !default;
109
198
  @include avariable("background", "sidebar-overlay", $sidebar-overlay);
110
199
  @include avariable("z-index", "sidebar-zindex", $sidebar-zindex);
111
200
  }
201
+
202
+ &--active {
203
+ display: block;
204
+ }
205
+
206
+ &--inline {
207
+ position: relative;
208
+
209
+ .o-side__overlay {
210
+ position: absolute;
211
+ }
212
+
213
+ .o-side__content {
214
+ position: relative;
215
+ }
216
+ }
112
217
  }
@@ -5,8 +5,10 @@ $switch-active-background-color: $primary !default;
5
5
  $switch-action-background: #f5f5f5 !default;
6
6
  $switch-background: $grey-light !default;
7
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;
8
+ $switch-box-shadow:
9
+ 0 3px 1px 0 rgba(0, 0, 0, 0.05),
10
+ 0 2px 2px 0 rgba(0, 0, 0, 0.1),
11
+ 0 3px 3px 0 rgba(0, 0, 0, 0.05) !default;
10
12
  $switch-disabled-opacity: $base-disabled-opacity !default;
11
13
  $switch-margin-label: 0.5em !default;
12
14
  $switch-padding: 0.2em !default;
@@ -5,7 +5,9 @@ $table-background-color: #fff !default;
5
5
  $table-background: #f5f5f5 !default;
6
6
  $table-boder: 1px solid transparent !default;
7
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;
8
+ $table-card-box-shadow:
9
+ 0 2px 3px rgba($black, 0.1),
10
+ 0 0 0 1px rgba($black, 0.1) !default;
9
11
  $table-card-cell-font-weight: 600 !default;
10
12
  $table-card-cell-padding: 0 0.5em 0 0 !default;
11
13
  $table-card-cell-text-align: left !default;
@@ -39,8 +41,6 @@ $table-th-font-weight: 600 !default;
39
41
  $table-th-padding: 0.5em 0.75em !default;
40
42
  /* @docs */
41
43
 
42
- $SUM_EXPRESSION: "calc($param + $factor)";
43
-
44
44
  .o-table {
45
45
  display: table;
46
46
  width: 100%;
@@ -102,6 +102,7 @@ $SUM_EXPRESSION: "calc($param + $factor)";
102
102
  .o-table__mobile-sort {
103
103
  display: block;
104
104
  }
105
+
105
106
  // cards
106
107
  .o-table {
107
108
  background-color: transparent;
@@ -283,7 +284,7 @@ $SUM_EXPRESSION: "calc($param + $factor)";
283
284
 
284
285
  @include evariable(
285
286
  "z-index",
286
- $SUM_EXPRESSION,
287
+ "calc($param + $factor)",
287
288
  eparam("$param", variable("table-sticky-zindex", $table-sticky-zindex)),
288
289
  eparam("$factor", 2)
289
290
  );
@@ -452,11 +453,20 @@ $SUM_EXPRESSION: "calc($param + $factor)";
452
453
  align-items: center;
453
454
  justify-content: space-between;
454
455
  display: flex;
456
+
457
+ // left - right
458
+ > div {
459
+ flex-basis: auto;
460
+ flex-grow: 0;
461
+ flex-shrink: 0;
462
+ }
463
+
455
464
  // left
456
465
  > div:first-child {
457
466
  align-items: center;
458
467
  justify-content: flex-start;
459
468
  }
469
+
460
470
  // right
461
471
  > div:last-child {
462
472
  align-items: center;
@@ -471,11 +481,5 @@ $SUM_EXPRESSION: "calc($param + $factor)";
471
481
  justify-content: center;
472
482
  }
473
483
  }
474
- // left - right
475
- > div {
476
- flex-basis: auto;
477
- flex-grow: 0;
478
- flex-shrink: 0;
479
- }
480
484
  }
481
485
  }