@castlabs/ui 4.18.2

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 (140) hide show
  1. package/README.md +94 -0
  2. package/dist/assets/castlabs-logo.svg +2 -0
  3. package/dist/assets/cookie.svg +1 -0
  4. package/dist/castlabs-ui-editor.common.js +23189 -0
  5. package/dist/castlabs-ui-editor.common.js.map +1 -0
  6. package/dist/castlabs-ui-editor.css +1 -0
  7. package/dist/castlabs-ui-editor.umd.js +23208 -0
  8. package/dist/castlabs-ui-editor.umd.js.map +1 -0
  9. package/dist/castlabs-ui-editor.umd.min.js +10 -0
  10. package/dist/castlabs-ui-editor.umd.min.js.map +1 -0
  11. package/dist/castlabs-ui.common.js +6828 -0
  12. package/dist/castlabs-ui.common.js.map +1 -0
  13. package/dist/castlabs-ui.core.js +1031 -0
  14. package/dist/castlabs-ui.css +12 -0
  15. package/dist/castlabs-ui.module.d.ts +83 -0
  16. package/dist/castlabs-ui.module.js +1031 -0
  17. package/dist/castlabs-ui.umd.js +6847 -0
  18. package/dist/castlabs-ui.umd.js.map +1 -0
  19. package/dist/castlabs-ui.umd.min.js +8 -0
  20. package/dist/castlabs-ui.umd.min.js.map +1 -0
  21. package/dist/demo.html +1 -0
  22. package/dist/favicon/192.png +0 -0
  23. package/dist/favicon/512.png +0 -0
  24. package/dist/favicon/apple-touch-icon.png +0 -0
  25. package/dist/favicon/favicon-unread.svg +75 -0
  26. package/dist/favicon/favicon.ico +0 -0
  27. package/dist/favicon/favicon.svg +43 -0
  28. package/dist/favicon/manifest.webmanifest +6 -0
  29. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.f31394d2.woff2 +0 -0
  30. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.00073a59.woff2 +0 -0
  31. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.faa92a75.woff2 +0 -0
  32. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.f8e38fba.woff2 +0 -0
  33. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.f1d5cd16.woff2 +0 -0
  34. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.ebbe259f.woff2 +0 -0
  35. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e3d460d0.woff2 +0 -0
  36. package/dist/fonts/fa-brands-400.18993be8.woff2 +0 -0
  37. package/dist/fonts/fa-regular-400.e45bb696.woff2 +0 -0
  38. package/dist/fonts/fa-solid-900.16e3d2f0.woff2 +0 -0
  39. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.6de93dc1.woff2 +0 -0
  40. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.55c9461f.woff2 +0 -0
  41. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.111f8c99.woff2 +0 -0
  42. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.92257a03.woff2 +0 -0
  43. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.1844ded3.woff2 +0 -0
  44. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.719267ea.woff2 +0 -0
  45. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.037dea2d.woff2 +0 -0
  46. package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.6869bd80.woff2 +0 -0
  47. package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.05a41692.woff2 +0 -0
  48. package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.38ffdf27.woff2 +0 -0
  49. package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.f12c0c2c.woff2 +0 -0
  50. package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.03f14837.woff2 +0 -0
  51. package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.abcca84a.woff2 +0 -0
  52. package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.4d1e267c.woff2 +0 -0
  53. package/package.json +71 -0
  54. package/plugins/uid/index.js +16 -0
  55. package/plugins/uid/index.ts +16 -0
  56. package/src/assets/castlabs-logo.svg +2 -0
  57. package/src/assets/cookie.svg +1 -0
  58. package/src/components/ClAlert/style.scss +117 -0
  59. package/src/components/ClBadge/style.scss +122 -0
  60. package/src/components/ClButton/style.scss +338 -0
  61. package/src/components/ClCard/style.scss +61 -0
  62. package/src/components/ClCard/style.variables.scss +179 -0
  63. package/src/components/ClDropdown/style.scss +272 -0
  64. package/src/components/ClDropzone/style.scss +21 -0
  65. package/src/components/ClFooter/style.scss +119 -0
  66. package/src/components/ClIcon/style.scss +58 -0
  67. package/src/components/ClIconotron/style.scss +86 -0
  68. package/src/components/ClList/style.scss +93 -0
  69. package/src/components/ClList/style.variables.scss +133 -0
  70. package/src/components/ClListGroup/style.scss +9 -0
  71. package/src/components/ClPagination/style.scss +123 -0
  72. package/src/components/ClProgress/style.scss +49 -0
  73. package/src/components/ClScrollbar/style.scss +14 -0
  74. package/src/components/ClSpinner/style.scss +26 -0
  75. package/src/components/ClTabs/style.scss +90 -0
  76. package/src/components/ClToggle/style.scss +97 -0
  77. package/src/components/ClTooltip/style.scss +46 -0
  78. package/src/components/ClWizard/style.scss +173 -0
  79. package/src/components/form/ClField/style.scss +45 -0
  80. package/src/components/form/ClFieldCheck/style.scss +99 -0
  81. package/src/components/form/ClFieldFile/style.scss +71 -0
  82. package/src/components/form/ClFieldGroup/style.scss +73 -0
  83. package/src/components/form/ClFieldInput/style.scss +118 -0
  84. package/src/components/form/ClFieldSelect/style.scss +39 -0
  85. package/src/components/form/ClFieldSet/style.scss +16 -0
  86. package/src/components/form/ClForm/style.scss +87 -0
  87. package/src/components/modal/ClModal/style.scss +138 -0
  88. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +444 -0
  89. package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +51 -0
  90. package/src/components/navigation/ClNavSide/style.scss +81 -0
  91. package/src/components/navigation/ClNavTop/style.scss +305 -0
  92. package/src/components/section/ClSectionHeadline/style.scss +49 -0
  93. package/src/components/section/ClSectionMainSide/style.scss +60 -0
  94. package/src/components/table/ClTable/style.scss +23 -0
  95. package/src/components/table/ClTable/style.variables.scss +155 -0
  96. package/src/components/table/ClTableCel/Actions/style.scss +11 -0
  97. package/src/components/table/ClTableCel/Audit/style.scss +26 -0
  98. package/src/components/table/ClTableCel/Boolean/style.scss +12 -0
  99. package/src/components/table/ClTableCel/Checkbox/style.scss +18 -0
  100. package/src/components/table/ClTableCel/Code/style.scss +13 -0
  101. package/src/components/table/ClTableCel/Currency/style.scss +9 -0
  102. package/src/components/table/ClTableCel/Date/style.scss +12 -0
  103. package/src/components/table/ClTableCel/ID/style.scss +16 -0
  104. package/src/components/table/ClTableCel/Links/style.scss +44 -0
  105. package/src/components/table/ClTableCel/style.scss +7 -0
  106. package/src/components/table/ClTableCel/style.variables.scss +25 -0
  107. package/src/components/table/ClTableFootChecked/style.scss +2 -0
  108. package/src/components/table/ClTableHead/style.scss +36 -0
  109. package/src/components/text/ClCopy/style.scss +42 -0
  110. package/src/components/text/ClHashtag/style.scss +31 -0
  111. package/src/components/text/ClLinkExternal/style.scss +147 -0
  112. package/src/components/text/ClOrg/style.scss +40 -0
  113. package/src/components/text/ClPlan/style.scss +35 -0
  114. package/src/components/text/ClRole/style.scss +39 -0
  115. package/src/components/widget/ClBackCancelOk/style.scss +3 -0
  116. package/src/components/widget/ClCookieBanner/style.scss +40 -0
  117. package/src/components/widget/ClPage/style.scss +11 -0
  118. package/src/fonts/FontAwesome5/FontAwesome5.scss +6121 -0
  119. package/src/fonts/NotoSansMono/NotoSansMono.scss +82 -0
  120. package/src/fonts/OpenSansVariable/OpenSansVariable.scss +183 -0
  121. package/src/styles/_global.scss +70 -0
  122. package/src/styles/abstracts/color.scss +127 -0
  123. package/src/styles/abstracts/layer.scss +10 -0
  124. package/src/styles/abstracts/spacing.scss +35 -0
  125. package/src/styles/abstracts/tools.scss +117 -0
  126. package/src/styles/assets/logo.scss +22 -0
  127. package/src/styles/components/button.variables.scss +18 -0
  128. package/src/styles/components/form.variables.scss +51 -0
  129. package/src/styles/layout/animation.scss +39 -0
  130. package/src/styles/layout/grid.scss +144 -0
  131. package/src/styles/layout/grid.variables.scss +50 -0
  132. package/src/styles/layout/section.scss +90 -0
  133. package/src/styles/layout/spacing.scss +295 -0
  134. package/src/styles/layout/typography.scss +321 -0
  135. package/src/styles/layout/typography.variables.scss +363 -0
  136. package/src/styles/ui.scss +98 -0
  137. package/src/styles/vendors/bootstrap.scss +28 -0
  138. package/src/styles/vendors/castlabs.scss +17 -0
  139. package/types/castlabs-ui.module.d.ts +83 -0
  140. package/types/index.d.ts +140 -0
@@ -0,0 +1,133 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file define our (bullet) lists. They use fontawesome icons as bullets.
7
+
8
+ $list-indent: $spacing-small * 2.5;
9
+
10
+ %cl-list {
11
+ li {
12
+ list-style-type: none;
13
+
14
+ &::before {
15
+ @include cl-fontawesome('\f054'); // chevron
16
+
17
+ & {
18
+ color: $color-ci-silver;
19
+ margin-left: -$list-indent;
20
+ position: static;
21
+ text-align: center;
22
+ width: $list-indent;
23
+ }
24
+ }
25
+
26
+ > ul {
27
+ margin-top: $spacing-tiny;
28
+ }
29
+ }
30
+
31
+ &-none {
32
+ margin-left: 0;
33
+
34
+ li {
35
+ margin-top: $spacing-micro;
36
+ }
37
+ }
38
+
39
+ &-none li::before,
40
+ li.cl-list-none::before {
41
+ display: none;
42
+ }
43
+
44
+ &-check li::before,
45
+ li.cl-list-check::before {
46
+ content: '\f00c';
47
+ }
48
+
49
+ &-x li::before,
50
+ li.cl-list-x::before {
51
+ content: '\f00d';
52
+ }
53
+
54
+ &-plus li::before,
55
+ li.cl-list-plus::before {
56
+ content: '\f067';
57
+ }
58
+
59
+ &-minus li::before,
60
+ li.cl-list-minus::before {
61
+ content: '\f068';
62
+ }
63
+
64
+ &-lock li::before,
65
+ li.cl-list-lock::before {
66
+ content: '\f023';
67
+ }
68
+
69
+ &-bulb li::before,
70
+ li.cl-list-bulb::before {
71
+ content: '\f0eb';
72
+ }
73
+ }
74
+
75
+ // -----------------------------------------------------------------------------
76
+
77
+ $list-dt-width: 14rem;
78
+
79
+ %cl-dl {
80
+ dt {
81
+ @extend %p-form-label;
82
+
83
+ display: block;
84
+ }
85
+
86
+ dd {
87
+ display: block;
88
+ margin-top: $spacing-tiny;
89
+ }
90
+
91
+ @include media-breakpoint-up(md) {
92
+ dt {
93
+ display: inline-block;
94
+ vertical-align: top;
95
+ width: $list-dt-width;
96
+ }
97
+
98
+ dd {
99
+ display: inline-block;
100
+ margin-top: $spacing-small;
101
+ width: calc(100% - #{$list-dt-width} - 0.5rem);
102
+
103
+ &:first-of-type {
104
+ margin-top: 0;
105
+ }
106
+
107
+ + dd {
108
+ margin-left: $list-dt-width;
109
+ margin-top: $spacing-tiny;
110
+ }
111
+ }
112
+ }
113
+
114
+ &.cl-dl-tight {
115
+ @include media-breakpoint-up(md) {
116
+ dt {
117
+ margin-top: $spacing-tiny;
118
+
119
+ &:first-of-type {
120
+ margin-top: 0;
121
+ }
122
+ }
123
+
124
+ dd {
125
+ margin-top: $spacing-tiny;
126
+
127
+ &:first-of-type {
128
+ margin-top: 0;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,9 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file adds & customizes bootstrap's list groups. They structure same-of-kind
7
+ // stuff in a table-like manner but without having the bulky table look.
8
+
9
+ @import 'bootstrap/scss/list-group';
@@ -0,0 +1,123 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file adds & customizes bootstrap's paginators.
7
+
8
+ @import 'bootstrap/scss/pagination';
9
+
10
+ $pagination-color-bg: $color-ci-cloud;
11
+ $pagination-color-text: $color-ci-dim;
12
+ $pagination-color-disabled: rgba($pagination-color-text, $button-disabled-opacity);
13
+ $pagination-color-hover: rgba($pagination-color-text, $button-hover-opacity);
14
+
15
+ .pagination {
16
+ @extend %p-nav;
17
+
18
+ font-size: px(14);
19
+ margin: 0;
20
+
21
+ li {
22
+ list-style: none;
23
+ margin: 0;
24
+ }
25
+
26
+ a,
27
+ a.disabled,
28
+ button,
29
+ button.disabled {
30
+ @include typography-links($pagination-color-text, $pagination-color-text, 0);
31
+
32
+ & {
33
+ border-color: $pagination-color-bg;
34
+ border-width: 2px;
35
+ font-weight: 600;
36
+ padding: $spacing-tiny $spacing-small;
37
+ }
38
+ }
39
+
40
+ a:hover,
41
+ a.disabled:hover,
42
+ button:hover,
43
+ button.disabled:hover {
44
+ background-color: transparent;
45
+ background-image: none;
46
+ border-color: $pagination-color-bg;
47
+ color: $pagination-color-hover;
48
+ }
49
+
50
+ a:focus,
51
+ button:focus {
52
+ background-color: inherit;
53
+ box-shadow: none;
54
+ color: inherit;
55
+ }
56
+
57
+ .page-item {
58
+ &:last-of-type a,
59
+ &:last-of-type button {
60
+ border-bottom-right-radius: px(3);
61
+ border-top-right-radius: px(3);
62
+ }
63
+
64
+ &:first-of-type a,
65
+ &:first-of-type button {
66
+ border-bottom-left-radius: px(3);
67
+ border-top-left-radius: px(3);
68
+ }
69
+
70
+ + .page-item a,
71
+ + .page-item button {
72
+ border-left: 0;
73
+ }
74
+
75
+ &.active .page-link {
76
+ background-color: $pagination-color-bg;
77
+ border-color: $pagination-color-bg;
78
+ color: $color-ci-white;
79
+ }
80
+
81
+ &.disabled .page-link {
82
+ background-color: transparent;
83
+ border-color: $pagination-color-bg;
84
+ color: $pagination-color-disabled;
85
+ cursor: not-allowed;
86
+ }
87
+
88
+ &:not(:first-child) .page-link {
89
+ margin-left: 0; // disable bootstrap overlap
90
+ }
91
+
92
+ &.disabled {
93
+ border-bottom: 2px solid $pagination-color-disabled;
94
+ border-top: 2px solid $pagination-color-disabled;
95
+ color: $pagination-color-disabled;
96
+ padding: $spacing-tiny $spacing-small;
97
+
98
+ &:first-child {
99
+ border-bottom-left-radius: px(3);
100
+ border-left: 2px solid $pagination-color-disabled;
101
+ border-top-left-radius: px(3);
102
+ }
103
+
104
+ &:last-child {
105
+ border-bottom-right-radius: px(3);
106
+ border-right: 2px solid $pagination-color-disabled;
107
+ border-top-right-radius: px(3);
108
+ }
109
+
110
+ + .page-item {
111
+ border-left: 2px solid $pagination-color-bg;
112
+ }
113
+ }
114
+ }
115
+
116
+ .text-center > & {
117
+ justify-content: center;
118
+ }
119
+
120
+ .text-end > & {
121
+ justify-content: flex-end;
122
+ }
123
+ }
@@ -0,0 +1,49 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This is our version of Bootstrap progress.
7
+
8
+ @import 'bootstrap/scss/progress';
9
+
10
+ .progress {
11
+ background-color: $color-ci-smoke;
12
+ border-radius: $border-ui-radius;
13
+ height: px(16);
14
+ margin-top: $spacing-small;
15
+
16
+ .progress-bar {
17
+ @extend %p-tiny;
18
+
19
+ background-color: $color-secondary;
20
+ color: $color-ci-white;
21
+
22
+ &.bg-primary {
23
+ background-color: $color-primary;
24
+ }
25
+
26
+ // &.bg-success,
27
+ // &.bg-danger,
28
+ // &.bg-warning,
29
+ // &.bg-info,
30
+ // &.bg-light,
31
+ &.bg-secondary {
32
+ background-color: $color-secondary;
33
+ }
34
+
35
+ &.bg-dark {
36
+ background-color: $color-ci-cloud;
37
+ }
38
+ }
39
+
40
+ .progress-bar-striped {
41
+ background-image: none;
42
+ }
43
+
44
+ @for $i from 0 through 20 {
45
+ .w-#{$i*5} {
46
+ width: math.percentage($i * 0.05);
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,14 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file adds & customizes the simplebar scrollbar.
7
+
8
+ @import 'simplebar/dist/simplebar.min';
9
+
10
+ // --- scrollbar ---------------------------------------------------------------
11
+ .simplebar-scrollbar::before {
12
+ background-color: $color-black-50a !important; // sass-lint:disable-line no-important
13
+ right: 4px !important; // sass-lint:disable-line no-important
14
+ }
@@ -0,0 +1,26 @@
1
+ .cl-spinner {
2
+ @extend %p-medium;
3
+ @extend %spacing-small;
4
+
5
+ animation-duration: 1s;
6
+ animation-name: cl-spinner-fadein;
7
+
8
+ .fa-spinner {
9
+ margin-left: $spacing-tiny;
10
+ margin-right: $spacing-tiny;
11
+ }
12
+ }
13
+
14
+ @keyframes cl-spinner-fadein {
15
+ 0% {
16
+ opacity: 0;
17
+ }
18
+
19
+ 80% {
20
+ opacity: 0;
21
+ }
22
+
23
+ 100% {
24
+ opacity: 1;
25
+ }
26
+ }
@@ -0,0 +1,90 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines castlabs' navigation tabs
7
+
8
+ .cl-tabs {
9
+ > ul {
10
+ display: flex;
11
+ flex-wrap: wrap-reverse;
12
+ justify-content: stretch;
13
+ list-style: none;
14
+ margin: 0;
15
+ padding: 0;
16
+ text-align: center;
17
+
18
+ li {
19
+ border-bottom: px(2) solid $color-line;
20
+ display: inline-block;
21
+ flex-grow: 1;
22
+ margin: 0 px(2);
23
+
24
+ &.active {
25
+ border-color: $color-ci-blue;
26
+ color: $color-ci-blue;
27
+
28
+ > * {
29
+ color: $color-ci-blue;
30
+ }
31
+ }
32
+ }
33
+
34
+ label {
35
+ @extend %p-form-label;
36
+
37
+ cursor: pointer;
38
+ margin: 0 $spacing-micro;
39
+ min-width: $spacing-huge * 2 + $spacing-tiny * 2;
40
+ padding: $spacing-tiny;
41
+ white-space: nowrap;
42
+
43
+ i {
44
+ margin-left: $spacing-tiny;
45
+ }
46
+
47
+ @include media-breakpoint-down(sm) {
48
+ @include typography-font($typography-font-list-sans, 600, px(12), 1.2em, 0.025em);
49
+
50
+ display: flex;
51
+ flex-direction: column-reverse;
52
+ margin: $spacing-micro 0;
53
+ min-width: $spacing-medium;
54
+
55
+ i {
56
+ font-size: px(18);
57
+ margin: 0 0 $spacing-micro;
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ // --- tab interaction ---------------------------------------------
64
+
65
+ .cl-tab-content {
66
+ display: none; // initially hidden
67
+ margin-top: $spacing-medium;
68
+ }
69
+
70
+ > [type='radio'] {
71
+ opacity: 0;
72
+ position: absolute;
73
+ }
74
+
75
+ @for $i from 1 through 16 {
76
+ .cl-tab-#{$i}:checked ~ ul {
77
+ .cl-tab-#{$i} {
78
+ border-color: $color-ci-blue;
79
+
80
+ > * {
81
+ color: $color-ci-blue;
82
+ }
83
+ }
84
+ }
85
+
86
+ .cl-tab-#{$i}:checked ~ .cl-tab-content.cl-tab-#{$i} {
87
+ display: block;
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,97 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines castlabs toggle/checkboxes.
7
+
8
+ $toggle-color-regular: $color-dark;
9
+
10
+ .cl-toggle-checkbox {
11
+ // hide checkbox but keep it tab-able
12
+ display: inline-block;
13
+ opacity: 0;
14
+ position: absolute;
15
+
16
+ + .badge {
17
+ cursor: pointer;
18
+ padding-right: $spacing-tiny + $spacing-micro;
19
+ text-transform: none;
20
+ }
21
+
22
+ &:checked + .badge {
23
+ i:nth-of-type(1) {
24
+ display: inline-block;
25
+ }
26
+
27
+ i:nth-of-type(2) {
28
+ display: none;
29
+ }
30
+ }
31
+
32
+ &:not(:checked) + .badge {
33
+ background-color: $color-ci-white;
34
+ box-shadow: 0 0 0 2px inset $toggle-color-regular;
35
+ color: $toggle-color-regular;
36
+
37
+ i:nth-of-type(1) {
38
+ display: none;
39
+ }
40
+
41
+ i:nth-of-type(2) {
42
+ display: inline-block;
43
+ }
44
+
45
+ &.cl-badge-primary {
46
+ box-shadow: 0 0 0 2px inset $color-primary;
47
+ color: $color-primary;
48
+ }
49
+
50
+ &.cl-badge-secondary {
51
+ box-shadow: 0 0 0 2px inset $color-secondary;
52
+ color: $color-secondary;
53
+ }
54
+ }
55
+
56
+ &:disabled:not(:checked) + .badge {
57
+ background-color: $color-ci-white;
58
+ box-shadow: 0 0 0 2px inset $color-ci-silver;
59
+ color: $color-ci-silver;
60
+ }
61
+
62
+ &:disabled:checked + .badge {
63
+ background-color: $color-ci-silver;
64
+ color: $color-ci-white;
65
+ }
66
+
67
+ &:focus + .badge {
68
+ box-shadow: 0 0 0 $btn-focus-width rgba($toggle-color-regular, 0.5); // sass-lint:disable-line no-color-literals
69
+ outline: 0;
70
+
71
+ &.cl-badge-primary {
72
+ box-shadow: 0 0 0 $btn-focus-width rgba($color-primary, 0.5); // sass-lint:disable-line no-color-literals
73
+ }
74
+
75
+ &.cl-badge-secondary {
76
+ box-shadow: 0 0 0 $btn-focus-width rgba($color-secondary, 0.5); // sass-lint:disable-line no-color-literals
77
+ }
78
+ }
79
+
80
+ &:focus:not(:checked) + .badge {
81
+ box-shadow:
82
+ 0 0 0 2px inset $toggle-color-regular,
83
+ 0 0 0 $btn-focus-width rgba($toggle-color-regular, 0.5); // sass-lint:disable-line no-color-literals
84
+
85
+ &.cl-badge-primary {
86
+ box-shadow:
87
+ 0 0 0 2px inset $color-primary,
88
+ 0 0 0 $btn-focus-width rgba($color-primary, 0.5); // sass-lint:disable-line no-color-literals
89
+ }
90
+
91
+ &.cl-badge-secondary {
92
+ box-shadow:
93
+ 0 0 0 2px inset $color-secondary,
94
+ 0 0 0 $btn-focus-width rgba($color-secondary, 0.5); // sass-lint:disable-line no-color-literals
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,46 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file adds & customizes bootstrap's tooltips.
7
+
8
+ @import 'bootstrap/scss/tooltip';
9
+
10
+ .cl-tooltip {
11
+ #{'--bs-tooltip-bg'}: $color-secondary;
12
+ filter: drop-shadow($color-shadow-3d);
13
+ opacity: 1 !important; // sass-lint:disable-line no-important
14
+ z-index: $layer-z-modal + 1;
15
+
16
+ .tooltip-inner {
17
+ // Bootstrap class
18
+ color: $color-ci-white;
19
+ max-width: none !important; // sass-lint:disable-line no-important
20
+ text-align: center;
21
+
22
+ code {
23
+ color: $color-ci-white;
24
+ }
25
+ }
26
+
27
+ &.cl-tooltip-primary {
28
+ #{'--bs-tooltip-bg'}: $color-primary;
29
+ }
30
+
31
+ &.cl-tooltip-secondary {
32
+ #{'--bs-tooltip-bg'}: $color-secondary;
33
+ }
34
+
35
+ &.cl-tooltip-dark {
36
+ #{'--bs-tooltip-bg'}: $color-dark;
37
+ }
38
+
39
+ &.cl-tooltip-light {
40
+ #{'--bs-tooltip-bg'}: $color-ci-haze;
41
+
42
+ .tooltip-inner {
43
+ color: $color-ci-dim;
44
+ }
45
+ }
46
+ }