Skip to content

Commit 10b8928

Browse files
committed
Tweak the design of tabs
1 parent 7926c9a commit 10b8928

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/exception.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
{# these styles are needed to override some styles from Exception page, which wasn't
2727
updated yet to the new style of the Symfony Profiler #}
2828
<style>
29-
.tab-navigation li { border: 0; font-size: 14px; }
29+
.tab-navigation li { background: none; border: 0; font-size: 14px; }
30+
.tab-navigation li.active { border-radius: 6px; }
3031
.tab-navigation li.active .badge { background-color: var(--selected-badge-background); color: var(--selected-badge-color); }
3132
</style>
3233

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
{% if request_collector and request_collector.forwardtoken -%}
9090
{% set forward_profile = profile.childByToken(request_collector.forwardtoken) %}
9191
{% set controller = forward_profile ? forward_profile.collector('request').controller : 'n/a' %}
92-
<div class="status status-compact">
92+
<div class="status status-compact status-compact-forward">
9393
<span class="icon icon-forward">{{ source('@WebProfiler/Icon/forward.svg') }}</span>
9494

9595
Forwarded to

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,8 @@ tr.status-warning td {
10531053
padding: 13px 15px 10px;
10541054
position: relative;
10551055
}
1056-
#summary .status-compact:before {
1057-
top: 0;
1056+
#summary .status-compact.status-compact-forward {
1057+
padding: 10px 15px;
10581058
}
10591059
#summary .status + .status {
10601060
margin-top: 10px;
@@ -1538,7 +1538,7 @@ tr.status-warning td {
15381538
display: inline-flex;
15391539
flex-wrap: wrap;
15401540
margin: 0 0 15px;
1541-
padding: 2px;
1541+
padding: 0;
15421542
user-select: none;
15431543
-webkit-user-select: none;
15441544
}
@@ -1547,11 +1547,13 @@ tr.status-warning td {
15471547
margin: 0 0 10px;
15481548
}
15491549
.tab-navigation li {
1550+
box-shadow: none;
1551+
transition: box-shadow .05s ease-in, background-color .05s ease-in;
15501552
cursor: pointer;
15511553
font-weight: 500;
15521554
list-style: none;
15531555
margin: 0;
1554-
padding: 3.5px 14px;
1556+
padding: 4px 14px;
15551557
position: relative;
15561558
text-align: center;
15571559
z-index: 1;
@@ -1591,12 +1593,15 @@ tr.status-warning td {
15911593
}
15921594
.tab-navigation li.active {
15931595
background-color: var(--tab-active-background);
1594-
border-radius: 4px;
1595-
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15), 0 3px 1px 0 rgba(0, 0, 0, 0.05);
1596+
border-radius: 6px;
1597+
box-shadow: inset 0 0 0 1.5px var(--tab-active-border-color);
15961598
color: var(--tab-active-color);
15971599
position: relative;
15981600
z-index: 1;
15991601
}
1602+
.theme-dark .tab-navigation li.active {
1603+
box-shadow: inset 0 0 0 1px var(--tab-border-color);
1604+
}
16001605
.tab-content > *:first-child {
16011606
margin-top: 0;
16021607
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy