mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
feat: add mixins file
This commit is contained in:
parent
7e7613d5de
commit
934797e074
1 changed files with 23 additions and 0 deletions
23
src/styles/_mixins.scss
Normal file
23
src/styles/_mixins.scss
Normal file
|
@ -0,0 +1,23 @@
|
|||
@mixin background-cover($position) {
|
||||
background-position: $position;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
@mixin circle($size) {
|
||||
@include square($size);
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
@mixin position($position, $top: null, $right: null, $bottom: null, $left: null) {
|
||||
position: $position;
|
||||
top: $top;
|
||||
right: $right;
|
||||
bottom: $bottom;
|
||||
left: $left;
|
||||
}
|
||||
|
||||
@mixin square($size) {
|
||||
height: $size;
|
||||
width: $size;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue