2025-09-20 22:59:18 +02:00
|
|
|
@property --jsl-form-text-default {
|
|
|
|
|
syntax: "<color>";
|
|
|
|
|
inherits: true;
|
|
|
|
|
initial-value: #444;
|
|
|
|
|
}
|
|
|
|
|
@property --jsl-form-text-editable {
|
|
|
|
|
syntax: "<color>";
|
|
|
|
|
inherits: true;
|
|
|
|
|
initial-value: #000;
|
|
|
|
|
}
|
|
|
|
|
@property --jsl-form-default-outline {
|
|
|
|
|
syntax: "<color>";
|
|
|
|
|
inherits: true;
|
|
|
|
|
initial-value: #ccc;
|
|
|
|
|
}
|
|
|
|
|
@property --jsl-form-editable-outline {
|
|
|
|
|
syntax: "<color>";
|
|
|
|
|
inherits: true;
|
|
|
|
|
initial-value: #6666b1;
|
|
|
|
|
}
|
|
|
|
|
@property --jsl-form-focused-outline {
|
|
|
|
|
syntax: "<color>";
|
|
|
|
|
inherits: true;
|
|
|
|
|
initial-value: #290ada;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.jsl-form {
|
|
|
|
|
.-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
.-form-field {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-family: system-ui;
|
|
|
|
|
.-label {
|
|
|
|
|
font-size: 90%;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
|
color: #444;
|
|
|
|
|
}
|
|
|
|
|
.-field {
|
|
|
|
|
font-size: 120%;
|
|
|
|
|
color: var(--jsl-form-text-default);
|
|
|
|
|
box-shadow: inset 5px 5px 20px -5px rgba(0,0,0,0.1);
|
|
|
|
|
display: block;
|
|
|
|
|
border: solid 1px var(--jsl-form-default-outline);
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
|
line-height: 1.5rem;
|
|
|
|
|
min-height: 1.5rem;
|
|
|
|
|
&[contenteditable] {
|
|
|
|
|
border: solid 1px var(--jsl-form-editable-outline);
|
|
|
|
|
color: var(--jsl-form-text-editable);
|
|
|
|
|
&:focus {
|
|
|
|
|
border: solid 1px var(--jsl-form-focused-outline);
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-09-21 00:00:50 +02:00
|
|
|
&.-number-field {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
2025-09-20 22:59:18 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|