-
Notifications
You must be signed in to change notification settings - Fork 393
Remove yellow border from wiki search text box when unfocused and added styling when focused. #11132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tle box shadow, to enhance user interaction.
resources/css/bem/wiki-search.less
Outdated
border: @_border-size solid @osu-colour-b6; | ||
|
||
&:focus-within { | ||
box-shadow: 0 0 10px @osu-colour-orange-1; | ||
border: @_border-size solid @osu-colour-orange-1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the style doesn't quite match with beatmap search box (wrong border size, rounding, and colour). Also the colour should use page hue css variable, not actual orange.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resources/css/bem/wiki-search.less
Outdated
display: flex; | ||
flex-direction: row; | ||
|
||
padding: 13px @_gutter; | ||
font-size: @font-size--wiki-search; | ||
background-color: @osu-colour-b6; | ||
|
||
border: @_border-size solid @osu-colour-orange-1; | ||
border: 1px solid @osu-colour-b6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update @_border-size
instead otherwise the suggestion box would have wrong alignment
also don't use @osu-colour-
anymore. New codes should always use the css variable. Adding more lines that need update isn't helping.
resources/css/bem/wiki-search.less
Outdated
border: 1px solid @osu-colour-b6; | ||
|
||
&:focus-within { | ||
box-shadow: 0 0 10px @osu-colour-h2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matching the colour with beatmap search would be preferred but I'll probably refactor the search box later anyway so it's probably fine for now (if not a bit weird when it changes again later)
@danielmyren still interested in finishing this PR? |
This pull request addresses issue #10238
Changes Made: