Skip to content
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

adjusts search result bookmark, thumbnail padding #2125

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

tampakis
Copy link
Member

Closes #2124

cbeer
cbeer previously requested changes Aug 13, 2019
@@ -13,7 +13,7 @@
// bookmarks checkbox on index, give it some
// lower margin when it collapses
.index-document-functions {
margin-bottom: ($line-height-base / 2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect we want to use $spacing and its variants here, instead of hard-coding a rem value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is spacing in terms of rem values? That is another option. You will see some hard-coded rem values in Bootstrap 4 variables file for spacing/padding though, it's not unheard of.

Using $spacing is a way of making sure you are using consistent spacing values -- but if we just want to make it consistent with what was in earlier bootstrap 3 versions of blacklight (where things may NOT have been consistent with each other) without setting up that whole "$spacing regime")...

I think in this case using hard-coded rem may be legit, fixing the bug that was there before without making anything worse than it was before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I converted the rem values to functions of $spacer. $spacer defaults to 0.5rem.

@camillevilla camillevilla merged commit 4292210 into master Sep 12, 2019
@camillevilla camillevilla deleted the 2124-line-height-base branch September 12, 2019 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't use $line-height-base for padding/margins
4 participants