Merged PR 858519: Move inline-text-overflow to normalize.scss
We can't define classes in _constants.scss because it gets included in pretty much every scss and gets mangled, so we end up with a ton of duplicate declarations of these classes. normalize.scss gets included only once (by Shell), so place common classes there and mark them as `:global` so the names aren't mangled.
This commit is contained in:
Родитель
b2e1162a85
Коммит
e3bde7aeb8
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@azure-iot/ux-fluent-css",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@azure-iot/ux-fluent-css",
|
||||
"description": "Common styles library for CSS, Colors and Themes",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.7",
|
||||
"license": "ISC",
|
||||
"engines": {
|
||||
"node": "^8.0.0"
|
||||
|
|
|
@ -16,7 +16,7 @@ $gutter-bigger: 40px;
|
|||
$grid-size: 4px;
|
||||
|
||||
|
||||
// Z Index
|
||||
// Z Index
|
||||
|
||||
$z-index-large-step: 1000;
|
||||
$z-index-medium-step: 100;
|
||||
|
@ -71,19 +71,3 @@ $layout-chart-axis-tick-size: 6px;
|
|||
|
||||
$nav-expanded-width: 220px;
|
||||
$nav-collapsed-width: $layout-nav-item-height;
|
||||
|
||||
|
||||
// Text overflow
|
||||
|
||||
.inline-text-overflow {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
// Hidden
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
/**
|
||||
/**
|
||||
* Normalize
|
||||
*/
|
||||
|
||||
|
@ -136,4 +136,18 @@ dt {
|
|||
|
||||
dd {
|
||||
margin-left: 0; // Undo browser default
|
||||
}
|
||||
}
|
||||
|
||||
// define some common css classes that everyone needs to use. These
|
||||
// need to be declared as global so they're not mangled:
|
||||
:global {
|
||||
.inline-text-overflow {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче