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:
Vishwam Subramanyam 2018-05-25 00:13:48 +00:00
Родитель b2e1162a85
Коммит e3bde7aeb8
4 изменённых файлов: 19 добавлений и 21 удалений

2
package-lock.json сгенерированный
Просмотреть файл

@ -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;
}
}