dots-viewer: Use a dark theme

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7999>
This commit is contained in:
Thibault Saunier 2024-11-28 22:06:58 -03:00 committed by GStreamer Marge Bot
parent 61159bd992
commit 0bfc9a8350

View File

@ -20,10 +20,16 @@
margin: 0; margin: 0;
font-family: 'Lato', sans-serif; font-family: 'Lato', sans-serif;
text-align: center; text-align: center;
background-color: #1a1a1a;
color: #e0e0e0;
}
h1 {
color: #ffffff;
} }
.instructions { .instructions {
color: #fcfcfc; color: #e0e0e0;
position: absolute; position: absolute;
z-index: 100; z-index: 100;
bottom: 0px; bottom: 0px;
@ -41,6 +47,7 @@
border: none; border: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #1a1a1a;
} }
.overlay { .overlay {
@ -50,8 +57,7 @@
z-index: 1; z-index: 1;
top: 0; top: 0;
left: 0; left: 0;
background-color: rgb(0,0,0); background-color: rgba(0,0,0, 0.95);
background-color: rgba(0,0,0, 0.9);
overflow-x: hidden; overflow-x: hidden;
transition: 0.5s; transition: 0.5s;
visibility: "visible"; visibility: "visible";
@ -70,13 +76,13 @@
padding: 8px; padding: 8px;
text-decoration: none; text-decoration: none;
font-size: 36px; font-size: 36px;
color: #818181; color: #a0a0a0;
display: block; display: block;
transition: 0.3s; transition: 0.3s;
} }
.overlay a:hover, .overlay a:focus { .overlay a:hover, .overlay a:focus {
color: #f1f1f1; color: #ffffff;
} }
.overlay .closebtn { .overlay .closebtn {
@ -85,6 +91,24 @@
font-size: 30px; font-size: 30px;
} }
input[type="text"] {
background-color: #2a2a2a;
color: #e0e0e0;
border: 1px solid #404040;
padding: 8px;
border-radius: 4px;
margin: 10px 0;
}
input[type="text"]::placeholder {
color: #808080;
}
input[type="text"]:focus {
outline: none;
border-color: #0069ff;
}
@media screen and (max-height: 250000px) { @media screen and (max-height: 250000px) {
.overlay a {font-size: 20px} .overlay a {font-size: 20px}
.overlay .closebtn { .overlay .closebtn {
@ -97,14 +121,47 @@
input[type='checkbox'] { display: none; } input[type='checkbox'] { display: none; }
.wrap-collabsible { margin: 1.2rem 0; } .wrap-collabsible { margin: 1.2rem 0; }
.lbl-toggle { display: block; font-weight: bold; font-family: monospace; font-size: 1.2rem; text-transform: uppercase; text-align: center; padding: 1rem; color: #DDD; background: #0069ff; cursor: pointer; border-radius: 7px; transition: all 0.25s ease-out; } .lbl-toggle {
.lbl-toggle:hover { color: #FFF; } display: block;
.lbl-toggle::before { content: ' '; display: inline-block; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid currentColor; vertical-align: middle; margin-right: .7rem; transform: translateY(-2px); transition: transform .2s ease-out; } font-weight: bold;
font-family: monospace;
font-size: 1.2rem;
text-transform: uppercase;
text-align: center;
padding: 1rem;
color: #ffffff;
background: #1a4c9e;
cursor: pointer;
border-radius: 7px;
transition: all 0.25s ease-out;
}
.lbl-toggle:hover { background: #2161c9; }
.lbl-toggle::before {
content: ' ';
display: inline-block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid currentColor;
vertical-align: middle;
margin-right: .7rem;
transform: translateY(-2px);
transition: transform .2s ease-out;
}
.toggle:checked+.lbl-toggle::before { transform: rotate(90deg) translateX(-3px); } .toggle:checked+.lbl-toggle::before { transform: rotate(90deg) translateX(-3px); }
.collapsible-content { max-height: 0px; overflow: hidden; transition: max-height .25s ease-in-out; } .collapsible-content {
max-height: 0px;
overflow: hidden;
transition: max-height .25s ease-in-out;
}
.toggle:checked + .lbl-toggle + .collapsible-content { max-height: 999999999px; } .toggle:checked + .lbl-toggle + .collapsible-content { max-height: 999999999px; }
.toggle:checked+.lbl-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .toggle:checked+.lbl-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.collapsible-content .content-inner { background: rgba(0, 105, 255, .2); border-bottom: 1px solid rgba(0, 105, 255, .45); border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; padding: .5rem 1rem; } .collapsible-content .content-inner {
background: rgba(26, 76, 158, 0.2);
border-bottom: 1px solid rgba(26, 76, 158, 0.45);
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
padding: .5rem 1rem;
}
.collapsible-content p { margin-bottom: 0; } .collapsible-content p { margin-bottom: 0; }
</style> </style>
@ -147,11 +204,9 @@
<h1>GStreamer Pipeline graphs</h1> <h1>GStreamer Pipeline graphs</h1>
<div> <div>
<input type="text", id="search", placeholder="Search for pipeline"> <input type="text" id="search" placeholder="Search for pipeline">
</div> </div>
<div id="pipelines"></div> <div id="pipelines"></div>
</body> </body>
</html> </html>