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
b46deaf5
Commit
b46deaf5
authored
Jun 24, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and apply additional utility classes
parent
5d0b1028
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
65 additions
and
22 deletions
+65
-22
annotation-document-info.js
src/sidebar/components/annotation-document-info.js
+3
-3
annotation-header.js
src/sidebar/components/annotation-header.js
+1
-1
annotation-license.js
src/sidebar/components/annotation-license.js
+1
-1
annotation-share-control.js
src/sidebar/components/annotation-share-control.js
+1
-1
annotation-share-info.js
src/sidebar/components/annotation-share-info.js
+1
-1
annotation.js
src/sidebar/components/annotation.js
+2
-2
new-note-btn.js
src/sidebar/components/new-note-btn.js
+1
-1
share-annotations-panel.js
src/sidebar/components/share-annotations-panel.js
+2
-6
top-bar.js
src/sidebar/components/top-bar.js
+2
-2
util.scss
src/styles/util.scss
+51
-4
No files found.
src/sidebar/components/annotation-document-info.js
View file @
b46deaf5
...
...
@@ -15,8 +15,8 @@ export default function AnnotationDocumentInfo({ annotation }) {
}
return
(
<
div
className
=
"annotation-document-info"
>
<
div
className
=
"annotation-document-info__title"
>
<
div
className
=
"annotation-document-info
u-layout-row u-horizontal-rhythm
"
>
<
div
className
=
"annotation-document-info__title
u-color-text--muted
"
>
on
&
quot
;
{
documentInfo
.
titleLink
?
(
<
a
href
=
{
documentInfo
.
titleLink
}
>
{
documentInfo
.
titleText
}
<
/a
>
...
...
@@ -26,7 +26,7 @@ export default function AnnotationDocumentInfo({ annotation }) {
&
quot
;
<
/div
>
{
documentInfo
.
domain
&&
(
<
div
className
=
"annotation-document-info__domain"
>
<
div
className
=
"annotation-document-info__domain
u-color-text--muted
"
>
({
documentInfo
.
domain
})
<
/div
>
)}
...
...
src/sidebar/components/annotation-header.js
View file @
b46deaf5
...
...
@@ -80,7 +80,7 @@ export default function AnnotationHeader({
)}
<
span
className
=
"annotation-header__timestamp-created"
>
<
Timestamp
className
=
"annotation-header__timestamp-created-link"
className
=
"annotation-header__timestamp-created-link
u-color-text--muted
"
href
=
{
annotationLink
}
timestamp
=
{
annotation
.
created
}
/
>
...
...
src/sidebar/components/annotation-license.js
View file @
b46deaf5
...
...
@@ -9,7 +9,7 @@ export default function AnnotationLicense() {
return
(
<
div
className
=
"annotation-license"
>
<
a
className
=
"annotation-license__link"
className
=
"annotation-license__link
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"
...
...
src/sidebar/components/annotation-share-control.js
View file @
b46deaf5
...
...
@@ -101,7 +101,7 @@ function AnnotationShareControl({
<
/div
>
<
/div
>
<
div
className
=
"annotation-share-panel__content"
>
<
div
className
=
"annotation-share-panel__input"
>
<
div
className
=
"annotation-share-panel__input
u-layout-row
"
>
<
input
aria
-
label
=
"Use this URL to share this annotation"
className
=
"annotation-share-panel__form-input"
...
...
src/sidebar/components/annotation-share-info.js
View file @
b46deaf5
...
...
@@ -26,7 +26,7 @@ function AnnotationShareInfo({ annotation }) {
);
return
(
<
div
className
=
"annotation-share-info"
>
<
div
className
=
"annotation-share-info
u-layout-row--align-baseline
"
>
{
linkToGroup
&&
(
<
a
className
=
"annotation-share-info__group"
...
...
src/sidebar/components/annotation.js
View file @
b46deaf5
...
...
@@ -123,7 +123,7 @@ function Annotation({
)}
{
isEditing
&&
(
<
div
className
=
"annotation__form-actions"
>
<
div
className
=
"annotation__form-actions
u-layout-row
"
>
<
AnnotationPublishControl
annotation
=
{
annotation
}
isDisabled
=
{
isEmpty
}
...
...
@@ -135,7 +135,7 @@ function Annotation({
{
!
isCollapsedReply
&&
(
<
footer
className
=
"annotation__footer"
>
<
div
className
=
"annotation__controls"
>
<
div
className
=
"annotation__controls
u-layout-row
"
>
{
shouldShowReplyToggle
&&
(
<
Button
className
=
"annotation__reply-toggle"
...
...
src/sidebar/components/new-note-btn.js
View file @
b46deaf5
...
...
@@ -27,7 +27,7 @@ function NewNoteButton({ annotationsService, settings }) {
};
return
(
<
div
className
=
"
new-note-button
"
>
<
div
className
=
"
u-layout-row--justify-right
"
>
<
Button
buttonText
=
"New note"
className
=
"button--primary"
...
...
src/sidebar/components/share-annotations-panel.js
View file @
b46deaf5
...
...
@@ -68,7 +68,7 @@ function ShareAnnotationsPanel({ analytics, toastMessenger }) {
<
p
>
Use
this
link
to
share
these
annotations
with
anyone
:
<
/p
>
)}
<
/div
>
<
div
className
=
"
share-annotations-panel__input
"
>
<
div
className
=
"
u-layout-row
"
>
<
input
aria
-
label
=
"Use this URL to share these annotations"
className
=
"share-annotations-panel__form-input"
...
...
@@ -97,11 +97,7 @@ function ShareAnnotationsPanel({ analytics, toastMessenger }) {
)}{
' '
}
<
span
>
Private
(
<
SvgIcon
name
=
"lock"
inline
className
=
"share-annotations-panel__icon--inline"
/>
{
' '
}
<
SvgIcon
name
=
"lock"
inline
className
=
"u-icon--inline"
/>
{
' '
}
<
em
>
Only
Me
<
/em>
)
annotations are only visible to you
.
<
/span
>
<
/p
>
...
...
src/sidebar/components/top-bar.js
View file @
b46deaf5
...
...
@@ -101,7 +101,7 @@ function TopBar({
{
!
isSidebar
&&
(
<
div
className
=
"top-bar__inner content"
>
<
StreamSearchInput
/>
<
div
className
=
"
top-bar__expander
"
/>
<
div
className
=
"
u-stretch
"
/>
<
Button
className
=
"top-bar__icon-button"
icon
=
"help"
...
...
@@ -116,7 +116,7 @@ function TopBar({
{
isSidebar
&&
(
<
div
className
=
"top-bar__inner content"
>
<
GroupList
className
=
"GroupList"
auth
=
{
auth
}
/
>
<
div
className
=
"
top-bar__expander
"
/>
<
div
className
=
"
u-stretch
"
/>
{
pendingUpdateCount
>
0
&&
(
<
Button
className
=
"top-bar__icon-button top-bar__icon-button--refresh"
...
...
src/styles/util.scss
View file @
b46deaf5
@use
"./mixins/a11y"
;
@use
"./mixins/layout"
;
@use
"./mixins/utils"
;
@use
'./variables'
as
var
;
// Utility classes for layout
.u-stretch
{
flex-grow
:
1
;
}
// Utility classes
// Use these classes on elements that don't require additional styling
// Layout
// Establish a flex container with a horizontal flow
.u-layout-row
{
@include
layout
.
row
;
}
// Establish a row flex container that aligns its children to (vertical) center
.u-layout-row--align-center
,
.u-layout-row--align-middle
{
@include
layout
.
row
(
$align
:
center
);
}
// Establish a row flex container that aligns its children along the baseline
.u-layout-row--align-baseline
{
@include
layout
.
row
(
$align
:
baseline
);
}
// Establish a row flex container justifies its children right
.u-layout-row--justify-right
{
@include
layout
.
row
(
$justify
:
right
);
}
// Use this class to make an element in a flex container "stretchy" and grow
// when there is extra space available.
.u-stretch
{
flex-grow
:
1
;
}
// Put equal, standard spacing between children horizontally
.u-horizontal-rhythm
{
@include
layout
.
horizontal-rhythm
;
}
// Put equal standard spacing between children vertically
.u-vertical-rhythm
{
@include
layout
.
vertical-rhythm
;
}
// Icons
// These utilities establish dimensions appropriate for icon elements
// Use for inline icons to size according to text content
.u-icon--inline
{
@include
utils
.
icon--inline
;
}
.u-icon--large
{
@include
utils
.
icon--large
;
}
// Misc
// Make element content invisible except to assistive technology
.u-screen-reader-only
{
@include
a11y
.
screen-reader-only
;
}
// Use on elements for a de-emphasized, muted text color
.u-color-text--muted
{
color
:
var
.
$color-text-light
;
}
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