Skip to content

Commit

Permalink
Fix more issues in the light theme (mastodon#10996)
Browse files Browse the repository at this point in the history
* Fix tabs bar in light theme

* Fix borders on small screens in light theme
  • Loading branch information
Gargron authored and multiple creatures committed Nov 19, 2019
1 parent f198a6f commit b96912e
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 3 deletions.
105 changes: 105 additions & 0 deletions app/javascript/styles/mastodon-light/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ html {
background: $white;
border: 1px solid lighten($ui-base-color, 8%);

@media screen and (max-width: $no-gap-breakpoint) {
border-top: 0;
}

&--slim-button {
border: 0;
top: -49px;
Expand Down Expand Up @@ -81,6 +85,15 @@ html {
}
}

.getting-started .navigation-bar {
border-top: 1px solid lighten($ui-base-color, 8%);
border-bottom: 1px solid lighten($ui-base-color, 8%);

@media screen and (max-width: $no-gap-breakpoint) {
border-top: 0;
}
}

.compose-form__autosuggest-wrapper,
.poll__text input[type="text"],
.compose-form .spoiler-input__input,
Expand All @@ -95,6 +108,13 @@ html {
border: 1px solid lighten($ui-base-color, 8%);
}

.search__input {
@media screen and (max-width: $no-gap-breakpoint) {
border-top: 0;
border-bottom: 0;
}
}

.list-editor .search .search__input {
border-top: 0;
border-bottom: 0;
Expand Down Expand Up @@ -350,6 +370,37 @@ html {
background: $white;
}

.tabs-bar {
background: $white;
border: 1px solid lighten($ui-base-color, 8%);
border-bottom: 0;

@media screen and (max-width: $no-gap-breakpoint) {
border-top: 0;
}

&__link {
padding-bottom: 14px;
border-bottom-width: 1px;
border-bottom-color: lighten($ui-base-color, 8%);

&:hover,
&:active,
&:focus {
background: $ui-base-color;
}

&.active {
&:hover,
&:active,
&:focus {
background: transparent;
border-bottom-color: $ui-highlight-color;
}
}
}
}

// Change the default colors used on some parts of the profile pages
.activity-stream-tabs {
background: $account-background-color;
Expand All @@ -367,17 +418,39 @@ html {
.landing-page__information.contact-widget {
background: $white;
border: 1px solid lighten($ui-base-color, 8%);

@media screen and (max-width: $no-gap-breakpoint) {
border-left: 0;
border-right: 0;
border-top: 0;
}
}

.landing .hero-widget__text {
border-top: 0;
border-bottom: 0;
}

.simple_form {
input[type=text],
input[type=number],
input[type=email],
input[type=password],
textarea {
&:hover {
border-color: lighten($ui-base-color, 12%);
}
}
}

.landing .hero-widget__footer {
background: $white;
border: 1px solid lighten($ui-base-color, 8%);
border-top: 0;

@media screen and (max-width: $no-gap-breakpoint) {
border: 0;
}
}

.brand__tagline {
Expand All @@ -390,6 +463,10 @@ html {
&:focus {
background: $ui-base-color;
}

@media screen and (max-width: $no-gap-breakpoint) {
border: 0;
}
}

.directory__tag.active > a,
Expand Down Expand Up @@ -516,6 +593,10 @@ html {
.public-layout {
.account__section-headline {
border: 1px solid lighten($ui-base-color, 8%);

@media screen and (max-width: $no-gap-breakpoint) {
border-top: 0;
}
}

.header,
Expand All @@ -534,6 +615,10 @@ html {
background: $ui-base-color;
border: 1px solid lighten($ui-base-color, 8%);

@media screen and (max-width: $no-gap-breakpoint) {
border: 0;
}

.brand {
&:hover,
&:focus,
Expand Down Expand Up @@ -562,16 +647,36 @@ html {
.avatar img {
border-color: $account-background-color;
}

@media screen and (max-width: $no-columns-breakpoint) {
background: $account-background-color;
border: 1px solid lighten($ui-base-color, 8%);
border-top: 0;
}
}

&__tabs {
&__name {
h1,
h1 small {
color: $white;

@media screen and (max-width: $no-columns-breakpoint) {
color: $primary-text-color;
}
}
}
}

&__extra {
.public-account-bio {
border: 0;
}

.public-account-bio .account__header__fields {
border-color: lighten($ui-base-color, 8%);
}
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@ a.account__display-name {
display: flex;
flex-direction: column;

@media screen and (min-width: 360px) {
@media screen and (min-width: $no-gap-breakpoint) {
padding: 0 10px;
}
}
Expand Down Expand Up @@ -2021,7 +2021,7 @@ a.account__display-name {
top: 15px;
}

@media screen and (min-width: 360px) {
@media screen and (min-width: $no-gap-breakpoint) {
padding: 10px 0;
}

Expand Down Expand Up @@ -2135,7 +2135,7 @@ a.account__display-name {
}
}

@media screen and (min-width: 360px) {
@media screen and (min-width: $no-gap-breakpoint) {
.tabs-bar {
margin: 10px auto;
margin-bottom: 0;
Expand Down

0 comments on commit b96912e

Please sign in to comment.