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
f28396fd
Commit
f28396fd
authored
Jan 08, 2016
by
Sean Hammond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style the sidebar tutorial
parent
e7b7b1dd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
17 deletions
+78
-17
app.scss
h/static/styles/app.scss
+1
-0
sidebar-tutorial.scss
h/static/styles/sidebar-tutorial.scss
+50
-0
sidebar_tutorial.html
h/templates/client/sidebar_tutorial.html
+27
-17
No files found.
h/static/styles/app.scss
View file @
f28396fd
...
...
@@ -15,6 +15,7 @@ $base-line-height: 20px;
@import
'./publish-annotation-btn'
;
@import
'./search-status-bar'
;
@import
'./share-link'
;
@import
'./sidebar-tutorial'
;
@import
'./signin-control'
;
@import
'./simple-search'
;
@import
'./top-bar'
;
...
...
h/static/styles/sidebar-tutorial.scss
0 → 100644
View file @
f28396fd
.sidebar-tutorial__header
{
color
:
$color-cardinal
;
font-weight
:
$title-font-weight
;
}
/* We want an ordered list in which the numbers are aligned with the text
above (not indented or dedented), and wrapped lines in list items are
aligned with the first character of the list item (not the number, i.e
they're indented):
This is a list:
1. This is a list item.
2. This is a long list item
that wraps.
3. This is another list item.
What's more, we want the numbers to be a different color to the text of the
list items, which means we need to use ::before content for them.
This appears to be much harder than you'd think.
The code below comes from this Stack Overflow answer:
http://stackoverflow.com/questions/10428720/how-to-keep-indent-for-second-line-in-ordered-lists-via-css/17515230#17515230
*/
.sidebar-tutorial__list
{
counter-reset
:
sidebar-tutorial__list
;
display
:
table
;
padding
:
0
;
}
.sidebar-tutorial__list-item
{
list-style
:
none
;
counter-increment
:
sidebar-tutorial__list
;
display
:
table-row
;
}
.
sidebar-tutorial__list-item
:
:
before
{
content
:
counter
(
sidebar-tutorial__list
)
"."
;
display
:
table-cell
;
/* aha! */
text-align
:
right
;
padding-right
:
.3em
;
color
:
$gray-light
;
}
.sidebar-tutorial__list-item-content
{
margin-top
:
1em
;
/* Put vertical space in-between list items, equal to the
space between normal paragraphs.
Note: This also puts the same amount of space above the
first list item (i.e. between the list and whatever's
above it). */
}
h/templates/client/sidebar_tutorial.html
View file @
f28396fd
<div
class=
"sheet"
ng-if=
"vm.showSidebarTutorial()"
>
<i
class=
"close h-icon-close"
role=
"button"
title=
"Close"
ng-click=
"vm.dismiss()"
></i>
<h1>
How to get started
</h1>
<ol>
<li>
<h1
class=
"sidebar-tutorial__header"
>
How to get started
</h1>
<ol
class=
"sidebar-tutorial__list"
>
<li
class=
"sidebar-tutorial__list-item"
>
<p
class=
"sidebar-tutorial__list-item-content"
>
To create an annotation, select text and click the
<i
class=
"h-icon-insert-comment"
></i>
button.
<i
class=
"h-icon-insert-comment"
></i>
button.
</p>
</li>
<li>
<li
class=
"sidebar-tutorial__list-item"
>
<p
class=
"sidebar-tutorial__list-item-content"
>
To create a highlight, select text and click the
<i
class=
"h-icon-border-color"
></i>
button.
<i
class=
"h-icon-border-color"
></i>
button.
</p>
</li>
<li>
<li
class=
"sidebar-tutorial__list-item"
>
<p
class=
"sidebar-tutorial__list-item-content"
>
To reply to an annotation, click the
<i
class=
"h-icon-reply"
></i>
<strong>
Reply
</strong>
link.
<i
class=
"h-icon-reply"
></i>
<strong>
Reply
</strong>
link.
</p>
</li>
<li>
<li
class=
"sidebar-tutorial__list-item"
>
<p
class=
"sidebar-tutorial__list-item-content"
>
To share an annotated page, click the
<i
class=
"h-icon-share"
></i>
button at the top.
<i
class=
"h-icon-share"
></i>
button at the top.
</p>
</li>
<li>
<li
class=
"sidebar-tutorial__list-item"
>
<p
class=
"sidebar-tutorial__list-item-content"
>
To create a private group, select
<strong>
Public
</strong>
,
open the dropdown, click
<strong>
+ New group
</strong>
.
open the dropdown, click
<strong>
+
New
group
</strong>
.
</p>
</li>
</ol>
</div>
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