Gab Social. All are welcome.
This commit is contained in:
67
app/javascript/styles/gabsocial/_mixins.scss
Normal file
67
app/javascript/styles/gabsocial/_mixins.scss
Normal file
@@ -0,0 +1,67 @@
|
||||
@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() {
|
||||
outline: 0;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
border: 1px $gab-placeholder-accent solid;
|
||||
box-shadow: none;
|
||||
font-family: inherit;
|
||||
background: $gab-background-container;
|
||||
color: $gab-text-highlight;
|
||||
@include font-size(16);
|
||||
@include line-height(19);
|
||||
margin: 0;
|
||||
border-radius: 4px;
|
||||
|
||||
// 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;}
|
||||
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
&::-moz-focus-inner,
|
||||
&:focus,
|
||||
&:active {
|
||||
outline: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin search-popout() {
|
||||
background: $gab-background-container;
|
||||
border-radius: 4px;
|
||||
border: 1px solid $gab-placeholder-accent;
|
||||
padding: 8px 10px 17px 10px;
|
||||
margin: 4px 0 0 0;
|
||||
@include font-size(12);
|
||||
@include line-height(14);
|
||||
@include font-weight(normal);
|
||||
color: $gab-background-info;
|
||||
box-shadow: 0 0 6px 0 rgba(0,0,0,0.5);
|
||||
h4 {
|
||||
color: #fff;
|
||||
@include font-size(14);
|
||||
@include line-height(16);
|
||||
@include font-weight(bold);
|
||||
}
|
||||
ul {
|
||||
margin: 6px 0 6px;
|
||||
li {
|
||||
margin: 0 0 2px 0;
|
||||
em {color: $gab-text-highlight;}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user