botascopia-webiste-static/assets/css/abstracts/_mixins.scss

65 lines
1.2 KiB
SCSS
Raw Normal View History

2026-02-11 10:39:01 +01:00
@mixin icon($size){
2026-02-15 23:14:52 +01:00
display: inline-block;
2026-02-11 10:39:01 +01:00
width: $size;
height: $size;
svg {
width: 100%;
height: 100%;
}
}
@mixin chart-edit($size){
width: $size;
height: $size;
svg {
width: 100%;
height: 100%;
circle{
2026-02-15 23:14:52 +01:00
fill: #efefef;
2026-02-11 10:39:01 +01:00
}
.filled{
2026-02-15 23:14:52 +01:00
fill: var(--color-orange-medium);
2026-02-11 10:39:01 +01:00
}
.verified{
2026-02-15 23:14:52 +01:00
fill: var(--color-green);
2026-02-11 10:39:01 +01:00
}
}
2026-02-11 15:34:20 +01:00
}
@mixin fig-ratio($ratio){
width: 100%;
overflow: hidden;
img{
2026-02-16 12:13:55 +01:00
aspect-ratio: $ratio;
2026-02-11 15:34:20 +01:00
width: 100%;
object-fit: cover;
2026-02-16 12:13:55 +01:00
border-radius: var(--radius-img);
2026-02-11 15:34:20 +01:00
}
2026-02-12 18:56:14 +01:00
}
@mixin hide-scrollbar(){
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
2026-02-16 12:13:55 +01:00
}
@mixin title-bg($color){
border-radius: var(--radius-small);
background-color: var(--color-#{$color}-light);
color: var(--color-#{$color});
border: var(--w-border) solid var(--color-#{$color});
padding: 5px 1.5ch;
// font-family: var(--font-title);
font-size: var(--fs-medium);
font-weight: 700;
}