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
c95b0f36
Commit
c95b0f36
authored
May 11, 2016
by
Sheetal Umesh Kumar
Committed by
Nick Stenning
May 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update visual design of about dialog. (#3305)
* Also remove duplicated variables in css.
parent
53417ebc
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
79 additions
and
66 deletions
+79
-66
about-this-version-dialog.scss
h/static/styles/about-this-version-dialog.scss
+37
-11
annotation-share-dialog.scss
h/static/styles/annotation-share-dialog.scss
+5
-5
annotation.scss
h/static/styles/annotation.scss
+0
-1
loggedout-message.scss
h/static/styles/loggedout-message.scss
+5
-5
variables.scss
h/static/styles/variables.scss
+2
-12
about_this_version_dialog.html
h/templates/client/about_this_version_dialog.html
+28
-30
feedback_link.html
h/templates/client/feedback_link.html
+2
-2
No files found.
h/static/styles/about-this-version-dialog.scss
View file @
c95b0f36
.about-this-version__key
{
.about-this-version
{
@include
font-normal
;
background
:
$grey-3
;
margin-bottom
:
.72em
;
padding
:
$layout-h-margin
;
border-radius
:
2px
;
}
.about-this-version-title
{
color
:
$grey-6
;
font-weight
:
bold
;
// Margin between top of the dialog and
// top of x-height of title should be ~15px.
margin-top
:
-5px
;
}
.about-this-version-content
{
// Margin between bottom of ascent of title and
// top of x-height of content should be 20px.
margin-top
:
11px
;
}
.about-this-version-content__key
{
width
:
100px
;
float
:
left
;
color
:
$gr
ay-light
;
color
:
$gr
ey-4
;
}
.about-this-version__val
{
margin-left
:
100px
;
.about-this-version-content__val
{
word-wrap
:
break-word
;
margin-left
:
100px
;
}
.about-this-version-feedback
{
margin-top
:
10px
;
.about-this-version-content-feedback
{
// Margin between bottom of x-height of about content and
// top of x-height of about this version feedback has to be
// ~20px.
margin-top
:
$layout-h-margin
-
4px
;
// Margin between bottom of x-height of about this version link
// and bottom of the dialog should be ~20px.
margin-bottom
:
-
$layout-h-margin
+
5px
;
}
.about-this-version-feedback__link
{
text-decoration
:
underline
;
color
:
$dg-4
;
.about-this-version-content-feedback__link
{
color
:
$grey-6
;
&
:hover
{
color
:
$dg-1
;
text-decoration
:
underline
;
}
}
h/static/styles/annotation-share-dialog.scss
View file @
c95b0f36
...
...
@@ -65,7 +65,7 @@
color
:
$text-color
;
border
:
1px
solid
$gray-lighter
;
border-radius
:
2px
;
background
:
$
lg-3
;
background
:
$
grey-1
;
white-space
:
nowrap
;
overflow
:
hidden
;
display
:
flex
;
...
...
@@ -85,13 +85,13 @@
}
.annotation-share-dialog-link__btn
{
color
:
$
dg-3
;
color
:
$
grey-5
;
padding
:
0px
;
margin-left
:
7px
;
}
.annotation-share-dialog-link__btn
:hover
{
color
:
$
dg-1
;
color
:
$
grey-7
;
}
.annotation-share-dialog-target
{
...
...
@@ -108,14 +108,14 @@
}
.annotation-share-dialog-target__icon
{
color
:
$
dg-3
;
color
:
$
grey-5
;
text-decoration
:
none
;
font-size
:
20px
;
cursor
:
pointer
;
}
.annotation-share-dialog-target__icon
:hover
{
color
:
$
dg-1
;
color
:
$
grey-7
;
}
// Feedback message displayed after the user copies the link to the clipboard
...
...
h/static/styles/annotation.scss
View file @
c95b0f36
...
...
@@ -45,7 +45,6 @@ $annotation-card-left-padding: 10px;
.annotation
{
display
:
block
;
font-family
:
$sans-font-family
;
font-weight
:
400
;
position
:
relative
;
}
...
...
h/static/styles/loggedout-message.scss
View file @
c95b0f36
...
...
@@ -2,17 +2,17 @@
margin
:
25px
auto
;
width
:
70%
;
text-align
:
center
;
color
:
$
dg-3
;
color
:
$
grey-5
;
display
:
flex
;
flex-direction
:
column
;
}
.loggedout-message__link
{
text-decoration
:
underline
;
color
:
$
dg-3
;
color
:
$
grey-5
;
&
:hover
{
color
:
$
dg-1
;
color
:
$
grey-7
;
}
}
...
...
@@ -22,9 +22,9 @@
.loggedout-message-logo__icon
{
font-size
:
30px
;
color
:
$
dg
-4
;
color
:
$
grey
-4
;
&
:hover
{
color
:
$
dg-1
;
color
:
$
grey-7
;
}
}
h/static/styles/variables.scss
View file @
c95b0f36
...
...
@@ -173,26 +173,16 @@ $score-height: $score-width;
$top-bar-height
:
40px
;
$input-border-radius
:
2px
;
// Variables for the new color palette
// ------------------------------------
$dg-1
:
#202020
;
$dg-2
:
#3F3F3F
;
$dg-3
:
#7A7A7A
;
$dg-4
:
#A6A6A6
;
$lg-1
:
#DBDBDB
;
$lg-2
:
#ECECEC
;
$lg-3
:
#F2F2F2
;
$primary
:
#BD1C2B
;
$highlight
:
#58CEF4
;
// Mixins
// ------
@mixin
font-small
{
font-size
:
$small-font-size
;
line-height
:
$small-line-height
;
font-weight
:
400
;
}
@mixin
font-normal
{
font-size
:
$normal-font-size
;
line-height
:
$normal-line-height
;
font-weight
:
400
;
}
h/templates/client/about_this_version_dialog.html
View file @
c95b0f36
<div
class=
"
sheet
"
>
<div
class=
"
about-this-version
"
>
<i
class=
"close h-icon-close"
role=
"button"
title=
"Close"
ng-click=
"vm.onClose()"
></i>
<div
class=
"about-this-version"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
href=
""
>
About this version
</a></li>
</ul>
<dl
class=
"tab-content"
>
<dt
class=
"about-this-version__key"
>
Version:
</dt>
<dd
class=
"about-this-version__val"
>
{{ vm.version }}
</dd>
<dt
class=
"about-this-version__key"
>
User agent:
</dt>
<dd
class=
"about-this-version__val"
>
{{ vm.userAgent }}
</dd>
<dt
class=
"about-this-version__key"
>
URL:
</dt>
<dd
class=
"about-this-version__val"
>
{{ vm.url }}
</dd>
<div
ng-if=
"vm.documentFingerprint"
>
<dt
class=
"about-this-version__key"
>
PDF fingerprint:
</dt>
<dd
class=
"about-this-version__val"
>
{{ vm.documentFingerprint }}
</dd>
</div>
<div
ng-if=
"vm.auth.userid"
>
<dt
class=
"about-this-version__key"
>
Username:
</dt>
<dd
class=
"about-this-version__val"
>
{{ vm.auth.username }}
</dd>
</div>
<dt
class=
"about-this-version__key"
>
Date:
</dt>
<dd
class=
"about-this-version__val"
>
{{ vm.dateTime | date:'dd MMM yyyy HH:mm:ss Z' }}
</dd>
<feedback-link
version=
"vm.version"
user-agent=
"vm.userAgent"
url=
"vm.url"
document-fingerprint=
"vm.documentFingerprint"
auth=
"vm.auth"
date-time=
"vm.dateTime"
>
</feedback-link>
<header
class=
"about-this-version-title"
>
About this version
</header>
<dl
class=
"about-this-version-content"
>
<dt
class=
"about-this-version-content__key"
>
Version:
</dt>
<dd
class=
"about-this-version-content__val"
>
{{ vm.version }}
</dd>
<dt
class=
"about-this-version-content__key"
>
User agent:
</dt>
<dd
class=
"about-this-version-content__val"
>
{{ vm.userAgent }}
</dd>
<dt
class=
"about-this-version-content__key"
>
URL:
</dt>
<dd
class=
"about-this-version-content__val"
>
{{ vm.url }}
</dd>
<div
ng-if=
"vm.documentFingerprint"
>
<dt
class=
"about-this-version-content__key"
>
PDF fingerprint:
</dt>
<dd
class=
"about-this-version-content__val"
>
{{ vm.documentFingerprint }}
</dd>
</div>
<div
ng-if=
"vm.auth.userid"
>
<dt
class=
"about-this-version-content__key"
>
Username:
</dt>
<dd
class=
"about-this-version-content__val"
>
{{ vm.auth.username }}
</dd>
</div>
<dt
class=
"about-this-version-content__key"
>
Date:
</dt>
<dd
class=
"about-this-version-content__val"
>
{{ vm.dateTime | date:'dd MMM yyyy HH:mm:ss Z' }}
</dd>
<feedback-link
version=
"vm.version"
user-agent=
"vm.userAgent"
url=
"vm.url"
document-fingerprint=
"vm.documentFingerprint"
auth=
"vm.auth"
date-time=
"vm.dateTime"
>
</feedback-link>
</div>
</div>
h/templates/client/feedback_link.html
View file @
c95b0f36
<div
class=
"about-this-version-feedback"
>
<a
class=
"about-this-version-feedback__link"
href=
"mailto:support@hypothes.is?subject=Hypothesis%20feedback&body=Version:%20{{ vm.version }}%0D%0AUser%20Agent:%20{{vm.userAgent}}%0D%0AURL:%20{{ vm.url }}%0D%0APDF%20fingerprint:%20{{ vm.documentFingerprint ? vm.documentFingerprint : '-' }}%0D%0AUsername:%20{{ vm.auth.username ? vm.auth.username : '-' }}%0D%0ADate:%20{{ vm.dateTime | date:'dd MMM yyyy HH:mm:ss Z' }} "
>
<div
class=
"about-this-version-
content-
feedback"
>
<a
class=
"about-this-version-
content-
feedback__link"
href=
"mailto:support@hypothes.is?subject=Hypothesis%20feedback&body=Version:%20{{ vm.version }}%0D%0AUser%20Agent:%20{{vm.userAgent}}%0D%0AURL:%20{{ vm.url }}%0D%0APDF%20fingerprint:%20{{ vm.documentFingerprint ? vm.documentFingerprint : '-' }}%0D%0AUsername:%20{{ vm.auth.username ? vm.auth.username : '-' }}%0D%0ADate:%20{{ vm.dateTime | date:'dd MMM yyyy HH:mm:ss Z' }} "
>
Send us feedback
</a>
</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