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
d80d8e98
Commit
d80d8e98
authored
Apr 05, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Apr 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be consistent with kebab case for Tailwind class names
parent
ae945afb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
AdderToolbar.js
src/annotator/components/AdderToolbar.js
+3
-3
Excerpt.js
src/sidebar/components/Excerpt.js
+1
-1
tailwind.config.mjs
tailwind.config.mjs
+8
-8
No files found.
src/annotator/components/AdderToolbar.js
View file @
d80d8e98
...
...
@@ -136,7 +136,7 @@ export default function AdderToolbar({
<
div
className
=
{
classnames
(
'AdderToolbar'
,
'absolute select-none bg-white rounded shadow-adder
T
oolbar'
,
'absolute select-none bg-white rounded shadow-adder
-t
oolbar'
,
// Because `.AdderToolbar` rules reset `all:initial`, we cannot use
// default border values from Tailwind and have to be explicit about
// all border attributes
...
...
@@ -144,8 +144,8 @@ export default function AdderToolbar({
// Start at a very low opacity as we're going to fade in in the animation
'opacity-5'
,
{
'animate-adder
PopU
p'
:
arrowDirection
===
'up'
&&
isVisible
,
'animate-adder
PopD
own'
:
arrowDirection
===
'down'
&&
isVisible
,
'animate-adder
-pop-u
p'
:
arrowDirection
===
'up'
&&
isVisible
,
'animate-adder
-pop-d
own'
:
arrowDirection
===
'down'
&&
isVisible
,
}
)}
dir
=
"ltr"
...
...
src/sidebar/components/Excerpt.js
View file @
d80d8e98
...
...
@@ -178,7 +178,7 @@ function Excerpt({
{
// For expandable excerpts not using inlineControls, style this
// element with a custom shadow-like gradient
'bg-gradient-to-b from-excerpt
Stop1 via-excerptStop2 to-excerptStop
3'
:
'bg-gradient-to-b from-excerpt
-stop-1 via-excerpt-stop-2 to-excerpt-stop-
3'
:
!
inlineControls
&&
isExpandable
,
'bg-none'
:
inlineControls
,
// Don't make this shadow visible OR clickable if there's nothing
...
...
tailwind.config.mjs
View file @
d80d8e98
...
...
@@ -16,8 +16,8 @@ export default {
theme
:
{
extend
:
{
animation
:
{
adderPopUp
:
'adderPopUp
0.08s ease-in forwards'
,
adderPopDown
:
'adderPopDown
0.08s ease-in forwards'
,
'adder-pop-down'
:
'adder-pop-down
0.08s ease-in forwards'
,
'adder-pop-up'
:
'adder-pop-up
0.08s ease-in forwards'
,
'fade-in-slow'
:
'fade-in 1s ease-in'
,
},
borderRadius
:
{
...
...
@@ -30,7 +30,7 @@ export default {
},
boxShadow
:
{
DEFAULT
:
'0 1px 1px rgba(0, 0, 0, 0.1)'
,
adderToolbar
:
'0px 2px 10px 0px rgba(0, 0, 0, 0.25)'
,
'adder-toolbar'
:
'0px 2px 10px 0px rgba(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
...
...
@@ -88,12 +88,12 @@ export default {
gradientColorStops
:
{
// These gradient stops define a custom gradient shown at the bottom of
// long annotation body excerpts.
excerptStop1
:
'rgba(255, 255, 255, 0) 50%'
,
excerptStop2
:
'rgba(0, 0, 0, 0.08) 95%'
,
excerptStop3
:
'rgba(0, 0, 0, 0.13) 100%'
,
'excerpt-stop-1'
:
'rgba(255, 255, 255, 0) 50%'
,
'excerpt-stop-2'
:
'rgba(0, 0, 0, 0.08) 95%'
,
'excerpt-stop-3'
:
'rgba(0, 0, 0, 0.13) 100%'
,
},
keyframes
:
{
adderPopDown
:
{
'adder-pop-down'
:
{
'0%'
:
{
opacity
:
'0.05'
,
transform
:
'scale(0.8) translateY(10px)'
,
...
...
@@ -106,7 +106,7 @@ export default {
transform
:
'scale(1) translateY(0px)'
,
},
},
adderPopUp
:
{
'adder-pop-up'
:
{
'0%'
:
{
opacity
:
'0.05'
,
transform
:
'scale(0.8) translateY(-10px)'
,
...
...
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