File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1515 </head >
1616 <body >
1717 <script async >
18- document .body .classList .add (localStorage .getItem (' symfony/profiler/theme' ), localStorage .getItem (' symfony/profiler/width' ));
18+ document .body .classList .add (localStorage .getItem (' symfony/profiler/theme' ) || ' theme-light ' , localStorage .getItem (' symfony/profiler/width' ) || ' width-normal ' );
1919 </script >
2020
2121 {% block body ' ' %}
Original file line number Diff line number Diff line change 11<style >
22#open-settings {
3- color : var (--text -muted );
3+ color : var (--color -muted );
44 display : block ;
55 margin : 15px 15px 5px ;
66}
8484.modal-content .form-help + h4 {
8585 margin-top : 45px ;
8686}
87+
88+ @media (max-width : 768px ) {
89+ #open-settings {
90+ color : transparent ;
91+ }
92+ #sidebar :hover #open-settings , #sidebar .expanded #open-settings {
93+ color : var (--color-muted );
94+ }
95+ #open-settings :before {
96+ content : ' \2699 ' ;
97+ font-weight : bold ;
98+ font-size : 25px ;
99+ color : var (--color-muted );
100+ }
101+ #sidebar :hover #open-settings :before , #sidebar .expanded #open-settings :before {
102+ content : ' ' ;
103+ }
104+ }
87105</style >
88106
89107<a href =" #" id =" open-settings" data-triger =" profiler-settings" >Settings</a >
141159 let modalWrapper = document .getElementsByClassName (' modal-wrap' )[0 ]
142160
143161 openModalButton .addEventListener (' click' , function (event ) {
144- document .getElementById (' settings-' + localStorage .getItem (' symfony/profiler/theme' )).checked = ' checked' ;
145- document .getElementById (' settings-' + localStorage .getItem (' symfony/profiler/width' )).checked = ' checked' ;
162+ document .getElementById (' settings-' + ( localStorage .getItem (' symfony/profiler/theme' ) || ' theme-light ' )).checked = ' checked' ;
163+ document .getElementById (' settings-' + ( localStorage .getItem (' symfony/profiler/width' ) || ' width-normal ' )).checked = ' checked' ;
146164
147165 modalWindow .classList .toggle (' visible' );
148166 event .preventDefault ();
You can’t perform that action at this time.
0 commit comments