Skip to content

Commit

Permalink
Optimize UI box shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Feb 5, 2025
1 parent fbbb9cf commit 28b6728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions Tekst-Web/public/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
--font-size-gigantic: 26px;

--border-radius: 4px;
--block-box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.04), 0 3px 6px 0 rgba(0, 0, 0, 0.03),
0 5px 12px 4px rgba(0, 0, 0, 0.04);
--fixed-box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.14), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
0 5px 12px 4px rgba(0, 0, 0, 0.1);
--block-box-shadow: 0 3px 6px 4px rgba(0, 0, 0, 0.04);
--affix-box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.15);
}

/* For screens with a width of 900px and above, use slightly larger font sizes. */
Expand Down
2 changes: 1 addition & 1 deletion Tekst-Web/src/components/TasksWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function handleTaskClick(id: string) {
#tasks-widget .task-list {
min-width: 280px;
max-width: 80vw;
box-shadow: var(--fixed-box-shadow);
box-shadow: var(--affix-box-shadow);
background-color: var(--base-color);
border: 2px solid var(--accent-color);
border-radius: var(--border-radius);
Expand Down
3 changes: 1 addition & 2 deletions Tekst-Web/src/components/browse/BrowseToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,11 @@ const buttonSize = computed(() => (state.smallScreen ? 'small' : 'large'));
/* width: 100vw; */
left: 0px;
z-index: 1801;
box-shadow: var(--fixed-box-shadow);
box-shadow: var(--affix-box-shadow);
}
.browse-toolbar {
padding: var(--gap-sm);
box-shadow: var(--fixed-box-shadow);
}
.browse-toolbar-middle {
Expand Down

0 comments on commit 28b6728

Please sign in to comment.