mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 18:06:14 -04:00
Merged RTL pull request into css files, and updated docs for hamburger menu.
Will create new versioning soon, I have something else I'd like to include.
This commit is contained in:
parent
828d1f3143
commit
b7100d22d5
239 changed files with 5355 additions and 838 deletions
|
@ -2100,7 +2100,6 @@ main {
|
|||
line-height: 1rem;
|
||||
list-style-type: none;
|
||||
cursor: pointer;
|
||||
transition: color var(--pico-transition);
|
||||
}
|
||||
.pico details summary:not([role]) {
|
||||
color: var(--pico-accordion-close-summary-color);
|
||||
|
@ -2126,7 +2125,6 @@ main {
|
|||
background-size: 1rem auto;
|
||||
background-repeat: no-repeat;
|
||||
content: "";
|
||||
transition: transform var(--pico-transition);
|
||||
}
|
||||
.pico details summary:focus {
|
||||
outline: none;
|
||||
|
@ -2152,17 +2150,17 @@ main {
|
|||
.pico details[open] > summary:not([role]):not(:focus) {
|
||||
color: var(--pico-accordion-open-summary-color);
|
||||
}
|
||||
.pico details[open] > summary::after {
|
||||
transform: rotate(0);
|
||||
}
|
||||
|
||||
[dir=rtl] .pico details summary {
|
||||
text-align: right;
|
||||
}
|
||||
[dir=rtl] .pico details summary::after {
|
||||
float: left;
|
||||
transform: rotate(90deg);
|
||||
background-position: left center;
|
||||
}
|
||||
[dir=rtl] .pico details[open] > summary::after {
|
||||
transform: rotate(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Card (<article>, role="article")
|
||||
|
@ -2397,6 +2395,46 @@ main {
|
|||
border-bottom-right-radius: 5rem;
|
||||
}
|
||||
|
||||
[dir=rtl] .pico [role=search] > *:not(:first-child),
|
||||
[dir=rtl] .pico [role=search] input:not([type=checkbox], [type=radio]):not(:first-child),
|
||||
[dir=rtl] .pico [role=search] select:not(:first-child),
|
||||
[dir=rtl] .pico [role=search] label:not(:first-child),
|
||||
[dir=rtl] .pico [role=group] > *:not(:first-child),
|
||||
[dir=rtl] .pico [role=group] input:not([type=checkbox], [type=radio]):not(:first-child),
|
||||
[dir=rtl] .pico [role=group] select:not(:first-child),
|
||||
[dir=rtl] .pico [role=group] label:not(:first-child) {
|
||||
margin-right: 0;
|
||||
margin-left: auto;
|
||||
border-top-right-radius: 0;
|
||||
border-top-left-radius: var(--pico-border-radius);
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: var(--pico-border-radius);
|
||||
}
|
||||
[dir=rtl] .pico [role=search] > *:not(:last-child),
|
||||
[dir=rtl] .pico [role=search] input:not([type=checkbox], [type=radio]):not(:last-child),
|
||||
[dir=rtl] .pico [role=search] select:not(:last-child),
|
||||
[dir=rtl] .pico [role=search] label:not(:last-child),
|
||||
[dir=rtl] .pico [role=group] > *:not(:last-child),
|
||||
[dir=rtl] .pico [role=group] input:not([type=checkbox], [type=radio]):not(:last-child),
|
||||
[dir=rtl] .pico [role=group] select:not(:last-child),
|
||||
[dir=rtl] .pico [role=group] label:not(:last-child) {
|
||||
border-top-right-radius: var(--pico-border-radius);
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-right-radius: var(--pico-border-radius);
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
[dir=rtl] button:not(:first-child),
|
||||
[dir=rtl] [type=submit]:not(:first-child),
|
||||
[dir=rtl] [type=reset]:not(:first-child),
|
||||
[dir=rtl] [type=button]:not(:first-child),
|
||||
[dir=rtl] [role=button]:not(:first-child),
|
||||
[dir=rtl] input:not([type=checkbox], [type=radio]):not(:first-child),
|
||||
[dir=rtl] select:not(:first-child),
|
||||
[dir=rtl] label:not(:first-child) {
|
||||
margin-right: calc(var(--pico-border-width) * -1);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loading ([aria-busy=true])
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue