-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
XWIKI-22674: Search facets item count misalignment #3758
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -716,7 +716,6 @@ a.search-result-highlightAll:after { | |
color: $theme.titleColor; | ||
cursor: pointer; | ||
line-height: 1.4em; | ||
margin: 0 .2em; | ||
display: flex; | ||
justify-content: space-between; | ||
position: relative; | ||
|
@@ -758,12 +757,16 @@ a.search-result-highlightAll:after { | |
.search-facet-body li { | ||
display: flex; | ||
flex-wrap: wrap; | ||
padding: .1em .2em; | ||
padding: .1em 0; | ||
} | ||
|
||
.search-facet .search-facet-header .facet-toggler, button.facet-value-toggler { | ||
background: transparent; | ||
transition: background-color .2s ease-in-out; | ||
/* We overwrite the default xs-button style to make sure the icon is properly aligned on the right of the element. | ||
By default there is a 5px padding on each side. */ | ||
padding-right: 0; | ||
padding-left: 10px; | ||
} | ||
|
||
.search-facet .search-facet-header .facet-toggler:active, button.facet-value-toggler:active { | ||
|
@@ -845,8 +848,12 @@ body.content.preference-underlining-only-inline-links #xwikicontent .search-face | |
} | ||
|
||
.search-facet-body .itemCount { | ||
padding: .1em 0; | ||
padding: .2em; | ||
margin-left: auto; | ||
background-color: $theme.highlightColor; | ||
border-radius: 7px; /* Same value as @border-radius-base from Flamingo. */ | ||
font-size: 0.8em; | ||
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. Same question for the font-size. 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. Here it's the 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. Shouldn't we start adding a common mechanism asap instead of hard-coding them more and more? 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. I'd rather introduce them all at once so that we don't duplicate things or have inconsistent ways to provide them. If that's okay with you, I think it'd make sense to put this PR on hold (as a draft) as long as XWIKI-22667 is not done. This ticket could be too high priority to wait for this though. WDYT? |
||
align-self: center; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
|
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.
Can't we use a variable from a theme here instead of a hard-coded value?
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.
It's a CSS SSX, so we can't use LESS variables directly:
We would need to migrate it to a LESS SSX. In order to do so, we'd need to remove all the references to old color theme variables (which are in the format
$theme.<something>
) and find an equivalent in the LESS variables we have. It's a bit beyond the scope of this PR, and I'm not really eager to move things to LESS knowing that we'll soon want to get back to regular CSS...Note that this situation (with the exact same comment) has already been encountered and solved like this:
https://github.com/search?q=repo%3Axwiki%2Fxwiki-platform+Same+value+as+%40border-radius-base+from+Flamingo.&type=code