Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
66405bd9
Commit
66405bd9
authored
Nov 09, 2023
by
Alejandro Celaya
Committed by
Alejandro Celaya
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a more prominent shadow in menus
parent
abb81a75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
AdderToolbar.tsx
src/annotator/components/AdderToolbar.tsx
+1
-1
Menu.tsx
src/sidebar/components/Menu.tsx
+1
-1
tailwind.config.mjs
tailwind.config.mjs
+3
-1
No files found.
src/annotator/components/AdderToolbar.tsx
View file @
66405bd9
...
...
@@ -238,7 +238,7 @@ export default function AdderToolbar({
// default border values from Tailwind and have to be explicit about all
// border attributes.
'border border-solid border-grey-3'
,
'absolute select-none bg-white rounded shadow-
adder-toolbar
'
,
'absolute select-none bg-white rounded shadow-
intense
'
,
// Start at a very low opacity as we're going to fade-in in the animation
'opacity-5'
,
{
...
...
src/sidebar/components/Menu.tsx
View file @
66405bd9
...
...
@@ -223,7 +223,7 @@ export default function Menu({
'focus-visible-ring'
,
// Position menu content near bottom of menu label/toggle control
'absolute top-[calc(100%+3px)] z-1'
,
'border shadow rounded-lg overflow-hidden bg-white text-md'
,
'border shadow
-intense
rounded-lg overflow-hidden bg-white text-md'
,
{
'left-0'
:
align
===
'left'
,
'right-0'
:
align
===
'right'
,
...
...
tailwind.config.mjs
View file @
66405bd9
...
...
@@ -25,7 +25,9 @@ export default {
'slide-in-from-right'
:
'slide-in-from-right 0.3s forwards ease-in-out'
,
},
boxShadow
:
{
'adder-toolbar'
:
'0px 2px 10px 0px rgba(0, 0, 0, 0.25)'
,
// A more prominent shadow than the one used by tailwind, intended for
// popovers and menus
intense
:
'0px 2px 10px 0px rgb(0 0 0 / 0.25)'
,
focus
:
`0 0 0 2px
${
focusBlue
}
`
,
'focus-inner'
:
`inset 0 0 0 2px
${
focusBlue
}
`
,
// The shadow shown along the edge of the sidebar in the clean theme
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment