upend/webui/src/lib/styles/common.scss

87 lines
1.4 KiB
SCSS

@use 'sass:color';
@use 'colors';
html {
box-sizing: border-box;
}
* {
box-sizing: inherit;
}
select {
background: var(--background-lighter);
color: var(--foreground);
font-family: var(--default-font);
border: 1px solid var(--foreground-lighter);
border-radius: 4px;
}
.spinner {
font-size: 2em;
}
button,
.button {
border: 1px solid var(--foreground);
border-radius: 4px;
background: var(--background-lighter);
color: var(--foreground);
padding: 0.25em 1em;
line-height: 1;
display: block;
text-align: center;
cursor: pointer;
input {
display: none;
}
&.disabled,
&:disabled {
pointer-events: none;
opacity: 0.7;
}
@media screen and (max-width: 600px) {
padding: 0.5em;
}
}
input[type='text'],
input[type='password'] {
padding: 0.25em;
border: 1px solid var(--foreground-lighter);
border-radius: 4px;
background: var(--background);
color: var(--foreground);
transition: box-shadow 0.25s;
&:focus {
box-shadow: -1px -1px 2px 2px var(--primary);
outline: none;
}
}
.mark-entity::first-letter,
.mark-entity *::first-letter {
color: color.scale(color.mix(colors.$base1, colors.$red), $saturation: -33%);
}
.mark-attribute::first-letter,
.mark-attribute *::first-letter {
color: color.mix(colors.$base1, colors.$green);
}
.mark-value::first-letter,
.mark-value *::first-letter {
color: color.mix(colors.$base1, colors.$blue);
}