mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-25 08:06:51 +00:00
Make preview controls fade away when not hovered
This commit is contained in:
@@ -239,6 +239,17 @@ nav > .toggle span {
|
||||
width: 100%;
|
||||
right: 0;
|
||||
padding: 0 5px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.1s;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.preview-panel .panel-controls > * {
|
||||
pointer-events: initial;
|
||||
}
|
||||
|
||||
.preview-panel:hover .panel-controls {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.panel-controls > *:not(:last-child) {
|
||||
@@ -738,6 +749,10 @@ nav > .toggle span {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
body[data-panel="preview"] .preview-panel .panel-controls {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.generators-list {
|
||||
margin: 0 15px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user