style: accordion without border-bottom

This commit is contained in:
Lucas Larroche 2023-03-19 10:04:19 +07:00
parent 8f26729a64
commit 4eff8b48fa
10 changed files with 39 additions and 65 deletions

View file

@ -744,7 +744,6 @@ sup {
address,
blockquote,
dl,
figure:not(figure:has(table)),
ol,
p,
pre,
@ -1053,7 +1052,7 @@ table.striped tbody tr:nth-child(odd) td {
/**
* Code
*/
pre:not(:has(code)),
pre,
code,
kbd,
samp {
@ -1061,6 +1060,11 @@ samp {
font-family: var(--pico-font-family);
}
pre code {
font-size: inherit;
font-family: inherit;
}
pre {
-ms-overflow-style: scrollbar;
overflow: auto;
@ -1282,6 +1286,7 @@ input:not([type=submit],
input:not([type=submit], [type=button], [type=reset])[disabled],
select[disabled],
textarea[disabled],
label[aria-disabled=true],
:where(fieldset[disabled]) :is(input:not([type=submit], [type=button], [type=reset]), select, textarea) {
--pico-background-color: var(--pico-form-element-disabled-background-color);
--pico-border-color: var(--pico-form-element-disabled-border-color);
@ -1289,6 +1294,10 @@ textarea[disabled],
pointer-events: none;
}
label[aria-disabled=true] input[disabled] {
opacity: 1;
}
:where(input, select, textarea):not([type=checkbox],
[type=radio],
[type=date],
@ -1426,18 +1435,6 @@ label:has([type=checkbox], [type=radio]) {
cursor: pointer;
}
label:has([disabled]),
[type=checkbox][disabled] + label,
[type=radio][disabled] + label {
opacity: var(--pico-form-element-disabled-opacity);
pointer-events: none;
}
label:has([disabled]) [type=checkbox],
label:has([disabled]) [type=radio] {
opacity: initial;
}
[type=checkbox],
[type=radio] {
-webkit-appearance: none;
@ -1764,10 +1761,6 @@ details {
display: block;
margin-bottom: var(--pico-spacing);
}
details:not([role=list], :has(summary[role=button])) {
padding-bottom: var(--pico-spacing);
border-bottom: var(--pico-border-width) solid var(--pico-accordion-border-color);
}
details summary {
line-height: 1rem;
list-style-type: none;