-
Notifications
You must be signed in to change notification settings - Fork 53
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
DATAUP-246: css to sass: css cleanup, part 1 #1867
Conversation
Author : erik | ||
*/ | ||
|
||
.kb-advanced-view-cell .kb-panel-container[data-element=parameters-group] > div.panel-collapse > .panel-body { |
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.
moved this into appCell.css
'kb_service/utils', | ||
'kb_service/client/workspace', | ||
'css!kbase/css/appCell.css', | ||
'css!./styles/main.css', |
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.
consolidated the styles in ./styles/main.css
into kbase/css/appCell.css
and removed /styles/main.css
@@ -26,7 +26,6 @@ define([ | |||
'kb_service/client/workspace', | |||
'./appCell', | |||
'css!kbase/css/appCell.css', | |||
'css!./styles/main.css', |
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.
file has no css content => deleted
@@ -1,419 +0,0 @@ | |||
/* Wrapper class |
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.
Moved all these styles into appCell.css
. The majority mimic styles that were already in that file.
@@ -7,24 +7,30 @@ | |||
font-family: 'Oxygen', sans-serif; | |||
} | |||
|
|||
.kb-app-cell .kb-app-warning { | |||
.kb-app-cell .kb-app-warning, |
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 majority of new content in this file comes from editor cell css file, and mimics the existing .kb-app-cell
styles.
} | ||
*/ | ||
|
||
.btn.kb-flat-btn:hover { |
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.
overwritten in next declaration. doh!
text-decoration-style: solid; | ||
text-decoration-color: red; |
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.
invalid
|
||
/* margin left doesn't really seeem to play well */ | ||
|
||
.btn-toolbar { | ||
margin-left: 0; | ||
padding-left: -5px; |
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.
cannot use negative units for padding
@@ -1,181 +0,0 @@ | |||
/* Wrapper class |
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.
this file is unused
color: #FFF; | ||
background-color: rgb(209, 82, 65); | ||
border-bottom: 6px rgb(209, 82, 65) solid; | ||
margin-bottom: 0; | ||
} | ||
|
||
.btn.kb-app-cell-btn.btn-danger.active:hover { |
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.
repeated two stanzas below
margin-left: 0px; | ||
margin-right: 4px; | ||
font-family: "FontAwesome"; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-size: 90%; | ||
width: 12px; | ||
color: silver; | ||
line-height: 1; | ||
vertical-align: baseline; | ||
content: "\f078 "; | ||
} |
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.
identical to .kb-app-cell .panel-title > [data-toggle="collapse"]
below
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.
Oh dang what a satisfying cleanup pass already! So many xcolor and xmargin and xelement_that_somedev_was_too_lazy_to_properly_remove :P
Thanks for all the comments it helps to review all of these changes. Looks good overall to me
dfe05ab
to
d7a2779
Compare
…n/static/kbase/css/appCell.css` Validate appCell.css and fix errors
…pHelper.css, buttons.css, contigBrowserStyles.css, kbaseJobLog.css, kbaseNotify.css, kbaseStylesheet.css, and kbaseTour.css. Also fixed errors in kbase-extension/static/kbase/custom/custom.css.
d7a2779
to
6486a6a
Compare
Kudos, SonarCloud Quality Gate passed!
|
Description of PR purpose/changes
Cleaning up the existing CSS files prior to conversion to SCSS.
Splitting this work up into small chunks to make it less of a nightmare to PR.
First commit:
appCell.css
file. Fixed up errors inappCell.css
and reworked the css to combine duplicated statements.Second commit:
Jira Ticket / Issue
https://kbase-jira.atlassian.net/browse/DATAUP-246
Testing Instructions
Dev Checklist:
Updating Version and Release Notes (if applicable)
N/A