1
1
mirror of https://github.com/primer/css.git synced 2024-12-03 03:33:40 +03:00

Move utility classes to layout, to align with rest of primer

This commit is contained in:
Tobias Ahlin Bjerrome 2021-03-19 14:09:01 +01:00
parent 8d0ca03ed7
commit f60b78151a
3 changed files with 8 additions and 14 deletions

View File

@ -5,4 +5,3 @@
@import "./layout.scss";
@import "./margin.scss";
@import "./padding.scss";
@import "./sizing.scss";

View File

@ -28,6 +28,14 @@
}
}
// Width and height utilities, especially needed when the
// dimensions of an image are set in HTML
.width-auto { width: auto !important; }
.height-auto { height: auto !important; }
// Make an object fill its parent
.object-fit-cover { object-fit: cover !important; }
// Handling z-index
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }

View File

@ -1,13 +0,0 @@
// Sizing utilities for marketing
.width-auto {
width: auto !important;
}
.height-auto {
height: auto !important;
}
.object-fit-cover {
object-fit: cover !important;
}