colors on label
This commit is contained in:
parent
718aae2c23
commit
ea755a2dc6
13 changed files with 492 additions and 453 deletions
105
public/assets/css/src/_colors.scss
Normal file
105
public/assets/css/src/_colors.scss
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
:root{
|
||||
|
||||
|
||||
|
||||
|
||||
// BRONZE SUBTIL
|
||||
--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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// MARRON
|
||||
// --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;
|
||||
|
||||
|
||||
|
||||
|
||||
// CHAMPAGNE
|
||||
// --color-interface-050: #f9f6f4;
|
||||
// --color-interface-100: #f2ebe6;
|
||||
// --color-interface-200: #e6d8cf;
|
||||
// --color-interface-300: #d4c2b7;
|
||||
// --color-interface-400: #c2ac9d;
|
||||
// --color-interface-500: #ac9383;
|
||||
// --color-interface-600: #927a6a;
|
||||
// --color-interface-700: #776356;
|
||||
// --color-interface-800: #5e4e45;
|
||||
// --color-interface-900: #473a32;
|
||||
|
||||
// GREY
|
||||
// --color-interface-050: #f7f6f4;
|
||||
// --color-interface-100: #eceae6;
|
||||
// --color-interface-200: #dedbd6;
|
||||
// --color-interface-300: #c9c5be;
|
||||
// --color-interface-400: #b4afa7;
|
||||
// --color-interface-500: #9d978f;
|
||||
// --color-interface-600: #86817a;
|
||||
// --color-interface-700: #6e6a63;
|
||||
// --color-interface-800: #55534d;
|
||||
// --color-interface-900: #3e3c37;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
[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;
|
||||
}
|
||||
56
public/assets/css/src/_forms-section.scss
Normal file
56
public/assets/css/src/_forms-section.scss
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
.settings-section {
|
||||
|
||||
margin-top: 3em;
|
||||
|
||||
|
||||
// .cons
|
||||
|
||||
|
||||
|
||||
h2 {
|
||||
margin-bottom: var(--space);
|
||||
|
||||
font-weight: 600;
|
||||
font-size: 1.4rem;
|
||||
// border-radius: var(--border-radius);
|
||||
// height: var(--input-h);
|
||||
// padding: 0 1ch;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
|
||||
// color: var(--color-interface-050);
|
||||
// background-color: var(--color-800);
|
||||
// display: inline-block;
|
||||
|
||||
border-bottom: 1px solid var(--color-200);
|
||||
color: var(--color-800);
|
||||
|
||||
// border-bottom: 2px solid currentColor;
|
||||
// margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.infos{
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-interface-400);
|
||||
}
|
||||
|
||||
.settings-subsection:not(:last-child) {
|
||||
border-bottom: 1px solid var(--color-interface-100);
|
||||
}
|
||||
|
||||
.settings-subsection {
|
||||
padding: var(--space-xs) 0;
|
||||
|
||||
h3 {
|
||||
margin-top: calc(var(--space-xs)*1.5);
|
||||
margin-bottom: calc(var(--space-xs)*2);
|
||||
// color: var(--color-600);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -12,6 +12,111 @@ input[type="number"] {
|
|||
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
|
||||
// label{
|
||||
// width: var(--label-w);
|
||||
// background-color: red;
|
||||
// flex-grow: 3;
|
||||
// }
|
||||
|
||||
label {
|
||||
font-weight: 600;
|
||||
color: var(--color-800);
|
||||
}
|
||||
|
||||
|
||||
|
||||
.input-with-unit {
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.unit-toggle {
|
||||
height: var(--input-h);
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.input-with-color {
|
||||
width: 100%;
|
||||
.clr-field {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: var(--input-h);
|
||||
grid-gap: 1ch;
|
||||
button{
|
||||
grid-column: 1;
|
||||
position: relative;
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
}
|
||||
input{
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.field{
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
label{
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
.field-font{
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
grid-template-rows: var(--input-h) var(--input-h);
|
||||
|
||||
select{
|
||||
width: 100%;
|
||||
}
|
||||
.field-checkbox{
|
||||
padding-top: var(--space-xs);
|
||||
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);
|
||||
input{
|
||||
width: var(--input-w-small);
|
||||
padding-left: 0.75ch;
|
||||
}
|
||||
&:nth-of-type(odd){
|
||||
margin-right: 2ch;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.checkbox-field{
|
||||
margin: calc(var(--space-xs)*2) 0;
|
||||
grid-template-columns: 3ch 1fr;
|
||||
label{
|
||||
// font-weight: normal;
|
||||
}
|
||||
input{
|
||||
justify-self: left;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -21,8 +126,7 @@ input[type="number"] {
|
|||
|
||||
/* Label with CSS tooltip */
|
||||
.label-with-tooltip {
|
||||
text-decoration: underline dotted 2px;
|
||||
text-decoration-color: var(--color-interface-200);
|
||||
text-decoration: underline dotted 1px var(--color-200);
|
||||
text-underline-offset: 2px;
|
||||
cursor: help;
|
||||
position: relative;
|
||||
|
|
@ -34,8 +138,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;
|
||||
|
|
@ -54,166 +158,7 @@ input[type="number"] {
|
|||
}
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
|
||||
margin-top: 3em;
|
||||
|
||||
&#settings-section_page{
|
||||
--color: var(--color-page-highlight);
|
||||
}
|
||||
&#settings-section_text{
|
||||
--color: var(--color-purple);
|
||||
}
|
||||
|
||||
|
||||
.container{
|
||||
border: 1px solid var(--color);
|
||||
border-radius: var(--border-radius);
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
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);
|
||||
|
||||
// border: 2px solid var(--color);
|
||||
// color: var(--color);
|
||||
}
|
||||
|
||||
.infos{
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-interface-400);
|
||||
}
|
||||
|
||||
.settings-subsection:not(:last-child) {
|
||||
border-bottom: 1px solid var(--color-interface-100);
|
||||
}
|
||||
|
||||
.settings-subsection {
|
||||
padding: var(--space-xs) 0;
|
||||
|
||||
h3 {
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
|
||||
.field {
|
||||
display: flex;
|
||||
|
||||
// label{
|
||||
// width: var(--label-w);
|
||||
// background-color: red;
|
||||
// flex-grow: 3;
|
||||
// }
|
||||
|
||||
label {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.input-with-unit {
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.unit-toggle {
|
||||
height: var(--input-h);
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.input-with-color {
|
||||
width: 100%;
|
||||
.clr-field {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: var(--input-h);
|
||||
grid-gap: 1ch;
|
||||
button{
|
||||
grid-column: 1;
|
||||
position: relative;
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
}
|
||||
input{
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.field{
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
label{
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
.field-font{
|
||||
display: grid;
|
||||
grid-template-columns: var(--label-w) 1fr;
|
||||
grid-template-rows: var(--input-h) var(--input-h);
|
||||
|
||||
select{
|
||||
width: 100%;
|
||||
}
|
||||
.field-checkbox{
|
||||
padding-top: var(--space-xs);
|
||||
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);
|
||||
input{
|
||||
width: var(--input-w-small);
|
||||
padding-left: 0.75ch;
|
||||
}
|
||||
&:nth-of-type(odd){
|
||||
margin-right: 2ch;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.checkbox-field{
|
||||
margin-bottom: var(--space-xs);
|
||||
grid-template-columns: 3ch 1fr;
|
||||
input{
|
||||
justify-self: left;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -60,38 +60,38 @@
|
|||
}
|
||||
|
||||
// Label with CSS tooltip
|
||||
.label-with-tooltip {
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
cursor: help;
|
||||
position: relative;
|
||||
// .label-with-tooltip {
|
||||
// text-decoration: underline dotted;
|
||||
// text-underline-offset: 2px;
|
||||
// cursor: help;
|
||||
// position: relative;
|
||||
|
||||
&::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;
|
||||
}
|
||||
// &::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;
|
||||
// }
|
||||
|
||||
&:hover::after {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
// &:hover::after {
|
||||
// opacity: 1;
|
||||
// visibility: visible;
|
||||
// }
|
||||
// }
|
||||
|
||||
// Inheritance lock/unlock button
|
||||
.inheritance-btn {
|
||||
|
|
|
|||
|
|
@ -6,68 +6,6 @@
|
|||
--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;
|
||||
|
||||
|
||||
|
||||
|
||||
// MARRON
|
||||
--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;
|
||||
|
||||
|
||||
// BRONZE SUBTIL
|
||||
--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;
|
||||
|
||||
|
||||
// CHAMPAGNE
|
||||
// --color-interface-050: #f9f6f4;
|
||||
// --color-interface-100: #f2ebe6;
|
||||
// --color-interface-200: #e6d8cf;
|
||||
// --color-interface-300: #d4c2b7;
|
||||
// --color-interface-400: #c2ac9d;
|
||||
// --color-interface-500: #ac9383;
|
||||
// --color-interface-600: #927a6a;
|
||||
// --color-interface-700: #776356;
|
||||
// --color-interface-800: #5e4e45;
|
||||
// --color-interface-900: #473a32;
|
||||
|
||||
// GREY
|
||||
// --color-interface-050: #f7f6f4;
|
||||
// --color-interface-100: #eceae6;
|
||||
// --color-interface-200: #dedbd6;
|
||||
// --color-interface-300: #c9c5be;
|
||||
// --color-interface-400: #b4afa7;
|
||||
// --color-interface-500: #9d978f;
|
||||
// --color-interface-600: #86817a;
|
||||
// --color-interface-700: #6e6a63;
|
||||
// --color-interface-800: #55534d;
|
||||
// --color-interface-900: #3e3c37;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -80,6 +18,8 @@
|
|||
--border-radius: 0.2rem;
|
||||
|
||||
--space-xs: 0.5rem;
|
||||
--space-s: 1rem;
|
||||
--space: 1.5rem;
|
||||
|
||||
--curve: cubic-bezier(0.86, 0, 0.07, 1);
|
||||
|
||||
|
|
@ -92,4 +32,6 @@
|
|||
--input-w-small: 45px;
|
||||
--label-w: 18ch;
|
||||
font-size: 14px;
|
||||
|
||||
--panel-w: 540px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,10 @@
|
|||
@import "src/_fonts.scss";
|
||||
@import "src/_reset.scss";
|
||||
@import "src/_variables.scss";
|
||||
@import "src/_text.scss";
|
||||
@import "src/_print-styles.scss";
|
||||
@import "src/_forms.scss";
|
||||
@import "src/_buttons.scss";
|
||||
@import "src/_settings-popup.scss";
|
||||
@use "src/_fonts.scss" as *;
|
||||
@use "src/_colors.scss" as *;
|
||||
@use "src/_reset.scss" as *;
|
||||
@use "src/_variables.scss" as *;
|
||||
@use "src/_text.scss" as *;
|
||||
@use "src/_print-styles.scss" as *;
|
||||
@use "src/_forms.scss" as *;
|
||||
@use "src/_forms-section.scss" as *;
|
||||
@use "src/_buttons.scss" as *;
|
||||
@use "src/_settings-popup.scss" as *;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<?= e($page->isHomePage() != true, $page->title() . ' - ') . $site->title() ?>
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="<?= url('assets/css/style..css') ?>">
|
||||
<link rel="stylesheet" href="<?= url('assets/css/style.css') ?>">
|
||||
<link rel="stylesheet" href="<?= url('assets/css/pagedjs-interface.css') ?>">
|
||||
|
||||
<!-- À SUPPRIMER EN PRODUCTION -->
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ const activeTab = inject('activeTab');
|
|||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 38rem;
|
||||
width: var(--panel-w);
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -79,7 +79,7 @@ const activeTab = inject('activeTab');
|
|||
|
||||
nav {
|
||||
position: absolute;
|
||||
margin: 1rem 0 0 1rem;
|
||||
margin: 1.5rem 0 0 2rem;
|
||||
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
|
|
@ -88,7 +88,7 @@ nav {
|
|||
|
||||
.close-button {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
top: 1.5rem;
|
||||
right: 1rem;
|
||||
z-index: 2;
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ nav {
|
|||
flex: 1;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
left: -35rem;
|
||||
left: calc(var(--panel-w)*-1);
|
||||
|
||||
padding: 4rem 0;
|
||||
|
||||
|
|
@ -134,8 +134,8 @@ nav {
|
|||
.tab-panel {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x:hidden;
|
||||
padding-right: 2em;
|
||||
padding-left: 1em;
|
||||
overflow-x: hidden;
|
||||
padding: 0 2em;
|
||||
// padding-left: 1em;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<section class="settings-section" id="settings-section_page">
|
||||
<section class="settings-section" id="settings-section_page" data-color-type="page">
|
||||
<h2>Réglage des pages</h2>
|
||||
<div class="container">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<section class="settings-section" id="settings-section_text">
|
||||
<section class="settings-section" id="settings-section_elem" data-color-type="elem">
|
||||
<h2>Réglage du texte</h2>
|
||||
<div class="container">
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
@import url('/assets/css/style.css');
|
||||
@import '../public/assets/css/style.scss';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue