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

@ -817,7 +817,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);
}
@ -828,6 +828,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,
@ -836,13 +843,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 {
@ -853,12 +853,6 @@ textarea {
vertical-align: middle;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
margin-bottom: 1.5rem;
}
input,
select,
textarea {
@ -888,12 +882,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],
@ -924,6 +912,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;
@ -1160,6 +1160,7 @@ label > textarea {
border: 2px solid var(--background);
border-radius: 50%;
background-color: var(--text);
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
@ -1171,6 +1172,7 @@ label > textarea {
border: 0;
border-radius: 50%;
background-color: var(--text);
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
@ -1182,6 +1184,7 @@ label > textarea {
border: 0;
border-radius: 50%;
background-color: var(--text);
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
@ -1224,7 +1227,7 @@ label > textarea {
box-shadow: none;
}
input[type="search"] {
[type="search"] {
padding-left: 2.5rem !important;
border-radius: 3rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(115, 130, 140, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
@ -1233,7 +1236,7 @@ input[type="search"] {
background-size: 1rem auto;
}
input[type="search"]::-webkit-search-cancel-button {
[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
display: none;
}