-
Notifications
You must be signed in to change notification settings - Fork 389
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
Add completion marker to daily challenge profile counter #11780
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9fc4d20
Add completion marker to daily challenge profile counter
bdach b8adbac
Adjust radius of inner box
bdach 5f2ab58
Remove superfluous div
bdach e69ab6a
Apply review suggestions
bdach 18b2ecf
Merge branch 'master' into daily-challenge-completion-marker
bdach bf0333a
Invert checkmark colouring (and adjust sizing to match design better)
bdach 0600f1b
Only show completion indicator on user's own profile
bdach dfb9918
Fix mixin order
bdach 8e30dde
Simplify size spec using property-as-variable
bdach 3c70a3c
Merge branch 'master' into daily-challenge-completion-marker
nanaya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,31 @@ | |
background: hsl(var(--hsl-b4)); | ||
border-radius: @border-radius-large; | ||
min-width: 0; | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
padding: 3px; | ||
padding: 1px; | ||
border: 2px solid transparent; | ||
|
||
&--played-today { | ||
border-color: @osu-colour-lime-1; | ||
|
||
&::before { | ||
.fas(); | ||
.center-content(); | ||
background-color: @osu-colour-lime-1; | ||
border-radius: 50%; | ||
color: @osu-colour-b6; | ||
content: @fa-var-check; | ||
font-size: 8px; // icon size | ||
height: 16px; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
transform: translate(50%, -50%); | ||
width: $height; | ||
} | ||
} | ||
|
||
&__name { | ||
font-size: @font-size--normal; | ||
|
@@ -20,7 +42,7 @@ | |
} | ||
|
||
&__value-box { | ||
border-radius: @border-radius-large; | ||
border-radius: @border-radius-small; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adjusted as per mention in #11597:
|
||
background: hsl(var(--hsl-b6)); | ||
padding: 5px 10px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
while at it, this doesn't actually do anything, does this? The fa icon is already rounded and all
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 fontawesome icon is rounded but it has a hollow interior where the tick is. So without some hackage the border will peek out of the hollow interior, thus the
background-color
+border-radius
specs are supposed to cover up anything that's in the background (particularly the border).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.
oh. So that also explained the weirdly subtle black outline... 🤔
I suppose an alternative would be to use normal check mark (b6 colored) coupled with circle background (lime-1 colored), centered using
.center-content()
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.
Yeah that's a fair shout. Adjusted further in bf0333a.
I also took the opportunity to resize the tick itself because for whatever reason when using the pre-baked fontawesome
check-circle
the check was much larger than it actually was in the figma. It should be there-or-thereabouts matching now.