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
4c6191b1
Commit
4c6191b1
authored
Jun 24, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract style patterns from AnnotationLicense
parent
17b20e61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
23 deletions
+18
-23
annotation-license.js
src/sidebar/components/annotation-license.js
+6
-14
annotation-license.scss
src/styles/sidebar/components/annotation-license.scss
+8
-9
util.scss
src/styles/util.scss
+4
-0
No files found.
src/sidebar/components/annotation-license.js
View file @
4c6191b1
...
...
@@ -9,25 +9,17 @@ export default function AnnotationLicense() {
return
(
<
div
className
=
"annotation-license"
>
<
a
className
=
"
annotation-license__link
u-layout-row u-color-text--muted"
className
=
"u-layout-row u-color-text--muted"
href
=
"http://creativecommons.org/publicdomain/zero/1.0/"
title
=
"View more information about the Creative Commons Public Domain dedication"
target
=
"_blank"
rel
=
"noopener noreferrer"
>
<
SvgIcon
name
=
"cc-std"
inline
=
{
true
}
className
=
"annotation-license__icon"
/>
<
SvgIcon
name
=
"cc-zero"
inline
=
{
true
}
className
=
"annotation-license__icon"
/>
<
span
className
=
"annotation-license__details"
>
<
div
className
=
"annotation-license__icons"
>
<
SvgIcon
name
=
"cc-std"
inline
=
{
true
}
className
=
"u-icon--xsmall"
/>
<
SvgIcon
name
=
"cc-zero"
inline
=
{
true
}
className
=
"u-icon--xsmall"
/>
<
/div
>
Annotations
can
be
freely
reused
by
anyone
for
any
purpose
.
<
/span
>
<
/a
>
<
/div
>
);
...
...
src/styles/sidebar/components/annotation-license.scss
View file @
4c6191b1
...
...
@@ -5,16 +5,15 @@
.annotation-license
{
@include
utils
.
font--small
;
@include
utils
.
border-top
;
// Space between border and text content
padding-top
:
var
.
$layout-margin--small
;
&
__icon
{
@include
utils
.
icon--xsmall
;
// Need a tiny space between license icons
margin-right
:
1px
;
}
&
__details
{
// TODO: Horizontal rhythm
margin-left
:
0
.25em
;
// Container with two icons (representing CC licenses)
// with a very small amount of spacing between them
&
__icons
{
@include
layout
.
row
;
@include
layout
.
horizontal-rhythm
(
1px
);
// Add space before text
margin-right
:
var
.
$layout-margin--xsmall
;
}
}
src/styles/util.scss
View file @
4c6191b1
...
...
@@ -54,6 +54,10 @@
@include
utils
.
icon--inline
;
}
.u-icon--xsmall
{
@include
utils
.
icon--xsmall
;
}
.u-icon--large
{
@include
utils
.
icon--large
;
}
...
...
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