mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 17:36:15 -04:00
chore: resolved merge conflicts and updated styles, reduced markup
This commit is contained in:
parent
002008996d
commit
25d7c7983f
16 changed files with 137 additions and 168 deletions
|
@ -2034,11 +2034,11 @@ progress::-moz-progress-bar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
details[role=dropdown] {
|
details[role=dropdown] {
|
||||||
|
position: relative;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary {
|
details[role=dropdown] summary {
|
||||||
position: relative;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
border: var(--border-width) solid var(--form-element-border-color);
|
border: var(--border-width) solid var(--form-element-border-color);
|
||||||
|
@ -2048,11 +2048,7 @@ details[role=dropdown] summary {
|
||||||
details[role=dropdown] summary::after {
|
details[role=dropdown] summary::after {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div {
|
details[role=dropdown] summary + ul {
|
||||||
position: relative;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
details[role=dropdown] summary + div ul {
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: auto;
|
top: auto;
|
||||||
|
@ -2067,33 +2063,33 @@ details[role=dropdown] summary + div ul {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li {
|
details[role=dropdown] summary + ul li {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li::marker {
|
details[role=dropdown] summary + ul li::marker {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=radio],
|
details[role=dropdown] summary + ul li input[type=radio],
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox] {
|
details[role=dropdown] summary + ul li input[type=checkbox] {
|
||||||
display: none;
|
display: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li label {
|
details[role=dropdown] summary + ul li label {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li label:hover {
|
details[role=dropdown] summary + ul li label:hover {
|
||||||
background-color: var(--secondary-focus);
|
background-color: var(--secondary-focus);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input:checked + label {
|
details[role=dropdown] summary + ul li input:checked + label {
|
||||||
background-color: var(--secondary-focus);
|
background-color: var(--secondary-focus);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox] + label:before {
|
details[role=dropdown] summary + ul li input[type=checkbox] + label:before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: calc(var(--spacing) * 1.2);
|
width: calc(var(--spacing) * 1.2);
|
||||||
height: calc(var(--spacing) * 1.2);
|
height: calc(var(--spacing) * 1.2);
|
||||||
|
@ -2103,7 +2099,7 @@ details[role=dropdown] summary + div ul li input[type=checkbox] + label:before {
|
||||||
content: "";
|
content: "";
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox]:checked + label:before {
|
details[role=dropdown] summary + ul li input[type=checkbox]:checked + label:before {
|
||||||
background-image: var(--icon-checkbox);
|
background-image: var(--icon-checkbox);
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: calc(var(--spacing) * 0.8) auto;
|
background-size: calc(var(--spacing) * 0.8) auto;
|
||||||
|
|
File diff suppressed because one or more lines are too long
3
css/pico.classless.min.css
vendored
3
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
26
css/pico.css
26
css/pico.css
|
@ -2317,11 +2317,11 @@ progress::-moz-progress-bar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
details[role=dropdown] {
|
details[role=dropdown] {
|
||||||
|
position: relative;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary {
|
details[role=dropdown] summary {
|
||||||
position: relative;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
border: var(--border-width) solid var(--form-element-border-color);
|
border: var(--border-width) solid var(--form-element-border-color);
|
||||||
|
@ -2331,11 +2331,7 @@ details[role=dropdown] summary {
|
||||||
details[role=dropdown] summary::after {
|
details[role=dropdown] summary::after {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div {
|
details[role=dropdown] summary + ul {
|
||||||
position: relative;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
details[role=dropdown] summary + div ul {
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: auto;
|
top: auto;
|
||||||
|
@ -2350,33 +2346,33 @@ details[role=dropdown] summary + div ul {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li {
|
details[role=dropdown] summary + ul li {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li::marker {
|
details[role=dropdown] summary + ul li::marker {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=radio],
|
details[role=dropdown] summary + ul li input[type=radio],
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox] {
|
details[role=dropdown] summary + ul li input[type=checkbox] {
|
||||||
display: none;
|
display: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li label {
|
details[role=dropdown] summary + ul li label {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li label:hover {
|
details[role=dropdown] summary + ul li label:hover {
|
||||||
background-color: var(--secondary-focus);
|
background-color: var(--secondary-focus);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input:checked + label {
|
details[role=dropdown] summary + ul li input:checked + label {
|
||||||
background-color: var(--secondary-focus);
|
background-color: var(--secondary-focus);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox] + label:before {
|
details[role=dropdown] summary + ul li input[type=checkbox] + label:before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: calc(var(--spacing) * 1.2);
|
width: calc(var(--spacing) * 1.2);
|
||||||
height: calc(var(--spacing) * 1.2);
|
height: calc(var(--spacing) * 1.2);
|
||||||
|
@ -2386,7 +2382,7 @@ details[role=dropdown] summary + div ul li input[type=checkbox] + label:before {
|
||||||
content: "";
|
content: "";
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox]:checked + label:before {
|
details[role=dropdown] summary + ul li input[type=checkbox]:checked + label:before {
|
||||||
background-image: var(--icon-checkbox);
|
background-image: var(--icon-checkbox);
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: calc(var(--spacing) * 0.8) auto;
|
background-size: calc(var(--spacing) * 0.8) auto;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2004,11 +2004,11 @@ progress::-moz-progress-bar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
details[role=dropdown] {
|
details[role=dropdown] {
|
||||||
|
position: relative;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary {
|
details[role=dropdown] summary {
|
||||||
position: relative;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
border: var(--border-width) solid var(--form-element-border-color);
|
border: var(--border-width) solid var(--form-element-border-color);
|
||||||
|
@ -2018,11 +2018,7 @@ details[role=dropdown] summary {
|
||||||
details[role=dropdown] summary::after {
|
details[role=dropdown] summary::after {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div {
|
details[role=dropdown] summary + ul {
|
||||||
position: relative;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
details[role=dropdown] summary + div ul {
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: auto;
|
top: auto;
|
||||||
|
@ -2037,33 +2033,33 @@ details[role=dropdown] summary + div ul {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li {
|
details[role=dropdown] summary + ul li {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li::marker {
|
details[role=dropdown] summary + ul li::marker {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=radio],
|
details[role=dropdown] summary + ul li input[type=radio],
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox] {
|
details[role=dropdown] summary + ul li input[type=checkbox] {
|
||||||
display: none;
|
display: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li label {
|
details[role=dropdown] summary + ul li label {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li label:hover {
|
details[role=dropdown] summary + ul li label:hover {
|
||||||
background-color: var(--secondary-focus);
|
background-color: var(--secondary-focus);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input:checked + label {
|
details[role=dropdown] summary + ul li input:checked + label {
|
||||||
background-color: var(--secondary-focus);
|
background-color: var(--secondary-focus);
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox] + label:before {
|
details[role=dropdown] summary + ul li input[type=checkbox] + label:before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: calc(var(--spacing) * 1.2);
|
width: calc(var(--spacing) * 1.2);
|
||||||
height: calc(var(--spacing) * 1.2);
|
height: calc(var(--spacing) * 1.2);
|
||||||
|
@ -2073,7 +2069,7 @@ details[role=dropdown] summary + div ul li input[type=checkbox] + label:before {
|
||||||
content: "";
|
content: "";
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
details[role=dropdown] summary + div ul li input[type=checkbox]:checked + label:before {
|
details[role=dropdown] summary + ul li input[type=checkbox]:checked + label:before {
|
||||||
background-image: var(--icon-checkbox);
|
background-image: var(--icon-checkbox);
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: calc(var(--spacing) * 0.8) auto;
|
background-size: calc(var(--spacing) * 0.8) auto;
|
||||||
|
|
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
File diff suppressed because one or more lines are too long
|
@ -20,7 +20,6 @@
|
||||||
<article aria-label="Dropdown examples">
|
<article aria-label="Dropdown examples">
|
||||||
<details role="dropdown">
|
<details role="dropdown">
|
||||||
<summary>Single select</summary>
|
<summary>Single select</summary>
|
||||||
<div>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" id="01" name="option1" />
|
<input type="radio" id="01" name="option1" />
|
||||||
|
@ -31,11 +30,9 @@
|
||||||
<label for="02">Option 2</label>
|
<label for="02">Option 2</label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
</details>
|
</details>
|
||||||
<details role="dropdown">
|
<details role="dropdown">
|
||||||
<summary>Multi-select</summary>
|
<summary>Multi-select</summary>
|
||||||
<div>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<input type="checkbox" id="11" name="option2" />
|
<input type="checkbox" id="11" name="option2" />
|
||||||
|
@ -46,7 +43,6 @@
|
||||||
<label for="12">Option 2</label>
|
<label for="12">Option 2</label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
</details>
|
</details>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
@ -76,7 +72,6 @@
|
||||||
<em>===============================</em>
|
<em>===============================</em>
|
||||||
<<b>details role="dropdown"</b>>
|
<<b>details role="dropdown"</b>>
|
||||||
<<b>summary</b>>Single select<<b>/summary</b>>
|
<<b>summary</b>>Single select<<b>/summary</b>>
|
||||||
<<b>div</b>>
|
|
||||||
<<b>ul</b>>
|
<<b>ul</b>>
|
||||||
<<b>li</b>>
|
<<b>li</b>>
|
||||||
<<b>input type="radio" id="01" name="option1" /</b>>
|
<<b>input type="radio" id="01" name="option1" /</b>>
|
||||||
|
@ -87,7 +82,6 @@
|
||||||
<<b>label for="02"</b>>Option 2<<b>/label</b>>
|
<<b>label for="02"</b>>Option 2<<b>/label</b>>
|
||||||
<<b>/li</b>>
|
<<b>/li</b>>
|
||||||
<<b>/ul</b>>
|
<<b>/ul</b>>
|
||||||
<<b>/div</b>>
|
|
||||||
<<b>/details</b>>
|
<<b>/details</b>>
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,7 +89,6 @@
|
||||||
<em>===============================</em>
|
<em>===============================</em>
|
||||||
<<b>details role="dropdown"</b>>
|
<<b>details role="dropdown"</b>>
|
||||||
<<b>summary</b>>Multi select<<b>/summary</b>>
|
<<b>summary</b>>Multi select<<b>/summary</b>>
|
||||||
<<b>div</b>>
|
|
||||||
<<b>ul</b>>
|
<<b>ul</b>>
|
||||||
<<b>li</b>>
|
<<b>li</b>>
|
||||||
<<b>input type="checkbox" id="01" name="option1" /</b>>
|
<<b>input type="checkbox" id="01" name="option1" /</b>>
|
||||||
|
@ -106,7 +99,6 @@
|
||||||
<<b>label for="02"</b>>Option 2<<b>/label</b>>
|
<<b>label for="02"</b>>Option 2<<b>/label</b>>
|
||||||
<<b>/li</b>>
|
<<b>/li</b>>
|
||||||
<<b>/ul</b>>
|
<<b>/ul</b>>
|
||||||
<<b>/div</b>>
|
|
||||||
<<b>/details</b>>
|
<<b>/details</b>>
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,9 +1,9 @@
|
||||||
details[role='dropdown'] {
|
details[role='dropdown'] {
|
||||||
|
position: relative;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
||||||
summary {
|
summary {
|
||||||
position: relative;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: calc(var(--spacing) * 0.5);
|
padding: calc(var(--spacing) * 0.5);
|
||||||
border: var(--border-width) solid var(--form-element-border-color);
|
border: var(--border-width) solid var(--form-element-border-color);
|
||||||
|
@ -14,11 +14,7 @@ details[role='dropdown'] {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
& + div {
|
& + ul {
|
||||||
position: relative;
|
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
ul {
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: auto;
|
top: auto;
|
||||||
|
@ -83,7 +79,6 @@ details[role='dropdown'] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&[disabled] summary,
|
&[disabled] summary,
|
||||||
&.disabled summary {
|
&.disabled summary {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue