2020-09-03 08:41:07 +00:00
|
|
|
@import '~dashboard/assets/scss/variables';
|
2020-02-16 10:16:26 +00:00
|
|
|
@import '~widget/assets/scss/mixins';
|
|
|
|
|
|
|
|
$spinner-before-border-color: rgba(255, 255, 255, 0.7);
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
//borders
|
|
|
|
@mixin border-nil() {
|
|
|
|
border-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin thin-border($color) {
|
|
|
|
border: 1px solid $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin custom-border-bottom($size, $color) {
|
|
|
|
border-bottom: $size solid $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin custom-border-top($size, $color) {
|
|
|
|
border-top: $size solid $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin border-normal() {
|
|
|
|
border: 1px solid $color-border;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-normal-left() {
|
|
|
|
border-left: 1px solid $color-border;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-normal-top() {
|
|
|
|
border-top: 1px solid $color-border;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-normal-right() {
|
|
|
|
border-right: 1px solid $color-border;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-normal-bottom() {
|
|
|
|
border-bottom: 1px solid $color-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin border-light() {
|
|
|
|
border: 1px solid $color-border-light;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-light-left() {
|
|
|
|
border-left: 1px solid $color-border-light;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-light-top() {
|
|
|
|
border-top: 1px solid $color-border-light;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-light-right() {
|
|
|
|
border-right: 1px solid $color-border-light;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin border-light-bottom() {
|
|
|
|
border-bottom: 1px solid $color-border-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
// background
|
|
|
|
@mixin background-gray() {
|
|
|
|
background: $color-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin background-light() {
|
|
|
|
background: $color-background-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin background-white() {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
// input form
|
|
|
|
@mixin ghost-input() {
|
|
|
|
box-shadow: none;
|
|
|
|
border-color: transparent;
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
&:active,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: transparent;
|
2020-02-16 10:16:26 +00:00
|
|
|
box-shadow: none;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// flex-layout
|
|
|
|
@mixin space-between() {
|
2019-10-20 08:04:19 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin space-between-column() {
|
|
|
|
@include space-between;
|
2019-10-20 08:04:19 +00:00
|
|
|
flex-direction: column;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin space-between-row() {
|
|
|
|
@include space-between;
|
2019-10-20 08:04:19 +00:00
|
|
|
flex-direction: row;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin flex-shrink() {
|
2019-11-01 08:14:03 +00:00
|
|
|
flex: 0 0 auto;
|
2019-08-14 09:48:44 +00:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin flex-weight($value) {
|
|
|
|
// Grab flex-grow for older browsers.
|
|
|
|
$flex-grow: nth($value, 1);
|
|
|
|
|
|
|
|
// 2009
|
|
|
|
@include prefixer(box-flex, $flex-grow, webkit moz spec);
|
|
|
|
|
|
|
|
// 2011 (IE 10), 2012
|
|
|
|
@include prefixer(flex, $value, webkit moz ms spec);
|
|
|
|
}
|
|
|
|
|
|
|
|
// full height
|
|
|
|
@mixin full-height() {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2019-10-27 13:58:02 +00:00
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
@mixin round-corner() {
|
|
|
|
border-radius: 1000px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin scroll-on-hover() {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&:hover {
|
2020-02-22 13:45:45 +00:00
|
|
|
overflow-y: auto;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@mixin horizontal-scroll() {
|
2020-02-22 13:45:45 +00:00
|
|
|
overflow-y: auto;
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin elegant-card() {
|
2020-07-04 08:20:44 +00:00
|
|
|
@include normal-shadow;
|
2019-08-14 09:48:44 +00:00
|
|
|
border-radius: $space-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin color-spinner() {
|
|
|
|
@keyframes spinner {
|
2019-12-11 15:27:06 +00:00
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
|
|
|
|
2020-02-16 10:16:26 +00:00
|
|
|
&::before {
|
|
|
|
animation: spinner .9s linear infinite;
|
|
|
|
border: 2px solid $spinner-before-border-color;
|
|
|
|
border-radius: 50%;
|
|
|
|
border-top-color: lighten($color-woot, 10%);
|
2019-08-14 09:48:44 +00:00
|
|
|
box-sizing: border-box;
|
2020-02-16 10:16:26 +00:00
|
|
|
content: '';
|
|
|
|
height: $space-medium;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -$space-one;
|
|
|
|
margin-top: -$space-one;
|
2019-08-14 09:48:44 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
width: $space-medium;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// --------------------------------------------------------
|
|
|
|
// arrows
|
|
|
|
// --------------------------------------------------------
|
|
|
|
// $direction: top, left, right, bottom, top-left, top-right, bottom-left, bottom-right
|
|
|
|
// $color: hex, rgb or rbga
|
|
|
|
// $size: px or em
|
|
|
|
// @example
|
|
|
|
// .element{
|
|
|
|
// @include arrow(top, #000, 50px);
|
|
|
|
// }
|
2020-02-16 10:16:26 +00:00
|
|
|
@mixin arrow($direction, $color, $size) {
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
@if $direction == 'top' {
|
|
|
|
border-bottom: $size solid $color;
|
|
|
|
border-left: $size solid transparent;
|
|
|
|
border-right: $size solid transparent;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'right' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-bottom: $size solid transparent;
|
|
|
|
border-left: $size solid $color;
|
|
|
|
border-top: $size solid transparent;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'bottom' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-left: $size solid transparent;
|
|
|
|
border-right: $size solid transparent;
|
|
|
|
border-top: $size solid $color;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'left' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-bottom: $size solid transparent;
|
|
|
|
border-right: $size solid $color;
|
|
|
|
border-top: $size solid transparent;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'top-left' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-right: $size solid transparent;
|
|
|
|
border-top: $size solid $color;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'top-right' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-left: $size solid transparent;
|
|
|
|
border-top: $size solid $color;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'bottom-left' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-bottom: $size solid $color;
|
|
|
|
border-right: $size solid transparent;
|
2020-07-04 08:20:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@else if $direction == 'bottom-right' {
|
2020-02-16 10:16:26 +00:00
|
|
|
border-bottom: $size solid $color;
|
|
|
|
border-left: $size solid transparent;
|
|
|
|
}
|
2019-08-14 09:48:44 +00:00
|
|
|
}
|
2020-01-01 17:00:43 +00:00
|
|
|
|
|
|
|
@mixin text-ellipsis {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2021-05-10 11:41:08 +00:00
|
|
|
|
|
|
|
@mixin three-column-grid($column-one-width: 25.6rem,
|
|
|
|
$column-three-width: 25.6rem) {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: minmax($column-one-width, 6fr) 10fr minmax($column-three-width, 6fr);
|
|
|
|
}
|