@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "71.0.0",
3
+ "version": "71.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -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
  *