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
4029b1d9
Commit
4029b1d9
authored
Jun 23, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate box-shadow mixins
parent
4066b675
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
12 deletions
+17
-12
annotator.scss
src/styles/annotator/annotator.scss
+2
-2
bucket-bar.scss
src/styles/annotator/bucket-bar.scss
+2
-2
molecules.scss
src/styles/mixins/molecules.scss
+2
-2
shadow.scss
src/styles/mixins/shadow.scss
+0
-3
utils.scss
src/styles/mixins/utils.scss
+8
-0
autocomplete-list.scss
src/styles/sidebar/components/autocomplete-list.scss
+2
-1
menu.scss
src/styles/sidebar/components/menu.scss
+1
-1
variables.scss
src/styles/variables.scss
+0
-1
No files found.
src/styles/annotator/annotator.scss
View file @
4029b1d9
...
...
@@ -2,7 +2,7 @@
@use
'../variables'
as
var
;
@use
'../mixins/focus'
;
@use
'../mixins/reset'
;
@use
'../mixins/
shadow
'
;
@use
'../mixins/
utils
'
;
// Shared components.
@use
'../components/svg-icon'
;
...
...
@@ -82,7 +82,7 @@ $sidebar-collapse-transition-time: 150ms;
@include
focus
.
outline-on-keyboard-focus
;
transition
:
background-color
0
.25s
;
@include
shadow
.
small
shadow
;
@include
utils
.
shadow
;
background
:
var
.
$white
;
border
:
solid
1px
var
.
$grey-3
;
border-radius
:
4px
;
...
...
src/styles/annotator/bucket-bar.scss
View file @
4029b1d9
@use
"../mixins/reset"
;
@use
"../mixins/
shadow
"
;
@use
"../mixins/
utils
"
;
@use
"../variables"
as
var
;
// Bucket-bar styles are nested inside `.annotator-frame` to ensure they take
...
...
@@ -69,7 +69,7 @@
&
.lower
,
&
.upper
{
@include
shadow
.
small
shadow
;
@include
utils
.
shadow
;
z-index
:
1
;
&
:before
,
...
...
src/styles/mixins/molecules.scss
View file @
4029b1d9
...
...
@@ -10,8 +10,8 @@
*/
@mixin
card-frame
{
@include
utils
.
border
;
@include
utils
.
shadow
;
border-radius
:
2px
;
box-shadow
:
0px
1px
1px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
background-color
:
var
.
$color-background
;
}
...
...
@@ -27,7 +27,7 @@
&
:hover
,
&
.is-focused
{
box-shadow
:
0px
2px
3px
0px
rgba
(
0
,
0
,
0
,
0
.15
)
;
@include
utils
.
active-shadow
;
}
&
--theme-clean
{
...
...
src/styles/mixins/shadow.scss
deleted
100644 → 0
View file @
4066b675
@mixin
smallshadow
(
$a
:
0
,
$b
:
1px
,
$c
:
0
.1
)
{
box-shadow
:
$a
$b
1px
hsla
(
0
,
0%
,
0%
,
$c
);
}
src/styles/mixins/utils.scss
View file @
4029b1d9
...
...
@@ -73,3 +73,11 @@
font-size
:
var
.
$font-size--large
;
font-weight
:
500
;
}
@mixin
shadow
{
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.1
);
}
@mixin
active-shadow
{
box-shadow
:
0px
2px
3px
0px
rgba
(
0
,
0
,
0
,
0
.15
);
}
src/styles/sidebar/components/autocomplete-list.scss
View file @
4029b1d9
@use
"../../variables"
as
var
;
@use
"../../mixins/utils"
;
.autocomplete-list
{
position
:
relative
;
...
...
@@ -8,6 +9,7 @@
}
.autocomplete-list__items
{
@include
utils
.
shadow
;
@supports
(
clip-path
:
polygon
(
0
0
,
100
%
0
,
0
%
100
%
,
0
%
100
%
))
{
&
:before
{
/**
...
...
@@ -34,7 +36,6 @@
min-width
:
10em
;
background-color
:
var
.
$white
;
border
:
1px
solid
var
.
$grey-3
;
box-shadow
:
var
.
$popup-menu-shadow
;
z-index
:
10
;
@media
(
pointer
:
coarse
)
{
...
...
src/styles/sidebar/components/menu.scss
View file @
4029b1d9
...
...
@@ -73,8 +73,8 @@
.menu__content
{
@include
utils
.
font--large
;
@include
utils
.
border
;
@include
utils
.
shadow
;
background-color
:
white
;
box-shadow
:
var
.
$popup-menu-shadow
;
position
:
absolute
;
top
:
calc
(
100%
+
5px
);
z-index
:
1
;
...
...
src/styles/variables.scss
View file @
4029b1d9
...
...
@@ -108,7 +108,6 @@ $zindex-tooltip: 20;
// -------------------------
$bucket-bar-width
:
22px
;
$top-bar-height
:
40px
;
$popup-menu-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.1
);
$color-border
:
$grey-3
;
$border-width
:
1px
;
...
...
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