Skip to content

Commit 09bf482

Browse files
committed
tweaks
1 parent 0d8c858 commit 09bf482

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

playground/components/header.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const Header: Component<{
6363

6464
return (
6565
<header
66-
class="p-2 flex text-sm justify-between items-center bg-brand-default text-white"
66+
class="p-2 flex text-sm justify-between items-center bg-white dark:bg-solid-darkbg dark:text-white text-black"
6767
classList={{ 'md:col-span-3': !props.isHorizontal }}
6868
>
6969
<h1 class="flex items-center space-x-4 uppercase leading-0 tracking-widest pl-1">
@@ -92,7 +92,7 @@ export const Header: Component<{
9292
<button
9393
type="button"
9494
onClick={props.toggleDark}
95-
class="md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
95+
class="flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
9696
classList={{
9797
'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none':
9898
showMenu(),
@@ -108,7 +108,7 @@ export const Header: Component<{
108108
<button
109109
type="button"
110110
onClick={() => exportToZip(props.tabs)}
111-
class="md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
111+
class="flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100"
112112
classList={{
113113
'rounded-none active:bg-gray-300 hover:bg-gray-300 dark:hover:text-black focus:outline-none focus:highlight-none active:highlight-none focus:ring-0 active:outline-none':
114114
showMenu(),
@@ -121,7 +121,7 @@ export const Header: Component<{
121121
<button
122122
type="button"
123123
onClick={shareLink}
124-
class="md:text-white flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded"
124+
class="flex flex-row space-x-2 items-center md:px-3 px-2 py-2 focus:outline-none focus:ring-1 rounded"
125125
classList={{
126126
'opacity-80 hover:opacity-100': !copy(),
127127
'text-green-100': copy() && !showMenu(),
@@ -142,18 +142,18 @@ export const Header: Component<{
142142
classList={{
143143
'border-white border': showMenu(),
144144
}}
145-
class="px-3 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100 visible relative md:hidden m-0 mr-[10px]"
145+
class="px-3 py-2 focus:outline-none focus:ring-1 rounded opacity-80 hover:opacity-100 visible relative md:hidden m-0 mr-[10px]"
146146
title="Mobile Menu Button"
147147
ref={menuBtnEl}
148148
>
149149
<Show when={showMenu()} fallback={<Icon path={menu} class="h-6 w-6" />}>
150150
<Icon path={xCircle} class="h-[22px] w-[22px]" /* adjusted to account for border */ />
151151
</Show>
152-
<span class="sr-only text-black md:text-white">Show menu</span>
152+
<span class="sr-only">Show menu</span>
153153
</button>
154-
<div class="-mb-1 leading-snug text-white bg-transparent border-transparent hover:border-white cursor-pointer">
154+
<div class="-mb-1 leading-snug cursor-pointer">
155155
<a
156-
href={`https://api.solidjs.com/auth/login?redirect=${window.location.href}/login?auth=success`}
156+
href={`https://api.solidjs.com/auth/login?redirect=${window.location.origin}/login?auth=success`}
157157
>
158158
Login
159159
</a>

playground/components/zoomDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const ZoomDropdown: Component<{ showMenu: boolean }> = (props) => {
8787
>
8888
<button
8989
type="button"
90-
class="dark:text-white md:text-white flex flex-row space-x-2 items-center w-full md:px-3 px-2 py-2 focus:ring-1 rounded opacity-80 hover:opacity-100"
90+
class="flex flex-row space-x-2 items-center w-full md:px-3 px-2 py-2 focus:ring-1 rounded opacity-80 hover:opacity-100"
9191
classList={{
9292
'bg-gray-900': open() && !props.showMenu,
9393
'bg-gray-300 dark:text-black': open() && props.showMenu,

tailwind.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export default {
1515
},
1616
solid: {
1717
default: '#2c4f7c',
18-
darkbg: '#3e3e3e',
19-
darkLighterBg: '#595959',
18+
darkbg: '#222222',
19+
darkLighterBg: '#444444',
2020
darkdefault: '#b8d7ff', //'#87b1e6',
2121
darkgray: '#252525',
2222
gray: '#414042',

0 commit comments

Comments
 (0)