-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update CSS to pre-split version #31
Conversation
5182727
to
ead45fc
Compare
behave_html_formatter/behave.css
Outdated
h3.failed, | ||
#behave-header.failed { |
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.
h3.failed, | |
#behave-header.failed { | |
.failed { |
Can't we simply make this generic? I believe, CSS linters usually complain about over-specification.
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 does not work unfortunately. With important it overwrites all other rules setting background to class failed, without it it has no effect, as it is overridden by rule:
.behave #behave-header, td #behave-header, th #behave-header {
background: #65c400;
...
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 copied matched rule, appended .failed (or .undefined) and it seems to work. Not sure, if that is better.
behave_html_formatter/behave.css
Outdated
h3.failed, #behave-header.failed { | ||
background: #c20000 !important; | ||
} | ||
h3.undefined, #behave-header.undefined { |
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.
h3.undefined, #behave-header.undefined { | |
.undefined { |
Same here. Thou shalt not over-specify.
There were some fixes to CSS sting in html.py that were not reflected to behave.css. Add missing definitions, as without them failed HTML is too green and links are not underlined (thus not visually clickable unless mouse hovered).
Awesome, thanks! 💯 |
There were some fixes to CSS stirng in html.py that were not reflected to behave.css. Add missing definitions, as without them failed HTML is too green and links are not underlined (thus not visually clickable unless mouse hovered).