Skip to content

Commit c53a21d

Browse files
committed
v1.12
1 parent eb3c77c commit c53a21d

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ Out of the box CSS styling for HTML elements. No class names, no framework to le
66

77
Live demo: https://andybrewer.github.io/mvp/
88

9-
Unpkg: https://unpkg.com/mvp.css@1.11/mvp.css
9+
Unpkg: https://unpkg.com/mvp.css@1.12/mvp.css
1010

1111
NPM: https://www.npmjs.com/package/mvp.css
1212

1313
## Versions
1414

15+
### v1.12
16+
* Styled `<input type="submit">` element to be the same as `<button>`
17+
1518
### v1.11
1619
* Styled `<dialog>` element
1720

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>A <u>minimalist</u> stylesheet for HTML elements</h1>
3131
download="mvp.css" href="./mvp.css" target="_blank"><b>Download MVP.css (9kb) &nearr;</b></a></p>
3232
<br><br>
3333
<p><sup>PRO TIP</sup> Add this code to a new HTML
34-
file:<br><br><code>&lt;link rel="stylesheet" href="https://unpkg.com/mvp.css@1.11/mvp.css"&gt;</code></p>
34+
file:<br><br><code>&lt;link rel="stylesheet" href="https://unpkg.com/mvp.css@1.12/mvp.css"&gt;</code></p>
3535
</header>
3636
<main>
3737
<hr>

mvp.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* MVP.css v1.11 - https://github.com/andybrewer/mvp */
1+
/* MVP.css v1.12 - https://github.com/andybrewer/mvp */
22

33
:root {
44
--active-brightness: 0.85;
@@ -286,7 +286,8 @@ a b,
286286
a em,
287287
a i,
288288
a strong,
289-
button {
289+
button,
290+
input[type="submit"] {
290291
border-radius: var(--border-radius);
291292
display: inline-block;
292293
font-size: medium;
@@ -296,22 +297,26 @@ button {
296297
padding: 1rem 2rem;
297298
}
298299

299-
button {
300+
button,
301+
input[type="submit"] {
300302
font-family: var(--font-family);
301303
}
302304

303-
button:active {
305+
button:active,
306+
input[type="submit"]:active {
304307
filter: brightness(var(--active-brightness));
305308
}
306309

307-
button:hover {
310+
button:hover,
311+
input[type="submit"]:hover {
308312
cursor: pointer;
309313
filter: brightness(var(--hover-brightness));
310314
}
311315

312316
a b,
313317
a strong,
314-
button {
318+
button,
319+
input[type="submit"] {
315320
background-color: var(--color-link);
316321
border: 2px solid var(--color-link);
317322
color: var(--color-bg);
@@ -353,7 +358,8 @@ input:disabled {
353358
cursor: not-allowed;
354359
}
355360

356-
button[disabled]:hover {
361+
button[disabled]:hover,
362+
input[type="submit"][disabled]:hover {
357363
filter: none;
358364
}
359365

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mvp.css",
3-
"version": "1.11.0",
3+
"version": "1.12.0",
44
"description": "A minimalist stylesheet for HTML elements",
55
"main": "mvp.css",
66
"repository": {

0 commit comments

Comments
 (0)