Skip to content

Commit da91238

Browse files
committed
Add Infima important override
1 parent a3e2d75 commit da91238

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

website/src/css/customTheme.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,14 @@ html[data-theme="dark"] {
223223
}
224224
}
225225

226-
main[class^="docMainContainer"] > .container {
227-
padding-top: 2rem !important;
226+
/*
227+
Layer needed to override utility rules using !important in the Infima layer
228+
See also https://css-tricks.com/css-cascade-layers/#aa-important-layers
229+
*/
230+
@layer docusaurus.infima.importantOverrides {
231+
main[class^="docMainContainer"] > .container {
232+
padding-top: 2rem !important;
233+
}
228234
}
229235

230236
div[class^="generatedIndexPage"] {

0 commit comments

Comments
 (0)