Skip to content

Commit

Permalink
views, definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu-dev committed Dec 12, 2024
1 parent 9f5d54a commit cbb0254
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 29 deletions.
7 changes: 6 additions & 1 deletion web/renderer/components/DatabaseTableNav/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ export default function NavLinks({ className, params }: Props) {
<Tabs initialActiveIndex={initialActiveIndex}>
<TabList className={css.tabList}>
{tabs.map((tab, i) => (
<Tab key={tab} name={tab.toLowerCase()} index={i} dark>
<Tab
key={tab}
name={tab.toLowerCase()}
index={i}
className={css.tab}
>
{tab}
</Tab>
))}
Expand Down
12 changes: 8 additions & 4 deletions web/renderer/components/DatabaseTableNav/index.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.container {
@apply hidden;
@screen lg {
@apply bg-stone-50 pt-5 flex flex-col;
@apply bg-storm-500 pt-5 flex flex-col;
}
}

Expand Down Expand Up @@ -36,7 +36,7 @@
.menuIcon {
@apply hidden;
@screen lg {
@apply block text-primary cursor-pointer mx-1;
@apply block cursor-pointer mx-1 text-white;
}
}

Expand Down Expand Up @@ -68,7 +68,7 @@
@apply hidden;

@screen lg {
@apply block font-bold text-xl cursor-pointer -ml-4;
@apply block font-bold text-xl cursor-pointer -ml-4 text-white;
path {
@apply stroke-[3.5rem];
}
Expand All @@ -87,10 +87,14 @@
@apply text-sm;

li {
@apply mx-4 px-2 text-link-1;
@apply mx-4 px-2;
}
}

.tab {
@apply text-storm-50;
}

.tabPanel {
@apply px-0 absolute left-0 right-0 bottom-0 top-9 overflow-auto;
}
Expand Down
19 changes: 9 additions & 10 deletions web/renderer/components/DefinitionList/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
@apply mb-10;

h4 {
@apply mx-3 mb-1.5 mt-3 text-base;
@apply mx-3 mb-1.5 mt-3 text-base text-storm-50;
}
}

.text {
@apply mb-5 mt-2 mx-5;
@apply mb-5 mt-2 mx-5 text-white;
}

.icon {
@apply text-xl mr-2 text-primary rounded-full opacity-25;
@apply text-xl mr-2 text-white rounded-full opacity-25;
}

.item {
Expand All @@ -22,11 +22,10 @@
}
}

.item:hover .icon {
@apply opacity-100;

&:hover {
@apply text-sky-900;
.item:hover {
.icon,
.name {
@apply text-sky-900 opacity-100;
}
}

Expand All @@ -40,11 +39,11 @@

.selected,
.item:hover {
@apply bg-white text-link-2;
@apply bg-storm-200 text-link-2;
}

.name {
@apply text-link-1 text-sm font-semibold;
@apply text-white text-sm font-semibold;
}

.viewing {
Expand Down
30 changes: 19 additions & 11 deletions web/renderer/components/TableList/Item/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

.buttonIcon {
@apply text-primary opacity-25 text-2xl mr-4 h-6 mt-1 rounded-full;
@apply text-white text-2xl mr-4 h-6 mt-1 rounded-full font-normal;

&:focus {
@apply widget-shadow-lightblue outline-none;
Expand All @@ -12,43 +12,51 @@

.active,
.item:hover {
@apply bg-white;
@apply bg-storm-50 text-storm-600;

.buttonIcon {
@apply font-semibold;
}
}

.item:hover .buttonIcon {
@apply opacity-100;
@apply text-sky-900;
}

&:hover {
.isExpanded {
@apply bg-[#fafbfc];
.buttonIcon {
@apply text-sky-900;
}
}

.isExpanded {
background-color: #fafbfc;
.isExpanded .tableName {
@apply text-storm-600 font-semibold;
}

.isExpanded .table {
@apply text-storm-600 font-semibold bg-storm-50;
}
.table {
@apply flex justify-between text-sm;
&:hover {
@apply bg-storm-50;
.tableName {
@apply text-storm-600;
}
}
}

.tableName {
@apply hidden;

@screen lg {
@apply flex p-3 text-link-1 font-semibold w-full text-sm;
@apply flex p-3 text-white w-full text-sm;

svg {
@apply inline-block text-sm mt-1 mr-2;
}

&:hover {
@apply text-link-2;
}

&:focus {
@apply outline-none;

Expand Down
4 changes: 2 additions & 2 deletions web/renderer/components/TableList/index.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.addTable {
@apply hidden;
@screen lg {
@apply flex my-8 mx-3 text-sm text-sky-900;
@apply flex my-8 mx-3 text-sm text-white;

&:hover {
@apply text-link-2;
@apply text-sky-300;
}

svg {
Expand Down
8 changes: 7 additions & 1 deletion web/renderer/components/Views/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
}

.text {
@apply my-4 mx-5;
@apply my-4 mx-5 text-storm-50;
a {
@apply text-white;
&:hover {
@apply text-sky-300;
}
}
}

.icon {
Expand Down

0 comments on commit cbb0254

Please sign in to comment.