Skip to content

Commit 559f910

Browse files
authored
fix some more css (#758)
* fix some more css * prettier
1 parent e8ad5c4 commit 559f910

File tree

25 files changed

+38
-75
lines changed

25 files changed

+38
-75
lines changed

apps/svelte.dev/src/lib/components/Modal.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
width: calc(100vw - 2rem);
6868
max-width: 56rem;
6969
background: var(--sk-bg-2);
70-
color: var(--sk-fg-2);
7170
padding: 2rem;
7271
border: none;
7372
border-radius: 0.5rem;

apps/svelte.dev/src/lib/components/SecondaryNav.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
justify-content: space-between;
1818
padding: 0.6rem var(--sk-page-padding-side);
1919
background-color: var(--sk-bg-2);
20-
color: var(--sk-fg-2);
2120
white-space: nowrap;
2221
flex: 0;
2322
gap: 1rem;

apps/svelte.dev/src/routes/(authed)/apps/+page.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@
156156
padding: 0 0 0 3.2rem;
157157
position: relative;
158158
margin: 1rem 0;
159-
color: var(--sk-fg-2);
160159
font: var(--sk-font-ui-medium);
161160
162161
.avatar {

apps/svelte.dev/src/routes/blog/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
7575
h2 {
7676
display: inline-block;
77-
color: var(--sk-fg-2);
77+
color: var(--sk-fg-1);
7878
font: var(--sk-font-h3);
7979
}
8080
@@ -87,14 +87,14 @@
8787
8888
h2 {
8989
font: var(--sk-font-h1);
90-
color: var(--sk-fg-2);
90+
color: var(--sk-fg-1);
9191
}
9292
}
9393
9494
a {
9595
display: block;
9696
text-decoration: none;
97-
color: var(--sk-fg-2);
97+
color: inherit;
9898
9999
&:hover h2 {
100100
text-decoration: underline;
@@ -163,7 +163,7 @@
163163
a {
164164
display: block;
165165
font: var(--sk-font-body);
166-
color: var(--sk-fg-2);
166+
color: inherit;
167167
}
168168
}
169169
}

apps/svelte.dev/src/routes/docs/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
112112
.options a {
113113
display: block;
114-
color: var(--sk-fg-2);
114+
color: inherit;
115115
margin: 1em -1.6rem;
116116
padding: 1.6rem;
117117
background-color: var(--sk-bg-1);

apps/svelte.dev/src/routes/tutorial/[...slug]/Chrome.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
border: 1px solid var(--sk-border);
7878
/* TODO this should apply to all buttons/inputs? */
7979
border-radius: var(--sk-border-radius);
80-
color: var(--sk-fg-2);
8180
font: var(--sk-font-ui-medium);
8281
height: 3.2rem;
8382
}

apps/svelte.dev/src/routes/tutorial/[...slug]/filetree/ContextMenu.svelte

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
{#if $menu_items}
2525
<nav style="position: fixed; z-index: 5; top:{$menu_items.y}px; left:{$menu_items.x}px">
26-
<div class="navbar" id="navbar">
26+
<div class="context-menu">
2727
<ul>
2828
{#each $menu_items.items as item}
2929
<li>
@@ -38,50 +38,39 @@
3838
<svelte:window on:click={() => menu_items.set(null)} />
3939

4040
<style>
41-
.navbar {
41+
.context-menu {
4242
display: inline-flex;
43-
border: 1px solid rgba(0, 0, 0, 0.1);
44-
background-color: var(--back);
43+
background-color: var(--sk-bg-2);
4544
border-radius: var(--sk-border-radius);
4645
overflow: hidden;
4746
flex-direction: column;
48-
filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.1));
47+
filter: var(--sk-shadow);
4948
}
5049
5150
ul {
5251
margin: 0;
53-
padding: 0;
54-
background-color: var(--sk-bg-3);
55-
border: 1px solid var(--sk-fg-accent);
52+
padding: 0.5rem;
53+
background-color: var(--sk-bg-2);
5654
}
5755
5856
li {
5957
display: block;
6058
list-style-type: none;
61-
width: 1fr;
62-
}
63-
li:hover {
64-
background-color: var(--sk-bg-accent);
59+
60+
&:hover {
61+
background-color: var(--sk-bg-4);
62+
}
6563
}
6664
6765
button {
68-
color: var(--sk-fg-2);
66+
display: block;
6967
width: 100%;
68+
height: 100%;
7069
text-align: left;
7170
border: 0px;
72-
padding: 0.4rem 1rem 0.2rem 1rem;
71+
padding: 1rem;
7372
font: var(--sk-font-ui-small);
74-
}
75-
76-
li:first-child button {
77-
padding-top: 0.5rem;
78-
}
79-
80-
li:last-child button {
81-
padding-bottom: 0.4rem;
82-
}
83-
84-
button:hover {
85-
background-color: var(--back-api);
73+
line-height: 1;
74+
border-radius: var(--sk-border-radius);
8675
}
8776
</style>

apps/svelte.dev/src/routes/tutorial/[...slug]/filetree/Item.svelte

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@
121121
background: var(--bg) var(--icon) no-repeat;
122122
background-position: calc(var(--inset) - 0.5rem) 50%;
123123
background-size: 1.2rem;
124-
color: var(--sk-fg-2);
125-
}
126-
127-
li:hover {
128-
--bg: var(--sk-bg-3);
129124
}
130125
131126
button,
@@ -141,7 +136,6 @@
141136
142137
input {
143138
background: var(--sk-bg-1);
144-
color: var(--sk-fg-2) !important;
145139
margin: 0 0.5rem 0 calc(0.5rem + var(--inset));
146140
border: 2px solid transparent;
147141
padding: 0 0.5rem;

packages/editor/src/lib/codemirror.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@
126126
.cm-panels {
127127
font: var(--sk-font-ui-small);
128128
background: var(--sk-bg-2);
129-
color: var(--sk-fg-2);
130129

131130
&.cm-panels-top,
132131
&.cm-panels-bottom {

packages/repl/src/lib/Input/ComponentSelector.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@
248248
}
249249
250250
&.active {
251-
color: var(--sk-fg-2, #333);
252251
border-bottom: 1px solid var(--sk-fg-accent);
253252
}
254253
}

0 commit comments

Comments
 (0)