|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1010 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /**
|
|---|
| 2 | * 1. Change the inconsistent appearance in all browsers (opinionated).
|
|---|
| 3 | * 2. Add typography inheritance in all browsers (opinionated).
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | :where(button, input, select, textarea) {
|
|---|
| 7 | background-color: transparent; /* 1 */
|
|---|
| 8 | border: 1px solid WindowFrame; /* 1 */
|
|---|
| 9 | color: inherit; /* 1 */
|
|---|
| 10 | font: inherit; /* 2 */
|
|---|
| 11 | letter-spacing: inherit; /* 2 */
|
|---|
| 12 | padding: 0.25em 0.375em; /* 1 */
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | /**
|
|---|
| 16 | * Change the inconsistent appearance in all browsers (opinionated).
|
|---|
| 17 | */
|
|---|
| 18 |
|
|---|
| 19 | :where(select) {
|
|---|
| 20 | appearance: none;
|
|---|
| 21 | background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em;
|
|---|
| 22 | border-radius: 0;
|
|---|
| 23 | padding-right: 1em;
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | /**
|
|---|
| 27 | * Don't show the arrow for multiple choice selects
|
|---|
| 28 | */
|
|---|
| 29 |
|
|---|
| 30 | :where(select[multiple]) {
|
|---|
| 31 | background-image: none;
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | /**
|
|---|
| 35 | * Remove the border and padding in all browsers (opinionated).
|
|---|
| 36 | */
|
|---|
| 37 |
|
|---|
| 38 | :where([type="color" i], [type="range" i]) {
|
|---|
| 39 | border-width: 0;
|
|---|
| 40 | padding: 0;
|
|---|
| 41 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.