bigbuffet-rw/app/styles/soapbox/_mixins.scss

99 lines
2.1 KiB
SCSS
Raw Normal View History

2020-03-27 13:59:38 -07:00
// NEW GAB SPECIFIC MIXINS
// THEME MIXINS
// standard container drop shadow
2020-05-15 20:48:08 -07:00
@mixin light-theme-shadow {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-05-15 20:48:08 -07:00
@mixin gab-container-standards {
border-radius: 10px;
background: $gab-background-container;
$light-theme: false !default;
@if $light-theme {
@include light-theme-shadow;
background: $gab-background-container-light;
}
2020-03-27 13:59:38 -07:00
}
// SHORTCUTS
@mixin input-placeholder($color) {
2020-05-15 20:48:08 -07:00
&::-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
}
// OLDER MIXINS
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
}
2020-05-15 20:48:08 -07:00
@mixin search-input {
2020-05-28 17:58:37 -07:00
@include font-size(16);
@include line-height(19);
2020-05-15 20:48:08 -07:00
outline: 0;
box-sizing: border-box;
width: 100%;
border: 1px $gab-placeholder-accent solid;
box-shadow: none;
font-family: inherit;
background: $nav-ui-search-bg-color;
2020-05-31 13:51:20 -07:00
color: var(--highlight-text-color);
2020-05-15 20:48:08 -07:00
margin: 0;
border-radius: 4px;
2020-03-27 13:59:38 -07:00
2020-05-15 20:48:08 -07:00
// Chrome does not like these concatinated together
&::placeholder {color: $gab-placeholder-accent;}
&:-ms-input-placeholder {color: $gab-placeholder-accent;}
&::-ms-input-placeholder {color: $gab-placeholder-accent;}
2020-03-27 13:59:38 -07:00
2020-05-15 20:48:08 -07:00
&::-moz-focus-inner {
border: 0;
}
&::-moz-focus-inner,
&:focus,
&:active {
outline: 0 !important;
}
2020-03-27 13:59:38 -07:00
}
2020-05-15 20:48:08 -07:00
@mixin search-popout {
2020-05-28 17:58:37 -07:00
@include font-size(12);
@include line-height(14);
@include font-weight(normal);
2020-05-15 20:48:08 -07:00
background: $gab-background-container;
border-radius: 4px;
border: 1px solid $gab-placeholder-accent;
padding: 8px 10px 17px;
margin: 4px 0 0;
color: $gab-secondary-text;
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-05-28 17:58:37 -07:00
color: #fff;
2020-05-15 20:48:08 -07:00
}
ul {
margin: 6px 0;
li {
margin: 0 0 2px;
2020-05-31 13:51:20 -07:00
em {color: var(--brand-color);}
2020-05-15 20:48:08 -07:00
}
}
2020-03-27 13:59:38 -07:00
}