mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 10:26:13 -04:00
Styles reordering for better slim version
This commit is contained in:
parent
b37ef21253
commit
67e865d32c
10 changed files with 133 additions and 120 deletions
47
css/pico.css
47
css/pico.css
|
@ -1038,7 +1038,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);
|
||||
}
|
||||
|
||||
|
@ -1049,6 +1049,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,
|
||||
|
@ -1057,13 +1064,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 {
|
||||
|
@ -1074,12 +1074,6 @@ textarea {
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
input:not([type="checkbox"]):not([type="radio"]),
|
||||
select,
|
||||
textarea {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
|
@ -1109,12 +1103,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],
|
||||
|
@ -1168,6 +1156,18 @@ textarea.invalid {
|
|||
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(185, 70, 70, 0.999)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -1404,6 +1404,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;
|
||||
}
|
||||
|
||||
|
@ -1415,6 +1416,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;
|
||||
}
|
||||
|
||||
|
@ -1426,6 +1428,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;
|
||||
}
|
||||
|
||||
|
@ -1468,7 +1471,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");
|
||||
|
@ -1477,7 +1480,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue