Skip to content

Commit

Permalink
minor #9347 [WebProfilerBundle] Small bugfix in CSS: don't make links…
Browse files Browse the repository at this point in the history
… bold. (bobdenotter)

This PR was merged into the 2.3 branch.

Discussion
----------

[WebProfilerBundle] Small bugfix in CSS: don't make links bold.

If the CSS in your application has something like `a { font-weight: bold; }` to make links bold by default, they will also show up **bold** in the profilers toolbar, which doesn't look right. This patch explicitly sets the font-weight to 'normal', as it should be.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

984566d Add media-query for printing: Do not print the toolbar.
cf1b7cf Update toolbar.css.twig
b6738b6 Set the font-weight for links to 'normal', to prevent ugly bold links.
  • Loading branch information
fabpot committed Nov 9, 2013
2 parents 25160e3 + 984566d commit d7db245
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -181,6 +181,7 @@
.sf-toolbar-block .sf-toolbar-icon > a,
.sf-toolbar-block .sf-toolbar-icon > span {
display: block;
font-weight: normal;
text-decoration: none;
margin: 0;
padding: 5px 8px;
Expand All @@ -195,6 +196,10 @@
color: black !important;
}

.sf-toolbar-block .sf-toolbar-icon > a[href]:after {
content: "";
}

.sf-toolbar-block .sf-toolbar-icon img {
border-width: 0;
vertical-align: middle;
Expand Down Expand Up @@ -361,3 +366,11 @@
display: none;
}
}

/***** Media query print: Do not print the Toolbar. *****/
@media print {
.sf-toolbar {
display: none;
visibility: hidden;
}
}

0 comments on commit d7db245

Please sign in to comment.