pleroma/app/styles/_mixins.scss

35 lines
774 B
SCSS
Raw Normal View History

2020-03-27 13:59:38 -07:00
// THEME MIXINS
// standard container drop shadow
2020-06-02 15:42:09 -07:00
@mixin standard-panel-shadow {
2020-05-31 19:05:00 -07:00
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
}
2020-03-27 13:59:38 -07:00
// common properties for all standard containers
2020-06-02 15:42:09 -07:00
@mixin standard-panel {
@include standard-panel-shadow;
2020-05-15 20:48:08 -07:00
border-radius: 10px;
2020-05-31 19:05:00 -07:00
background: var(--foreground-color);
2020-03-27 13:59:38 -07:00
}
// SHORTCUTS
@mixin input-placeholder($color) {
&::-webkit-input-placeholder { color: $color; }
&::-moz-placeholder { color: $color; }
&:-ms-input-placeholder { color: $color; }
&:-moz-placeholder { color: $color; }
2020-03-27 13:59:38 -07:00
}
2020-05-15 20:48:08 -07:00
@mixin avatar-radius {
2020-03-27 13:59:38 -07:00
border-radius: 50%;
background: transparent no-repeat;
background-position: 50%;
background-clip: padding-box;
}
2020-05-15 20:48:08 -07:00
@mixin avatar-size($size: 48px) {
width: $size;
height: $size;
background-size: $size $size;
2020-03-27 13:59:38 -07:00
}