@clayui/css 3.40.1 → 3.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/css/base.css CHANGED
@@ -154,14 +154,12 @@ sup {
154
154
 
155
155
  a {
156
156
  color: #007bff;
157
- cursor: pointer;
158
157
  text-decoration: none;
159
158
  }
160
159
  a:hover {
161
160
  color: #0056b3;
162
161
  text-decoration: underline;
163
162
  }
164
-
165
163
  pre,
166
164
  code,
167
165
  kbd,
@@ -7050,7 +7048,6 @@ select.form-control[size]:focus, select.form-control[size].focus {
7050
7048
  select.form-control[size] option {
7051
7049
  padding: 0.25rem;
7052
7050
  }
7053
-
7054
7051
  select.form-control[multiple] {
7055
7052
  background-image: none;
7056
7053
  height: auto;
@@ -7065,7 +7062,6 @@ select.form-control[multiple]:focus, select.form-control[multiple].focus {
7065
7062
  select.form-control[multiple] option {
7066
7063
  padding: 0.25rem;
7067
7064
  }
7068
-
7069
7065
  textarea.form-control,
7070
7066
  textarea.form-control-plaintext,
7071
7067
  .form-control.form-control-textarea {
@@ -7480,6 +7476,9 @@ button.link-outline {
7480
7476
  .link-outline:hover {
7481
7477
  text-decoration: none;
7482
7478
  }
7479
+ .link-outline:disabled:active, .link-outline.disabled:active {
7480
+ pointer-events: none;
7481
+ }
7483
7482
  .link-outline > .c-inner {
7484
7483
  margin-bottom: -0.25rem;
7485
7484
  margin-left: -0.5rem;
@@ -7640,6 +7639,9 @@ button.link-outline {
7640
7639
  cursor: not-allowed;
7641
7640
  opacity: 0.65;
7642
7641
  }
7642
+ .component-action:disabled:active, .component-action.disabled:active {
7643
+ pointer-events: none;
7644
+ }
7643
7645
  .component-action[type]:focus {
7644
7646
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
7645
7647
  outline: 0;
@@ -9208,12 +9210,14 @@ label.custom-control-label {
9208
9210
 
9209
9211
  .form-feedback-group {
9210
9212
  width: 100%;
9213
+ overflow-wrap: break-word;
9211
9214
  word-wrap: break-word;
9212
9215
  }
9213
9216
 
9214
9217
  .form-feedback-item {
9215
9218
  font-size: 80%;
9216
9219
  margin-top: 0.25rem;
9220
+ overflow-wrap: break-word;
9217
9221
  word-wrap: break-word;
9218
9222
  }
9219
9223
 
@@ -9230,6 +9234,7 @@ label.custom-control-label {
9230
9234
  display: block;
9231
9235
  font-size: 0.875rem;
9232
9236
  margin-top: 0.25rem;
9237
+ overflow-wrap: break-word;
9233
9238
  word-wrap: break-word;
9234
9239
  }
9235
9240
 
@@ -9279,8 +9284,13 @@ label.custom-control-label {
9279
9284
  .has-error .input-group-item.focus {
9280
9285
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
9281
9286
  }
9282
- .has-error .input-group-item.focus .form-control,
9283
- .has-error .input-group-item.focus .input-group-inset-item {
9287
+ .has-error .input-group-item.focus .input-group-inset {
9288
+ border-color: #dc3545;
9289
+ }
9290
+ .has-error .input-group-item.focus .input-group-inset ~ .input-group-inset-item {
9291
+ border-color: #dc3545;
9292
+ }
9293
+ .has-error .input-group-item .input-group-inset ~ .input-group-inset-item {
9284
9294
  border-color: #dc3545;
9285
9295
  }
9286
9296
  .has-error .input-group-item .input-group-inset:focus {
@@ -9289,9 +9299,6 @@ label.custom-control-label {
9289
9299
  .has-error .input-group-item .input-group-inset:focus ~ .input-group-inset-item {
9290
9300
  border-color: #dc3545;
9291
9301
  }
9292
- .has-error .input-group .input-group-inset-item {
9293
- border-color: #dc3545;
9294
- }
9295
9302
 
9296
9303
  .has-warning .custom-control-label,
9297
9304
  .has-warning .form-check-label {
@@ -9321,8 +9328,13 @@ label.custom-control-label {
9321
9328
  .has-warning .input-group-item.focus {
9322
9329
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
9323
9330
  }
9324
- .has-warning .input-group-item.focus .form-control,
9325
- .has-warning .input-group-item.focus .input-group-inset-item {
9331
+ .has-warning .input-group-item.focus .input-group-inset {
9332
+ border-color: #ffc107;
9333
+ }
9334
+ .has-warning .input-group-item.focus .input-group-inset ~ .input-group-inset-item {
9335
+ border-color: #ffc107;
9336
+ }
9337
+ .has-warning .input-group-item .input-group-inset ~ .input-group-inset-item {
9326
9338
  border-color: #ffc107;
9327
9339
  }
9328
9340
  .has-warning .input-group-item .input-group-inset:focus {
@@ -9331,9 +9343,6 @@ label.custom-control-label {
9331
9343
  .has-warning .input-group-item .input-group-inset:focus ~ .input-group-inset-item {
9332
9344
  border-color: #ffc107;
9333
9345
  }
9334
- .has-warning .input-group .input-group-inset-item {
9335
- border-color: #ffc107;
9336
- }
9337
9346
 
9338
9347
  .has-success .custom-control-label,
9339
9348
  .has-success .form-check-label {
@@ -9363,8 +9372,13 @@ label.custom-control-label {
9363
9372
  .has-success .input-group-item.focus {
9364
9373
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
9365
9374
  }
9366
- .has-success .input-group-item.focus .form-control,
9367
- .has-success .input-group-item.focus .input-group-inset-item {
9375
+ .has-success .input-group-item.focus .input-group-inset {
9376
+ border-color: #28a745;
9377
+ }
9378
+ .has-success .input-group-item.focus .input-group-inset ~ .input-group-inset-item {
9379
+ border-color: #28a745;
9380
+ }
9381
+ .has-success .input-group-item .input-group-inset ~ .input-group-inset-item {
9368
9382
  border-color: #28a745;
9369
9383
  }
9370
9384
  .has-success .input-group-item .input-group-inset:focus {
@@ -9373,9 +9387,6 @@ label.custom-control-label {
9373
9387
  .has-success .input-group-item .input-group-inset:focus ~ .input-group-inset-item {
9374
9388
  border-color: #28a745;
9375
9389
  }
9376
- .has-success .input-group .input-group-inset-item {
9377
- border-color: #28a745;
9378
- }
9379
9390
 
9380
9391
  .input-group > .form-control,
9381
9392
  .input-group > .form-control-plaintext,
@@ -11289,6 +11300,9 @@ label.custom-control-label {
11289
11300
  color: #6c757d;
11290
11301
  cursor: not-allowed;
11291
11302
  }
11303
+ .nav-link:disabled:active, .nav-link.disabled:active {
11304
+ pointer-events: none;
11305
+ }
11292
11306
  .nav-link > .c-inner {
11293
11307
  margin-bottom: -0.5rem;
11294
11308
  margin-left: -1rem;
@@ -18881,49 +18895,15 @@ caption {
18881
18895
  max-width: 75px;
18882
18896
  }
18883
18897
 
18884
- .simple-toggle-switch.toggle-switch {
18885
- align-items: center;
18886
- display: inline-flex;
18887
- }
18888
- .simple-toggle-switch .toggle-switch-check + .toggle-switch-label {
18889
- margin-right: 0.5rem;
18890
- }
18891
- .simple-toggle-switch .toggle-switch-label + .toggle-switch-check-bar {
18892
- margin-left: 0.5rem;
18893
- }
18894
- .simple-toggle-switch .toggle-switch-label {
18895
- line-height: 1;
18896
- margin-bottom: 0;
18897
- max-width: calc(
18898
- 100% - 58px
18899
- );
18900
- }
18901
-
18902
- .simple-toggle-switch-reverse .toggle-switch-label {
18903
- margin-right: 0.5rem;
18904
- }
18905
- .simple-toggle-switch-reverse .toggle-switch-check-bar {
18906
- order: 5;
18907
- }
18908
- .simple-toggle-switch-reverse .toggle-switch-check-bar .toggle-switch-bar {
18909
- order: 0;
18910
- }
18911
- .simple-toggle-switch-reverse .toggle-switch-bar {
18912
- order: 5;
18913
- }
18914
-
18915
- label.toggle-switch {
18916
- cursor: pointer;
18917
- }
18918
- label.toggle-switch.disabled {
18919
- cursor: not-allowed;
18920
- }
18921
-
18922
18898
  .toggle-switch {
18899
+ cursor: pointer;
18923
18900
  display: inline-block;
18924
18901
  max-width: 100%;
18925
18902
  position: relative;
18926
18903
  }
18904
+ .toggle-switch.disabled {
18905
+ cursor: not-allowed;
18906
+ }
18927
18907
  .toggle-switch.disabled .toggle-switch-label {
18928
18908
  color: #6c757d;
18929
18909
  cursor: not-allowed;
@@ -18931,7 +18911,6 @@ label.toggle-switch.disabled {
18931
18911
  .toggle-switch.disabled .toggle-switch-text {
18932
18912
  color: #6c757d;
18933
18913
  }
18934
-
18935
18914
  .toggle-switch-check-bar {
18936
18915
  display: inline-flex;
18937
18916
  position: relative;
@@ -18951,7 +18930,6 @@ label.toggle-switch.disabled {
18951
18930
  .toggle-switch-bar .button-icon {
18952
18931
  font-size: 0.75rem;
18953
18932
  }
18954
-
18955
18933
  .toggle-switch-check {
18956
18934
  bottom: 0;
18957
18935
  font-size: 62.5%;
@@ -18961,7 +18939,7 @@ label.toggle-switch.disabled {
18961
18939
  width: 50px;
18962
18940
  z-index: 2;
18963
18941
  }
18964
- .toggle-switch-check:empty ~ .toggle-switch-bar {
18942
+ .toggle-switch-check ~ .toggle-switch-bar {
18965
18943
  display: inline-flex;
18966
18944
  font-size: 0.75rem;
18967
18945
  height: 25px;
@@ -18969,49 +18947,71 @@ label.toggle-switch.disabled {
18969
18947
  position: relative;
18970
18948
  text-indent: 0;
18971
18949
  -ms-user-select: none;
18950
+ -moz-user-select: none;
18951
+ -webkit-user-select: none;
18972
18952
  user-select: none;
18973
18953
  }
18974
- .toggle-switch-check:empty ~ .toggle-switch-bar:after {
18975
- background-color: #fff;
18954
+ .toggle-switch-check ~ .toggle-switch-bar::before {
18955
+ background-color: #e9ecef;
18976
18956
  border-color: #ced4da;
18977
- border-radius: 3px 0 0 3px;
18957
+ border-radius: 3px;
18978
18958
  border-style: solid;
18979
18959
  border-width: 1px;
18980
18960
  bottom: 0;
18981
- content: "";
18961
+ content: " ";
18982
18962
  display: block;
18983
- height: 25px;
18984
18963
  left: 0;
18985
18964
  position: absolute;
18986
18965
  top: 0;
18987
18966
  transition: background-color 100ms ease-in, border-color 100ms ease-in, box-shadow 150ms ease-in-out, color 100ms ease-in, left 100ms ease-in, right 100ms ease-in;
18988
- width: 25px;
18967
+ width: 50px;
18989
18968
  }
18990
- .toggle-switch-check:empty ~ .toggle-switch-bar:before {
18991
- background-color: #e9ecef;
18969
+ @media (prefers-reduced-motion: reduce) {
18970
+ .toggle-switch-check ~ .toggle-switch-bar::before {
18971
+ transition: none;
18972
+ }
18973
+ }
18974
+ .toggle-switch-check ~ .toggle-switch-bar::after {
18975
+ background-color: #fff;
18992
18976
  border-color: #ced4da;
18993
- border-radius: 3px;
18977
+ border-radius: 3px 0 0 3px;
18994
18978
  border-style: solid;
18995
18979
  border-width: 1px;
18996
18980
  bottom: 0;
18997
- content: " ";
18981
+ content: "";
18998
18982
  display: block;
18983
+ height: 25px;
18999
18984
  left: 0;
19000
18985
  position: absolute;
19001
18986
  top: 0;
19002
18987
  transition: background-color 100ms ease-in, border-color 100ms ease-in, box-shadow 150ms ease-in-out, color 100ms ease-in, left 100ms ease-in, right 100ms ease-in;
19003
- width: 50px;
18988
+ width: 25px;
18989
+ }
18990
+ @media (prefers-reduced-motion: reduce) {
18991
+ .toggle-switch-check ~ .toggle-switch-bar::after {
18992
+ transition: none;
18993
+ }
18994
+ }
18995
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::before {
18996
+ transition: background-color 100ms ease-in, border-color 100ms ease-in, box-shadow 150ms ease-in-out, color 100ms ease-in, left 100ms ease-in, right 100ms ease-in;
18997
+ }
18998
+ @media (prefers-reduced-motion: reduce) {
18999
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::before {
19000
+ transition: none;
19001
+ }
19004
19002
  }
19005
- .toggle-switch-check:empty ~ .toggle-switch-bar .toggle-switch-handle:after {
19003
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::after {
19006
19004
  content: attr(data-label-off);
19007
19005
  margin-left: 58px;
19008
19006
  transition: background-color 100ms ease-in, border-color 100ms ease-in, box-shadow 150ms ease-in-out, color 100ms ease-in, left 100ms ease-in, right 100ms ease-in;
19009
19007
  white-space: nowrap;
19010
19008
  }
19011
- .toggle-switch-check:empty ~ .toggle-switch-bar .toggle-switch-handle:before {
19012
- transition: background-color 100ms ease-in, border-color 100ms ease-in, box-shadow 150ms ease-in-out, color 100ms ease-in, left 100ms ease-in, right 100ms ease-in;
19009
+ @media (prefers-reduced-motion: reduce) {
19010
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::after {
19011
+ transition: none;
19012
+ }
19013
19013
  }
19014
- .toggle-switch-check:empty ~ .toggle-switch-bar .toggle-switch-icon {
19014
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon {
19015
19015
  color: #495057;
19016
19016
  left: 0;
19017
19017
  line-height: 25px;
@@ -19023,58 +19023,116 @@ label.toggle-switch.disabled {
19023
19023
  width: 25px;
19024
19024
  z-index: 1;
19025
19025
  }
19026
- .toggle-switch-check:empty ~ .toggle-switch-bar .toggle-switch-icon-on {
19026
+ @media (prefers-reduced-motion: reduce) {
19027
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon {
19028
+ transition: none;
19029
+ }
19030
+ }
19031
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon-on {
19027
19032
  left: 0;
19028
19033
  opacity: 0;
19029
19034
  }
19030
- .toggle-switch-check:empty ~ .toggle-switch-bar .toggle-switch-icon-off {
19035
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon-off {
19031
19036
  left: 25px;
19032
19037
  }
19033
- .toggle-switch-check:empty ~ .toggle-switch-bar .button-icon {
19038
+ .toggle-switch-check ~ .toggle-switch-bar .button-icon {
19034
19039
  color: #495057;
19035
19040
  }
19036
- .toggle-switch-check:empty ~ .toggle-switch-bar .button-icon-on {
19041
+ .toggle-switch-check ~ .toggle-switch-bar .button-icon-on {
19037
19042
  opacity: 0;
19038
19043
  }
19039
- .toggle-switch-check:checked ~ .toggle-switch-bar:after {
19040
- background-color: #fff;
19044
+ .toggle-switch-check:focus ~ .toggle-switch-bar::before {
19045
+ box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
19046
+ }
19047
+ .toggle-switch-check[disabled] ~ .toggle-switch-bar, .toggle-switch-check:disabled ~ .toggle-switch-bar {
19048
+ cursor: not-allowed;
19049
+ opacity: 0.4;
19050
+ }
19051
+ .toggle-switch-check:checked ~ .toggle-switch-bar::before {
19052
+ background-color: #007bff;
19041
19053
  border-color: #007bff;
19042
- border-radius: 0 3px 3px 0;
19054
+ border-radius: 3px;
19043
19055
  border-style: solid;
19044
19056
  border-width: 1px;
19045
- left: 25px;
19046
19057
  }
19047
- .toggle-switch-check:checked ~ .toggle-switch-bar:before {
19048
- background-color: #007bff;
19058
+ .toggle-switch-check:checked ~ .toggle-switch-bar::after {
19059
+ background-color: #fff;
19049
19060
  border-color: #007bff;
19050
- border-radius: 3px;
19061
+ border-radius: 0 3px 3px 0;
19051
19062
  border-style: solid;
19052
19063
  border-width: 1px;
19064
+ left: 25px;
19053
19065
  }
19054
- .toggle-switch-check:checked ~ .toggle-switch-bar .toggle-switch-handle:after {
19066
+ .toggle-switch-check:checked ~ .toggle-switch-bar .toggle-switch-handle::after {
19055
19067
  content: attr(data-label-on);
19056
19068
  }
19057
19069
  .toggle-switch-check:checked ~ .toggle-switch-bar .toggle-switch-icon {
19058
19070
  color: #fff;
19059
19071
  }
19060
- .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon {
19061
- color: #007bff;
19062
- left: 25px;
19063
- }
19064
- .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon-on,
19065
19072
  .toggle-switch-check:checked ~ .toggle-switch-bar .toggle-switch-icon-on {
19066
19073
  opacity: 1;
19067
19074
  }
19068
- .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon-off,
19069
19075
  .toggle-switch-check:checked ~ .toggle-switch-bar .toggle-switch-icon-off {
19070
19076
  opacity: 0;
19071
19077
  }
19072
- .toggle-switch-check:disabled ~ .toggle-switch-bar, .toggle-switch-check.disabled ~ .toggle-switch-bar {
19073
- cursor: not-allowed;
19074
- opacity: 0.4;
19078
+ .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon {
19079
+ color: #007bff;
19080
+ left: 25px;
19075
19081
  }
19076
- .toggle-switch-check:focus ~ .toggle-switch-bar:before {
19077
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
19082
+ .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon-on {
19083
+ opacity: 1;
19084
+ }
19085
+ @media (max-width: 767.98px) {
19086
+ .toggle-switch-check {
19087
+ height: 25px;
19088
+ width: 50px;
19089
+ }
19090
+ .toggle-switch-check ~ .toggle-switch-bar {
19091
+ height: 25px;
19092
+ line-height: 25px;
19093
+ text-indent: 0;
19094
+ }
19095
+ .toggle-switch-check ~ .toggle-switch-bar::before {
19096
+ width: 50px;
19097
+ }
19098
+ .toggle-switch-check ~ .toggle-switch-bar::after {
19099
+ bottom: 0;
19100
+ height: 25px;
19101
+ left: 0;
19102
+ top: 0;
19103
+ width: 25px;
19104
+ }
19105
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle {
19106
+ min-width: 50px;
19107
+ }
19108
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::after {
19109
+ margin-left: 58px;
19110
+ }
19111
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon {
19112
+ font-size: 0.75rem;
19113
+ left: 0;
19114
+ line-height: 25px;
19115
+ top: 0;
19116
+ width: 25px;
19117
+ }
19118
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon-on {
19119
+ left: 0;
19120
+ }
19121
+ .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon-off {
19122
+ left: 25px;
19123
+ }
19124
+ .toggle-switch-check ~ .toggle-switch-bar .button-icon {
19125
+ font-size: 0.75rem;
19126
+ }
19127
+ .toggle-switch-check:checked ~ .toggle-switch-bar::after {
19128
+ left: 25px;
19129
+ }
19130
+ .toggle-switch-check:checked ~ .toggle-switch-bar .toggle-switch-handle::after {
19131
+ margin-left: 58px;
19132
+ }
19133
+ .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon {
19134
+ left: 25px;
19135
+ }
19078
19136
  }
19079
19137
 
19080
19138
  .toggle-switch-label {
@@ -19092,13 +19150,53 @@ label.toggle-switch.disabled {
19092
19150
  line-height: 25px;
19093
19151
  margin-right: 8px;
19094
19152
  }
19153
+ @media (max-width: 767.98px) {
19154
+ .toggle-switch-text-left {
19155
+ line-height: 25px;
19156
+ }
19157
+ }
19095
19158
 
19096
19159
  .toggle-switch-text-right {
19097
19160
  display: inline-flex;
19098
19161
  line-height: 25px;
19099
19162
  margin-left: 8px;
19100
19163
  }
19164
+ @media (max-width: 767.98px) {
19165
+ .toggle-switch-text-right {
19166
+ line-height: 25px;
19167
+ }
19168
+ }
19101
19169
 
19170
+ .simple-toggle-switch {
19171
+ align-items: center;
19172
+ display: inline-flex;
19173
+ }
19174
+ .simple-toggle-switch .toggle-switch-label {
19175
+ line-height: 1;
19176
+ margin-bottom: 0;
19177
+ max-width: calc( 100% - 58px );
19178
+ }
19179
+ @media (max-width: 767.98px) {
19180
+ .simple-toggle-switch .toggle-switch-label {
19181
+ max-width: calc( 100% - 58px );
19182
+ }
19183
+ }
19184
+ .simple-toggle-switch .toggle-switch-check + .toggle-switch-label {
19185
+ margin-right: 0.5rem;
19186
+ }
19187
+ .simple-toggle-switch .toggle-switch-label + .toggle-switch-check-bar {
19188
+ margin-left: 0.5rem;
19189
+ }
19190
+
19191
+ .simple-toggle-switch-reverse .toggle-switch-check-bar {
19192
+ order: 5;
19193
+ }
19194
+ .simple-toggle-switch-reverse .toggle-switch-check ~ .toggle-switch-bar {
19195
+ order: 5;
19196
+ }
19197
+ .simple-toggle-switch-reverse .toggle-switch-label {
19198
+ margin-right: 0.5rem;
19199
+ }
19102
19200
  .tooltip {
19103
19201
  display: block;
19104
19202
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";