openOutpaint/css/ui/toolbar.css

95 lines
1.4 KiB
CSS
Raw Permalink Normal View History

#ui-toolbar {
align-content: center;
width: 60px;
border-radius: 5px;
color: var(--c-text);
background-color: var(--c-primary);
}
#ui-toolbar * {
user-select: none;
}
#ui-toolbar .handle {
display: flex;
align-items: center;
justify-content: center;
height: 10px;
}
#ui-toolbar .handle > .line {
width: 80%;
border-top: 2px #777 dotted;
}
#ui-toolbar .tool .tool-icon {
filter: invert(60%);
}
#ui-toolbar .tool.using .tool-icon {
filter: invert(80%);
}
#ui-toolbar .tool:hover .tool-icon {
filter: invert(90%);
}
/* Toolbar lock indicator */
#ui-toolbar .lock-indicator {
position: absolute;
display: none;
padding: 0;
right: 2px;
top: 10px;
width: 15px;
height: 15px;
background-color: red;
2022-12-18 17:50:40 -06:00
-webkit-mask-image: url("../../res/icons/lock.svg");
-webkit-mask-size: contain;
2022-12-18 17:50:40 -06:00
mask-image: url("../../res/icons/lock.svg");
mask-size: contain;
}
/* The separator */
#ui-toolbar .separator {
width: 80%;
margin: auto;
align-self: center;
border-top: 1px var(--c-hover) solid;
}
/* Styles for the tool buttons */
#ui-toolbar .tool {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 1;
margin: 5px;
border-radius: 5px;
cursor: pointer;
transition-duration: 50ms;
}
#ui-toolbar .tool.using {
background-color: var(--c-active);
}
#ui-toolbar .tool:hover {
background-color: var(--c-hover);
}
#ui-toolbar .tool:active {
background-color: var(--c-hover);
filter: brightness(120%);
}