Skip to content

Commit

Permalink
change poll form element colors to fit with the rest of the ui (masto…
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Wolf authored Jul 24, 2023
1 parent 6b2952d commit 80809ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions app/javascript/styles/mastodon/basics.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ a {
button {
font-family: inherit;
cursor: pointer;

&:focus:not(:focus-visible) {
outline: none;
}
}

.app-holder {
Expand Down
17 changes: 10 additions & 7 deletions app/javascript/styles/mastodon/polls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
&__input {
display: inline-block;
position: relative;
border: 1px solid $ui-primary-color;
border: 1px solid $ui-button-background-color;
box-sizing: border-box;
width: 18px;
height: 18px;
Expand All @@ -121,15 +121,10 @@
border-radius: 4px;
}

&.active {
border-color: $valid-value-color;
background: $valid-value-color;
}

&:active,
&:focus,
&:hover {
border-color: lighten($valid-value-color, 15%);
border-color: $ui-button-focus-background-color;
border-width: 4px;
}

Expand Down Expand Up @@ -241,6 +236,14 @@
color: $action-button-color;
border-color: $action-button-color;
margin-inline-end: 5px;

&:hover,
&:focus,
&.active {
border-color: $action-button-color;
background-color: $action-button-color;
color: $ui-button-color;
}
}

li {
Expand Down

0 comments on commit 80809ef

Please sign in to comment.