mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
add hover labels for select list label
This commit is contained in:
1 parent
c67dfbc67b
commit
4a09e311f8
2 files changed
+11
-3
No files matched your search
@@ -68,7 +68,7 @@ button:hover {
|
|||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.switch:before {
|
.switch:before, .label-with-hover-tip:before {
|
||||||
content: attr(data-hover);
|
content: attr(data-hover);
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -84,7 +84,7 @@ button:hover {
|
|||||||
top: 160%;
|
top: 160%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.switch:hover:before {
|
.switch:hover:before, .label-with-hover-tip:hover:before {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
@@ -188,6 +188,14 @@ button:hover {
|
|||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label-with-hover-tip {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 80px;
|
||||||
|
height: 17px;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.switch:last-of-type {
|
.switch:last-of-type {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
<div class="custom-select">
|
<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">
|
<select name="color_theme" id="color_theme">
|
||||||
<option value="classic" id="color_theme_classic">Classic</option>
|
<option value="classic" id="color_theme_classic">Classic</option>
|
||||||
<option value="accessible" id="color_theme_accessible">
|
<option value="accessible" id="color_theme_accessible">
|
||||||
|
|||||||
Reference in new issue
Block a user