Skip to content

fix some styles #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
get rid of random font weights
  • Loading branch information
Rich-Harris committed Oct 4, 2024
commit cf730dd9c74c24e6e9a2f249b6c48033940a68e8
1 change: 0 additions & 1 deletion packages/repl/src/lib/CodeMirror.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@

.cm-diagnosticText strong {
font-size: 0.9em;
/* font-weight: 700; */
font-family: var(--sk-font-mono);
opacity: 0.7;
}
Expand Down
1 change: 0 additions & 1 deletion packages/repl/src/lib/Input/Migrate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
position: relative;
display: flex;
text-transform: uppercase;
font-weight: 300;
font-size: var(--sk-font-size-ui-small);
padding: 0.8rem;
gap: 0.5rem;
Expand Down
1 change: 0 additions & 1 deletion packages/repl/src/lib/Input/RunesInfo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
position: relative;
display: flex;
text-transform: uppercase;
font-weight: 300;
font-size: var(--sk-font-size-ui-small);
padding: 0.8rem;
gap: 0.5rem;
Expand Down
4 changes: 0 additions & 4 deletions packages/repl/src/lib/Output/console/ConsoleLine.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@
}
}

.group {
font-weight: 700;
}

.log {
padding: 0.5rem 1rem 0.5rem calc(1rem + var(--indent));
display: flex;
Expand Down
1 change: 1 addition & 0 deletions packages/repl/src/lib/Output/console/ConsoleTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
table {
border-collapse: collapse;
line-height: 1;
font-family: var(--sk-font-mono);
}

th {
Expand Down
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/components/Text.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
flex: 1;
font-family: var(--sk-font-mono);
font-size: var(--sk-font-size-code);
font-weight: 400;
padding: 0 1rem;
color: var(--sk-text-2);

Expand Down
7 changes: 0 additions & 7 deletions packages/site-kit/src/lib/docs/DocsContents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
padding-bottom: 0.8rem;
font-size: var(--sk-font-size-h3);
font-family: var(--sk-font-heading);
font-weight: 500;
color: var(--sk-text-1);
}

Expand Down Expand Up @@ -139,12 +138,6 @@

background-color: var(--sk-back-4);
}

[aria-current='page'] {
background-color: hsla(var(--sk-theme-1-hsl), 0.1) !important;
color: var(--sk-theme-1) !important;
font-weight: 400;
}
}

@media (min-width: 832px) {
Expand Down
11 changes: 4 additions & 7 deletions packages/site-kit/src/lib/nav/NavContextMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
font-size: var(--sk-font-size-ui-medium);
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: 600;
color: var(--sk-text-3);
}

Expand Down Expand Up @@ -142,16 +141,14 @@
padding: 0 0.75rem !important;
transition: 0.1s ease;
transition-property: background-color, color;

&[aria-current='true'] {
color: var(--sk-theme-1) !important;
}
}

a:hover {
text-decoration: none;
background-color: var(--sk-back-4);
}

[aria-current='true'] {
/* background-color: hsla(var(--sk-theme-1-hsl), 0.1) !important; */
color: var(--sk-theme-1) !important;
font-weight: 400;
}
</style>
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ It appears when the user clicks on the `Search` component or presses the corresp
font-family: var(--sk-font-ui);
font-size: var(--sk-font-size-ui-medium);
color: var(--sk-text-4);
font-weight: normal;
text-transform: uppercase;
pointer-events: all;

Expand Down
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/search/SearchResultList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@
white-space: nowrap;
line-height: 1;
text-overflow: ellipsis;
font-weight: 400;
}

strong {
Expand Down
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/search/SearchResults.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Renders a list of search results
padding: var(--padding);
font-size: var(--sk-font-size-ui-medium);
color: var(--sk-text-4);
font-weight: normal;
text-transform: uppercase;
background-color: var(--sk-back-2);
border-radius: 0 0 var(--sk-border-radius) var(--sk-border-radius);
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ h3 {
}

strong {
font-weight: 600;
font-weight: 400;
}

code,
Expand Down
Loading