-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevbar.css
More file actions
202 lines (176 loc) · 4.68 KB
/
devbar.css
File metadata and controls
202 lines (176 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/* DiscoDevBar for development environment */
.disco-devbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1001; /* Higher than top-nav (1000) to ensure it's above */
background: var(--bg-color-dark, #8e0000);
color: white;
font-size: 15px;
overflow: hidden;
}
.disco-devbar::before {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
45deg,
var(--bg-color-light, #b71c1c),
var(--bg-color-light, #b71c1c) 10px,
var(--bg-color-dark, #8e0000) 10px,
var(--bg-color-dark, #8e0000) 20px
);
animation: breathe 6s ease-in-out infinite;
}
/* Breathing animation for subtle pulsing effect */
@keyframes breathe {
0%, 100% {
opacity: 0.3;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.05);
}
}
.disco-devbar-error {
background: #d32f2f;
}
.disco-devbar-error::before {
background: repeating-linear-gradient(
45deg,
#d32f2f,
#d32f2f 10px,
#ff5722 10px,
#ff5722 20px
);
}
.disco-devbar-content {
position: relative;
max-width: 1100px;
margin: 0 auto;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
height: 40px;
min-height: 40px;
overflow: hidden;
}
/* DiscoDevBar title - centered */
.disco-devbar-title {
position: absolute;
left: 50%;
transform: translateX(-50%);
color: white;
font-weight: bold;
text-transform: uppercase;
}
/* Left container - aligns content to left */
.disco-devbar-container-left {
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
flex: 0 0 auto;
justify-content: flex-start;
}
/* Left container with expand - grows to fill space */
.disco-devbar-container-left.disco-devbar-container-expand {
flex: 1 1 auto;
min-width: 0;
}
/* Right container - aligns content to right */
.disco-devbar-container-right {
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
flex: 0 0 auto;
justify-content: flex-end;
}
/* Right container with expand - grows to fill space */
.disco-devbar-container-right.disco-devbar-container-expand {
flex: 1 1 auto;
min-width: 0;
}
/* Widget wrapper */
.disco-devbar-widget {
display: inline-flex;
align-items: center;
flex-shrink: 0;
}
/* Expandable widget wrapper - grows to fill available space */
.disco-devbar-widget-expand {
flex: 1 1 0;
min-width: 0;
}
/* DiscoDevBar links */
.disco-devbar-link {
color: white;
text-decoration: none;
font-weight: bold;
display: inline-flex;
align-items: center;
line-height: 1;
}
/* Content wrapper inside link - handles padding and hover */
.disco-devbar-link-content {
display: inline-flex;
align-items: center;
padding: 6px 8px;
transition: all 0.2s ease;
}
.disco-devbar-link:hover .disco-devbar-link-content {
background-color: orange;
color: black;
text-decoration: underline;
}
/* DiscoDevBar separators */
.disco-devbar-separator {
margin: 0 2px;
}
/* Icon spacing in links */
.disco-devbar-link-content i {
margin-right: 4px;
}
/* Plain text in devbar (non-link) */
.disco-devbar-text {
color: white;
font-weight: normal;
padding: 6px 8px;
}
/* Adjust top navigation when DiscoDevBar is present (public pages only) */
body:has(.disco-devbar):not(:has(.wrapper)) .top-nav {
top: 40px;
transition: top 0.3s ease;
}
/* Adjust content padding when DiscoDevBar is present (public pages only - exclude EasyAdmin) */
body:has(.disco-devbar):not(:has(.wrapper)) .content {
padding-top: calc(var(--header-height) + 40px + 40px); /* header height + DiscoDevBar height + original padding */
}
/* Adjust content padding on mobile when DiscoDevBar is present (public pages only - exclude EasyAdmin) */
@media (max-width: 768px) {
body:has(.disco-devbar):not(:has(.wrapper)) .content {
padding-top: calc(var(--header-height-mobile) + 40px + 40px);
}
}
/* Push down entire EasyAdmin layout to avoid overlap with DiscoDevBar */
body:has(.disco-devbar) .wrapper {
padding-top: 40px;
}
/* Add base transition for smooth adjustments */
.top-nav {
transition: top 0.3s ease;
}
/* Fix flash messages appearing under DiscoDevBar in EasyAdmin */
body:has(.disco-devbar) #flash-messages {
position: relative;
z-index: 1002; /* Higher than DiscoDevBar (1001) */
margin-top: 0; /* Reset any default margin */
}
/* Special handling for login page where flash messages use absolute positioning */
body.page-login:has(.disco-devbar) #flash-messages {
top: 40px; /* Height of DiscoDevBar */
}