@gitlab/ui 71.0.0 → 71.1.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/CHANGELOG.md +7 -0
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/utilities.scss +42 -0
- package/src/scss/utility-mixins/text.scss +32 -0
package/package.json
CHANGED
package/src/scss/utilities.scss
CHANGED
|
@@ -8361,6 +8361,48 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
8361
8361
|
.gl-text-overflow-ellipsis\! {
|
|
8362
8362
|
text-overflow: ellipsis !important;
|
|
8363
8363
|
}
|
|
8364
|
+
.gl-line-clamp-1 {
|
|
8365
|
+
white-space: normal;
|
|
8366
|
+
-webkit-line-clamp: 1;
|
|
8367
|
+
-webkit-box-orient: vertical;
|
|
8368
|
+
display: -webkit-box;
|
|
8369
|
+
overflow: hidden;
|
|
8370
|
+
}
|
|
8371
|
+
.gl-line-clamp-1\! {
|
|
8372
|
+
white-space: normal !important;
|
|
8373
|
+
-webkit-line-clamp: 1 !important;
|
|
8374
|
+
-webkit-box-orient: vertical !important;
|
|
8375
|
+
display: -webkit-box !important;
|
|
8376
|
+
overflow: hidden !important;
|
|
8377
|
+
}
|
|
8378
|
+
.gl-line-clamp-2 {
|
|
8379
|
+
white-space: normal;
|
|
8380
|
+
-webkit-line-clamp: 2;
|
|
8381
|
+
-webkit-box-orient: vertical;
|
|
8382
|
+
display: -webkit-box;
|
|
8383
|
+
overflow: hidden;
|
|
8384
|
+
}
|
|
8385
|
+
.gl-line-clamp-2\! {
|
|
8386
|
+
white-space: normal !important;
|
|
8387
|
+
-webkit-line-clamp: 2 !important;
|
|
8388
|
+
-webkit-box-orient: vertical !important;
|
|
8389
|
+
display: -webkit-box !important;
|
|
8390
|
+
overflow: hidden !important;
|
|
8391
|
+
}
|
|
8392
|
+
.gl-line-clamp-3 {
|
|
8393
|
+
white-space: normal;
|
|
8394
|
+
-webkit-line-clamp: 3;
|
|
8395
|
+
-webkit-box-orient: vertical;
|
|
8396
|
+
display: -webkit-box;
|
|
8397
|
+
overflow: hidden;
|
|
8398
|
+
}
|
|
8399
|
+
.gl-line-clamp-3\! {
|
|
8400
|
+
white-space: normal !important;
|
|
8401
|
+
-webkit-line-clamp: 3 !important;
|
|
8402
|
+
-webkit-box-orient: vertical !important;
|
|
8403
|
+
display: -webkit-box !important;
|
|
8404
|
+
overflow: hidden !important;
|
|
8405
|
+
}
|
|
8364
8406
|
.gl-text-indent-0 {
|
|
8365
8407
|
text-indent: 0;
|
|
8366
8408
|
}
|
|
@@ -67,6 +67,38 @@
|
|
|
67
67
|
text-overflow: ellipsis;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Line clamp utilities
|
|
72
|
+
*
|
|
73
|
+
* Naming convention: gl-line-clamp-{value}
|
|
74
|
+
*/
|
|
75
|
+
@mixin gl-line-clamp-1 {
|
|
76
|
+
white-space: normal;
|
|
77
|
+
-webkit-line-clamp: 1;
|
|
78
|
+
-webkit-box-orient: vertical;
|
|
79
|
+
// stylelint-disable-next-line value-no-vendor-prefix
|
|
80
|
+
display: -webkit-box;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@mixin gl-line-clamp-2 {
|
|
85
|
+
white-space: normal;
|
|
86
|
+
-webkit-line-clamp: 2;
|
|
87
|
+
-webkit-box-orient: vertical;
|
|
88
|
+
// stylelint-disable-next-line value-no-vendor-prefix
|
|
89
|
+
display: -webkit-box;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin gl-line-clamp-3 {
|
|
94
|
+
white-space: normal;
|
|
95
|
+
-webkit-line-clamp: 3;
|
|
96
|
+
-webkit-box-orient: vertical;
|
|
97
|
+
// stylelint-disable-next-line value-no-vendor-prefix
|
|
98
|
+
display: -webkit-box;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
}
|
|
101
|
+
|
|
70
102
|
/**
|
|
71
103
|
* Text indent utilities
|
|
72
104
|
*
|