-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Refactor a few selectors. #24404
Refactor a few selectors. #24404
Changes from 2 commits
a0005f7
6c580bc
f160f34
715f693
cc9da79
6c3cb29
97b486b
7dc2d9c
8fd794a
1071175
403690f
87c758b
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ kbd { | |
@include border-radius($border-radius-sm); | ||
@include box-shadow($kbd-box-shadow); | ||
|
||
kbd { | ||
& & { | ||
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. This is weird at first, but probably fine. |
||
padding: 0; | ||
font-size: 100%; | ||
font-weight: $nested-kbd-font-weight; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,16 +26,10 @@ | |
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342 | ||
// See also https://github.com/twbs/bootstrap/issues/17695 | ||
|
||
// When fading in the modal, animate it to slide down | ||
&.fade .modal-dialog { | ||
@include transition($modal-transition); | ||
transform: translate(0, -25%); | ||
.modal-open & { | ||
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. In general I'm not a fan of this type of nesting—usually ends up more difficult to parse in more complicated rulesets. 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 think we need to keep this; it doesn't complicate things a lot and along with the complexity rule we should be fine. I plan to enable that later too. I removed the |
||
overflow-x: hidden; | ||
overflow-y: auto; | ||
} | ||
&.show .modal-dialog { transform: translate(0, 0); } | ||
} | ||
.modal-open .modal { | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
} | ||
|
||
// Shell div to position the modal with bottom padding | ||
|
@@ -45,6 +39,15 @@ | |
margin: $modal-dialog-margin; | ||
// allow clicks to pass through for custom click handling to close modal | ||
pointer-events: none; | ||
|
||
// When fading in the modal, animate it to slide down | ||
.modal.fade & { | ||
@include transition($modal-transition); | ||
transform: translate(0, -25%); | ||
} | ||
.modal.show & { | ||
transform: translate(0, 0); | ||
} | ||
} | ||
|
||
// Actual modal | ||
|
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.
I think we can change this to
margin-top: 0;
andmargin-bottom: 0;
. Can't imagine we're adding horizontal margin to any headings.