-
Notifications
You must be signed in to change notification settings - Fork 0
New Copy & Run button styles implementation #568
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
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 this works fine (other than the one small comment). I don't know a ton about this code though.
static/prism.less
Outdated
top: 0 !important; | ||
right: 0 !important; | ||
border-left: 1px #dfdfdf solid; | ||
border-bottom: 1px #dfdfdf solid; |
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.
Can you fix this indenting?
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.
Fixed, thanks!
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.
static/prism.less
Outdated
> .toolbar { | ||
line-height: 0; | ||
top: 0 !important; | ||
right: 0 !important; |
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.
Are the !important
necessary? If yes right now, can we use a more specific selector to override the other styles, or are there other styles that should be removed?
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.
Fixed, thanks
static/prism.less
Outdated
color: #858585 !important; | ||
padding: .35em 2.25em !important; | ||
box-shadow: none !important; | ||
border-radius: 0 !important; |
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.
Same thing for the !important
in the rest of this file. We should avoid them if at all possible.
What is not right, the style or Run button is missed?
@chasenlehara did you update bit-docs-html-canjs/make-example.js Line 31 in 5543af3
|
@chasenlehara I updated the styles, for notes, buttons toolbar is a sibling to the collapsible bar parent. |
Fixes #561
Depends on bit-docs/bit-docs-html-codepen-link#14