Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8553a8

Browse filesBrowse files
committed
feature symfony#20161 add toolbar & profiler SVG style classes (havvg)
This PR was submitted for the 2.8 branch but it was merged into the 3.3-dev branch instead (closes symfony#20161). Discussion ---------- add toolbar & profiler SVG style classes | Q | A | | --- | --- | | Bug fix? | no | | New feature? | Technically, yes - but actually not | | BC breaks? | no | | Deprecations? | no | | Tests pass? | yes | | License | MIT | This allows the usage of SVG not only containing `path` elements. I opted for a generic solution using the two classes to apply to any SVG, one would like to use within the toolbar (`sf-toolbar-path`) and/or profiler (`sf-profiler-path`). Commits ------- 155a1fc add toolbar & profiler SVG style classes
2 parents 122fae8 + 155a1fc commit e8553a8
Copy full SHA for e8553a8

File tree

2 files changed

+13
-5
lines changed
Filter options

2 files changed

+13
-5
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ tr.status-warning td {
482482
margin-top: -4px;
483483
vertical-align: middle;
484484
}
485-
#header h1 svg path {
485+
#header h1 svg path,
486+
#header h1 svg .sf-svg-path {
486487
fill: #FFF;
487488
}
488489
#header .search {
@@ -669,7 +670,8 @@ tr.status-warning td {
669670
height: 24px;
670671
max-width: 24px;
671672
}
672-
#menu-profiler li a .label .icon svg path {
673+
#menu-profiler li a .label .icon svg path,
674+
#menu-profiler li a .label .icon svg .sf-svg-path {
673675
fill: #DDD;
674676
}
675677
#menu-profiler li a .label strong {
@@ -696,7 +698,9 @@ tr.status-warning td {
696698
color: #FFF;
697699
}
698700
#menu-profiler li.selected a .icon svg path,
699-
#menu-profiler li a:hover .icon svg path {
701+
#menu-profiler li.selected a .icon svg .sf-svg-path,
702+
#menu-profiler li a:hover .icon svg path,
703+
#menu-profiler li a:hover .icon svg .sf-svg-path {
700704
fill: #FFF;
701705
}
702706

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,15 @@
259259
color: #FFF;
260260
}
261261
.sf-toolbar-status-green svg path,
262+
.sf-toolbar-status-green svg .sf-svg-path,
262263
.sf-toolbar-status-red svg path,
263-
.sf-toolbar-status-yellow svg path {
264+
.sf-toolbar-status-red svg .sf-svg-path,
265+
.sf-toolbar-status-yellow svg path,
266+
.sf-toolbar-status-yellow svg .sf-svg-path {
264267
fill: #FFF;
265268
}
266-
.sf-toolbar-block-config svg path {
269+
.sf-toolbar-block-config svg path,
270+
.sf-toolbar-block-config svg .sf-svg-path {
267271
fill: #FFF;
268272
}
269273

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.