@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
60 lines (49 loc) • 1.11 kB
CSS
*, *::before, *::after { box-sizing: border-box; }
:host {
--font-color: #424242;
--button-color: lightgray;
--button-hover: darkgray;
--bg-color: #fff;
}
[data-color-mode="dark"] :host,
[data-theme="dark"] :host {
--font-color: #e1e1ff;
--button-color: gray;
--button-hover: darkgray;
--bg-color: #161625;
}
.swu {
font-family:SuttonSignWritingOneD ;
}
:host {
display: inline-block;
position: relative;
border-radius: 5px;
color: var(--font-color);
background-color: var(--button-color);
width: 5rem;
height: 4rem;
}
:host:hover {
background-color: var(--button-hover);
}
::slotted(svg) {
position: absolute;
top: 10%;
bottom: 10%;
left: 5%;
right: 5%;
margin: auto;
max-width: 90%;
max-height: 80%;
cursor: default;
}
::slotted(svg g text.sym-line), ::slotted(svg path) {
fill: var(--font-color) ;
}
::slotted(svg g text.sym-fill) {
fill: var(--button-color) ;
}
:host:hover::slotted(svg g text.sym-fill) {
fill: var(--button-hover) ;
}