Skip to content

Commit

Permalink
Improve webkit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DeclanChidlow committed Feb 14, 2024
1 parent db99604 commit 941e7e3
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
4 changes: 4 additions & 0 deletions config/global/style/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ button,
textarea,
select {
color: var(--bright_white);
-webkit-text-fill-color: var(--bright_white);
padding: 2px 0;
margin: 4px 0;
background: var(--grey);
border: none;
border-radius: 0;
text-overflow: ellipsis;
appearance: none;
-webkit-appearance: none;
}

input[type="search"],
Expand Down
3 changes: 2 additions & 1 deletion config/global/style/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ nav {
align-items: center;
justify-content: flex-end;
text-align: right;
pointer-events: none;
z-index: 100;
}

Expand All @@ -22,12 +23,12 @@ nav::after {
width: 100%;
height: 100%;
background: linear-gradient(var(--black), transparent);
pointer-events: none;
z-index: -1;
}

nav ul {
all: unset;
pointer-events: initial;
}

nav li {
Expand Down
12 changes: 7 additions & 5 deletions config/global/style/type.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');
@import url("https://fonts.googleapis.com/css2?family=Lexend&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");

html {
font-family: 'Lexend', sans-serif;
font-family: "Lexend", sans-serif;
color: var(--bright_white);
}

Expand All @@ -26,6 +26,7 @@ h6 {
margin: 15vh 0 0 -6.5rem;
position: fixed;
user-select: none;
-webkit-user-select: none;
line-height: 0;
}

Expand Down Expand Up @@ -73,7 +74,7 @@ pre {
}

code {
font-family: 'Fira Code', monospace;
font-family: "Fira Code", monospace;
overflow: inherit;
display: inline-block;
tab-size: 4;
Expand Down Expand Up @@ -127,6 +128,7 @@ li {
margin: inherit;
position: inherit;
user-select: inherit;
-webkit-user-select: inherit;
line-height: 3.2rem;
}
}
4 changes: 4 additions & 0 deletions docs/style/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ button,
textarea,
select {
color: var(--bright_white);
-webkit-text-fill-color: var(--bright_white);
padding: 2px 0;
margin: 4px 0;
background: var(--grey);
border: none;
border-radius: 0;
text-overflow: ellipsis;
appearance: none;
-webkit-appearance: none;
}

input[type="search"],
Expand Down
3 changes: 2 additions & 1 deletion docs/style/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ nav {
align-items: center;
justify-content: flex-end;
text-align: right;
pointer-events: none;
z-index: 100;
}

Expand All @@ -22,12 +23,12 @@ nav::after {
width: 100%;
height: 100%;
background: linear-gradient(var(--black), transparent);
pointer-events: none;
z-index: -1;
}

nav ul {
all: unset;
pointer-events: initial;
}

nav li {
Expand Down
12 changes: 7 additions & 5 deletions docs/style/type.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');
@import url("https://fonts.googleapis.com/css2?family=Lexend&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");

html {
font-family: 'Lexend', sans-serif;
font-family: "Lexend", sans-serif;
color: var(--bright_white);
}

Expand All @@ -26,6 +26,7 @@ h6 {
margin: 15vh 0 0 -6.5rem;
position: fixed;
user-select: none;
-webkit-user-select: none;
line-height: 0;
}

Expand Down Expand Up @@ -73,7 +74,7 @@ pre {
}

code {
font-family: 'Fira Code', monospace;
font-family: "Fira Code", monospace;
overflow: inherit;
display: inline-block;
tab-size: 4;
Expand Down Expand Up @@ -127,6 +128,7 @@ li {
margin: inherit;
position: inherit;
user-select: inherit;
-webkit-user-select: inherit;
line-height: 3.2rem;
}
}

0 comments on commit 941e7e3

Please sign in to comment.