-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor management styles for less specificity. #1
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
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 |
|---|---|---|
|
|
@@ -41,6 +41,31 @@ kbn-management-app { | |
|
|
||
| kbn-management-landing { | ||
| padding: 5px; | ||
| } | ||
|
|
||
| .management-panel-product { | ||
| margin-bottom: 10px; | ||
|
|
||
| .panel-body { | ||
|
Author
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 this case I think it makes sense to let |
||
| padding-bottom: 30px; | ||
| position: relative; | ||
| } | ||
| } | ||
|
|
||
| .management-section { | ||
| padding-left: 5px; | ||
| padding-right: 5px; | ||
| } | ||
|
Author
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 created the |
||
|
|
||
| .management-link { | ||
|
Author
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 created this new class so we can scope the typography-related styles to the link text itself. These styles previously belonged to |
||
| font-size: 17px; | ||
| line-height: 32px; | ||
| } | ||
|
|
||
| .panel-heading-icon { | ||
| font-size: 0.9em; | ||
| padding: 5px; | ||
| } | ||
|
|
||
| .product-overview { | ||
| color: @kibanaGray2; | ||
|
|
@@ -55,18 +80,8 @@ kbn-management-landing { | |
| position: absolute; | ||
| } | ||
|
|
||
| .panel-heading i { | ||
| font-size: 0.9em; | ||
| padding: 5px; | ||
| } | ||
|
|
||
| .management-section { | ||
| padding-left: 5px; | ||
| padding-right: 5px; | ||
| } | ||
|
|
||
| .management-section-info-expanded { | ||
| .panel-heading i { | ||
| .panel-heading-icon { | ||
| color: @black; | ||
| } | ||
|
|
||
|
|
@@ -75,18 +90,6 @@ kbn-management-landing { | |
| } | ||
| } | ||
|
|
||
| .panel-product { | ||
| margin-bottom: 10px; | ||
|
|
||
| .panel-body { | ||
| padding-bottom: 30px; | ||
| font-size: 17px; | ||
| line-height: 32px; | ||
| position: relative; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| kbn-management-objects { | ||
| form { | ||
| margin-bottom: @line-height-computed; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
By un-nesting these selectors we pave the way for refactoring them into reusable components in the (near?) future. Un-nesting them reduces specificity and makes it easier to move them around while being confident we're not breaking anything.
I created a new class name to enable us to un-nest the selector. I'm not entirely sure how
panel-productis intended to be used throughout the app, though, so this may not be the best decision... it's something I would like to ask you about.