@clayui/css 3.107.0 → 3.109.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 (34) hide show
  1. package/CHANGELOG.md +2854 -0
  2. package/lib/css/atlas.css +160 -58
  3. package/lib/css/atlas.css.map +1 -1
  4. package/lib/css/base.css +156 -58
  5. package/lib/css/base.css.map +1 -1
  6. package/lib/css/cadmin.css +130 -57
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/bookmarks-full.svg +1 -8
  9. package/lib/images/icons/bookmarks.svg +1 -8
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/lib/images/icons/video-streaming.svg +11 -0
  12. package/package.json +2 -2
  13. package/src/images/icons/bookmarks-full.svg +1 -8
  14. package/src/images/icons/bookmarks.svg +1 -8
  15. package/src/images/icons/video-streaming.svg +11 -0
  16. package/src/scss/_license-text.scss +1 -1
  17. package/src/scss/atlas/variables/_tables.scss +2 -6
  18. package/src/scss/atlas/variables/_toggle-switch.scss +39 -0
  19. package/src/scss/cadmin/components/_modals.scss +11 -0
  20. package/src/scss/cadmin/components/_tables.scss +35 -30
  21. package/src/scss/cadmin/components/_toggle-switch.scss +32 -0
  22. package/src/scss/cadmin/variables/_modals.scss +25 -2
  23. package/src/scss/cadmin/variables/_tables.scss +70 -28
  24. package/src/scss/cadmin/variables/_toggle-switch.scss +68 -1
  25. package/src/scss/components/_modals.scss +8 -0
  26. package/src/scss/components/_tables.scss +42 -28
  27. package/src/scss/components/_toggle-switch.scss +32 -0
  28. package/src/scss/functions/_lx-icons-generated.scss +4 -2
  29. package/src/scss/mixins/_grid.scss +8 -0
  30. package/src/scss/mixins/_tables.scss +31 -2
  31. package/src/scss/mixins/_toggle-switch.scss +7 -0
  32. package/src/scss/variables/_modals.scss +25 -2
  33. package/src/scss/variables/_tables.scss +87 -25
  34. package/src/scss/variables/_toggle-switch.scss +64 -1
package/lib/css/base.css CHANGED
@@ -1,6 +1,6 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
- * Clay 3.107.0
3
+ * Clay 3.109.0
4
4
  *
5
5
  * SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com>
6
6
  * SPDX-FileCopyrightText: © 2020 Contributors to the project Clay <https://github.com/liferay/clay/graphs/contributors>
@@ -12031,6 +12031,27 @@ label.custom-control-label {
12031
12031
  width: 100%;
12032
12032
  z-index: 1050;
12033
12033
  }
12034
+ @media (max-width: 767.98px) {
12035
+ .modal .close {
12036
+ margin-right: -0.5rem;
12037
+ }
12038
+ .modal .modal-header {
12039
+ height: 3rem;
12040
+ padding: 0.5rem 1rem;
12041
+ }
12042
+ .modal .modal-title {
12043
+ font-size: 1.125rem;
12044
+ }
12045
+ .modal .modal-body {
12046
+ padding: 0.5rem 1rem;
12047
+ }
12048
+ .modal .modal-body-iframe {
12049
+ padding: 0;
12050
+ }
12051
+ .modal .modal-footer {
12052
+ padding: 0.5rem;
12053
+ }
12054
+ }
12034
12055
 
12035
12056
  .modal-dialog {
12036
12057
  margin: 0.5rem;
@@ -12161,7 +12182,7 @@ label.custom-control-label {
12161
12182
  border: 0.0625rem solid rgba(0, 0, 0, 0.2);
12162
12183
  display: flex;
12163
12184
  flex-direction: column;
12164
- max-height: calc(100vh - 1.75rem * 2);
12185
+ max-height: calc(100vh - 0.5rem * 2);
12165
12186
  outline: 0;
12166
12187
  overflow: hidden;
12167
12188
  pointer-events: auto;
@@ -12221,7 +12242,7 @@ label.custom-control-label {
12221
12242
  padding-top: 0.75rem;
12222
12243
  }
12223
12244
  .modal-footer > * {
12224
- margin: calc(0.5rem * 0.5);
12245
+ margin: 0 calc(0.5rem * 0.5);
12225
12246
  }
12226
12247
 
12227
12248
  .modal-item-group {
@@ -12268,6 +12289,7 @@ label.custom-control-label {
12268
12289
 
12269
12290
  .modal-footer > .modal-item-last {
12270
12291
  margin-left: auto;
12292
+ margin-right: 0;
12271
12293
  }
12272
12294
 
12273
12295
  .modal-title {
@@ -19149,8 +19171,8 @@ th {
19149
19171
 
19150
19172
  caption {
19151
19173
  color: #6c757d;
19152
- padding-bottom: 0.75rem;
19153
- padding-top: 0.75rem;
19174
+ padding-bottom: 0.5rem 1rem;
19175
+ padding-top: 0.5rem 1rem;
19154
19176
  text-align: left;
19155
19177
  }
19156
19178
 
@@ -19179,24 +19201,19 @@ caption {
19179
19201
  .table thead td {
19180
19202
  border-bottom: calc(2 * 0.0625rem) solid #dee2e6;
19181
19203
  border-top-width: 0px;
19182
- vertical-align: bottom;
19204
+ vertical-align: middle;
19183
19205
  }
19184
19206
  .table th:first-child,
19185
19207
  .table td:first-child,
19186
19208
  .table .table-column-start {
19187
- padding-left: 15px;
19188
- }
19189
- .table th:last-child,
19190
- .table td:last-child,
19191
- .table .table-column-end {
19192
- padding-right: 15px;
19209
+ padding-left: 1.25rem;
19193
19210
  }
19194
19211
  .table th {
19195
19212
  background-clip: padding-box;
19196
19213
  border-top: 0.0625rem solid #dee2e6;
19197
19214
  color: #495057;
19198
- height: 36px;
19199
- padding: 0.75rem;
19215
+ height: 56px;
19216
+ padding: 0.5rem 1rem;
19200
19217
  position: relative;
19201
19218
  vertical-align: top;
19202
19219
  }
@@ -19208,7 +19225,8 @@ caption {
19208
19225
  border-right-width: 0px;
19209
19226
  border-style: solid;
19210
19227
  border-top-width: 0.0625rem;
19211
- padding: 0.75rem;
19228
+ height: 56px;
19229
+ padding: 0.5rem 1rem;
19212
19230
  position: relative;
19213
19231
  vertical-align: middle;
19214
19232
  }
@@ -19217,12 +19235,15 @@ caption {
19217
19235
  }
19218
19236
  .table caption {
19219
19237
  caption-side: top;
19220
- padding-left: 0.75rem;
19221
- padding-right: 0.75rem;
19238
+ padding-left: 1rem;
19239
+ padding-right: 1rem;
19222
19240
  }
19223
19241
  .table .table-divider th,
19224
19242
  .table .table-divider td {
19225
- padding: 0.75rem;
19243
+ background-color: #fff;
19244
+ height: 34px;
19245
+ line-height: 17px;
19246
+ padding: 0.5rem 1rem 0.5rem 1.25rem;
19226
19247
  }
19227
19248
  .table .table-active {
19228
19249
  background-color: #ececec;
@@ -19251,8 +19272,8 @@ caption {
19251
19272
  }
19252
19273
  .table .autofit-col {
19253
19274
  justify-content: center;
19254
- padding-left: 0.75rem;
19255
- padding-right: 0.75rem;
19275
+ padding-left: 1rem;
19276
+ padding-right: 1rem;
19256
19277
  }
19257
19278
  .table .autofit-col:first-child {
19258
19279
  padding-left: 0;
@@ -19274,17 +19295,27 @@ caption {
19274
19295
  }
19275
19296
  .table .quick-action-menu {
19276
19297
  align-items: flex-start;
19277
- padding-bottom: 0.75rem;
19278
- padding-top: 0.75rem;
19298
+ padding-bottom: 0.5rem;
19299
+ padding-top: 0.5rem;
19279
19300
  }
19280
19301
 
19281
19302
  .table-caption-bottom caption {
19282
19303
  caption-side: bottom;
19283
19304
  }
19284
19305
 
19306
+ .table-lg th,
19307
+ .table-lg td {
19308
+ padding: 1.0625rem;
19309
+ }
19310
+ .table-md th,
19311
+ .table-md td {
19312
+ height: 48px;
19313
+ padding: 0.375rem 1rem;
19314
+ }
19285
19315
  .table-sm th,
19286
19316
  .table-sm td {
19287
- padding: 0.3rem;
19317
+ height: 32px;
19318
+ padding: 0.25rem 1rem;
19288
19319
  }
19289
19320
  .table-bordered {
19290
19321
  border: 0.0625rem solid #dee2e6;
@@ -19297,6 +19328,14 @@ caption {
19297
19328
  .table-bordered td {
19298
19329
  border: 0.0625rem solid #dee2e6;
19299
19330
  }
19331
+ .table-head-bordered thead th,
19332
+ .table-head-bordered thead td {
19333
+ border-left: 0.0625rem solid #dee2e6;
19334
+ }
19335
+ .table-head-bordered thead th:first-child,
19336
+ .table-head-bordered thead td:first-child {
19337
+ border-left-width: 0;
19338
+ }
19300
19339
  .table-borderless th,
19301
19340
  .table-borderless td,
19302
19341
  .table-borderless thead th,
@@ -19304,8 +19343,9 @@ caption {
19304
19343
  border: 0;
19305
19344
  }
19306
19345
 
19307
- .table-striped tbody tr:nth-of-type(odd) td,
19308
- .table-striped tbody tr:nth-of-type(odd) th {
19346
+ .table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider),
19347
+ .table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider) td,
19348
+ .table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider) th {
19309
19349
  background-color: #f2f2f2;
19310
19350
  }
19311
19351
 
@@ -19325,9 +19365,11 @@ caption {
19325
19365
  tr.table-focus {
19326
19366
  outline: 0;
19327
19367
  }
19368
+ tr.table-focus th,
19328
19369
  tr.table-focus td {
19329
19370
  outline: 0;
19330
19371
  }
19372
+ tr.table-focus th::before,
19331
19373
  tr.table-focus td::before {
19332
19374
  box-shadow: inset 0 0.2rem 0 0 rgba(0, 123, 255, 0.25), inset 0 -0.2rem 0 0 rgba(0, 123, 255, 0.25);
19333
19375
  content: "";
@@ -19340,6 +19382,7 @@ tr.table-focus td::before {
19340
19382
  pointer-events: none;
19341
19383
  z-index: 1;
19342
19384
  }
19385
+ tr.table-focus th:first-child::after,
19343
19386
  tr.table-focus td:first-child::after {
19344
19387
  box-shadow: inset 0.2rem 0 0 0 rgba(0, 123, 255, 0.25);
19345
19388
  content: "";
@@ -19352,6 +19395,7 @@ tr.table-focus td:first-child::after {
19352
19395
  z-index: 1;
19353
19396
  width: 0.25rem;
19354
19397
  }
19398
+ tr.table-focus th:last-child::after,
19355
19399
  tr.table-focus td:last-child::after {
19356
19400
  box-shadow: inset -0.2rem 0 0 0 rgba(0, 123, 255, 0.25);
19357
19401
  content: "";
@@ -19550,11 +19594,6 @@ td.table-focus {
19550
19594
  background-color: #b9bbbe;
19551
19595
  }
19552
19596
 
19553
- .table-striped tbody .table-disabled:nth-of-type(odd) td,
19554
- .table-striped tbody .table-disabled:nth-of-type(odd) th {
19555
- background-color: #fff;
19556
- }
19557
-
19558
19597
  .table .thead-dark th {
19559
19598
  background-color: #343a40;
19560
19599
  border-color: #454d55;
@@ -19578,7 +19617,9 @@ td.table-focus {
19578
19617
  .table-dark.table-bordered {
19579
19618
  border-width: 0;
19580
19619
  }
19581
- .table-dark.table-striped tbody tr:nth-of-type(odd) {
19620
+ .table-dark.table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider),
19621
+ .table-dark.table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider) th,
19622
+ .table-dark.table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider) td {
19582
19623
  background-color: rgba(255, 255, 255, 0.05);
19583
19624
  }
19584
19625
  .table-dark.table-hover tbody tr:hover {
@@ -19769,10 +19810,10 @@ td.table-focus {
19769
19810
  }
19770
19811
  .table-list .table-divider th,
19771
19812
  .table-list .table-divider td {
19772
- padding-bottom: 0.75rem;
19773
- padding-left: 0.75rem;
19774
- padding-right: 0.75rem;
19775
- padding-top: 0.75rem;
19813
+ padding-bottom: 0.5rem;
19814
+ padding-left: 1.25rem;
19815
+ padding-right: 1rem;
19816
+ padding-top: 0.5rem;
19776
19817
  }
19777
19818
  .table-list .table-active {
19778
19819
  background-color: #dadada;
@@ -19815,8 +19856,9 @@ td.table-focus {
19815
19856
  .table.table-list.table-bordered .table-column-start {
19816
19857
  border-left-width: 0;
19817
19858
  }
19818
- .table-list.table-striped tbody tr:nth-of-type(odd) td,
19819
- .table-list.table-striped tbody tr:nth-of-type(odd) th {
19859
+ .table-list.table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider),
19860
+ .table-list.table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider) th,
19861
+ .table-list.table-striped tbody tr:nth-of-type(odd):not(.table-active):not(.table-disabled):not(.table-divider) td {
19820
19862
  background-color: #f2f2f2;
19821
19863
  }
19822
19864
 
@@ -19838,12 +19880,6 @@ td.table-focus {
19838
19880
  .table-list.table-hover .table-disabled:hover {
19839
19881
  background-color: #fff;
19840
19882
  }
19841
- .table-list.table-striped tbody .table-disabled:nth-of-type(odd),
19842
- .table-list.table-striped tbody .table-disabled:nth-of-type(odd) td,
19843
- .table-list.table-striped tbody .table-disabled:nth-of-type(odd) th {
19844
- background-color: #fff;
19845
- }
19846
-
19847
19883
  .table-list-title {
19848
19884
  font-size: 1rem;
19849
19885
  font-weight: 500;
@@ -19968,16 +20004,6 @@ td.table-focus {
19968
20004
  vertical-align: top;
19969
20005
  }
19970
20006
 
19971
- .table-nested-rows th:first-child,
19972
- .table-nested-rows td:first-child,
19973
- .table-nested-rows .table-column-start {
19974
- padding-left: 1.25rem;
19975
- }
19976
- .table-nested-rows th:last-child,
19977
- .table-nested-rows td:last-child,
19978
- .table-nested-rows .table-column-end {
19979
- padding-right: 1.25rem;
19980
- }
19981
20007
  .table-nested-rows .autofit-col {
19982
20008
  padding-left: 0.125rem;
19983
20009
  padding-right: 0.125rem;
@@ -20007,6 +20033,33 @@ td.table-focus {
20007
20033
  display: none;
20008
20034
  }
20009
20035
 
20036
+ .table-sort thead th,
20037
+ .table-sort thead td {
20038
+ cursor: pointer;
20039
+ transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
20040
+ }
20041
+ @media (prefers-reduced-motion: reduce) {
20042
+ .table-sort thead th,
20043
+ .table-sort thead td {
20044
+ transition: none;
20045
+ }
20046
+ }
20047
+ .c-prefers-reduced-motion .table-sort thead th,
20048
+ .c-prefers-reduced-motion .table-sort thead td {
20049
+ transition: none;
20050
+ }
20051
+
20052
+ .table-sort thead th:hover,
20053
+ .table-sort thead td:hover {
20054
+ background-color: #e5f2ff;
20055
+ color: #212529;
20056
+ }
20057
+ .table-sort thead th .component-action,
20058
+ .table-sort thead td .component-action {
20059
+ font-size: 0.75rem;
20060
+ height: 1.5rem;
20061
+ width: 1.5rem;
20062
+ }
20010
20063
  .show-quick-actions-on-hover tr:not(.table-active):not(.table-disabled):hover .quick-action-menu {
20011
20064
  display: flex;
20012
20065
  }
@@ -21005,7 +21058,7 @@ td.table-focus {
21005
21058
  left: 0;
21006
21059
  position: absolute;
21007
21060
  top: 0;
21008
- 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;
21061
+ 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, opacity 100ms ease-in, right 100ms ease-in;
21009
21062
  width: 50px;
21010
21063
  }
21011
21064
  @media (prefers-reduced-motion: reduce) {
@@ -21030,7 +21083,7 @@ td.table-focus {
21030
21083
  left: 0;
21031
21084
  position: absolute;
21032
21085
  top: 0;
21033
- 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;
21086
+ 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, opacity 100ms ease-in, right 100ms ease-in;
21034
21087
  width: 25px;
21035
21088
  }
21036
21089
  @media (prefers-reduced-motion: reduce) {
@@ -21043,7 +21096,7 @@ td.table-focus {
21043
21096
  }
21044
21097
 
21045
21098
  .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::before {
21046
- 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;
21099
+ 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, opacity 100ms ease-in, right 100ms ease-in;
21047
21100
  }
21048
21101
  @media (prefers-reduced-motion: reduce) {
21049
21102
  .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::before {
@@ -21057,7 +21110,7 @@ td.table-focus {
21057
21110
  .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::after {
21058
21111
  content: '\FEFF' attr(data-label-off);
21059
21112
  margin-left: 58px;
21060
- 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;
21113
+ 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, opacity 100ms ease-in, right 100ms ease-in;
21061
21114
  white-space: nowrap;
21062
21115
  }
21063
21116
  @media (prefers-reduced-motion: reduce) {
@@ -21077,7 +21130,7 @@ td.table-focus {
21077
21130
  text-align: center;
21078
21131
  text-indent: 0;
21079
21132
  top: 0;
21080
- 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;
21133
+ 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, opacity 100ms ease-in, right 100ms ease-in;
21081
21134
  width: 25px;
21082
21135
  z-index: 1;
21083
21136
  }
@@ -21262,6 +21315,51 @@ td.table-focus {
21262
21315
  .simple-toggle-switch-reverse.simple-toggle-switch .toggle-switch-label {
21263
21316
  margin-right: 0.5rem;
21264
21317
  }
21318
+ .toggle-switch-sm .simple-toggle-switch .toggle-switch-label, .simple-toggle-switch.toggle-switch-sm .toggle-switch-label {
21319
+ max-width: calc(100% - 38px);
21320
+ }
21321
+ .toggle-switch-sm .toggle-switch-check {
21322
+ height: 16px;
21323
+ width: 30px;
21324
+ }
21325
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar {
21326
+ height: 16px;
21327
+ line-height: 16px;
21328
+ }
21329
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar::before {
21330
+ width: 30px;
21331
+ }
21332
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar::after {
21333
+ height: 16px;
21334
+ width: 16px;
21335
+ }
21336
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle {
21337
+ min-width: 30px;
21338
+ max-width: 30px;
21339
+ }
21340
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-handle::after {
21341
+ margin-left: 38px;
21342
+ }
21343
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon {
21344
+ font-size: 0.6875rem;
21345
+ height: 16px;
21346
+ left: 0;
21347
+ line-height: 16px;
21348
+ width: 16px;
21349
+ }
21350
+ .toggle-switch-sm .toggle-switch-check ~ .toggle-switch-bar .toggle-switch-icon-off {
21351
+ left: 14px;
21352
+ }
21353
+ .toggle-switch-sm .toggle-switch-check:checked ~ .toggle-switch-bar::after {
21354
+ left: 14px;
21355
+ }
21356
+ .toggle-switch-sm .toggle-switch-check:checked ~ .toggle-switch-bar .button-icon {
21357
+ left: 14px;
21358
+ }
21359
+ .toggle-switch-sm .toggle-switch-label {
21360
+ font-size: 0.75rem;
21361
+ max-width: calc(100% - 38px);
21362
+ }
21265
21363
  .tooltip {
21266
21364
  display: block;
21267
21365
  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;