-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Added .display-block, .display-inline-block, .display-inline #19665
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
// | ||
|
||
.display-block { | ||
display: block; |
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.
Utilities should use !important
Given the naming of some of the other utilities, perhaps these should be |
@@ -60,11 +60,11 @@ Align images with the [helper float classes]({{ site.baseurl }}/components/utili | |||
{% endhighlight %} | |||
|
|||
<div class="bd-example bd-example-images"> | |||
<img data-src="holder.js/200x200" class="img-rounded center-block" alt="A generic square placeholder image with rounded corners"> |
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 uses of .center-block
need to be replaced with .m-x-auto
(and adding .display-block
might be necessary too).
Thanks for the feedback, made adjustments. HoundCI is dinging me for the |
@@ -129,7 +129,7 @@ <h2 class="featurette-heading">First featurette heading. <span class="text-muted | |||
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p> | |||
</div> | |||
<div class="col-md-5"> | |||
<img class="featurette-image img-fluid center-block" data-src="holder.js/500x500/auto" alt="Generic placeholder image"> | |||
<img class="featurette-image img-fluid m-x-auto" data-src="holder.js/500x500/auto" alt="Generic placeholder image"> |
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.
So these examples render okay without .d-block
?
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.
Correct, these rendered as expected w/o need for additional .d-block
(same for line 90 in docs/index.html
). Only the docs/images.md
needed it to match previous styling.
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.
Great!
Merged the |
Merged the Thanks! |
Per #19443
Cleans up lingering doc/scss references to
.center-block
(post #19102)Per #19343
Added new
.display-<display-type>
classesRequest was to combine them in one PR, but they're in two commits if either feature is wanted without the other.