Styles reordering for better slim version

This commit is contained in:
Lucas 2020-09-25 00:17:43 +07:00
parent b37ef21253
commit 67e865d32c
10 changed files with 133 additions and 120 deletions

View file

@ -837,7 +837,7 @@ textarea {
border-width: 0;
}
input:not([type="checkbox"]):not([type="radio"]) {
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
height: calc(1.5rem + 1.5rem + 2px);
}
@ -848,6 +848,13 @@ fieldset {
border: 0;
}
label,
fieldset legend {
display: block;
margin-bottom: 0.125rem;
vertical-align: middle;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
@ -856,13 +863,6 @@ form small {
width: 100%;
}
label,
fieldset legend {
display: block;
margin-bottom: 0.125rem;
vertical-align: middle;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
@ -873,12 +873,6 @@ textarea {
vertical-align: middle;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
margin-bottom: 1.5rem;
}
input,
select,
textarea {
@ -907,12 +901,6 @@ textarea:focus {
border-color: var(--primary);
}
input:focus,
select:focus,
textarea:focus {
box-shadow: 0 0 0 0.2rem var(--primary-focus);
}
input[readonly], input[disabled],
select[readonly],
select[disabled],
@ -943,6 +931,18 @@ textarea[disabled] {
opacity: .5;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
margin-bottom: 1.5rem;
}
input:not([type="range"]):not([type="file"]):focus,
select:focus,
textarea:focus {
box-shadow: 0 0 0 0.2rem var(--primary-focus);
}
select::-ms-expand {
border: 0;
background-color: transparent;