stable/1.0.x
Alex Gleason 2020-05-15 22:48:08 -05:00
rodzic 2fa0c44b52
commit 93e326a6f9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
14 zmienionych plików z 5022 dodań i 5018 usunięć

Wyświetl plik

@ -423,12 +423,12 @@ body {
input[type='text'], input[type='text'],
textarea { textarea {
&.standard { &.standard {
color: $gab-placeholder-accent; color: $gab-placeholder-accent;
border-color: $gab-secondary-text; border-color: $gab-secondary-text;
background: $gab-background-base-light; background: $gab-background-base-light;
@include input-placeholder($gab-secondary-text); @include input-placeholder($gab-secondary-text);
} }
} }
@ -437,14 +437,14 @@ textarea {
.report-modal, .report-modal,
.actions-modal, .actions-modal,
.mute-modal { .mute-modal {
color: $gab-default-text-light; color: $gab-default-text-light;
} }
.report-modal__statuses { .report-modal__statuses {
.status__content, .status__content,
.status__content p { .status__content p {
color: $gab-default-text-light; color: $gab-default-text-light;
} }
} }
.user-panel__header { .user-panel__header {

Wyświetl plik

@ -3,92 +3,96 @@
// THEME MIXINS // THEME MIXINS
// standard container drop shadow // standard container drop shadow
@mixin light-theme-shadow() {box-shadow: 0 0 6px 0 rgba(0,0,0,0.1);} @mixin light-theme-shadow {box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);}
// common properties for all standard containers // common properties for all standard containers
@mixin gab-container-standards() { @mixin gab-container-standards {
border-radius: 10px; border-radius: 10px;
background: $gab-background-container; background: $gab-background-container;
$light-theme: false !default; $light-theme: false !default;
@if $light-theme { @if $light-theme {
@include light-theme-shadow(); @include light-theme-shadow;
background: $gab-background-container-light; background: $gab-background-container-light;
} }
} }
// SHORTCUTS // SHORTCUTS
@mixin input-placeholder($color) { @mixin input-placeholder($color) {
&::-webkit-input-placeholder {color: $color;} &::-webkit-input-placeholder {color: $color;}
&::-moz-placeholder {color: $color;} &::-moz-placeholder {color: $color;}
&:-ms-input-placeholder {color: $color;} &:-ms-input-placeholder {color: $color;}
&:-moz-placeholder {color: $color;} &:-moz-placeholder {color: $color;}
} }
// OLDER MIXINS // OLDER MIXINS
@mixin avatar-radius() { @mixin avatar-radius {
border-radius: 50%; border-radius: 50%;
background: transparent no-repeat; background: transparent no-repeat;
background-position: 50%; background-position: 50%;
background-clip: padding-box; background-clip: padding-box;
} }
@mixin avatar-size($size:48px) { @mixin avatar-size($size: 48px) {
width: $size; width: $size;
height: $size; height: $size;
background-size: $size $size; background-size: $size $size;
} }
@mixin search-input() { @mixin search-input {
outline: 0; outline: 0;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
border: 1px $gab-placeholder-accent solid; border: 1px $gab-placeholder-accent solid;
box-shadow: none; box-shadow: none;
font-family: inherit; font-family: inherit;
background: $nav-ui-search-bg-color; background: $nav-ui-search-bg-color;
color: $nav-ui-highlight-color; color: $nav-ui-highlight-color;
@include font-size(16); @include font-size(16);
@include line-height(19); @include line-height(19);
margin: 0; margin: 0;
border-radius: 4px; border-radius: 4px;
// Chrome does not like these concatinated together // Chrome does not like these concatinated together
&::placeholder {color: $gab-placeholder-accent;} &::placeholder {color: $gab-placeholder-accent;}
&:-ms-input-placeholder {color: $gab-placeholder-accent;} &:-ms-input-placeholder {color: $gab-placeholder-accent;}
&::-ms-input-placeholder{color: $gab-placeholder-accent;} &::-ms-input-placeholder {color: $gab-placeholder-accent;}
&::-moz-focus-inner { &::-moz-focus-inner {
border: 0; border: 0;
} }
&::-moz-focus-inner,
&:focus, &::-moz-focus-inner,
&:active { &:focus,
outline: 0 !important; &:active {
} outline: 0 !important;
}
} }
@mixin search-popout() { @mixin search-popout {
background: $gab-background-container; background: $gab-background-container;
border-radius: 4px; border-radius: 4px;
border: 1px solid $gab-placeholder-accent; border: 1px solid $gab-placeholder-accent;
padding: 8px 10px 17px 10px; padding: 8px 10px 17px;
margin: 4px 0 0 0; margin: 4px 0 0;
@include font-size(12); @include font-size(12);
@include line-height(14); @include line-height(14);
@include font-weight(normal); @include font-weight(normal);
color: $gab-secondary-text; color: $gab-secondary-text;
box-shadow: 0 0 6px 0 rgba(0,0,0,0.5); box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
h4 {
color: #fff; h4 {
@include font-size(14); color: #fff;
@include line-height(16); @include font-size(14);
@include font-weight(bold); @include line-height(16);
} @include font-weight(bold);
ul { }
margin: 6px 0 6px;
li { ul {
margin: 0 0 2px 0; margin: 6px 0;
em {color: $nav-ui-highlight-color;}
} li {
} margin: 0 0 2px;
em {color: $nav-ui-highlight-color;}
}
}
} }

Wyświetl plik

@ -1,146 +1,146 @@
.account__header { .account__header {
&.inactive { &.inactive {
opacity: 0.5; opacity: 0.5;
.account__header__image, .account__header__image,
.account__avatar {filter: grayscale(100%);} .account__avatar {filter: grayscale(100%);}
} }
&__info { &__info {
position: absolute; position: absolute;
top: 10px; top: 10px;
left: 10px; left: 10px;
} }
&__image { &__image {
overflow: hidden; overflow: hidden;
height: 350px; height: 350px;
position: relative; position: relative;
background: darken($ui-base-color, 4%); background: darken($ui-base-color, 4%);
@media screen and (max-width:895px) {height: 225px;} @media screen and (max-width:895px) {height: 225px;}
&--none {height: 125px;} &--none {height: 125px;}
img { img {
object-fit: cover; object-fit: cover;
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0; margin: 0;
} }
} }
&__bar { &__bar {
display: block; display: block;
min-height: 74px; min-height: 74px;
width: 100%; width: 100%;
position: relative; position: relative;
background: lighten($ui-base-color, 4%); background: lighten($ui-base-color, 4%);
@media (min-width:895px) {height: 74px;} @media (min-width:895px) {height: 74px;}
} }
&__avatar { &__avatar {
display: block; display: block;
position: absolute; position: absolute;
border: 5px solid lighten($ui-base-color, 4%); border: 5px solid lighten($ui-base-color, 4%);
left: 0; left: 0;
top: -90px; top: -90px;
border-radius: 50%; border-radius: 50%;
height: 200px; height: 200px;
width: 200px; width: 200px;
background-color: darken($ui-base-color, 8%); background-color: darken($ui-base-color, 8%);
// NOTE - patch fix for avatar size. Wrapper may not be needed when I do polish up on the page // NOTE - patch fix for avatar size. Wrapper may not be needed when I do polish up on the page
.account__avatar { .account__avatar {
width: 200px; width: 200px;
height: 200px; height: 200px;
background-size: 200px 200px; background-size: 200px 200px;
} }
@media screen and (max-width:895px) { @media screen and (max-width:895px) {
top: -45px; top: -45px;
left: 10px; left: 10px;
height: 90px; height: 90px;
width: 90px; width: 90px;
.account__avatar { .account__avatar {
width: 90px; width: 90px;
height: 90px; height: 90px;
background-size: 90px 90px; background-size: 90px 90px;
} }
} }
} }
&__extra { &__extra {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 100%; height: 100%;
margin: 0 auto; margin: 0 auto;
padding-left: 310px; padding-left: 310px;
width: 100%; width: 100%;
max-width: 1200px; max-width: 1200px;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
@media (min-width:895px) and (max-width:1190px) { @media (min-width:895px) and (max-width:1190px) {
max-width: 900px; max-width: 900px;
padding-left: 300px; padding-left: 300px;
} }
@media screen and (max-width:895px) { @media screen and (max-width:895px) {
max-width: 900px; max-width: 900px;
padding: 10px 10px 0 10px; padding: 10px 10px 0 10px;
flex-direction: column-reverse; flex-direction: column-reverse;
min-height: 50px; min-height: 50px;
} }
&__buttons { &__buttons {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: auto; margin-left: auto;
.icon-button { .icon-button {
border: 1px solid lighten($ui-base-color, 12%); border: 1px solid lighten($ui-base-color, 12%);
border-radius: 4px; border-radius: 4px;
box-sizing: content-box; box-sizing: content-box;
padding: 2px; padding: 2px;
} }
.button {margin-right: 10px;} .button {margin-right: 10px;}
} }
&__links { &__links {
display: flex; display: flex;
font-size: 14px; font-size: 14px;
color: $darker-text-color; color: $darker-text-color;
@media screen and (max-width:895px) { @media screen and (max-width:895px) {
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
} }
a { a {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
padding: 16px 22px; padding: 16px 22px;
text-align: center; text-align: center;
@media screen and (max-width:1190px) {padding: 16px;} @media screen and (max-width:1190px) {padding: 16px;}
> span { > span {
display: block; display: block;
&:first-of-type { &:first-of-type {
color: $primary-text-color; color: $primary-text-color;
font-size: 20px; font-size: 20px;
font-weight: 800; font-weight: 800;
line-height: 24px; line-height: 24px;
@media screen and (max-width:895px) { @media screen and (max-width:895px) {
font-size: 16px; font-size: 16px;
line-height: 20px; line-height: 20px;
} }
} }
&:last-of-type { &:last-of-type {
color: $ui-secondary-color; color: $ui-secondary-color;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
padding-top: 2px; padding-top: 2px;
} }
} }
&:hover, &:hover,
&.active {border-bottom: 2px solid $primary-text-color;} &.active {border-bottom: 2px solid $primary-text-color;}
&.score {border-bottom:none !important;} &.score {border-bottom:none !important;}
} }
} }
} // end .account__header__extra } // end .account__header__extra
@media screen and (max-width:895px) { @media screen and (max-width:895px) {
.account-mobile-container { .account-mobile-container {
display: block; display: block;
background: lighten($ui-base-color, 4%); background: lighten($ui-base-color, 4%);
margin-top: 10px; margin-top: 10px;
position: relative; position: relative;
padding: 10px 10px 0px; padding: 10px 10px 0px;
&--nonuser {padding: 10px 10px 15px;} &--nonuser {padding: 10px 10px 15px;}
} }
} }
} // end .account__header } // end .account__header

Wyświetl plik

@ -1,289 +1,289 @@
.compose-form { .compose-form {
padding: 10px; padding: 10px;
&__sensitive-button { &__sensitive-button {
padding: 10px; padding: 10px;
padding-top: 0; padding-top: 0;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
&.active {color: $highlight-text-color;} &.active {color: $highlight-text-color;}
input[type=checkbox] {display: none;} input[type=checkbox] {display: none;}
.checkbox { .checkbox {
display: inline-block; display: inline-block;
position: relative; position: relative;
border: 1px solid $ui-primary-color; border: 1px solid $ui-primary-color;
box-sizing: border-box; box-sizing: border-box;
width: 18px; width: 18px;
height: 18px; height: 18px;
flex: 0 0 auto; flex: 0 0 auto;
margin-right: 10px; margin-right: 10px;
top: -1px; top: -1px;
border-radius: 4px; border-radius: 4px;
vertical-align: middle; vertical-align: middle;
&.active { &.active {
border-color: $highlight-text-color; border-color: $highlight-text-color;
background: $highlight-text-color; background: $highlight-text-color;
} }
} }
} }
.compose-form__warning { .compose-form__warning {
color: $primary-text-color; color: $primary-text-color;
margin-bottom: 10px; margin-bottom: 10px;
background: $ui-primary-color; background: $ui-primary-color;
box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3); box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3);
padding: 8px 10px; padding: 8px 10px;
border-radius: 4px; border-radius: 4px;
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
strong { strong {
color: $inverted-text-color; color: $inverted-text-color;
font-weight: 500; font-weight: 500;
@each $lang in $cjk-langs { @each $lang in $cjk-langs {
&:lang(#{$lang}) { &:lang(#{$lang}) {
font-weight: 700; font-weight: 700;
} }
} }
} }
a { a {
color: $lighter-text-color; color: $lighter-text-color;
font-weight: 500; font-weight: 500;
text-decoration: underline; text-decoration: underline;
&:hover, &:hover,
&:active, &:active,
&:focus { &:focus {
text-decoration: none; text-decoration: none;
} }
} }
} }
.emoji-picker-dropdown { .emoji-picker-dropdown {
position: absolute; position: absolute;
top: 5px; top: 5px;
right: 5px; right: 5px;
z-index: 1; z-index: 1;
} }
.compose-form__autosuggest-wrapper { .compose-form__autosuggest-wrapper {
position: relative; position: relative;
} }
.autosuggest-textarea, .autosuggest-textarea,
.autosuggest-input, .autosuggest-input,
.spoiler-input { .spoiler-input {
position: relative; position: relative;
} }
.spoiler-input { .spoiler-input {
height: 0; height: 0;
transform-origin: bottom; transform-origin: bottom;
opacity: 0.0; opacity: 0.0;
&.spoiler-input--visible { &.spoiler-input--visible {
height: 36px; height: 36px;
margin-bottom: 11px; margin-bottom: 11px;
opacity: 1.0; opacity: 1.0;
} }
} }
.autosuggest-textarea__textarea, .autosuggest-textarea__textarea,
.spoiler-input__input { .spoiler-input__input {
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
margin: 0; margin: 0;
color: $inverted-text-color; color: $inverted-text-color;
background: $simple-background-color; background: $simple-background-color;
padding: 10px; padding: 10px;
font-family: inherit; font-family: inherit;
font-size: 14px; font-size: 14px;
resize: vertical; resize: vertical;
border: 0; border: 0;
outline: 0; outline: 0;
&:focus {outline: 0;} &:focus {outline: 0;}
@media screen and (max-width: 600px) {font-size: 16px;} @media screen and (max-width: 600px) {font-size: 16px;}
} }
.spoiler-input__input {border-radius: 4px;} .spoiler-input__input {border-radius: 4px;}
.autosuggest-textarea__textarea { .autosuggest-textarea__textarea {
min-height: 100px; min-height: 100px;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
padding-bottom: 0; padding-bottom: 0;
padding-right: 10px + 22px; padding-right: 10px + 22px;
resize: none; resize: none;
scrollbar-color: initial; scrollbar-color: initial;
&::-webkit-scrollbar {all: unset;} &::-webkit-scrollbar {all: unset;}
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
max-height: 100px !important; // prevent auto-resize textarea max-height: 100px !important; // prevent auto-resize textarea
resize: vertical; resize: vertical;
} }
} }
&.condensed { &.condensed {
.autosuggest-textarea__textarea { .autosuggest-textarea__textarea {
min-height: 46px; min-height: 46px;
border-radius: 5px; border-radius: 5px;
} }
} }
.emoji-picker-wrapper, .emoji-picker-wrapper,
.autosuggest-textarea__suggestions-wrapper { .autosuggest-textarea__suggestions-wrapper {
position: relative; position: relative;
height: 0; height: 0;
} }
.autosuggest-textarea__suggestions { .autosuggest-textarea__suggestions {
box-sizing: border-box; box-sizing: border-box;
display: none; display: none;
position: absolute; position: absolute;
top: 100%; top: 100%;
width: 100%; width: 100%;
z-index: 99; z-index: 99;
box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4); box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
background: $ui-secondary-color; background: $ui-secondary-color;
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
color: $inverted-text-color; color: $inverted-text-color;
font-size: 14px; font-size: 14px;
padding: 6px; padding: 6px;
&.autosuggest-textarea__suggestions--visible {display: block;} &.autosuggest-textarea__suggestions--visible {display: block;}
} }
.autosuggest-textarea__suggestions__item { .autosuggest-textarea__suggestions__item {
padding: 10px; padding: 10px;
cursor: pointer; cursor: pointer;
border-radius: 4px; border-radius: 4px;
&:hover, &:hover,
&:focus, &:focus,
&:active, &:active,
&.selected {background: darken($ui-secondary-color, 10%);} &.selected {background: darken($ui-secondary-color, 10%);}
} }
.autosuggest-account, .autosuggest-account,
.autosuggest-emoji { .autosuggest-emoji {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
line-height: 18px; line-height: 18px;
font-size: 14px; font-size: 14px;
} }
.autosuggest-account-icon, .autosuggest-account-icon,
.autosuggest-emoji img { .autosuggest-emoji img {
display: block; display: block;
margin-right: 8px; margin-right: 8px;
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.autosuggest-account .display-name__account {color: $lighter-text-color;} .autosuggest-account .display-name__account {color: $lighter-text-color;}
.compose-form__modifiers { .compose-form__modifiers {
color: $inverted-text-color; color: $inverted-text-color;
font-family: inherit; font-family: inherit;
font-size: 14px; font-size: 14px;
background: $simple-background-color; background: $simple-background-color;
.compose-form__upload-wrapper {overflow: hidden;} .compose-form__upload-wrapper {overflow: hidden;}
.compose-form__uploads-wrapper { .compose-form__uploads-wrapper {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
&.contains-media { &.contains-media {
padding: 5px; padding: 5px;
border-top: 1px solid darken($simple-background-color, 8%); border-top: 1px solid darken($simple-background-color, 8%);
} }
} }
.compose-form__upload { .compose-form__upload {
flex: 1 1 0; flex: 1 1 0;
min-width: 40%; min-width: 40%;
margin: 5px; margin: 5px;
&__actions { &__actions {
background: linear-gradient(180deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent); background: linear-gradient(180deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
opacity: 0; opacity: 0;
transition: opacity .1s ease; transition: opacity .1s ease;
.icon-button { .icon-button {
flex: 0 1 auto; flex: 0 1 auto;
color: $gab-secondary-text; color: $gab-secondary-text;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
padding: 10px; padding: 10px;
font-family: inherit; font-family: inherit;
&:hover, &:hover,
&:focus, &:focus,
&:active {color: $gab-text-highlight;} &:active {color: $gab-text-highlight;}
} }
&.active {opacity: 1;} &.active {opacity: 1;}
} }
&-description { &-description {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
box-sizing: border-box; box-sizing: border-box;
background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent); background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
padding: 10px; padding: 10px;
opacity: 0; opacity: 0;
transition: opacity .1s ease; transition: opacity .1s ease;
textarea { textarea {
background: rgba(0,0,0,0.3); background: rgba(0,0,0,0.3);
box-sizing: border-box; box-sizing: border-box;
background: transparent; background: transparent;
color: $gab-secondary-text; color: $gab-secondary-text;
border: 1px solid $gab-secondary-text; border: 1px solid $gab-secondary-text;
outline: none; outline: none;
padding: 10px; padding: 10px;
margin: 0; margin: 0;
width: 100%; width: 100%;
font-family: inherit; font-family: inherit;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
&:focus {color: #fff;} &:focus {color: #fff;}
&::placeholder { &::placeholder {
color: $gab-secondary-text; color: $gab-secondary-text;
} }
} }
&.active {opacity: 1;} &.active {opacity: 1;}
} }
} }
.compose-form__upload-thumbnail { .compose-form__upload-thumbnail {
border-radius: 4px; border-radius: 4px;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
height: 140px; height: 140px;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
} // end .compose-form .compose-form__modifiers } // end .compose-form .compose-form__modifiers
.compose-form__buttons-wrapper { .compose-form__buttons-wrapper {
padding: 10px; padding: 10px;
background: darken($simple-background-color, 8%); background: darken($simple-background-color, 8%);
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex: 0 0 auto; flex: 0 0 auto;
.compose-form__buttons { .compose-form__buttons {
display: flex; display: flex;
.compose-form__upload-button-icon {line-height: 27px;} .compose-form__upload-button-icon {line-height: 27px;}
.compose-form__sensitive-button { .compose-form__sensitive-button {
display: none; display: none;
&.compose-form__sensitive-button--visible {display: block;} &.compose-form__sensitive-button--visible {display: block;}
.compose-form__sensitive-button__icon {line-height: 27px;} .compose-form__sensitive-button__icon {line-height: 27px;}
} }
} }
.icon-button { .icon-button {
box-sizing: content-box; box-sizing: content-box;
padding: 0 3px; padding: 0 3px;
} }
.character-counter__wrapper { .character-counter__wrapper {
align-self: center; align-self: center;
margin-right: 4px; margin-right: 4px;
.character-counter { .character-counter {
cursor: default; cursor: default;
font-family: $font-sans-serif, sans-serif; font-family: $font-sans-serif, sans-serif;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: $gab-secondary-text; color: $gab-secondary-text;
&.character-counter--over {color: $warning-red;} &.character-counter--over {color: $warning-red;}
} }
} }
} }
.compose-form__publish { .compose-form__publish {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
min-width: 0; min-width: 0;
flex: 0 0 auto; flex: 0 0 auto;
.compose-form__publish-button-wrapper { .compose-form__publish-button-wrapper {
overflow: hidden; overflow: hidden;
padding-top: 10px; padding-top: 10px;
} }
} }
} // end .compose-form } // end .compose-form

Wyświetl plik

@ -1,77 +1,77 @@
.dropdown-menu { .dropdown-menu {
z-index: 9999; z-index: 9999;
position: absolute; position: absolute;
background: $gab-background-container; background: $gab-background-container;
border-radius: 4px; border-radius: 4px;
border: 1px solid $gab-placeholder-accent; border: 1px solid $gab-placeholder-accent;
padding: 4px 0; padding: 4px 0;
@include font-size(13); @include font-size(13);
@include line-height(26); @include line-height(26);
@include font-weight(normal); @include font-weight(normal);
color: $gab-secondary-text; color: $gab-secondary-text;
box-shadow: 0 0 6px 0 rgba(0,0,0,0.5); box-shadow: 0 0 6px 0 rgba(0,0,0,0.5);
&.left {transform-origin: 100% 50%;} &.left {transform-origin: 100% 50%;}
&.top {transform-origin: 50% 100%;} &.top {transform-origin: 50% 100%;}
&.bottom {transform-origin: 50% 0;} &.bottom {transform-origin: 50% 0;}
&.right {transform-origin: 0 50%;} &.right {transform-origin: 0 50%;}
&__arrow { &__arrow {
position: absolute; position: absolute;
width: 0; width: 0;
height: 0; height: 0;
border: 0 solid transparent; border: 0 solid transparent;
&.left { &.left {
right: -5px; right: -5px;
margin-top: -5px; margin-top: -5px;
border-width: 5px 0 5px 5px; border-width: 5px 0 5px 5px;
border-left-color: $gab-placeholder-accent; border-left-color: $gab-placeholder-accent;
} }
&.top { &.top {
bottom: -5px; bottom: -5px;
margin-left: -5px; margin-left: -5px;
border-width: 5px 5px 0; border-width: 5px 5px 0;
border-top-color: $gab-placeholder-accent; border-top-color: $gab-placeholder-accent;
} }
&.bottom { &.bottom {
top: -5px; top: -5px;
margin-left: -5px; margin-left: -5px;
border-width: 0 5px 5px; border-width: 0 5px 5px;
border-bottom-color: $gab-placeholder-accent; border-bottom-color: $gab-placeholder-accent;
} }
&.right { &.right {
left: -5px; left: -5px;
margin-top: -5px; margin-top: -5px;
border-width: 5px 5px 5px 0; border-width: 5px 5px 5px 0;
border-right-color: $gab-placeholder-accent; border-right-color: $gab-placeholder-accent;
} }
} }
ul { ul {
overflow: hidden; overflow: hidden;
padding: 6px 0; padding: 6px 0;
} }
&__item a { &__item a {
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
padding: 3px 10px 1px; padding: 3px 10px 1px;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
text-transform: capitalize; text-transform: capitalize;
color: $gab-secondary-text; color: $gab-secondary-text;
&:focus, &:focus,
&:hover, &:hover,
&:active { &:active {
outline: 0; outline: 0;
color: white; color: white;
background: $gab-brand-default !important; background: $gab-brand-default !important;
} }
} }
&__separator { &__separator {
display: block; display: block;
margin: 10px !important; margin: 10px !important;
height: 1px; height: 1px;
background: $gab-background-base; background: $gab-background-base;
} }
} }
// end .dropdown-menu // end .dropdown-menu
@ -82,67 +82,67 @@
.dropdown { .dropdown {
display: inline-block; display: inline-block;
} }
.dropdown__content { .dropdown__content {
display: none; display: none;
position: absolute; position: absolute;
} }
.dropdown--active .dropdown__content { .dropdown--active .dropdown__content {
display: block; display: block;
line-height: 18px; line-height: 18px;
max-width: 311px; max-width: 311px;
right: 0; right: 0;
text-align: left; text-align: left;
z-index: 9999; z-index: 9999;
& > ul { & > ul {
list-style: none; list-style: none;
background: $ui-secondary-color; background: $ui-secondary-color;
padding: 4px 0; padding: 4px 0;
border-radius: 4px; border-radius: 4px;
box-shadow: 0 0 15px rgba($base-shadow-color, 0.4); box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
min-width: 140px; min-width: 140px;
position: relative; position: relative;
} }
&.dropdown__right { &.dropdown__right {
right: 0; right: 0;
} }
&.dropdown__left { &.dropdown__left {
& > ul { & > ul {
left: -98px; left: -98px;
} }
} }
& > ul > li > a { & > ul > li > a {
font-size: 13px; font-size: 13px;
line-height: 18px; line-height: 18px;
display: block; display: block;
padding: 4px 14px; padding: 4px 14px;
box-sizing: border-box; box-sizing: border-box;
text-decoration: none; text-decoration: none;
background: $ui-secondary-color; background: $ui-secondary-color;
color: $inverted-text-color; color: $inverted-text-color;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
&:focus { &:focus {
outline: 0; outline: 0;
} }
&:hover { &:hover {
background: $ui-highlight-color; background: $ui-highlight-color;
color: $secondary-text-color; color: $secondary-text-color;
} }
} }
} }
.dropdown__icon { .dropdown__icon {
vertical-align: middle; vertical-align: middle;
} }

Wyświetl plik

@ -23,8 +23,8 @@
.group__tabs { .group__tabs {
.group__tabs__tab { .group__tabs__tab {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
padding: 16px 22px; padding: 16px 22px;
text-align: center; text-align: center;
color: $primary-text-color; color: $primary-text-color;

Wyświetl plik

@ -1,52 +1,52 @@
.group-form { .group-form {
padding: 20px; padding: 20px;
@include gab-container-standards(); @include gab-container-standards();
&, &,
div { div {
box-sizing: border-box; box-sizing: border-box;
float: left; float: left;
width: 100%; width: 100%;
} }
input[type=text], input[type=text],
textarea { textarea {
&.standard { &.standard {
width: 100%; width: 100%;
margin: 0 0 10px; margin: 0 0 10px;
} }
} }
textarea { textarea {
float: left; float: left;
height: 88px; height: 88px;
} }
.group-form__file-label { .group-form__file-label {
cursor: pointer; cursor: pointer;
display: block; display: block;
box-sizing: border-box; box-sizing: border-box;
float: left; float: left;
height: 20px; height: 20px;
padding: 3px 0 0 33px; padding: 3px 0 0 33px;
@include font-size(12); @include font-size(12);
@include font-weight(light); @include font-weight(light);
color: $gab-secondary-text; color: $gab-secondary-text;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url('../images/sprite-post-functions.png'); background-image: url('../images/sprite-post-functions.png');
background-size: 100px 1200px; background-size: 100px 1200px;
&:hover { &:hover {
color: $gab-brand-default; color: $gab-brand-default;
background-position: 0 -100px; background-position: 0 -100px;
} }
&.group-form__file-label--selected { &.group-form__file-label--selected {
background-position: 0 -100px; background-position: 0 -100px;
color: $gab-brand-default;; color: $gab-brand-default;;
} }
} }
.group-form__file { .group-form__file {
width: 1px; width: 1px;
height: 1px; height: 1px;
overflow: hidden; overflow: hidden;
opacity: 0; opacity: 0;
position: absolute; position: absolute;
pointer-events: none; pointer-events: none;
} }
button {float: right;} button {float: right;}
} }

Wyświetl plik

@ -1,17 +1,17 @@
input[type='text'], input[type='text'],
textarea { textarea {
&.standard { &.standard {
box-sizing: border-box; box-sizing: border-box;
padding: 7px 10px; padding: 7px 10px;
border: 1px solid; border: 1px solid;
border-radius: 4px; border-radius: 4px;
@include font-size(16); @include font-size(16);
@include line-height(18); @include line-height(18);
color: $gab-brand-default; color: $gab-brand-default;
border-color: $gab-placeholder-accent; border-color: $gab-placeholder-accent;
background: $gab-background-container; background: $gab-background-container;
@include input-placeholder($gab-placeholder-accent); @include input-placeholder($gab-placeholder-accent);
&:focus {outline: none;} &:focus {outline: none;}
} }
} }
textarea.standard {resize: vertical;} textarea.standard {resize: vertical;}

Wyświetl plik

@ -1,111 +1,111 @@
.user-panel { .user-panel {
display: flex; display: flex;
width: 265px; width: 265px;
flex-direction: column; flex-direction: column;
overflow-y: hidden; overflow-y: hidden;
@include gab-container-standards(); @include gab-container-standards();
&__header { &__header {
display: block; display: block;
height: 112px; height: 112px;
width: 100%; width: 100%;
background: lighten($gab-background-container, 4%); background: lighten($gab-background-container, 4%);
img { img {
display: block; display: block;
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: 0; margin: 0;
object-fit: cover; object-fit: cover;
} }
} }
&__profile { &__profile {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
padding: 0 10px; padding: 0 10px;
margin-top: -53px; margin-top: -53px;
.account__avatar { .account__avatar {
display: block; display: block;
width: 82px; width: 82px;
height: 82px; height: 82px;
border: 6px solid $gab-background-base; border: 6px solid $gab-background-base;
background-size: cover; background-size: cover;
} }
} }
&__meta { &__meta {
display: block; display: block;
padding: 6px 20px 17px 20px; padding: 6px 20px 17px 20px;
} }
&__account { &__account {
a { a {
text-decoration: none; text-decoration: none;
color: $primary-text-color; color: $primary-text-color;
} }
&__name { &__name {
display: block; display: block;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
line-height: 24px; line-height: 24px;
color: #fff; color: #fff;
} }
&:hover & { &:hover & {
&__name { &__name {
text-decoration: underline; text-decoration: underline;
} }
} }
&__username { &__username {
display: block; display: block;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $gab-secondary-text; color: $gab-secondary-text;
text-decoration: none !important; text-decoration: none !important;
} }
} }
&__stats-block { &__stats-block {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding-top: 12px; padding-top: 12px;
} }
.user-panel-stats-item { .user-panel-stats-item {
display: flex; display: flex;
align-items: start; align-items: start;
justify-content: left; justify-content: left;
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: column; flex-direction: column;
a { a {
text-decoration: none; text-decoration: none;
color: $primary-text-color; color: $primary-text-color;
&:hover { &:hover {
opacity: 0.8; opacity: 0.8;
} }
} }
&__value { &__value {
display: block; display: block;
width: 100%; width: 100%;
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
font-weight: 800; font-weight: 800;
line-height: 24px; line-height: 24px;
} }
&__label { &__label {
display: block; display: block;
width: 100%; width: 100%;
color: $gab-secondary-text; color: $gab-secondary-text;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
} }
} }
} }

Wyświetl plik

@ -19,7 +19,7 @@
&--active { &--active {
background-color: $ui-highlight-color; background-color: $ui-highlight-color;
color: $primary-text-color; color: $primary-text-color;
} }
} }
} }

Wyświetl plik

@ -1,16 +1,16 @@
.dyslexic { .dyslexic {
font-family: 'OpenDyslexic' !important; font-family: 'OpenDyslexic' !important;
} }
body.dyslexic { body.dyslexic {
@media screen and (max-width: $nav-breakpoint-2) { @media screen and (max-width: $nav-breakpoint-2) {
.column-header > button, .column-header > .btn { .column-header > button, .column-header > .btn {
font-size: 11px; font-size: 11px;
} }
} }
.detailed-status__meta { .detailed-status__meta {
font-size: 12px; font-size: 12px;
} }
} }

Wyświetl plik

@ -4,33 +4,33 @@
html {scrollbar-color: lighten($gab-background-container, 4%) $gab-background-container;} html {scrollbar-color: lighten($gab-background-container, 4%) $gab-background-container;}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 12px; width: 12px;
height: 12px; height: 12px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border: none; border: none;
background: rgba($gab-placeholder-accent, .5); background: rgba($gab-placeholder-accent, .5);
@if $light-theme {background: rgba($gab-background-container-light, .3);} @if $light-theme {background: rgba($gab-background-container-light, .3);}
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: rgba($gab-placeholder-accent, .75); background: rgba($gab-placeholder-accent, .75);
@if $light-theme {background: rgba($gab-background-container-light, .4);} @if $light-theme {background: rgba($gab-background-container-light, .4);}
} }
::-webkit-scrollbar-thumb:active { ::-webkit-scrollbar-thumb:active {
background: $gab-placeholder-accent; background: $gab-placeholder-accent;
@if $light-theme {background: rgba($gab-background-container-light, .5);} @if $light-theme {background: rgba($gab-background-container-light, .5);}
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
border: none; border: none;
background: rgba($gab-background-container, .5); background: rgba($gab-background-container, .5);
@if $light-theme {background: rgba($gab-background-base, .3);} @if $light-theme {background: rgba($gab-background-base, .3);}
} }
::-webkit-scrollbar-track:hover { ::-webkit-scrollbar-track:hover {
background: rgba($gab-background-container, .75); background: rgba($gab-background-container, .75);
@if $light-theme {background: rgba($gab-background-base, .4);} @if $light-theme {background: rgba($gab-background-base, .4);}
} }
::-webkit-scrollbar-track:active { ::-webkit-scrollbar-track:active {
background: $gab-background-container; background: $gab-background-container;
@if $light-theme {background: rgba($gab-background-base, .5);} @if $light-theme {background: rgba($gab-background-base, .5);}
} }
::-webkit-scrollbar-corner {background: transparent;} ::-webkit-scrollbar-corner {background: transparent;}