-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from twm/css-cleanup
CSS cleanup
- Loading branch information
Showing
11 changed files
with
67 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@font-face { | ||
font-family: "Zilla Slab"; | ||
font-weight: 400; | ||
font-style: normal; | ||
font-stretch: normal; | ||
src: url("$lib/vendor/zilla-slab/ZillaSlab-Regular.woff2") format("woff2"); | ||
} | ||
@font-face { | ||
font-family: "Zilla Slab"; | ||
font-weight: 700; | ||
font-style: normal; | ||
font-stretch: normal; | ||
src: url("$lib/vendor/zilla-slab/ZillaSlab-Bold.woff2") format("woff2"); | ||
} | ||
|
||
:root { | ||
--focus-color: #06a8ea; | ||
--invalid-color: red; | ||
--rule-color: #bbb; | ||
|
||
font: | ||
400 1rem / 1.15 "Zilla Slab", | ||
"URW Bookman", | ||
serif; | ||
} | ||
|
||
:focus-visible { | ||
outline: 2px solid var(--focus-color); | ||
outline-offset: 2px; | ||
} | ||
|
||
:is(h1, h2, h3, h4, h5, h6) { | ||
font-weight: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,11 @@ | ||
<script> | ||
import normalizeCss from "$lib/vendor/normalize.css/normalize-8.0.1.css?url" | ||
import stylesCss from "$lib/styles.css?url" | ||
</script> | ||
|
||
<svelte:head> | ||
<link rel="stylesheet" type="text/css" href={normalizeCss} /> | ||
<link rel="stylesheet" type="text/css" href={stylesCss} /> | ||
</svelte:head> | ||
|
||
<slot></slot> | ||
|
||
<style> | ||
@font-face { | ||
font-family: "Zilla Slab"; | ||
font-weight: 400; | ||
font-style: normal; | ||
font-stretch: normal; | ||
src: url("$lib/vendor/zilla-slab/ZillaSlab-Regular.woff2") format("woff2"); | ||
} | ||
@font-face { | ||
font-family: "Zilla Slab"; | ||
font-weight: 700; | ||
font-style: normal; | ||
font-stretch: normal; | ||
src: url("$lib/vendor/zilla-slab/ZillaSlab-Bold.woff2") format("woff2"); | ||
} | ||
:global(body) { | ||
font: | ||
400 1rem / 1.2 "Zilla Slab", | ||
"URW Bookman", | ||
serif; | ||
} | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
tests/test.ts-snapshots/calculator-layout-1-Desktop-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.