Skip to content
Prev Previous commit
Next Next commit
Move utility classes to layout, to align with rest of primer
  • Loading branch information
tobiasahlin committed Mar 19, 2021
commit f60b78151a7c790d648f4314e0f395ce3cc1e523
1 change: 0 additions & 1 deletion src/marketing/utilities/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
@import "./layout.scss";
@import "./margin.scss";
@import "./padding.scss";
@import "./sizing.scss";
8 changes: 8 additions & 0 deletions src/marketing/utilities/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
13 changes: 0 additions & 13 deletions src/marketing/utilities/sizing.scss

This file was deleted.