Skip to content

Commit

Permalink
Follow up tweaking of admin UI changes part 2 (mastodon#31268)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmstan authored Aug 8, 2024
1 parent ac9040b commit 176ba98
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 28 deletions.
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon-light/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,11 @@ html {

.compose-form .autosuggest-textarea__textarea,
.compose-form__highlightable,
.autosuggest-textarea__suggestions,
.search__input,
.search__popout,
.emoji-mart-search input,
.language-dropdown__dropdown .emoji-mart-search input,
// .strike-card,
.poll__option input[type='text'] {
background: darken($ui-base-color, 10%);
}
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
background: $ui-base-color;
color: $darker-text-color;
border-radius: 4px;
border: 1px solid lighten($ui-base-color, 8%);
border: 1px solid var(--background-border-color);
font-size: 17px;
line-height: normal;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ body > [data-popper-placement] {
&__suggestions {
box-shadow: var(--dropdown-shadow);
background: $ui-base-color;
border: 1px solid lighten($ui-base-color, 14%);
border: 1px solid var(--background-border-color);
border-radius: 0 0 4px 4px;
color: $secondary-text-color;
font-size: 14px;
Expand Down
13 changes: 1 addition & 12 deletions app/javascript/styles/mastodon/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,6 @@ code {
border-radius: 4px;
padding: 10px 16px;

&::placeholder {
color: $dark-text-color;
opacity: 1;
}

&:invalid {
box-shadow: none;
}
Expand Down Expand Up @@ -607,8 +602,7 @@ code {
inset-inline-end: 3px;
top: 1px;
padding: 10px;
padding-bottom: 9px;
font-size: 16px;
font-size: 14px;
color: $dark-text-color;
font-family: inherit;
pointer-events: none;
Expand All @@ -626,11 +620,6 @@ code {
inset-inline-end: 0;
bottom: 1px;
width: 5px;
background-image: linear-gradient(
to right,
rgba(darken($ui-base-color, 10%), 0),
darken($ui-base-color, 10%)
);
}
}
}
Expand Down
10 changes: 0 additions & 10 deletions app/javascript/styles/mastodon/rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ body.rtl {
direction: rtl;
}

.simple_form .label_input__append {
&::after {
background-image: linear-gradient(
to left,
rgba(darken($ui-base-color, 10%), 0),
darken($ui-base-color, 10%)
);
}
}

.simple_form select {
background: $ui-base-color
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(lighten($ui-base-color, 12%))}'/></svg>")
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/styles/mastodon/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ a.table-action-link {
}
}

&:nth-child(even) {
background: var(--background-color);
&:last-child {
border-radius: 0 0 4px 4px;
}

&__content {
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon/widgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid lighten($ui-base-color, 8%);
border: 1px solid var(--background-border-color);
border-radius: 4px;
padding: 15px;
text-decoration: none;
Expand Down

0 comments on commit 176ba98

Please sign in to comment.