Remove focus overrides on Firefox

This commit is contained in:
Lucas 2020-07-21 09:25:38 +07:00
parent f2adc7813b
commit 4ade514bb0
13 changed files with 7 additions and 77 deletions

View file

@ -20,7 +20,7 @@ Elegant styles for all natives HTML elements without `.classes` and dark mode au
There are 3 ways to get started with pico.css: There are 3 ways to get started with pico.css:
### Install manually ### Install manually
[Download Pico](https://github.com/picocss/pico/archive/v1.0.2.zip) and link `/css/pico.min.css` in the `<head>` of your website. [Download Pico](https://github.com/picocss/pico/archive/v1.0.3.zip) and link `/css/pico.min.css` in the `<head>` of your website.
```html ```html
<link rel="stylesheet" href="css/pico.min.css"> <link rel="stylesheet" href="css/pico.min.css">

View file

@ -646,13 +646,6 @@ textarea[disabled] {
opacity: .5; opacity: .5;
} }
input:focus:-moz-focusring,
select:focus:-moz-focusring,
textarea:focus:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
input:not([type="checkbox"]):not([type="radio"]), input:not([type="checkbox"]):not([type="radio"]),
select, select,
textarea { textarea {
@ -797,13 +790,6 @@ button::-moz-focus-inner,
border-style: none; border-style: none;
} }
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
button { button {
display: block; display: block;
width: 100%; width: 100%;

File diff suppressed because one or more lines are too long

View file

@ -727,13 +727,6 @@ textarea[disabled] {
opacity: .5; opacity: .5;
} }
input:focus:-moz-focusring,
select:focus:-moz-focusring,
textarea:focus:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
input:not([type="checkbox"]):not([type="radio"]), input:not([type="checkbox"]):not([type="radio"]),
select, select,
textarea { textarea {
@ -903,13 +896,6 @@ button::-moz-focus-inner,
border-style: none; border-style: none;
} }
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
button { button {
display: block; display: block;
width: 100%; width: 100%;

View file

@ -642,13 +642,6 @@ textarea[disabled] {
opacity: .5; opacity: .5;
} }
input:focus:-moz-focusring,
select:focus:-moz-focusring,
textarea:focus:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
input:not([type="checkbox"]):not([type="radio"]), input:not([type="checkbox"]):not([type="radio"]),
select, select,
textarea { textarea {
@ -793,13 +786,6 @@ button::-moz-focus-inner,
border-style: none; border-style: none;
} }
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
button { button {
display: block; display: block;
width: 100%; width: 100%;

File diff suppressed because one or more lines are too long

2
css/pico.min.css vendored

File diff suppressed because one or more lines are too long

View file

@ -664,13 +664,6 @@ textarea[disabled] {
opacity: .5; opacity: .5;
} }
input:focus:-moz-focusring,
select:focus:-moz-focusring,
textarea:focus:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
input:not([type="checkbox"]):not([type="radio"]), input:not([type="checkbox"]):not([type="radio"]),
select, select,
textarea { textarea {
@ -814,13 +807,6 @@ button::-moz-focus-inner,
border-style: none; border-style: none;
} }
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
button { button {
display: block; display: block;
width: 100%; width: 100%;

File diff suppressed because one or more lines are too long

View file

@ -101,7 +101,7 @@
</hgroup> </hgroup>
<p>There are 3 ways to get started with pico.css:</p> <p>There are 3 ways to get started with pico.css:</p>
<h4>Install manually</h4> <h4>Install manually</h4>
<a href="https://github.com/picocss/pico/archive/v1.0.2.zip">Download Pico</a> and link <code>/css/pico.min.css</code> in the <code>&lt;<b>head</b>&gt;</code> of your website. <a href="https://github.com/picocss/pico/archive/v1.0.3.zip">Download Pico</a> and link <code>/css/pico.min.css</code> in the <code>&lt;<b>head</b>&gt;</code> of your website.
<pre><code>&lt;<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>&gt;</code></pre> <pre><code>&lt;<b>link</b> <i>rel</i>=<u>"stylesheet"</u> <i>href</i>=<u>"css/pico.min.css"</u>&gt;</code></pre>
<h4>Install from CDN</h4> <h4>Install from CDN</h4>
<p>Alternatively, you can use the <a href="https://unpkg.com/@picocss/pico@latest/">unpkg CDN</a> to link pico.css</p> <p>Alternatively, you can use the <a href="https://unpkg.com/@picocss/pico@latest/">unpkg CDN</a> to link pico.css</p>

View file

@ -1,6 +1,6 @@
{ {
"name": "@picocss/pico", "name": "@picocss/pico",
"version": "1.0.2", "version": "1.0.3",
"description": "Graceful & Minimal CSS design system in pure semantic HTML", "description": "Graceful & Minimal CSS design system in pure semantic HTML",
"author": "Lucas Larroche", "author": "Lucas Larroche",
"main": "./css/pico.min.css", "main": "./css/pico.min.css",

View file

@ -34,14 +34,6 @@ button::-moz-focus-inner,
border-style: none; border-style: none;
} }
// Restore the focus styles unset by the previous rule.
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
// Pico // Pico
// //

View file

@ -160,12 +160,6 @@ textarea {
background-color: var(--muted-background); background-color: var(--muted-background);
opacity: .5; opacity: .5;
} }
// Undo the Firefox inner focus ring
&:focus:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
} }
// Text, Select & Textarea // Text, Select & Textarea