Skip to content
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

Add classes and ID's for common elements #960

Merged
merged 2 commits into from
Oct 14, 2013

Conversation

kevinburke
Copy link
Contributor

This should aid theme developers in developing plugins for Jenkins by adding
CSS classes and ID's to the dom. Developers can then use these to more
specifically target elements that they want.

For example, the "Console Output" was a raw <pre> tag embedded in a <table>.
Styling it required CSS like so:

#main-panel > pre {

Sadly this will apply to any <pre> elements nested directly under the
"#main-panel" ID; there's no way to get more specific to the console output.

With this change you can style the console output by writing:

.console-output {

Which is much more direct (and more efficient for browsers to render).

A similar treatment is applied to a number of elements in the jenkins UI.

This should aid theme developers in developing plugins for Jenkins by adding
CSS classes and ID's to the dom. Developers can then use these to more
specifically target elements that they want.

For example, the "Console Output" was a raw <pre> tag embedded in a <table>.
Styling it required CSS like so:

    #main-panel > pre {

Sadly this will apply to any <pre> elements nested directly under the
"#main-panel" ID; there's no way to get more specific to the console output.

With this change you can style the console output by writing:

    .console-output {

Which is much more direct (and more efficient for browsers to render).

A similar treatment is applied to a number of elements in the jenkins UI.
@cloudbees-pull-request-builder

core » jenkins_main_trunk #1259 SUCCESS
This pull request looks good

@rachelslurs
Copy link

Excited to see this happen...

@chr0n1x
Copy link

chr0n1x commented Oct 3, 2013

BUMP. I am very excited for this too.

@cloudbees-pull-request-builder

core » jenkins_main_trunk #1278 SUCCESS
This pull request looks good

@mgodwin
Copy link

mgodwin commented Oct 7, 2013

+1

@kyleconroy
Copy link

👍 Looks good to me

olivergondza added a commit that referenced this pull request Oct 14, 2013
Add classes and ID's for common elements
@olivergondza olivergondza merged commit 8445725 into jenkinsci:master Oct 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants