colors on label
This commit is contained in:
parent
718aae2c23
commit
ea755a2dc6
13 changed files with 492 additions and 453 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue