Skip to content

Commit e54c9af

Browse files
committed
Optimize search bar
1 parent 0653e7e commit e54c9af

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

src/JavascriptRenderer.php

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,84 @@ public function renderHead()
4545
div.phpdebugbar-header, a.phpdebugbar-restore-btn {
4646
background: #efefef url(data:image/svg+xml;base64,$base64Logo) no-repeat 5px 4px / 20px 20px;
4747
}
48+
49+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar {
50+
width: calc(100% - 20px);
51+
padding: 4px 0px 4px;
52+
height: 20px;
53+
border: 1px solid #ddd;
54+
border-bottom: 0px;
55+
background-color: #e8e8e8;
56+
border-radius: 5px 5px 0px 0px;
57+
}
58+
59+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar input {
60+
width: calc(100% - 48px);
61+
margin-left: 0px;
62+
border-radius: 3px;
63+
padding: 2px 6px;
64+
height: 15px;
65+
}
66+
67+
.phpdebugbar-widgets-toolbar i.phpdebugbar-fa.phpdebugbar-fa-search {
68+
position: relative;
69+
top: -1px;
70+
padding: 0px 10px;
71+
}
72+
73+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter,
74+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter.phpdebugbar-widgets-excluded {
75+
position: relative;
76+
top: -48px;
77+
display: inline-block;
78+
background-color: #6d6d6d;
79+
margin-left: 3px;
80+
border-radius: 3px;
81+
padding: 5px 8px 4px;
82+
text-transform: uppercase;
83+
font-size: 10px;
84+
text-shadow: 1px 1px #585858;
85+
transition: background-color .25s linear 0s, color .25s linear 0s;
86+
color: #FFF;
87+
88+
-webkit-touch-callout: none;
89+
-webkit-user-select: none;
90+
-khtml-user-select: none;
91+
-moz-user-select: none;
92+
-ms-user-select: none;
93+
user-select: none;
94+
}
95+
96+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter[rel="info"],
97+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter.phpdebugbar-widgets-excluded[rel="info"] {
98+
background-color: #5896e2;
99+
}
100+
101+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter[rel="error"],
102+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter.phpdebugbar-widgets-excluded[rel="error"] {
103+
background-color: #fa5661;
104+
}
105+
106+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter[rel="warning"],
107+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter.phpdebugbar-widgets-excluded[rel="warning"] {
108+
background-color: #f99400;
109+
}
110+
111+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter:hover {
112+
color: #FFF;
113+
opacity: 0.85;
114+
}
115+
116+
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter.phpdebugbar-widgets-excluded {
117+
opacity: 0.45;
118+
}
119+
120+
.phpdebugbar-widgets-toolbar > .fa {
121+
width: 25px;
122+
font-size: 15px;
123+
color: #555;
124+
text-align: center;
125+
}
48126
</style>
49127
css;
50128

0 commit comments

Comments
 (0)