Skip to content

Commit

Permalink
swap to 1.25em
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Feb 26, 2024
1 parent 6824157 commit f63f079
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 30 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
- Improvement: Use declarative shadow DOM and fallback to polyfill in `<light-preview>`


## v2.3.1 02/13/2024
## v2.3.1 - 02/13/2024

- Update form associated package

## v2.3.0 02/13/2024
## v2.3.0 - 02/13/2024

- Added form association to `<light-editor>`
- Added `wrap="soft | hard"` to `<light-preview>` and `<light-editor>`
- Added `preserve-whitespace` to the `<light-pen>` to pass down to `<light-editor>`
- `<light-preview>` now properly creates a second level shadow dom so the preview's shadow dom styles don't leak.

## v2.2.0 12/03/2023
## v2.2.0 - 12/03/2023

- Switch to a `Prism` fork to play nicely with ESM and allow testing.

Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/styles/_content.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pre code {
.highlighter-rouge,
.highlight {
border-radius: 8px;
font-size: 1rem;
font-size: 1em;
font-family: var(--sl-font-mono);
}

Expand Down
33 changes: 15 additions & 18 deletions docs/frontend/styles/_normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ body {
text-rendering: optimizeSpeed;
scrollbar-gutter: stable;
font-family: var(--sl-font-sans);
background-color: var(--body-color);
color: var(--text-color);
display: grid;
grid-template-rows: minmax(0, 1fr);
background-color: var(--body-color);
color: var(--text-color);
display: grid;
grid-template-rows: minmax(0, 1fr);
min-height: 100%;
font-size: 1.25em;
min-height: 100%;
margin: 0;
padding: 0;
Expand All @@ -46,11 +48,6 @@ p, h1, h2, h3, h4, h5, h6 {
margin-block-start: var(--flow-space, 1em);
}

body {
font-family: var(--sl-font-sans);
min-height: 100%;
}

button {
appearance: none;
border: none;
Expand All @@ -70,41 +67,41 @@ h1,h2,h3,h4,h5,h6 {
}

main p {
font-size: 1rem;
font-size: 1em;
}

h1 {
font-size: 1.25rem;
font-size: 1.25em;
margin: 0;
margin-top: 1rem;
margin-bottom: 1rem;
margin-top: 1em;
margin-bottom: 1em;
}

h2 {
font-size: 1.15rem;
font-size: 1.15em;
}

h3, h4 {
font-size: 1.1rem;
font-size: 1.1em;
}

h5, h6 {
font-size: 1.05rem;
font-size: 1.05em;
}

p {
margin-top: 0.5em;
margin-bottom: 0.5em;
padding: 0;
font-size: 1rem;
font-size: 1em;
}

p, li {
line-height: 1.8;
}

li {
font-size: 1rem;
font-size: 1em;
}

ul {
Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/styles/components/_clipboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

.clipboard sl-icon {
font-size: 1rem;
font-size: 1em;
}

.clipboard__icon--success, .clipboard__icon--idle {
Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/styles/components/_contact.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.contact__title {
line-height: 1.3;
font-size: 1.25rem;
font-size: 1.25em;
margin-bottom: 0;
}

2 changes: 1 addition & 1 deletion docs/frontend/styles/components/_main_list.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
padding: 8px;
max-width: 100%;
line-height: 1.3;
font-size: 1.25rem;
font-size: 1.25em;
text-align: center;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/styles/components/_pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pagination-title {
display: block;
max-width: 100%;
overflow: hidden;
font-size: 1.15rem;
font-size: 1.15em;
text-overflow: ellipsis;
white-space: nowrap;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/frontend/styles/components/_side_nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ul.side-nav__menu li::marker {
padding: 8px;
max-width: 100%;
line-height: 1.3;
font-size: 1rem;
font-size: 1em;
font-weight: normal;
}

Expand Down Expand Up @@ -68,7 +68,7 @@ ul.side-nav__menu li::marker {
}

.side-nav__category-header {
font-size: 1.25rem;
font-size: 1.25em;
margin-bottom: 0.5rem;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/styles/components/_top_nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}

.top-nav__github sl-icon {
font-size: 2rem;
font-size: 2em;
}

.top-nav__github {
Expand Down
2 changes: 1 addition & 1 deletion exports/light-preview.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ button[part~="source-code-toggle"] {
border-top-right-radius: 0px;
border-top: 1px solid var(--border-color);
min-height: 100%;
font-size: 1rem;
font-size: 1em;
padding: 0.75rem;
}
Expand Down

0 comments on commit f63f079

Please sign in to comment.