96 lines
1.6 KiB
CSS
96 lines
1.6 KiB
CSS
/* based on https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/v1.6.0/style.css */
|
|
|
|
#context-menu{
|
|
z-index:9999;
|
|
position:absolute;
|
|
display:block;
|
|
padding:0px 0;
|
|
border:2px solid #a55000;
|
|
border-radius:8px;
|
|
box-shadow:1px 1px 2px #CE6400;
|
|
width: 200px;
|
|
}
|
|
|
|
.context-menu-items{
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.context-menu-items a{
|
|
display:block;
|
|
padding:5px;
|
|
cursor:pointer;
|
|
}
|
|
|
|
.context-menu-items a:hover{
|
|
background: #a55000;
|
|
}
|
|
|
|
.canvas-tooltip-info {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
cursor: help;
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
|
|
z-index: 100;
|
|
}
|
|
|
|
.canvas-tooltip-info::after {
|
|
content: '';
|
|
display: block;
|
|
width: 2px;
|
|
height: 7px;
|
|
background-color: white;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.canvas-tooltip-info::before {
|
|
content: '';
|
|
display: block;
|
|
width: 2px;
|
|
height: 2px;
|
|
background-color: white;
|
|
}
|
|
|
|
.canvas-tooltip-content {
|
|
display: none;
|
|
background-color: #f9f9f9;
|
|
color: #333;
|
|
border: 1px solid #ddd;
|
|
padding: 15px;
|
|
position: absolute;
|
|
top: 40px;
|
|
left: 10px;
|
|
width: 250px;
|
|
font-size: 16px;
|
|
opacity: 0;
|
|
border-radius: 8px;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
|
|
z-index: 100;
|
|
}
|
|
|
|
.canvas-tooltip:hover .canvas-tooltip-content {
|
|
display: block;
|
|
animation: fadeIn 0.5s;
|
|
opacity: 1;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {opacity: 0;}
|
|
to {opacity: 1;}
|
|
}
|
|
|
|
.styler {
|
|
overflow:inherit !important;
|
|
}
|