eed65d2d04
Created a png sprite sized @2x based on largest usage (for retina). This will fix some rendering issues caused by using svg images. It will allow adding depth and more color / shading if we choose later.
262 lines
5.8 KiB
SCSS
262 lines
5.8 KiB
SCSS
.tabs-bar {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
background: #000;
|
|
flex: 0 0 auto;
|
|
overflow-y: auto;
|
|
height: 50px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
|
|
&__container {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
width:100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 15px;
|
|
|
|
// NOTE - might need to adjust this based on column sizing
|
|
@media screen and (max-width: $nav-breakpoint-4) {padding: 0 20px;}
|
|
|
|
}
|
|
|
|
&__split {
|
|
display: flex;
|
|
width: auto;
|
|
|
|
&--left {
|
|
margin-right: auto;
|
|
}
|
|
|
|
&--right {
|
|
margin-left: auto;
|
|
padding-top: 8px;
|
|
@media screen and (max-width: $nav-breakpoint-3) {padding-top: 4px;}
|
|
}
|
|
}
|
|
|
|
&__search-container {
|
|
display: block;
|
|
@media screen and (max-width: $nav-breakpoint-2) {display: none;}
|
|
width: 251px;
|
|
.search {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
&__profile {
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin: 0 0 0 20px;
|
|
height: 34px;
|
|
width: 34px;
|
|
|
|
@media screen and (max-width: $nav-breakpoint-3) {
|
|
height: 42px;
|
|
width: 42px;
|
|
margin: 0;
|
|
}
|
|
|
|
.account__avatar {
|
|
width: 34px;
|
|
height: 34px;
|
|
background-size: 34px 34px;
|
|
|
|
@media screen and (max-width: $nav-breakpoint-3) {
|
|
width: 42px;
|
|
height: 42px;
|
|
background-size: 42px 42px;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
.compose__action-bar {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: -5px;
|
|
bottom: 0;
|
|
|
|
i {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
&__button-compose {
|
|
display: block;
|
|
@media screen and (max-width: $nav-breakpoint-3) {display: none;}
|
|
width: 70px;
|
|
height: 34px;
|
|
margin-left: 20px;
|
|
border-radius: 4px;
|
|
background-image: url('../images/sprite-main-navigation.png');
|
|
background-color: $gab-brand-default !important;
|
|
background-repeat: no-repeat;
|
|
background-size: 161px 152px;
|
|
background-position: 18px 2px;
|
|
&:hover {
|
|
background-color: lighten($gab-brand-default, 5%) !important;
|
|
background-position: 18px -98px;
|
|
box-shadow: inset 0px 0px 6px darken($gab-brand-default, 10%);
|
|
}
|
|
span {display: none;}
|
|
}
|
|
|
|
&__button {
|
|
margin-left: 12px;
|
|
height: 34px;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
.tabs-bar__link {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
margin: 0 25px 0 0;
|
|
color: white;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
background-repeat: no-repeat;
|
|
background-image: url('../images/sprite-main-navigation-links.png');
|
|
background-size: auto 84px;
|
|
@media screen and (max-width: $nav-breakpoint-1) {
|
|
background-size: auto 120px;
|
|
width: 46px;
|
|
height: 42px;
|
|
margin: 4px 0 0 0;
|
|
padding: 0 !important;
|
|
&.active {
|
|
height: 38px;
|
|
border-bottom: 4px solid $gab-default-text-light;
|
|
}
|
|
& span {display: none;}
|
|
}
|
|
&.home {
|
|
padding: 16px 0 0 25px;
|
|
background-position: 0 18px;
|
|
&.active {background-position: 0 -52px;}
|
|
@media screen and (max-width: $nav-breakpoint-1) {
|
|
background-position: 11px 11px;
|
|
&.active {background-position: 11px -89px;}
|
|
}
|
|
}
|
|
&.notifications {
|
|
padding: 16px 0 0 23px;
|
|
background-position: -140px 18px;
|
|
&.active {background-position: -140px -52px;}
|
|
@media screen and (max-width: $nav-breakpoint-1) {
|
|
background-position: -186px 11px;
|
|
&.active {background-position: -186px -89px;}
|
|
}
|
|
}
|
|
&.groups {
|
|
padding: 16px 0 0 28px;
|
|
background-position: -280px 18px;
|
|
&.active {background-position: -280px -52px;}
|
|
@media screen and (max-width: $nav-breakpoint-1) {
|
|
background-position: -390px 11px;
|
|
&.active {background-position: -390px -89px;}
|
|
}
|
|
}
|
|
&.optional {
|
|
display: none;
|
|
@media screen and (max-width: $nav-breakpoint-2) {
|
|
display: flex;
|
|
background-position: -987px 11px;
|
|
&.active {background-position: -987px -89px;}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// &.notifications,
|
|
// &.explore,
|
|
// &.messages,
|
|
// &.optional {
|
|
// padding: 16px 0 0 23px;
|
|
// background-size: 14px 114px;
|
|
// @media screen and (max-width: $nav-breakpoint-1) {background-size: 20px 160.94px;}
|
|
// background-position: 0 -82px;
|
|
// &.active{background-position: 0 18px;}
|
|
// }
|
|
// &.explore {background-image: url('../images/gab-icons/icon-explore-sprite.svg');}
|
|
// &.notifications {background-image: url('../images/gab-icons/icon-notifications-sprite.svg');}
|
|
// &.messages {background-image: url('../images/gab-icons/icon-messages-sprite.svg');}
|
|
// &.groups {background-image: url('../images/gab-icons/icon-groups-sprite.svg');}
|
|
// &.optional {background-image: url('../images/gab-icons/icon-search-sprite.svg');}
|
|
// &.optional {
|
|
// display: none;
|
|
// @media screen and (max-width: $nav-breakpoint-2) {display: flex;}
|
|
// }
|
|
|
|
|
|
// REWORK THIS BECAUSE OF FIREFOX BUGS
|
|
|
|
// @media screen and (max-width: $nav-breakpoint-1) {
|
|
// &.home,
|
|
// &.notifications,
|
|
// &.groups,
|
|
// &.explore,
|
|
// &.messages,
|
|
// &.optional {
|
|
// width: 46px;
|
|
// height: 42px;
|
|
// margin: 4px 0 0 0;
|
|
// padding: 0;
|
|
// background-position: center -130px;
|
|
// &.active {
|
|
// height: 38px;
|
|
// border-bottom: 4px solid $gab-default-text-light;
|
|
// background-position: center 11px;
|
|
// }
|
|
// }
|
|
// & span {display: none;}
|
|
// }
|
|
|
|
// END REWORK
|
|
|
|
&.active {color: $gab-text-highlight;}
|
|
|
|
&--logo {
|
|
display: block;
|
|
|
|
|
|
// NOTE - Revisit right-margin of home button / positioning between 376px and 350px
|
|
// - want to keep the icons centered between logo and profile image while shrinking
|
|
@media screen and (max-width: $nav-breakpoint-4) {display:none;}
|
|
|
|
width: 50px;
|
|
height: 50px;
|
|
margin-right: 35px;
|
|
border: none;
|
|
background-image: url('../images/gab_logo.svg');
|
|
background-repeat: no-repeat;
|
|
background-position: 0 10px;
|
|
background-size: 50px 30px;
|
|
& span {display: none !important;}
|
|
&:hover {
|
|
background-color: #000 !important;
|
|
border: none !important;
|
|
}
|
|
}
|
|
|
|
&--no-highlight,
|
|
&--no-highlight:hover,
|
|
&--no-highlight.active,
|
|
&--no-highlight:active,
|
|
&--no-highlight:focus {
|
|
background: transparent !important;
|
|
border-bottom-color: transparent !important;
|
|
}
|
|
|
|
}
|