mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 13:51:46 +01:00
define new breakpoints for code tabs
This commit is contained in:
parent
8d958ce4de
commit
c57377610c
@ -1,4 +1,3 @@
|
|||||||
@use '../functions';
|
|
||||||
@use '../visual-design/theme';
|
@use '../visual-design/theme';
|
||||||
@use '../visual-design/typography';
|
@use '../visual-design/typography';
|
||||||
|
|
||||||
@ -110,7 +109,7 @@
|
|||||||
// syntax switcher is exactly equal to two lines, so there's no visual jitter
|
// syntax switcher is exactly equal to two lines, so there's no visual jitter
|
||||||
// when switching between syntaxes.
|
// when switching between syntaxes.
|
||||||
pre + pre {
|
pre + pre {
|
||||||
margin-top: 1rem;
|
margin-top: var(--sl-gutter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,13 +232,15 @@ html .ui-button.ui-state-disabled:active {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: functions.sl-px-to-rem(1500px)) {
|
// custom breakpoint to make the split tabs work with a double nav column
|
||||||
|
@media screen and (min-width: 93.75rem) {
|
||||||
body.documentation {
|
body.documentation {
|
||||||
@include -split-css-tabs;
|
@include -split-css-tabs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: functions.sl-px-to-rem(1000px)) {
|
// custom breakpoint to make the split tabs work with a single nav column
|
||||||
|
@media screen and (min-width: 76rem) {
|
||||||
body.guide {
|
body.guide {
|
||||||
@include -split-css-tabs;
|
@include -split-css-tabs;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user