Merge pull request #592 from cyrildtm/popupCSStweak

Popup css tweak
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2022-07-20 00:03:25 +02:00
commit 1e81b0abbb
2 files changed
+57 -3

No files matched your search

+56 -2
View File
@@ -69,9 +69,11 @@ button:hover {
border-radius: 0.25rem;
}
.switch:before {
.switch:before, .label-with-hover-tip:before {
content: attr(data-hover);
visibility: hidden;
opacity: 0;
transition: visibility 0.1s linear, opacity 0.1s linear;
width: 250px;
background-color: var(--secondary);
border-radius: 0.5rem;
@@ -83,8 +85,26 @@ button:hover {
top: 160%;
}
.switch:hover:before {
.switch:hover:before, .label-with-hover-tip:hover:before {
visibility: visible;
opacity: 1;
}
.fade-in {
opacity: 1;
animation-name: fadeInOpacity;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 2s;
}
@keyframes fadeInOpacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#advancedToggle {
@@ -124,6 +144,32 @@ button:hover {
border: 2px solid var(--secondary);
border-radius: 0.5rem;
padding: 1rem;
overflow-y: auto;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 1rem;
}
::-webkit-scrollbar-track {
background: #111; /* color of the tracking area */
}
::-webkit-scrollbar-thumb {
background-color: #333; /* color of the scroll thumb */
border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
}
::-webkit-scrollbar-thumb:hover {
background-color: #f22; /* color of the scroll thumb */
border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
}
#advancedLegend {
@@ -143,6 +189,14 @@ button:hover {
margin-bottom: 1rem;
}
.label-with-hover-tip {
position: relative;
display: inline-block;
width: 80px;
height: 17px;
margin-bottom: 1rem;
}
.switch:last-of-type {
margin-bottom: 0;
}
+1 -1
View File
@@ -137,7 +137,7 @@
</label>
<br/>
<div class="custom-select">
<label for="color_theme">Color theme:</label>
<label for="color_theme" class="label-with-hover-tip" data-hover="">Color theme:</label>
<select name="color_theme" id="color_theme">
<option value="classic" id="color_theme_classic">Classic</option>
<option value="accessible" id="color_theme_accessible">