element-plus/docs/.vitepress/vitepress/styles/mixins.scss
云游君 ac30cd0d6e
chore: add vscode config & upgrade typescript/sass/vite (#3502)
* chore: add vscode config & upgrade typescript/sass/vite

* fix: format scss by prettier
2021-09-19 19:34:25 +08:00

31 lines
665 B
SCSS

@use 'sass:map';
@import './vars';
@mixin with-bg {
background-color: var(--bg-color);
color: var(--text-color-light);
transition: border-color var(--el-transition-duration),
background-color var(--el-transition-duration);
}
@mixin with-border {
border-bottom: 1px solid var(--border-color);
}
$breakpoints: (
'sm': #{$breakpoint-sm},
'md': #{$breakpoint-md},
'lg': #{$breakpoint-lg},
'xlg': #{$breakpoint-xlg},
'xxl': #{$breakpoint-xxl},
) !default;
@mixin respond-to($breakpoint) {
@if #{map.has-key($breakpoints, $breakpoints)} {
@media screen and (min-width: #{map.get($breakpoints, $breakpoint)}) {
@content;
}
}
}