[CSS] Fix color swatch styling, simplified rules
This commit is contained in:
parent
74bab8e7aa
commit
db0909a1c7
@ -1,8 +1,8 @@
|
|||||||
input {
|
input {
|
||||||
all: unset;
|
all: unset;
|
||||||
}
|
}
|
||||||
|
input[type=checkbox],
|
||||||
input[type=checkbox],input[type=radio] {
|
input[type=radio] {
|
||||||
all: unset;
|
all: unset;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
@ -11,20 +11,21 @@ input[type=checkbox],input[type=radio] {
|
|||||||
background: var(--accent) !important;
|
background: var(--accent) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox]:not(:hover,:focus),input[type=radio]:not(:hover,:focus) {
|
input[type=checkbox]:not(:hover, :focus),
|
||||||
|
input[type=radio]:not(:hover, :focus) {
|
||||||
background: var(--foreground) !important;
|
background: var(--foreground) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox],input[type=radio] {
|
input[type=checkbox],
|
||||||
|
input[type=radio] {
|
||||||
border: unset !important;
|
border: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=radio] {
|
input[type=radio] {
|
||||||
background: var(--background-hard) !important;
|
background: var(--background-hard) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=radio] {
|
input[type=radio] {
|
||||||
-webkit-border-radius: 50% !important;
|
|
||||||
-moz-border-radius: 50% !important;
|
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
margin: 3px 3px 0 5px !important;
|
margin: 3px 3px 0 5px !important;
|
||||||
}
|
}
|
||||||
@ -35,20 +36,15 @@ input[type=file] {
|
|||||||
font-family: 'Open Sans',sans-serif !important;
|
font-family: 'Open Sans',sans-serif !important;
|
||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
padding: unset !important;
|
padding: unset !important;
|
||||||
-webkit-border-radius: .6rem;
|
border-radius: var(--smaller);
|
||||||
-moz-border-radius: .6rem;
|
|
||||||
border-radius: .6rem;
|
|
||||||
background: var(--gradient) !important;
|
background: var(--gradient) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=radio] {
|
input[type=radio] {
|
||||||
border: solid .25em !important;
|
border: solid 0.25em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
-webkit-background-size: 100%;
|
|
||||||
-moz-background-size: 100%;
|
|
||||||
-o-background-size: 100%;
|
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
-webkit-mask-image: url("../../icons/check-off.svg") !important;
|
-webkit-mask-image: url("../../icons/check-off.svg") !important;
|
||||||
@ -65,10 +61,22 @@ input[type=checkbox]:checked {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type=color] {
|
input[type=color] {
|
||||||
border: unset;
|
-webkit-appearance: none;
|
||||||
padding: 2px;
|
-moz-appearance: none;
|
||||||
width: 100%;
|
appearance: none;
|
||||||
height: 3rem;
|
width: var(--big);
|
||||||
|
height: var(--big);
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
input[type=color]::-webkit-color-swatch {
|
||||||
|
border-radius: var(--smaller);
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
input[type=color]::-moz-color-swatch {
|
||||||
|
border-radius: var(--smaller);
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
::-webkit-file-upload-button {
|
||||||
@ -93,17 +101,6 @@ input[type=color] {
|
|||||||
margin: 3px;
|
margin: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::file-selector-button {
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: unset;
|
|
||||||
border: unset;
|
|
||||||
font-family: 'Open Sans',sans-serif !important;
|
|
||||||
font-weight: bold !important;
|
|
||||||
color: var(--foreground);
|
|
||||||
fill: var(--foreground);
|
|
||||||
margin: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
*|*::-moz-button-content {
|
*|*::-moz-button-content {
|
||||||
all: unset !important;
|
all: unset !important;
|
||||||
}
|
}
|
||||||
@ -115,7 +112,8 @@ button {
|
|||||||
margin-top: var(--smaller);
|
margin-top: var(--smaller);
|
||||||
}
|
}
|
||||||
|
|
||||||
button,label {
|
button,
|
||||||
|
label {
|
||||||
font-family: 'Poppins',sans-serif;
|
font-family: 'Poppins',sans-serif;
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
@ -124,32 +122,33 @@ button,label {
|
|||||||
select::-ms-expand {
|
select::-ms-expand {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
button,input,select,textarea {
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;/* For IE <= 11 */
|
-moz-appearance: none;
|
||||||
display: -webkit-inline-box;
|
|
||||||
display: -webkit-inline-flex;
|
|
||||||
display: -ms-inline-flexbox;
|
|
||||||
display: -moz-inline-box;
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
padding: 6px 8px !important;
|
padding: 6px 8px !important;
|
||||||
-webkit-border-radius: .6rem;
|
border-radius: var(--smaller);
|
||||||
-moz-border-radius: .6rem;
|
|
||||||
border-radius: .6rem;
|
|
||||||
border: 2px solid var(--border) !important;
|
border: 2px solid var(--border) !important;
|
||||||
-webkit-box-shadow: var(--shadow);
|
|
||||||
-moz-box-shadow: var(--shadow);
|
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
width: inherit;
|
width: inherit;
|
||||||
max-width: border-box !important;
|
max-width: border-box !important;
|
||||||
}
|
}
|
||||||
button, select, textarea {
|
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
background: var(--gradient) !important;
|
background: var(--gradient) !important;
|
||||||
}
|
}
|
||||||
button,input:not([type=checkbox], [type=radio]) {
|
|
||||||
|
button,
|
||||||
|
input:not([type=checkbox], [type=radio]) {
|
||||||
background: var(--gradient) !important;
|
background: var(--gradient) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,9 +157,7 @@ select {
|
|||||||
-moz-appearance: none !important;
|
-moz-appearance: none !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
-webkit-border-radius: .6rem;
|
border-radius: var(--smaller);
|
||||||
-moz-border-radius: .6rem;
|
|
||||||
border-radius: .6rem;
|
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,8 +166,13 @@ select[multiple] {
|
|||||||
height: 20rem;
|
height: 20rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:focus,button:hover,input:focus,input:hover,select:focus,select:hover,textarea:focus,textarea:hover {
|
button:focus,
|
||||||
-webkit-box-shadow: var(--shadow-inset-accent) !important;
|
button:hover,
|
||||||
-moz-box-shadow: var(--shadow-inset-accent) !important;
|
input:focus,
|
||||||
|
input:hover,
|
||||||
|
select:focus,
|
||||||
|
select:hover,
|
||||||
|
textarea:focus,
|
||||||
|
textarea:hover {
|
||||||
box-shadow: var(--shadow-inset-accent) !important;
|
box-shadow: var(--shadow-inset-accent) !important;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user