mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 01:26:13 -04:00
Fix: Input type date icon position
This commit is contained in:
parent
f8ad8c9f23
commit
07e9dc2587
13 changed files with 41 additions and 46 deletions
|
@ -1400,10 +1400,12 @@ label > input, label > select, label > textarea {
|
|||
}
|
||||
|
||||
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=date], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=datetime-local], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=month], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=week] {
|
||||
padding-right: calc(1.75rem + var(--spacing) * 0.5);
|
||||
--icon-position: 0.75rem;
|
||||
--icon-width: 1rem;
|
||||
padding-right: calc(var(--icon-width) + var(--icon-position));
|
||||
background-image: var(--icon-date);
|
||||
background-position: center right 0.75rem;
|
||||
background-size: 1rem auto;
|
||||
background-position: center right var(--icon-position);
|
||||
background-size: var(--icon-width) auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time] {
|
||||
|
@ -1415,6 +1417,9 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[
|
|||
[type=month]::-webkit-calendar-picker-indicator,
|
||||
[type=time]::-webkit-calendar-picker-indicator,
|
||||
[type=week]::-webkit-calendar-picker-indicator {
|
||||
width: var(--icon-width);
|
||||
margin-right: calc(var(--icon-width) * -1);
|
||||
margin-left: var(--icon-position);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
@ -1425,13 +1430,6 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[
|
|||
[dir=rtl] [type=week] {
|
||||
text-align: right;
|
||||
}
|
||||
[dir=rtl] [type=date]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=datetime-local]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=month]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=time]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=week]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[type=file] {
|
||||
--color: var(--muted-color);
|
||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.classless.min.css
vendored
2
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
18
css/pico.css
18
css/pico.css
|
@ -1587,10 +1587,12 @@ label > input, label > select, label > textarea {
|
|||
}
|
||||
|
||||
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=date], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=datetime-local], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=month], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=week] {
|
||||
padding-right: calc(1.75rem + var(--spacing) * 0.5);
|
||||
--icon-position: 0.75rem;
|
||||
--icon-width: 1rem;
|
||||
padding-right: calc(var(--icon-width) + var(--icon-position));
|
||||
background-image: var(--icon-date);
|
||||
background-position: center right 0.75rem;
|
||||
background-size: 1rem auto;
|
||||
background-position: center right var(--icon-position);
|
||||
background-size: var(--icon-width) auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time] {
|
||||
|
@ -1602,6 +1604,9 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[
|
|||
[type=month]::-webkit-calendar-picker-indicator,
|
||||
[type=time]::-webkit-calendar-picker-indicator,
|
||||
[type=week]::-webkit-calendar-picker-indicator {
|
||||
width: var(--icon-width);
|
||||
margin-right: calc(var(--icon-width) * -1);
|
||||
margin-left: var(--icon-position);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
@ -1612,13 +1617,6 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[
|
|||
[dir=rtl] [type=week] {
|
||||
text-align: right;
|
||||
}
|
||||
[dir=rtl] [type=date]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=datetime-local]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=month]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=time]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=week]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[type=file] {
|
||||
--color: var(--muted-color);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1370,10 +1370,12 @@ label > input, label > select, label > textarea {
|
|||
}
|
||||
|
||||
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=date], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=datetime-local], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=month], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time], input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=week] {
|
||||
padding-right: calc(1.75rem + var(--spacing) * 0.5);
|
||||
--icon-position: 0.75rem;
|
||||
--icon-width: 1rem;
|
||||
padding-right: calc(var(--icon-width) + var(--icon-position));
|
||||
background-image: var(--icon-date);
|
||||
background-position: center right 0.75rem;
|
||||
background-size: 1rem auto;
|
||||
background-position: center right var(--icon-position);
|
||||
background-size: var(--icon-width) auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[type=time] {
|
||||
|
@ -1385,6 +1387,9 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[
|
|||
[type=month]::-webkit-calendar-picker-indicator,
|
||||
[type=time]::-webkit-calendar-picker-indicator,
|
||||
[type=week]::-webkit-calendar-picker-indicator {
|
||||
width: var(--icon-width);
|
||||
margin-right: calc(var(--icon-width) * -1);
|
||||
margin-left: var(--icon-position);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
@ -1395,13 +1400,6 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])[
|
|||
[dir=rtl] [type=week] {
|
||||
text-align: right;
|
||||
}
|
||||
[dir=rtl] [type=date]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=datetime-local]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=month]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=time]::-webkit-calendar-picker-indicator,
|
||||
[dir=rtl] [type=week]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[type=file] {
|
||||
--color: var(--muted-color);
|
||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -41,10 +41,12 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|||
&[type="month"],
|
||||
&[type="time"],
|
||||
&[type="week"] {
|
||||
padding-right: calc(1.75rem + var(--spacing) * 0.5);
|
||||
--icon-position: 0.75rem;
|
||||
--icon-width: 1rem;
|
||||
padding-right: calc(var(--icon-width) + var(--icon-position));
|
||||
background-image: var(--icon-date);
|
||||
background-position: center right 0.75rem;
|
||||
background-size: 1rem auto;
|
||||
background-position: center right var(--icon-position);
|
||||
background-size: var(--icon-width) auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
|
@ -61,6 +63,9 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|||
[type="time"],
|
||||
[type="week"] {
|
||||
&::-webkit-calendar-picker-indicator {
|
||||
width: var(--icon-width);
|
||||
margin-right: calc(var(--icon-width) * -1);
|
||||
margin-left: var(--icon-position);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
@ -72,10 +77,6 @@ input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file])
|
|||
[type="time"],
|
||||
[type="week"] {
|
||||
text-align: right;
|
||||
|
||||
&::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue