mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-06 03:18:30 +02:00
74 lines
1.4 KiB
SCSS
74 lines
1.4 KiB
SCSS
@use '../helpers/functions' as lib;
|
|
|
|
@mixin content-image($caption-size, $caption-color, $margin) {
|
|
img,
|
|
figure {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin: $margin auto;
|
|
}
|
|
figcaption,
|
|
figcaption p {
|
|
font-size: $caption-size;
|
|
text-align: center;
|
|
margin-top: $margin;
|
|
@if ($margin > 1rem) {
|
|
margin-top: $margin * 0.4;
|
|
}
|
|
}
|
|
figure img {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
@mixin transitionAll($ms) {
|
|
-webkit-transition: all $ms ease;
|
|
-ms-transition: all $ms ease;
|
|
-o-transition: all $ms ease;
|
|
-moz-transition: all $ms ease;
|
|
transition: all $ms ease;
|
|
}
|
|
|
|
@mixin font-styles($size, $weight, $line-height, $color, $font-family) {
|
|
font-family: $font-family;
|
|
font-size: $size;
|
|
font-style: normal;
|
|
font-weight: $weight;
|
|
line-height: $line-height;
|
|
color: $color;
|
|
}
|
|
|
|
@mixin fixed-height-img($height, $width: auto) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
max-width: $width;
|
|
min-width: $width;
|
|
height: $width;
|
|
overflow: hidden;
|
|
margin-bottom: 0;
|
|
& > img {
|
|
flex-shrink: 0;
|
|
width: auto;
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
max-width: none;
|
|
max-height: 100%;
|
|
}
|
|
}
|
|
|
|
@mixin link-color($color) {
|
|
color: $color;
|
|
|
|
&:before {
|
|
background: linear-gradient(to right, $color 50%, transparent 50%);
|
|
background-size: 200% 100%;
|
|
background-position: -100% 0;
|
|
}
|
|
|
|
&:after {
|
|
background: $color;
|
|
}
|
|
}
|