mirror of
https://github.com/danog/sass-site.git
synced 2024-12-13 09:57:35 +01:00
47 lines
1.1 KiB
SCSS
47 lines
1.1 KiB
SCSS
@use 'sass:color';
|
|
@use '../breakpoints';
|
|
@use '../config/color/brand';
|
|
|
|
// Use h2 sizes for condensed header
|
|
.sl-r-banner-playground h1 {
|
|
@include breakpoints.sl-breakpoint--medium {
|
|
--h1-size: var(--sl-font-size--xx-large);
|
|
}
|
|
|
|
@include breakpoints.sl-breakpoint--large {
|
|
--h1-size: var(--sl-font-size--xxx-large);
|
|
}
|
|
}
|
|
|
|
.playground-wrapper {
|
|
display: flex;
|
|
gap: var(--sl-gutter);
|
|
|
|
> div {
|
|
// Duplicated from fun fact- should this be defined elsewhere?
|
|
border: var(--sl-border--small) solid
|
|
color.adjust(brand.$sl-color--patina, $lightness: 32%);
|
|
flex: 50%;
|
|
}
|
|
|
|
.code-editor-tabbar {
|
|
background-color: color.adjust(brand.$sl-color--patina, $lightness: 32%);
|
|
|
|
button {
|
|
background-color: color.adjust(brand.$sl-color--patina, $lightness: 32%);
|
|
font-weight: bold;
|
|
color: var(--text, var(--sl-color--pale-sky));
|
|
padding: var(--sl-gutter--half);
|
|
border: 0;
|
|
}
|
|
|
|
$options: 'scss', 'indented', 'expanded', 'compressed';
|
|
|
|
@each $option in $options {
|
|
&[data-active='#{$option}'] [data-value='#{$option}'] {
|
|
background-color: var(--sl-color--code-background);
|
|
}
|
|
}
|
|
}
|
|
}
|