Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc5a65b

Browse files
committed
Merge branch '2.8' into 3.1
* 2.8: Update profiler's layout to use flexbox [Yaml] Remove legacy code
2 parents dfd1d2d + 59d6784 commit cc5a65b

File tree

2 files changed

+34
-31
lines changed

2 files changed

+34
-31
lines changed

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

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:1
1717

1818
{# Basic styles
1919
========================================================================= #}
20+
html, body {
21+
height: 100%;
22+
width: 100%;
23+
}
2024
body {
2125
background-color: #F9F9F9;
2226
color: #222;
27+
display: flex;
28+
flex-direction: column;
2329
{{ mixins.sans_serif_font|raw }}
2430
font-size: 14px;
2531
line-height: 1.4;
@@ -405,16 +411,34 @@ tr.status-warning td {
405411
max-width: 1300px;
406412
padding-right: 15px;
407413
}
414+
#header {
415+
flex: 0 0 auto;
416+
}
417+
#header .container {
418+
display: flex;
419+
flex-direction: row;
420+
justify-content: space-between;
421+
}
422+
#summary {
423+
flex: 0 0 auto;
424+
}
408425
#content {
409-
min-height: 1024px;
410-
overflow: hidden;
426+
height: 100%;
427+
}
428+
#main {
429+
display: flex;
430+
flex-direction: row-reverse;
431+
min-height: 100%;
432+
}
433+
#sidebar {
434+
flex: 0 0 220px;
411435
}
412436
#collector-wrapper {
413-
float: left;
414-
width: 100%;
437+
flex: 0 1 100%;
438+
min-width: 0;
415439
}
416440
#collector-content {
417-
margin: 0 0 30px 220px;
441+
margin: 0 0 30px 0;
418442
padding: 14px 0 14px 20px;
419443
}
420444

@@ -432,7 +456,6 @@ tr.status-warning td {
432456
color: #FFF;
433457
font-weight: normal;
434458
font-size: 21px;
435-
float: left;
436459
margin: 0;
437460
padding: 10px 10px 8px;
438461
}
@@ -449,7 +472,6 @@ tr.status-warning td {
449472
fill: #FFF;
450473
}
451474
#header .search {
452-
float: right;
453475
padding-top: 11px;
454476
}
455477
#header .search input {
@@ -519,10 +541,7 @@ tr.status-warning td {
519541
#sidebar {
520542
background: #444;
521543
color: #CCC;
522-
float: left;
523-
margin-bottom: -99999px; {# needed for 'same-height columns' trick #}
524-
margin-left: -100%;
525-
padding-bottom: 99999px; {# needed for 'same-height columns' trick #}
544+
padding-bottom: 30px;
526545
position: relative;
527546
width: 220px;
528547
z-index: 9999;
@@ -605,7 +624,6 @@ tr.status-warning td {
605624
#menu-profiler li {
606625
position: relative;
607626
margin-bottom: 0;
608-
width: 220px;
609627
}
610628
#menu-profiler li a {
611629
border: solid transparent;
@@ -939,17 +957,13 @@ table.logs .sf-call-stack abbr {
939957
}
940958

941959
@media (max-width: 768px) {
942-
#collector-content {
943-
margin-left: 50px;
944-
}
945-
946960
#sidebar {
947-
width: 50px;
948-
overflow-y: hidden;
949-
transition: width 200ms ease-out;
961+
flex-basis: 50px;
962+
overflow-x: hidden;
963+
transition: flex-basis 200ms ease-out;
950964
}
951965
#sidebar:hover, #sidebar.expanded {
952-
width: 220px;
966+
flex-basis: 220px;
953967
}
954968

955969
#sidebar-search {

src/Symfony/Component/Yaml/Parser.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,6 @@ public function parse($value, $flags = 0)
278278
throw $e;
279279
}
280280

281-
if (is_array($value)) {
282-
$first = reset($value);
283-
if (is_string($first) && 0 === strpos($first, '*')) {
284-
$data = array();
285-
foreach ($value as $alias) {
286-
$data[] = $this->refs[substr($alias, 1)];
287-
}
288-
$value = $data;
289-
}
290-
}
291-
292281
if (isset($mbEncoding)) {
293282
mb_internal_encoding($mbEncoding);
294283
}

0 commit comments

Comments
 (0)