@inspark/components-web 14.0.12 → 14.0.13
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/index.css +8 -8
- package/package.json +1 -1
- package/src/base/_functions.scss +5 -3
- package/src/base/_mixins.scss +4 -3
- package/src/base/_variables.scss +14 -12
- package/src/button/_mixins.scss +1 -1
- package/src/button/_variables.scss +12 -8
- package/src/card/_mixins.scss +5 -5
- package/src/card/_variables.scss +2 -1
- package/src/crop/_mixins.scss +5 -3
- package/src/grid/_variables.scss +25 -22
- package/src/icon/_mixins.scss +2 -1
- package/src/input/_variables.scss +4 -3
- package/src/list-group/_mixins.scss +2 -1
- package/src/list-group/_variables.scss +4 -2
- package/src/mediaqueries/_mixins.scss +14 -13
- package/src/nav/_mixins.scss +1 -1
- package/src/navbar/_mixins.scss +2 -2
- package/src/navbar/_variables.scss +11 -10
- package/src/nvd3/_variables-theme-contrast.scss +2 -1
- package/src/nvd3/_variables-theme-green.scss +2 -1
- package/src/nvd3/_variables-theme-light.scss +2 -1
- package/src/nvd3/_variables.scss +2 -1
- package/src/ratio/_mixins.scss +5 -3
- package/src/sass-mq/_mixins.scss +15 -10
- package/src/sidebar/_mixins.scss +2 -1
- package/src/theme/_functions.scss +2 -1
- package/src/theme/_mixins.scss +3 -2
- package/src/theme/blue.scss +26 -25
- package/src/theme/contrast.scss +26 -25
- package/src/theme/green.scss +26 -25
- package/src/theme/light.scss +26 -25
- package/src/tools/_tools.rem.scss +7 -6
- package/src/tree-table/_mixins.scss +5 -3
- package/src/typography/_mixins.scss +11 -8
- package/src/typography/_variables.scss +9 -6
- package/src/utilities/_utilities.hide.scss +4 -2
- package/src/utilities/_utilities.spacing.scss +4 -2
- package/src/utilities/_utilities.typography.scss +2 -1
- package/src/utilities/_utilities.widths.scss +6 -4
package/index.css
CHANGED
|
@@ -2204,8 +2204,8 @@ Styleguide 6.1.1.9
|
|
|
2204
2204
|
.c-btn:active {
|
|
2205
2205
|
border-color: transparent;
|
|
2206
2206
|
box-shadow: none;
|
|
2207
|
-
background-color:
|
|
2208
|
-
background-color: var(--ids-theme-btn-default-background--pressed,
|
|
2207
|
+
background-color: hsl(225, 7.5949367089%, -9.0196078431%);
|
|
2208
|
+
background-color: var(--ids-theme-btn-default-background--pressed, hsl(225, 7.5949367089%, -9.0196078431%));
|
|
2209
2209
|
outline: none;
|
|
2210
2210
|
}
|
|
2211
2211
|
.c-btn:disabled {
|
|
@@ -2329,8 +2329,8 @@ Styleguide 6.1.1.9
|
|
|
2329
2329
|
}
|
|
2330
2330
|
.c-btn_secondary:active {
|
|
2331
2331
|
border-color: transparent;
|
|
2332
|
-
background-color:
|
|
2333
|
-
background-color: var(--ids-theme-btn-secondary-background--pressed,
|
|
2332
|
+
background-color: hsl(192.1621621622, 39.7849462366%, -3.5294117647%);
|
|
2333
|
+
background-color: var(--ids-theme-btn-secondary-background--pressed, hsl(192.1621621622, 39.7849462366%, -3.5294117647%));
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
2336
|
.c-btn_tertiary {
|
|
@@ -2351,8 +2351,8 @@ Styleguide 6.1.1.9
|
|
|
2351
2351
|
}
|
|
2352
2352
|
.c-btn_tertiary:active {
|
|
2353
2353
|
border-color: transparent;
|
|
2354
|
-
background-color:
|
|
2355
|
-
background-color: var(--ids-theme-btn-tertiary-background--pressed,
|
|
2354
|
+
background-color: hsl(225, 7.5949367089%, -9.0196078431%);
|
|
2355
|
+
background-color: var(--ids-theme-btn-tertiary-background--pressed, hsl(225, 7.5949367089%, -9.0196078431%));
|
|
2356
2356
|
}
|
|
2357
2357
|
|
|
2358
2358
|
.c-btn_destroy:active, .c-btn_destroy:hover {
|
|
@@ -9753,8 +9753,8 @@ markup:
|
|
|
9753
9753
|
color: inherit;
|
|
9754
9754
|
}
|
|
9755
9755
|
.c-list-group__item_active .c-list-group__item-text {
|
|
9756
|
-
color:
|
|
9757
|
-
color: var(--ids-theme-list-group-active-text-color,
|
|
9756
|
+
color: hsla(184.8888888889, 100%, 123.5294117647%, 0.4);
|
|
9757
|
+
color: var(--ids-theme-list-group-active-text-color, hsla(184.8888888889, 100%, 123.5294117647%, 0.4));
|
|
9758
9758
|
}
|
|
9759
9759
|
|
|
9760
9760
|
.c-list-group_flush .c-list-group__item {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@inspark/components-web","version":"14.0.
|
|
1
|
+
{"name":"@inspark/components-web","version":"14.0.13","description":"Web components for Inspark products","main":"index.css","author":"Inspark","private":false,"license":"ISC","homepage":"https://github.com/inspark/inspark-design-system-web#readme","peerDependencies":{"@ng-bootstrap/ng-bootstrap":"^13.1.1","d3":"^7.8.5","ng-inline-svg":"^8.6.3","ng2-nvd3":"^2.0.0","nvd3":"^1.8.5"},"dependencies":{"sass":"^1.70.0"}}
|
package/src/base/_functions.scss
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
// Example usage:
|
|
6
6
|
//
|
|
7
7
|
// @if (inuit-config(debug) == true) { ... }
|
|
8
|
-
|
|
8
|
+
@use "sass:color";
|
|
9
|
+
@use "sass:map";
|
|
9
10
|
@function inuit-config($key) {
|
|
10
|
-
@return map
|
|
11
|
+
@return map.get($inuit-config, $key);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
@function hex-to-rgb-numbers($color) {
|
|
14
|
-
@return red($color)
|
|
15
|
+
@return '#{color.red($color)},#{color.green($color)},#{color.blue($color)}';
|
|
16
|
+
//@return color.channel($color, "red", $space: rgb) + ',' + color.channel($color, "green", $space: rgb) + ',' + color.channel($color, "blue", $space: rgb)
|
|
15
17
|
}
|
package/src/base/_mixins.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
@import "./variables";
|
|
2
3
|
@import "./functions";
|
|
3
4
|
@import "../typography/variables";
|
|
@@ -767,8 +768,8 @@
|
|
|
767
768
|
|
|
768
769
|
html,
|
|
769
770
|
%html {
|
|
770
|
-
font-size: (
|
|
771
|
-
line-height: $inuit-global-line-height
|
|
771
|
+
font-size: math.div(12, 16) * 1em; /* [1] */
|
|
772
|
+
line-height: math.div($inuit-global-line-height, $inuit-global-font-size); /* [1] */
|
|
772
773
|
//overflow-y: scroll; /* [2] */
|
|
773
774
|
//min-height: 100%; /* [3] */
|
|
774
775
|
overflow-y: auto;
|
|
@@ -794,7 +795,7 @@
|
|
|
794
795
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
795
796
|
|
|
796
797
|
@include screen_large-and-up {
|
|
797
|
-
font-size: ($inuit-global-font-size
|
|
798
|
+
font-size: math.div($inuit-global-font-size, 16px) * 1em;
|
|
798
799
|
}
|
|
799
800
|
}
|
|
800
801
|
|
package/src/base/_variables.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:meta";
|
|
1
3
|
@import "../theme/variables";
|
|
2
4
|
|
|
3
5
|
///* ========================================================================
|
|
@@ -43,7 +45,7 @@ $inuit-global-line-height: 23px !default;
|
|
|
43
45
|
// your baseline grid). It is not recommended that you modify these following
|
|
44
46
|
// variables (it can break your vertical rhythm), but if you need to, you can.
|
|
45
47
|
|
|
46
|
-
$inuit-global-spacing-unit: round($inuit-global-line-height) !default;
|
|
48
|
+
$inuit-global-spacing-unit: math.round($inuit-global-line-height) !default;
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
// How many times larger/smaller than the default should our spacing unit
|
|
@@ -70,9 +72,9 @@ $inuit-global-spacing-unit-factor-huge: 4 !default;
|
|
|
70
72
|
$inuit-global-font-size
|
|
71
73
|
$inuit-global-line-height {
|
|
72
74
|
|
|
73
|
-
@if (type-of($_inuit-font-globals) == number) {
|
|
75
|
+
@if (meta.type-of($_inuit-font-globals) == number) {
|
|
74
76
|
|
|
75
|
-
@if (unit($_inuit-font-globals) != "px") {
|
|
77
|
+
@if (math.unit($_inuit-font-globals) != "px") {
|
|
76
78
|
@error "`#{$_inuit-font-globals}` needs to be a pixel value.";
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -91,9 +93,9 @@ $inuit-global-spacing-unit-factor-huge: 4 !default;
|
|
|
91
93
|
$inuit-global-spacing-unit-factor-large
|
|
92
94
|
$inuit-global-spacing-unit-factor-huge {
|
|
93
95
|
|
|
94
|
-
@if (type-of($_inuit-spacing-unit) == number) {
|
|
96
|
+
@if (meta.type-of($_inuit-spacing-unit) == number) {
|
|
95
97
|
|
|
96
|
-
@if (unitless($_inuit-spacing-unit) == false) {
|
|
98
|
+
@if (math.is-unitless($_inuit-spacing-unit) == false) {
|
|
97
99
|
@error "`#{$_inuit-spacing-unit}` needs to be unitless.";
|
|
98
100
|
}
|
|
99
101
|
|
|
@@ -104,11 +106,11 @@ $inuit-global-spacing-unit-factor-huge: 4 !default;
|
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
|
|
107
|
-
// Private
|
|
108
|
-
$inuit-global-spacing-unit-tiny: round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-tiny);
|
|
109
|
-
$inuit-global-spacing-unit-small: round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-small);
|
|
110
|
-
$inuit-global-spacing-unit-large: round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-large);
|
|
111
|
-
$inuit-global-spacing-unit-huge: round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-huge);
|
|
109
|
+
// Private framework-only reassignment. Do not alter anything below.
|
|
110
|
+
$inuit-global-spacing-unit-tiny: math.round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-tiny);
|
|
111
|
+
$inuit-global-spacing-unit-small: math.round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-small);
|
|
112
|
+
$inuit-global-spacing-unit-large: math.round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-large);
|
|
113
|
+
$inuit-global-spacing-unit-huge: math.round($inuit-global-spacing-unit * $inuit-global-spacing-unit-factor-huge);
|
|
112
114
|
|
|
113
115
|
|
|
114
116
|
// Connect all necessary font-families
|
|
@@ -124,9 +126,9 @@ $FontPathMaterial: "../assets/fonts/material-design-icons" !default;
|
|
|
124
126
|
|
|
125
127
|
$global-radius: 3px !default;
|
|
126
128
|
$global-radius-rounded: 30em !default;
|
|
127
|
-
$global-transition: (1
|
|
129
|
+
$global-transition: math.div(1,3) + s !default;
|
|
128
130
|
|
|
129
|
-
$line-height-computed: $inuit-global-line-height
|
|
131
|
+
$line-height-computed: math.div($inuit-global-line-height, $inuit-global-font-size);
|
|
130
132
|
|
|
131
133
|
|
|
132
134
|
// Reassign `$inuit-global-spacing-unit` to `$unit`.
|
package/src/button/_mixins.scss
CHANGED
|
@@ -364,7 +364,7 @@ markup:
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
&.c-btn_tiny {
|
|
367
|
-
padding: (($inuit-global-spacing-unit-tiny - $btn-ghost-border-width)
|
|
367
|
+
padding: (($inuit-global-spacing-unit-tiny - $btn-ghost-border-width) * 0.5) ($inuit-global-spacing-unit-tiny - $btn-ghost-border-width);
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
&.c-btn_small {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
|
|
1
3
|
$btn-border-radius: $global-radius !default;
|
|
2
4
|
$btn-default-border: none !default;
|
|
3
5
|
$btn-default-background: $color-gray-40 !default;
|
|
4
6
|
$btn-default-color: $text-color !default;
|
|
5
|
-
$btn-default-background--hover:
|
|
6
|
-
$btn-default-background--
|
|
7
|
+
$btn-default-background--hover: color.adjust($btn-default-background, $lightness: -20%) !default;
|
|
8
|
+
$btn-default-background--hover-old: color.adjust($btn-default-background, $lightness: -20%) !default;
|
|
9
|
+
$btn-default-background--pressed: color.adjust($btn-default-background, $lightness: -40%) !default;
|
|
10
|
+
$btn-default-background--pressed-old: color.adjust($btn-default-background, $lightness: -40%) !default;
|
|
7
11
|
|
|
8
12
|
$btn-shadow: none !default;
|
|
9
13
|
|
|
@@ -17,22 +21,22 @@ $btn-disabled-color: rgba($color-base-white, 0.4) !default;
|
|
|
17
21
|
$btn-primary-color: $color-gray-80 !default;
|
|
18
22
|
$btn-primary-border-color: transparent !default;
|
|
19
23
|
$btn-primary-background: $ids-theme-primary !default;
|
|
20
|
-
$btn-primary-background--hover:
|
|
21
|
-
$btn-primary-background--pressed:
|
|
24
|
+
$btn-primary-background--hover: color.adjust($btn-primary-background, $lightness: -20%) !default;
|
|
25
|
+
$btn-primary-background--pressed: color.adjust($btn-primary-background, $lightness: -40%) !default;
|
|
22
26
|
$btn-primary-background--disabled: $btn-disabled-background !default;
|
|
23
27
|
$btn-primary-color--disabled: rgba($color-base-black, 0.4) !default;
|
|
24
28
|
|
|
25
29
|
$btn-secondary-color: $color-base-white !default;
|
|
26
30
|
$btn-secondary-border-color: transparent !default;
|
|
27
31
|
$btn-secondary-background: $ids-theme-secondary !default;
|
|
28
|
-
$btn-secondary-background--hover:
|
|
29
|
-
$btn-secondary-background--pressed:
|
|
32
|
+
$btn-secondary-background--hover: color.adjust($btn-secondary-background, $lightness: -20%) !default;
|
|
33
|
+
$btn-secondary-background--pressed: color.adjust($btn-secondary-background, $lightness: -40%) !default;
|
|
30
34
|
|
|
31
35
|
$btn-tertiary-color: $color-base-white !default;
|
|
32
36
|
$btn-tertiary-border-color: transparent !default;
|
|
33
37
|
$btn-tertiary-background: $color-gray-40 !default;
|
|
34
|
-
$btn-tertiary-background--hover:
|
|
35
|
-
$btn-tertiary-background--pressed:
|
|
38
|
+
$btn-tertiary-background--hover: color.adjust($btn-tertiary-background, $lightness: -20%) !default;
|
|
39
|
+
$btn-tertiary-background--pressed: color.adjust($btn-tertiary-background, $lightness: -40%) !default;
|
|
36
40
|
|
|
37
41
|
$btn-disabled-border-color: transparent !default;
|
|
38
42
|
$btn-disabled-background: $color-gray-35 !default;
|
package/src/card/_mixins.scss
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.c-card-subtitle {
|
|
118
|
-
margin-top: -($card-spacer-y
|
|
118
|
+
margin-top: -($card-spacer-y * 0.5);
|
|
119
119
|
margin-bottom: 0;
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -161,15 +161,15 @@
|
|
|
161
161
|
//
|
|
162
162
|
|
|
163
163
|
.c-card__header-tabs {
|
|
164
|
-
margin-right: -($card-spacer-x
|
|
164
|
+
margin-right: -($card-spacer-x * 0.5);
|
|
165
165
|
margin-bottom: -$card-spacer-y;
|
|
166
|
-
margin-left: -($card-spacer-x
|
|
166
|
+
margin-left: -($card-spacer-x * 0.5);
|
|
167
167
|
border-bottom: 0;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.c-card__header-pills {
|
|
171
|
-
margin-right: -($card-spacer-x
|
|
172
|
-
margin-left: -($card-spacer-x
|
|
171
|
+
margin-right: -($card-spacer-x * 0.5);
|
|
172
|
+
margin-left: -($card-spacer-x * 0.5);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
package/src/card/_variables.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
@import "../grid/variables";
|
|
2
3
|
|
|
3
4
|
// Cards
|
|
@@ -13,7 +14,7 @@ $card-bg: $color-gray-90 !default;
|
|
|
13
14
|
|
|
14
15
|
$card-img-overlay-padding: 1.25rem !default;
|
|
15
16
|
|
|
16
|
-
$card-group-margin: ($grid-gutter-width
|
|
17
|
+
$card-group-margin: math.div($grid-gutter-width, 2) !default;
|
|
17
18
|
$card-deck-margin: $card-group-margin !default;
|
|
18
19
|
|
|
19
20
|
$card-columns-count: 3 !default;
|
package/src/crop/_mixins.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
2
|
+
@use "sass:math";
|
|
1
3
|
@import "./variables";
|
|
2
4
|
|
|
3
5
|
/* ==========================================================================
|
|
@@ -108,16 +110,16 @@ markup:
|
|
|
108
110
|
|
|
109
111
|
@each $antecedent, $consequent in $crop {
|
|
110
112
|
|
|
111
|
-
@if (type-of($antecedent) != number) {
|
|
113
|
+
@if (meta.type-of($antecedent) != number) {
|
|
112
114
|
@error "`#{$antecedent}` needs to be a number."
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
@if (type-of($consequent) != number) {
|
|
117
|
+
@if (meta.type-of($consequent) != number) {
|
|
116
118
|
@error "`#{$consequent}` needs to be a number."
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
.o-crop_#{$antecedent}\:#{$consequent} {
|
|
120
|
-
padding-bottom: ($consequent
|
|
122
|
+
padding-bottom: math.div($consequent, $antecedent) * 100%;
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
}
|
package/src/grid/_variables.scss
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:math';
|
|
1
3
|
@import "../mediaqueries/variables";
|
|
2
4
|
|
|
5
|
+
|
|
3
6
|
//== Grid system (from blaze.css) [Deprecated]
|
|
4
7
|
//
|
|
5
8
|
//## Define your custom responsive grid.
|
|
@@ -8,27 +11,27 @@
|
|
|
8
11
|
//
|
|
9
12
|
$grid-gutter: $unit-tiny !default;
|
|
10
13
|
$grid-widths: (
|
|
11
|
-
5: 5
|
|
12
|
-
10: 1
|
|
13
|
-
16: 16.6
|
|
14
|
-
20: 1
|
|
15
|
-
25: 1
|
|
16
|
-
30: 3
|
|
17
|
-
33: 1
|
|
18
|
-
35: 35
|
|
19
|
-
40: 2
|
|
20
|
-
45: 45
|
|
21
|
-
50: 1
|
|
22
|
-
55: 55
|
|
23
|
-
60: 3
|
|
24
|
-
65: 65
|
|
25
|
-
66: 2
|
|
26
|
-
70: 7
|
|
27
|
-
75: 3
|
|
28
|
-
80: 4
|
|
29
|
-
85: 85
|
|
30
|
-
90: 9
|
|
31
|
-
95: 95
|
|
14
|
+
5: math.div(5, 100),
|
|
15
|
+
10: math.div(1, 10),
|
|
16
|
+
16: math.div(16.6, 100),
|
|
17
|
+
20: math.div(1, 5),
|
|
18
|
+
25: math.div(1, 4),
|
|
19
|
+
30: math.div(3, 10),
|
|
20
|
+
33: math.div(1, 3),
|
|
21
|
+
35: math.div(35, 100),
|
|
22
|
+
40: math.div(2, 5),
|
|
23
|
+
45: math.div(45, 100),
|
|
24
|
+
50: math.div(1, 2),
|
|
25
|
+
55: math.div(55, 100),
|
|
26
|
+
60: math.div(3, 5),
|
|
27
|
+
65: math.div(65, 100),
|
|
28
|
+
66: math.div(2, 3),
|
|
29
|
+
70: math.div(7, 10),
|
|
30
|
+
75: math.div(3, 4),
|
|
31
|
+
80: math.div(4, 5),
|
|
32
|
+
85: math.div(85, 100),
|
|
33
|
+
90: math.div(9, 10),
|
|
34
|
+
95: math.div(95, 100),
|
|
32
35
|
100: 1
|
|
33
36
|
);
|
|
34
37
|
|
|
@@ -39,7 +42,7 @@ $grid-gutter-width: 30px !default;
|
|
|
39
42
|
$grid-gutter-width-base: $grid-gutter-width;
|
|
40
43
|
// Navbar collapse
|
|
41
44
|
//** Point at which the navbar becomes uncollapsed.
|
|
42
|
-
$grid-float-breakpoint: #{map
|
|
45
|
+
$grid-float-breakpoint: #{map.get($screen-limits, medium)} !default;
|
|
43
46
|
//** Point at which the navbar begins collapsing.
|
|
44
47
|
$grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
|
|
45
48
|
|
package/src/icon/_mixins.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
@import "../base/variables";
|
|
2
3
|
@import "../typography/variables";
|
|
3
4
|
@import "./variables";
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
&_flag {
|
|
12
13
|
position: relative;
|
|
13
14
|
display: inline-block;
|
|
14
|
-
width: (4
|
|
15
|
+
width: math.div(4, 3) * 1em;
|
|
15
16
|
padding: 0;
|
|
16
17
|
border-radius: 0;
|
|
17
18
|
line-height: $line-height-base;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
@import "../form/variables";
|
|
2
3
|
@import "../base/functions";
|
|
3
4
|
|
|
@@ -8,13 +9,13 @@ $input-tap-highlight-color-rgb: hex-to-rgb-numbers($color-base-black) !default;
|
|
|
8
9
|
$input-height-base: ($line-height-computed * $font-size-base + ($unit * 2) + 2) !default;
|
|
9
10
|
|
|
10
11
|
// Large `.form-control` height
|
|
11
|
-
$input-height-large: (ceil($font-size-lg * $line-height-computed) + ($unit-large * 2) + 2) !default;
|
|
12
|
+
$input-height-large: (math.ceil($font-size-lg * $line-height-computed) + ($unit-large * 2) + 2) !default;
|
|
12
13
|
|
|
13
14
|
// Small `.form-control` height
|
|
14
|
-
$input-height-small: (floor($font-size-sm * $line-height-computed) + ($unit-small * 2) + 2) !default;
|
|
15
|
+
$input-height-small: (math.floor($font-size-sm * $line-height-computed) + ($unit-small * 2) + 2) !default;
|
|
15
16
|
|
|
16
17
|
// Tiny `.form-control` height
|
|
17
|
-
$input-height-tiny: (floor($font-size-xs * $line-height-computed) + ($unit-tiny * 2) + 2) !default;
|
|
18
|
+
$input-height-tiny: (math.floor($font-size-xs * $line-height-computed) + ($unit-tiny * 2) + 2) !default;
|
|
18
19
|
|
|
19
20
|
$ids-input-theme-property-values: (
|
|
20
21
|
input-tap-highlight-color: $input-tap-highlight-color,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@import "../base/variables";
|
|
2
3
|
@import "./variables";
|
|
3
4
|
|
|
@@ -250,7 +251,7 @@ markup:
|
|
|
250
251
|
|
|
251
252
|
@include hover-focus {
|
|
252
253
|
color: $color;
|
|
253
|
-
background-color:
|
|
254
|
+
background-color: color.adjust($background, $lightness: -5%);
|
|
254
255
|
}
|
|
255
256
|
|
|
256
257
|
&.active {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
|
|
1
3
|
// List group
|
|
2
4
|
|
|
3
5
|
$list-group-color: $body-color !default;
|
|
@@ -12,7 +14,7 @@ $list-group-hover-bg: $color-gray-40 !default;
|
|
|
12
14
|
$list-group-active-color: $component-active-color !default;
|
|
13
15
|
$list-group-active-bg: $component-active-bg !default;
|
|
14
16
|
$list-group-active-border: $list-group-active-bg !default;
|
|
15
|
-
$list-group-active-text-color:
|
|
17
|
+
$list-group-active-text-color: color.adjust($list-group-active-bg, $lightness: 50%) !default;
|
|
16
18
|
|
|
17
19
|
$list-group-disabled-color: $color-gray-20 !default;
|
|
18
20
|
$list-group-disabled-bg: $color-gray-40 !default;
|
|
@@ -33,7 +35,7 @@ $ids-list-group-theme-property-values: (
|
|
|
33
35
|
list-group-active-color: $component-active-color,
|
|
34
36
|
list-group-active-bg: $component-active-bg,
|
|
35
37
|
list-group-active-border: $list-group-active-bg,
|
|
36
|
-
list-group-active-text-color:
|
|
38
|
+
list-group-active-text-color: color.adjust($list-group-active-bg, $lightness: 50%),
|
|
37
39
|
list-group-disabled-color: $color-gray-20,
|
|
38
40
|
list-group-disabled-bg: $color-gray-40,
|
|
39
41
|
list-group-disabled-text-color: $list-group-disabled-color,
|
|
@@ -1,79 +1,80 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@import "./variables";
|
|
2
3
|
|
|
3
4
|
@mixin screen_xsmall-and-up {
|
|
4
|
-
@media (min-width: #{map
|
|
5
|
+
@media (min-width: #{map.get($screen-limits, xsmall)}) {
|
|
5
6
|
@content;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@mixin screen_small-and-up {
|
|
10
|
-
@media (min-width: #{map
|
|
11
|
+
@media (min-width: #{map.get($screen-limits, small)}) {
|
|
11
12
|
@content;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
@mixin screen_medium-and-up {
|
|
16
|
-
@media (min-width: #{map
|
|
17
|
+
@media (min-width: #{map.get($screen-limits, medium)}) {
|
|
17
18
|
@content;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
@mixin screen_large-and-up {
|
|
22
|
-
@media (min-width: #{map
|
|
23
|
+
@media (min-width: #{map.get($screen-limits, large)}) {
|
|
23
24
|
@content;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
@mixin screen_larger-and-up {
|
|
28
|
-
@media (min-width: #{map
|
|
29
|
+
@media (min-width: #{map.get($screen-limits, larger)}) {
|
|
29
30
|
@content;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
@mixin screen_xlarge-and-up {
|
|
34
|
-
@media (min-width: #{map
|
|
35
|
+
@media (min-width: #{map.get($screen-limits, xlarge)}) {
|
|
35
36
|
@content;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
@mixin screen_super-and-up {
|
|
40
|
-
@media (min-width: #{map
|
|
41
|
+
@media (min-width: #{map.get($screen-limits, super)}) {
|
|
41
42
|
@content;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
@mixin screen_xsmall-only {
|
|
46
|
-
@media (max-width: #{map
|
|
47
|
+
@media (max-width: #{map.get($screen-limits, xsmall) - $screen-adjustment}) {
|
|
47
48
|
@content;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
@mixin screen_small-only {
|
|
52
|
-
@media (min-width: #{map
|
|
53
|
+
@media (min-width: #{map.get($screen-limits, xsmall)}) and (max-width: #{map.get($screen-limits, small) - $screen-adjustment}) {
|
|
53
54
|
@content;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
@mixin screen_medium-only {
|
|
58
|
-
@media (min-width: #{map
|
|
59
|
+
@media (min-width: #{map.get($screen-limits, small)}) and (max-width: #{map.get($screen-limits, medium) - $screen-adjustment}) {
|
|
59
60
|
@content;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
@mixin screen_large-only {
|
|
64
|
-
@media (min-width: #{map
|
|
65
|
+
@media (min-width: #{map.get($screen-limits, medium)}) and (max-width: #{map.get($screen-limits, large) - $screen-adjustment}) {
|
|
65
66
|
@content;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
@mixin screen_xlarge-only {
|
|
70
|
-
@media (min-width: #{map
|
|
71
|
+
@media (min-width: #{map.get($screen-limits, large)}) and (max-width: #{map.get($screen-limits, xlarge) - $screen-adjustment}) {
|
|
71
72
|
@content;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
@mixin screen_super-only {
|
|
76
|
-
@media (min-width: #{map
|
|
77
|
+
@media (min-width: #{map.get($screen-limits, large)}) {
|
|
77
78
|
@content;
|
|
78
79
|
}
|
|
79
80
|
}
|
package/src/nav/_mixins.scss
CHANGED
package/src/navbar/_mixins.scss
CHANGED
|
@@ -123,8 +123,8 @@ sg-wrapper:
|
|
|
123
123
|
|
|
124
124
|
// todo: add _ to mixin name
|
|
125
125
|
@mixin navbar-vertical-align($element-height) {
|
|
126
|
-
margin-top: (($navbar-height - $element-height)
|
|
127
|
-
margin-bottom: (($navbar-height - $element-height)
|
|
126
|
+
margin-top: (($navbar-height - $element-height) * 0.5);
|
|
127
|
+
margin-bottom: (($navbar-height - $element-height) * 0.5);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// Navbar collapse (body)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:color";
|
|
1
3
|
@import "../theme/variables";
|
|
2
4
|
@import "../base/variables";
|
|
3
5
|
|
|
@@ -7,27 +9,26 @@
|
|
|
7
9
|
$navbar-height: $inuit-global-spacing-unit-tiny * 9 !default;
|
|
8
10
|
$navbar-margin-bottom: 0 !default; //$line-height-computed
|
|
9
11
|
$navbar-border-radius: 0 !default;
|
|
10
|
-
$navbar-padding-horizontal: floor(($grid-gutter-width
|
|
12
|
+
$navbar-padding-horizontal: math.floor(math.div($grid-gutter-width, 2)) !default;
|
|
11
13
|
$navbar-line-height: $navbar-height !default;
|
|
12
|
-
$navbar-padding-vertical: (($navbar-height - $navbar-line-height)
|
|
14
|
+
$navbar-padding-vertical: (math.div(($navbar-height - $navbar-line-height), 2)) !default;
|
|
13
15
|
$navbar-collapse-max-height: 340px !default;
|
|
14
|
-
|
|
15
16
|
$navbar-default-color: $color-base-white !default;
|
|
16
17
|
$navbar-default-bg: $color-gray-80 !default;
|
|
17
|
-
$navbar-default-border:
|
|
18
|
+
$navbar-default-border: color.adjust($navbar-default-bg, $lightness: -6.5%) !default;
|
|
18
19
|
|
|
19
20
|
// Navbar links
|
|
20
21
|
$navbar-default-link-color: $color-base-white !default;
|
|
21
22
|
$navbar-default-link-hover-color: $ids-theme-secondary !default;
|
|
22
23
|
$navbar-default-link-hover-bg: transparent !default;
|
|
23
24
|
$navbar-default-link-active-color: $ids-theme-primary !default;
|
|
24
|
-
$navbar-default-link-active-bg:
|
|
25
|
+
$navbar-default-link-active-bg: color.adjust($navbar-default-bg, $lightness: -6.5%) !default;
|
|
25
26
|
$navbar-default-link-disabled-color: #ccc !default;
|
|
26
27
|
$navbar-default-link-disabled-bg: transparent !default;
|
|
27
28
|
|
|
28
29
|
// Navbar brand label
|
|
29
30
|
$navbar-default-brand-color: $navbar-default-link-color !default;
|
|
30
|
-
$navbar-default-brand-hover-color:
|
|
31
|
+
$navbar-default-brand-hover-color: color.adjust($navbar-default-brand-color, $lightness: -10%) !default;
|
|
31
32
|
$navbar-default-brand-hover-bg: transparent !default;
|
|
32
33
|
|
|
33
34
|
// Navbar toggle
|
|
@@ -39,16 +40,16 @@ $navbar-default-toggle-color: $color-base-white !default;
|
|
|
39
40
|
|
|
40
41
|
//=== Inverted navbar
|
|
41
42
|
// Reset inverted navbar basics
|
|
42
|
-
$navbar-inverse-color:
|
|
43
|
+
$navbar-inverse-color: color.adjust($color-gray-35, $lightness: 15%) !default;
|
|
43
44
|
$navbar-inverse-bg: #222 !default;
|
|
44
|
-
$navbar-inverse-border:
|
|
45
|
+
$navbar-inverse-border: color.adjust($navbar-inverse-bg, $lightness: -10%) !default;
|
|
45
46
|
|
|
46
47
|
// Inverted navbar links
|
|
47
|
-
$navbar-inverse-link-color:
|
|
48
|
+
$navbar-inverse-link-color: color.adjust($color-gray-35, $lightness: 15%) !default;
|
|
48
49
|
$navbar-inverse-link-hover-color: #fff !default;
|
|
49
50
|
$navbar-inverse-link-hover-bg: transparent !default;
|
|
50
51
|
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
|
|
51
|
-
$navbar-inverse-link-active-bg:
|
|
52
|
+
$navbar-inverse-link-active-bg: color.adjust($navbar-inverse-bg, $lightness: -10%) !default;
|
|
52
53
|
$navbar-inverse-link-disabled-color: #444 !default;
|
|
53
54
|
$navbar-inverse-link-disabled-bg: transparent !default;
|
|
54
55
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@import "../theme/variables";
|
|
2
3
|
@import "../base/variables";
|
|
3
4
|
@import "../typography/variables";
|
|
@@ -87,7 +88,7 @@ $nvd3-pie-path: $color-base-white;
|
|
|
87
88
|
// Sparkline
|
|
88
89
|
$nvd3-sparkline-path-fill: none;
|
|
89
90
|
$nvd3-sparklineplus-hovervalue-stroke: $color-gray-80;
|
|
90
|
-
$nvd3-sparklineplus-yvalue-stroke:
|
|
91
|
+
$nvd3-sparklineplus-yvalue-stroke: color.adjust($ids-theme-status-error, $lightness: 20%) !default;
|
|
91
92
|
$nvd3-sparklineplus-maxvalue-stroke: $ids-theme-status-success;
|
|
92
93
|
$nvd3-sparklineplus-maxvalue-fill: $ids-theme-status-success;
|
|
93
94
|
$nvd3-sparklineplus-minvalue-stroke: $ids-theme-status-error;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@import "../theme/variables";
|
|
2
3
|
@import "../base/variables";
|
|
3
4
|
@import "../typography/variables";
|
|
@@ -87,7 +88,7 @@ $nvd3-pie-path: $color-base-white;
|
|
|
87
88
|
// Sparkline
|
|
88
89
|
$nvd3-sparkline-path-fill: none;
|
|
89
90
|
$nvd3-sparklineplus-hovervalue-stroke: $color-gray-80;
|
|
90
|
-
$nvd3-sparklineplus-yvalue-stroke:
|
|
91
|
+
$nvd3-sparklineplus-yvalue-stroke: color.adjust($ids-theme-status-error, $lightness: 20%);
|
|
91
92
|
$nvd3-sparklineplus-maxvalue-stroke: $ids-theme-status-success;
|
|
92
93
|
$nvd3-sparklineplus-maxvalue-fill: $ids-theme-status-success;
|
|
93
94
|
$nvd3-sparklineplus-minvalue-stroke: $ids-theme-status-error;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
@import "../theme/variables";
|
|
2
3
|
@import "../base/variables";
|
|
3
4
|
@import "../typography/variables";
|
|
@@ -87,7 +88,7 @@ $nvd3-pie-path: $color-base-white;
|
|
|
87
88
|
// Sparkline
|
|
88
89
|
$nvd3-sparkline-path-fill: none;
|
|
89
90
|
$nvd3-sparklineplus-hovervalue-stroke: $color-gray-80;
|
|
90
|
-
$nvd3-sparklineplus-yvalue-stroke:
|
|
91
|
+
$nvd3-sparklineplus-yvalue-stroke: color.adjust($ids-theme-status-error, $lightness: 20%);
|
|
91
92
|
$nvd3-sparklineplus-maxvalue-stroke: $ids-theme-status-success;
|
|
92
93
|
$nvd3-sparklineplus-maxvalue-fill: $ids-theme-status-success;
|
|
93
94
|
$nvd3-sparklineplus-minvalue-stroke: $ids-theme-status-error;
|