2020-03-27 20:59:38 +00:00
|
|
|
// THEME MIXINS
|
|
|
|
|
|
|
|
// standard container drop shadow
|
2020-06-02 22:42:09 +00:00
|
|
|
@mixin standard-panel-shadow {
|
2020-06-01 02:05:00 +00:00
|
|
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
2020-03-27 20:59:38 +00:00
|
|
|
|
|
|
|
// common properties for all standard containers
|
2020-06-02 22:42:09 +00:00
|
|
|
@mixin standard-panel {
|
|
|
|
@include standard-panel-shadow;
|
2020-05-16 03:48:08 +00:00
|
|
|
border-radius: 10px;
|
2020-06-01 02:05:00 +00:00
|
|
|
background: var(--foreground-color);
|
2020-03-27 20:59:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SHORTCUTS
|
|
|
|
@mixin input-placeholder($color) {
|
2020-05-16 03:48:08 +00:00
|
|
|
&::-webkit-input-placeholder {color: $color;}
|
|
|
|
&::-moz-placeholder {color: $color;}
|
|
|
|
&:-ms-input-placeholder {color: $color;}
|
|
|
|
&:-moz-placeholder {color: $color;}
|
2020-03-27 20:59:38 +00:00
|
|
|
}
|
|
|
|
|
2020-05-16 03:48:08 +00:00
|
|
|
@mixin avatar-radius {
|
2020-03-27 20:59:38 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
background: transparent no-repeat;
|
|
|
|
background-position: 50%;
|
|
|
|
background-clip: padding-box;
|
|
|
|
}
|
|
|
|
|
2020-05-16 03:48:08 +00:00
|
|
|
@mixin avatar-size($size: 48px) {
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
background-size: $size $size;
|
2020-03-27 20:59:38 +00:00
|
|
|
}
|
|
|
|
|
2020-05-16 03:48:08 +00:00
|
|
|
@mixin search-input {
|
2020-05-29 00:58:37 +00:00
|
|
|
@include font-size(16);
|
|
|
|
@include line-height(19);
|
2020-05-16 03:48:08 +00:00
|
|
|
outline: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
box-shadow: none;
|
|
|
|
font-family: inherit;
|
2020-06-01 02:16:32 +00:00
|
|
|
background: var(--background-color);
|
2020-05-31 20:51:20 +00:00
|
|
|
color: var(--highlight-text-color);
|
2020-05-16 03:48:08 +00:00
|
|
|
margin: 0;
|
2020-06-01 04:18:39 +00:00
|
|
|
border-radius: 999px;
|
|
|
|
border: 0;
|
|
|
|
padding-left: 15px;
|
2020-03-27 20:59:38 +00:00
|
|
|
|
2020-05-16 03:48:08 +00:00
|
|
|
// Chrome does not like these concatinated together
|
2020-06-07 03:55:00 +00:00
|
|
|
&::placeholder {color: var(--primary-text-color--faint);}
|
|
|
|
&:-ms-input-placeholder {color: var(--primary-text-color--faint);}
|
|
|
|
&::-ms-input-placeholder {color: var(--primary-text-color--faint);}
|
2020-03-27 20:59:38 +00:00
|
|
|
|
2020-05-16 03:48:08 +00:00
|
|
|
&::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-focus-inner,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
outline: 0 !important;
|
|
|
|
}
|
2020-03-27 20:59:38 +00:00
|
|
|
}
|
|
|
|
|
2020-05-16 03:48:08 +00:00
|
|
|
@mixin search-popout {
|
2020-05-29 00:58:37 +00:00
|
|
|
@include font-size(12);
|
|
|
|
@include line-height(14);
|
|
|
|
@include font-weight(normal);
|
2020-06-02 22:42:09 +00:00
|
|
|
background: var(--background-color);
|
|
|
|
border-radius: 6px;
|
2020-05-16 03:48:08 +00:00
|
|
|
padding: 8px 10px 17px;
|
|
|
|
margin: 4px 0 0;
|
2020-06-07 03:55:00 +00:00
|
|
|
color: var(--primary-text-color--faint);
|
2020-05-16 03:48:08 +00:00
|
|
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
@include font-size(14);
|
|
|
|
@include line-height(16);
|
|
|
|
@include font-weight(bold);
|
2020-06-02 22:42:09 +00:00
|
|
|
color: var(--primary-text-color);
|
2020-05-16 03:48:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 6px 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0 0 2px;
|
2020-05-31 20:51:20 +00:00
|
|
|
em {color: var(--brand-color);}
|
2020-05-16 03:48:08 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-27 20:59:38 +00:00
|
|
|
}
|