mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 19:26:14 -04:00
chore: replace right/left with inline-* value for better rtl support
This commit is contained in:
parent
6dc6489e69
commit
2ee481103c
14 changed files with 44 additions and 61 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
// Prevent VoiceOver from ignoring list semantics in Safari (opinionated)
|
||||
:where(nav li)::before {
|
||||
float: left;
|
||||
float: inline-start;
|
||||
content: "\200B";
|
||||
}
|
||||
|
||||
|
@ -35,10 +35,10 @@
|
|||
list-style: none;
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: calc(var(#{$css-var-prefix}nav-element-spacing-horizontal) * -1);
|
||||
margin-inline-start: calc(var(#{$css-var-prefix}nav-element-spacing-horizontal) * -1);
|
||||
}
|
||||
&:last-of-type {
|
||||
margin-right: calc(var(#{$css-var-prefix}nav-element-spacing-horizontal) * -1);
|
||||
margin-inline-end: calc(var(#{$css-var-prefix}nav-element-spacing-horizontal) * -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,9 +68,8 @@
|
|||
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
|
||||
select {
|
||||
height: auto;
|
||||
margin-right: inherit;
|
||||
margin-bottom: 0;
|
||||
margin-left: inherit;
|
||||
margin-inline: inherit;
|
||||
padding: calc(
|
||||
var(#{$css-var-prefix}nav-link-spacing-vertical) -
|
||||
(var(#{$css-var-prefix}border-width) * 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue