colors on label
This commit is contained in:
parent
718aae2c23
commit
ea755a2dc6
13 changed files with 492 additions and 453 deletions
|
|
@ -138,6 +138,57 @@
|
|||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
:root {
|
||||
--color-interface-050: #f5f0ed;
|
||||
--color-interface-050: #f8f5f4;
|
||||
--color-interface-100: #efe9e6;
|
||||
--color-interface-200: #e0d5d0;
|
||||
--color-interface-300: #cabbb5;
|
||||
--color-interface-400: #b2a29c;
|
||||
--color-interface-500: #998985;
|
||||
--color-interface-600: #7f716e;
|
||||
--color-interface-700: #675b58;
|
||||
--color-interface-800: #5b4f4c;
|
||||
--color-interface-900: #483c39;
|
||||
--color-050: #f5f0ed;
|
||||
--color-050: #f8f5f4;
|
||||
--color-100: #efe9e6;
|
||||
--color-200: #e0d5d0;
|
||||
--color-300: #cabbb5;
|
||||
--color-400: #b2a29c;
|
||||
--color-500: #998985;
|
||||
--color-600: #7f716e;
|
||||
--color-700: #675b58;
|
||||
--color-800: #5b4f4c;
|
||||
--color-900: #483c39;
|
||||
}
|
||||
|
||||
[data-color-type=elem] {
|
||||
--color-050: #fff4ec;
|
||||
--color-100: #ffe6d6;
|
||||
--color-200: #ffd1b5;
|
||||
--color-300: #ffbc94;
|
||||
--color-400: #ffa673;
|
||||
--color-500: #ff945b;
|
||||
--color-600: #ff8d54;
|
||||
--color-700: #f97f46;
|
||||
--color-800: #ff8a50;
|
||||
--color-900: #d96a30;
|
||||
}
|
||||
|
||||
[data-color-type=page] {
|
||||
--color-050: #f4f0ff;
|
||||
--color-100: #e7e1ff;
|
||||
--color-200: #d4c8ff;
|
||||
--color-300: #b9a8ff;
|
||||
--color-400: #9f89ff;
|
||||
--color-500: #866aff;
|
||||
--color-600: #7a52ff;
|
||||
--color-700: #7442ff;
|
||||
--color-800: #7136ff;
|
||||
--color-900: #5223d6;
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
padding: 0;
|
||||
|
|
@ -168,39 +219,14 @@ button {
|
|||
:root {
|
||||
--color-browngray-050: #f5f3f0;
|
||||
--color-browngray-200: #d0c4ba;
|
||||
--color-interface-050: #f5f5f5;
|
||||
--color-interface-100: #e2e6ed;
|
||||
--color-interface-200: #d7dce8;
|
||||
--color-interface-300: #c0c4d1;
|
||||
--color-interface-400: #bec4d4;
|
||||
--color-interface-900: #3e414c;
|
||||
--color-interface-050: #fcf7f4;
|
||||
--color-interface-100: #f5eae4;
|
||||
--color-interface-200: #e9d4c8;
|
||||
--color-interface-300: #d8b7a6;
|
||||
--color-interface-400: #c39986;
|
||||
--color-interface-500: #ad826f;
|
||||
--color-interface-600: #916b5b;
|
||||
--color-interface-700: #755548;
|
||||
--color-interface-800: #5c443a;
|
||||
--color-interface-900: #46342b;
|
||||
--color-interface-050: #f5f0ed;
|
||||
--color-interface-050: #f8f5f4;
|
||||
--color-interface-100: #efe9e6;
|
||||
--color-interface-200: #e0d5d0;
|
||||
--color-interface-300: #cabbb5;
|
||||
--color-interface-400: #b2a29c;
|
||||
--color-interface-500: #998985;
|
||||
--color-interface-600: #7f716e;
|
||||
--color-interface-700: #675b58;
|
||||
--color-interface-800: #5b4f4c;
|
||||
--color-interface-900: #483c39;
|
||||
--color-txt: var(--color-interface-800);
|
||||
--color-panel-bg: var(--color-interface-050);
|
||||
--color-page-highlight: #ff8a50;
|
||||
--color-purple: #7136ff;
|
||||
--border-radius: 0.2rem;
|
||||
--space-xs: 0.5rem;
|
||||
--space-s: 1rem;
|
||||
--space: 1.5rem;
|
||||
--curve: cubic-bezier(0.86, 0, 0.07, 1);
|
||||
--sans-serif: "DM Sans", sans-serif;
|
||||
--mono: "Inconsolata", monospace;
|
||||
|
|
@ -209,6 +235,7 @@ button {
|
|||
--input-w-small: 45px;
|
||||
--label-w: 18ch;
|
||||
font-size: 14px;
|
||||
--panel-w: 540px;
|
||||
}
|
||||
|
||||
body {
|
||||
|
|
@ -245,15 +272,96 @@ input[type=number] {
|
|||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
}
|
||||
.field label {
|
||||
font-weight: 600;
|
||||
color: var(--color-800);
|
||||
}
|
||||
.field .input-with-unit {
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
.field .unit-toggle {
|
||||
height: var(--input-h);
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
}
|
||||
.field .input-with-color {
|
||||
width: 100%;
|
||||
}
|
||||
.field .input-with-color .clr-field {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: var(--input-h);
|
||||
grid-gap: 1ch;
|
||||
}
|
||||
.field .input-with-color .clr-field button {
|
||||
grid-column: 1;
|
||||
position: relative;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
.field .input-with-color .clr-field input {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
}
|
||||
.field label {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.field-font {
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
grid-template-rows: var(--input-h) var(--input-h);
|
||||
}
|
||||
.field-font select {
|
||||
width: 100%;
|
||||
}
|
||||
.field-font .field-checkbox {
|
||||
padding-top: var(--space-xs);
|
||||
}
|
||||
.field-font .field-checkbox label {
|
||||
font-weight: 400;
|
||||
margin-left: 0.75ch;
|
||||
}
|
||||
|
||||
.field-margin, .field-size {
|
||||
display: inline-grid;
|
||||
width: calc(50% - 1ch);
|
||||
grid-template-columns: 6.5ch var(--input-w-small) 1fr;
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
.field-margin input, .field-size input {
|
||||
width: var(--input-w-small);
|
||||
padding-left: 0.75ch;
|
||||
}
|
||||
.field-margin:nth-of-type(odd), .field-size:nth-of-type(odd) {
|
||||
margin-right: 2ch;
|
||||
}
|
||||
|
||||
.checkbox-field {
|
||||
margin: calc(var(--space-xs) * 2) 0;
|
||||
grid-template-columns: 3ch 1fr;
|
||||
}
|
||||
.checkbox-field input {
|
||||
justify-self: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.field--view-only {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/* Label with CSS tooltip */
|
||||
.label-with-tooltip {
|
||||
-webkit-text-decoration: underline dotted 2px;
|
||||
text-decoration: underline dotted 2px;
|
||||
text-decoration-color: var(--color-interface-200);
|
||||
-webkit-text-decoration: underline dotted 1px var(--color-200);
|
||||
text-decoration: underline dotted 1px var(--color-200);
|
||||
text-underline-offset: 2px;
|
||||
cursor: help;
|
||||
position: relative;
|
||||
|
|
@ -265,8 +373,8 @@ input[type=number] {
|
|||
left: 0;
|
||||
margin-bottom: 4px;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: var(--color-browngray-700);
|
||||
color: var(--color-browngray-100);
|
||||
background: var(--color-interface-700);
|
||||
color: var(--color-interface-050);
|
||||
font-family: var(--mono);
|
||||
font-size: 0.75rem;
|
||||
border-radius: 4px;
|
||||
|
|
@ -281,122 +389,6 @@ input[type=number] {
|
|||
visibility: visible;
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
margin-top: 3em;
|
||||
}
|
||||
.settings-section#settings-section_page {
|
||||
--color: var(--color-page-highlight);
|
||||
}
|
||||
.settings-section#settings-section_text {
|
||||
--color: var(--color-purple);
|
||||
}
|
||||
.settings-section .container {
|
||||
border: 1px solid var(--color);
|
||||
border-radius: var(--border-radius);
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
.settings-section h2 {
|
||||
margin-bottom: var(--space-xs);
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
border-radius: var(--border-radius);
|
||||
height: var(--input-h);
|
||||
padding: 0 1ch;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--color-panel-bg);
|
||||
background-color: var(--color);
|
||||
}
|
||||
.settings-section .infos {
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-interface-400);
|
||||
}
|
||||
.settings-section .settings-subsection:not(:last-child) {
|
||||
border-bottom: 1px solid var(--color-interface-100);
|
||||
}
|
||||
.settings-section .settings-subsection {
|
||||
padding: var(--space-xs) 0;
|
||||
}
|
||||
.settings-section .settings-subsection h3 {
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
.settings-section .settings-subsection .field {
|
||||
display: flex;
|
||||
}
|
||||
.settings-section .settings-subsection .field label {
|
||||
font-weight: 600;
|
||||
}
|
||||
.settings-section .settings-subsection .field .input-with-unit {
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
.settings-section .settings-subsection .field .unit-toggle {
|
||||
height: var(--input-h);
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
}
|
||||
.settings-section .settings-subsection .field .input-with-color {
|
||||
width: 100%;
|
||||
}
|
||||
.settings-section .settings-subsection .field .input-with-color .clr-field {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: var(--input-h);
|
||||
grid-gap: 1ch;
|
||||
}
|
||||
.settings-section .settings-subsection .field .input-with-color .clr-field button {
|
||||
grid-column: 1;
|
||||
position: relative;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
.settings-section .settings-subsection .field .input-with-color .clr-field input {
|
||||
grid-column: 2;
|
||||
}
|
||||
.settings-section .settings-subsection .field {
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
}
|
||||
.settings-section .settings-subsection .field label {
|
||||
align-self: center;
|
||||
}
|
||||
.settings-section .settings-subsection .field-font {
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
grid-template-rows: var(--input-h) var(--input-h);
|
||||
}
|
||||
.settings-section .settings-subsection .field-font select {
|
||||
width: 100%;
|
||||
}
|
||||
.settings-section .settings-subsection .field-font .field-checkbox {
|
||||
padding-top: var(--space-xs);
|
||||
}
|
||||
.settings-section .settings-subsection .field-font .field-checkbox label {
|
||||
font-weight: 400;
|
||||
margin-left: 0.75ch;
|
||||
}
|
||||
.settings-section .settings-subsection .field-margin, .settings-section .settings-subsection .field-size {
|
||||
display: inline-grid;
|
||||
width: calc(50% - 1ch);
|
||||
grid-template-columns: 6.5ch var(--input-w-small) 1fr;
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
.settings-section .settings-subsection .field-margin input, .settings-section .settings-subsection .field-size input {
|
||||
width: var(--input-w-small);
|
||||
padding-left: 0.75ch;
|
||||
}
|
||||
.settings-section .settings-subsection .field-margin:nth-of-type(odd), .settings-section .settings-subsection .field-size:nth-of-type(odd) {
|
||||
margin-right: 2ch;
|
||||
}
|
||||
.settings-section .settings-subsection .checkbox-field {
|
||||
margin-bottom: var(--space-xs);
|
||||
grid-template-columns: 3ch 1fr;
|
||||
}
|
||||
.settings-section .settings-subsection .checkbox-field input {
|
||||
justify-self: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type=number]::-webkit-inner-spin-button,
|
||||
input[type=number]::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
|
|
@ -440,6 +432,33 @@ input[type=number] {
|
|||
top: -2px;
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
margin-top: 3em;
|
||||
}
|
||||
.settings-section h2 {
|
||||
margin-bottom: var(--space);
|
||||
font-weight: 600;
|
||||
font-size: 1.4rem;
|
||||
border-bottom: 1px solid var(--color-200);
|
||||
color: var(--color-800);
|
||||
}
|
||||
.settings-section .infos {
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-interface-400);
|
||||
}
|
||||
.settings-section .settings-subsection:not(:last-child) {
|
||||
border-bottom: 1px solid var(--color-interface-100);
|
||||
}
|
||||
.settings-section .settings-subsection {
|
||||
padding: var(--space-xs) 0;
|
||||
}
|
||||
.settings-section .settings-subsection h3 {
|
||||
margin-top: calc(var(--space-xs) * 1.5);
|
||||
margin-bottom: calc(var(--space-xs) * 2);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.unit-toggle button:not(.spinner-btn) {
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--color-interface-400);
|
||||
|
|
@ -537,36 +556,6 @@ input[type=number] {
|
|||
font-weight: 600;
|
||||
}
|
||||
|
||||
.label-with-tooltip {
|
||||
-webkit-text-decoration: underline dotted;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
cursor: help;
|
||||
position: relative;
|
||||
}
|
||||
.label-with-tooltip::after {
|
||||
content: attr(data-css);
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 0;
|
||||
margin-bottom: 4px;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: var(--color-browngray-700, #3d3d3d);
|
||||
color: var(--color-browngray-100, #f5f5f5);
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
font-size: 0.75rem;
|
||||
border-radius: 4px;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.15s ease, visibility 0.15s ease;
|
||||
z-index: 10;
|
||||
}
|
||||
.label-with-tooltip:hover::after {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.inheritance-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue