kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
94 wiersze
2.0 KiB
SCSS
94 wiersze
2.0 KiB
SCSS
// THEME MIXINS
|
|
|
|
// standard container drop shadow
|
|
@mixin standard-panel-shadow {
|
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
// common properties for all standard containers
|
|
@mixin standard-panel {
|
|
@include standard-panel-shadow;
|
|
border-radius: 10px;
|
|
background: var(--foreground-color);
|
|
}
|
|
|
|
// SHORTCUTS
|
|
@mixin input-placeholder($color) {
|
|
&::-webkit-input-placeholder { color: $color; }
|
|
&::-moz-placeholder { color: $color; }
|
|
&:-ms-input-placeholder { color: $color; }
|
|
&:-moz-placeholder { color: $color; }
|
|
}
|
|
|
|
@mixin avatar-radius {
|
|
border-radius: 50%;
|
|
background: transparent no-repeat;
|
|
background-position: 50%;
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
@mixin avatar-size($size: 48px) {
|
|
width: $size;
|
|
height: $size;
|
|
background-size: $size $size;
|
|
}
|
|
|
|
@mixin search-input {
|
|
@include font-size(16);
|
|
@include line-height(19);
|
|
outline: 0;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
box-shadow: none;
|
|
font-family: inherit;
|
|
background: var(--background-color);
|
|
color: var(--highlight-text-color);
|
|
margin: 0;
|
|
border-radius: 999px;
|
|
border: 0;
|
|
padding-left: 15px;
|
|
|
|
// Chrome does not like these concatinated together
|
|
&::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); }
|
|
|
|
&::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
&::-moz-focus-inner,
|
|
&:focus,
|
|
&:active {
|
|
outline: 0 !important;
|
|
}
|
|
}
|
|
|
|
@mixin search-popout {
|
|
@include font-size(12);
|
|
@include line-height(14);
|
|
@include font-weight(normal);
|
|
background: var(--background-color);
|
|
border-radius: 6px;
|
|
padding: 8px 10px 17px;
|
|
margin: 4px 0 0;
|
|
color: var(--primary-text-color--faint);
|
|
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);
|
|
color: var(--primary-text-color);
|
|
}
|
|
|
|
ul {
|
|
margin: 6px 0;
|
|
|
|
li {
|
|
margin: 0 0 2px;
|
|
em { color: var(--brand-color); }
|
|
}
|
|
}
|
|
}
|