Skip to content

Commit 675a12e

Browse files
committed
hover modal
1 parent 3eaabc4 commit 675a12e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/ufs_statistic.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,16 @@ li:hover .show-on-hover {
8888
left: 0;
8989
width: 100%;
9090
height: 100%;
91-
background: rgba(0, 0, 0, 0.5);
9291
flex-direction: column;
9392
align-items: center;
9493
justify-content: center;
9594
z-index: 9999;
9695
}
9796

97+
.modal:has(.modal-content:hover) {
98+
background: rgba(0, 0, 0, 0.5);
99+
}
100+
98101
.modal-content {
99102
background: #2c2c2c;
100103
padding: 20px;
@@ -108,6 +111,12 @@ li:hover .show-on-hover {
108111
display: flex;
109112
flex-direction: column;
110113
align-items: center;
114+
opacity: 0.05;
115+
transition: opacity 0.1s ease;
116+
}
117+
118+
.modal-content:hover {
119+
opacity: 1;
111120
}
112121

113122
.modal-header {

0 commit comments

Comments
 (0)