2024-12-07 13:20:03 +01:00
|
|
|
/* SPDX-FileCopyrightText: Copyright 2024 Fabio Iotti */
|
|
|
|
/* SPDX-License-Identifier: AGPL-3.0-only */
|
|
|
|
|
|
|
|
:root {
|
|
|
|
color-scheme: dark;
|
|
|
|
font-family: system-ui, sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#page {
|
|
|
|
--top: 0;
|
|
|
|
--left: 0;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: calc(var(--top) * 1px);
|
|
|
|
left: calc(var(--left) * 1px);
|
|
|
|
|
|
|
|
min-width: 60rem;
|
|
|
|
min-height: 37rem;
|
|
|
|
|
|
|
|
background: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui {
|
|
|
|
z-index: 100;
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
background: #0008;
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
|
|
|
display: flex;
|
|
|
|
gap: .2em;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-08 01:57:24 +01:00
|
|
|
.spacing {
|
|
|
|
margin-top: .6rem;
|
|
|
|
}
|
|
|
|
|
2024-12-07 13:20:03 +01:00
|
|
|
.center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
border: 0;
|
|
|
|
border-top: 1px solid #8888;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav {
|
|
|
|
top: 1rem;
|
|
|
|
left: 1rem;
|
|
|
|
|
|
|
|
width: 15rem;
|
|
|
|
}
|
|
|
|
|
2024-12-08 01:57:24 +01:00
|
|
|
#props_word {
|
2024-12-07 13:20:03 +01:00
|
|
|
top: 1rem;
|
|
|
|
right: 1rem;
|
|
|
|
|
2024-12-08 01:57:24 +01:00
|
|
|
width: 20rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#props_symbol {
|
|
|
|
top: 1rem;
|
|
|
|
right: 1rem;
|
|
|
|
|
|
|
|
width: 30rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#props_link {
|
|
|
|
top: 1rem;
|
|
|
|
right: 1rem;
|
|
|
|
|
|
|
|
width: 10rem;
|
2024-12-07 13:20:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
padding: .2em .6em;
|
|
|
|
border: 0;
|
|
|
|
border-radius: .2em;
|
2024-12-08 01:57:24 +01:00
|
|
|
|
2024-12-09 20:23:18 +01:00
|
|
|
input[type=number]& {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
2024-12-08 01:57:24 +01:00
|
|
|
textarea& {
|
|
|
|
width: 100%;
|
|
|
|
height: 3rem;
|
|
|
|
box-sizing: border-box;
|
2024-12-07 13:20:03 +01:00
|
|
|
|
2024-12-08 01:57:24 +01:00
|
|
|
resize: none;
|
|
|
|
}
|
2024-12-07 13:20:03 +01:00
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: #088;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-08 01:57:24 +01:00
|
|
|
.word-symbols {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
max-height: 15rem;
|
|
|
|
background: #222;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 3em;
|
|
|
|
margin: 0 calc(-3em / 8);
|
|
|
|
|
2024-12-09 20:23:18 +01:00
|
|
|
--stroke-color: #fff;
|
|
|
|
|
|
|
|
&.suffix g {
|
|
|
|
--stroke-color: #08f;
|
|
|
|
}
|
|
|
|
|
2024-12-08 15:57:57 +01:00
|
|
|
.word_middle_line,
|
|
|
|
&[data-symbol*='a'] .word_outer_top_left,
|
|
|
|
&[data-symbol*='b'] .word_outer_top_right,
|
|
|
|
&[data-symbol*='c'] .word_outer_left,
|
|
|
|
&[data-symbol*='d'] .word_outer_bottom_left,
|
|
|
|
&[data-symbol*='e'] .word_outer_bottom_right,
|
|
|
|
&[data-symbol*='f'] .word_inner_top_left,
|
|
|
|
&[data-symbol*='g'] .word_inner_top_middle,
|
|
|
|
&[data-symbol*='h'] .word_inner_top_right,
|
|
|
|
&[data-symbol*='i'] .word_inner_bottom_left,
|
|
|
|
&[data-symbol*='j'] .word_inner_bottom_middle,
|
|
|
|
&[data-symbol*='k'] .word_inner_bottom_right,
|
|
|
|
&[data-symbol*='l'] .word_circle {
|
2024-12-09 20:23:18 +01:00
|
|
|
stroke: var(--stroke-color);
|
2024-12-08 01:57:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.symbol-editor {
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
max-height: 15rem;
|
|
|
|
background: #222;
|
|
|
|
|
|
|
|
path, circle {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
|
|
|
stroke: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-08 15:57:57 +01:00
|
|
|
#symbol_preview {
|
2024-12-08 01:57:24 +01:00
|
|
|
background: black;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-07 13:20:03 +01:00
|
|
|
.word, .symbol, .link {
|
|
|
|
--top: 0;
|
|
|
|
--left: 0;
|
|
|
|
--width: 0;
|
|
|
|
--height: 0;
|
|
|
|
|
|
|
|
--element-base-color: gray;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: calc(var(--top) * 1px);
|
|
|
|
left: calc(var(--left) * 1px);
|
|
|
|
width: calc(var(--width) * 1px);
|
|
|
|
height: calc(var(--height) * 1px);
|
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
--element-color: color(from var(--element-base-color) srgb r g b / .5);
|
|
|
|
border: 1px dashed var(--element-color);
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
margin: -1px;
|
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.remove {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
right: .05rem;
|
|
|
|
top: .05rem;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
border-radius: .2rem;
|
|
|
|
line-height: 1;
|
|
|
|
width: .8rem;
|
|
|
|
height: .8rem;
|
|
|
|
|
|
|
|
background: color(from var(--element-base-color) srgb r g b / .5);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--element-base-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.word {
|
|
|
|
--element-base-color: #f00;
|
|
|
|
|
|
|
|
body.mode-word & {
|
|
|
|
.remove {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.mode-view &, body.mode-word & {
|
2024-12-08 15:57:57 +01:00
|
|
|
z-index: 3;
|
2024-12-07 13:20:03 +01:00
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
--element-color: var(--element-base-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.word-meaning {
|
|
|
|
position: absolute;
|
|
|
|
font-size: .6rem;
|
|
|
|
color: var(--element-color);
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: auto;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.symbol {
|
|
|
|
--element-base-color: #f80;
|
|
|
|
|
|
|
|
body.mode-symbol & {
|
|
|
|
.remove {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.mode-symbol & {
|
|
|
|
z-index: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
--element-color: var(--element-base-color);
|
2024-12-08 15:57:57 +01:00
|
|
|
|
|
|
|
&.empty {
|
|
|
|
background: color(from var(--element-base-color) srgb r g b / .5);
|
|
|
|
}
|
2024-12-07 13:20:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.link {
|
|
|
|
--element-base-color: #08f;
|
|
|
|
|
|
|
|
body.mode-link & {
|
|
|
|
.remove {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.mode-view &, body.mode-link & {
|
2024-12-08 15:57:57 +01:00
|
|
|
z-index: 2;
|
2024-12-07 13:20:03 +01:00
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
--element-color: var(--element-base-color);
|
|
|
|
}
|
|
|
|
}
|