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
0aa90848
Commit
0aa90848
authored
Feb 18, 2016
by
Nick Stenning
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2980 from hypothesis/annotation-style-cleanup
Annotation card & groups list style cleanup
parents
369f3d95
d5604fcb
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
158 additions
and
164 deletions
+158
-164
annotation.scss
h/static/styles/annotation.scss
+2
-5
app.scss
h/static/styles/app.scss
+11
-140
common.scss
h/static/styles/common.scss
+8
-13
dropdown-menu-btn.scss
h/static/styles/dropdown-menu-btn.scss
+3
-1
group-list.scss
h/static/styles/group-list.scss
+102
-0
markdown.scss
h/static/styles/markdown.scss
+0
-0
primary-action-btn.scss
h/static/styles/primary-action-btn.scss
+7
-3
signin-control.scss
h/static/styles/signin-control.scss
+23
-0
thread.scss
h/static/styles/thread.scss
+0
-0
signin_control.html
h/templates/client/signin_control.html
+2
-2
No files found.
h/static/styles/annotation
s
.scss
→
h/static/styles/annotation.scss
View file @
0aa90848
...
@@ -143,11 +143,8 @@ $annotation-card-left-padding: 10px;
...
@@ -143,11 +143,8 @@ $annotation-card-left-padding: 10px;
}
}
}
}
//PRIVACY CONTROL////////////////////////////
// Share dialog
privacy
{
// ------------
position
:
relative
;
top
:
2px
;
}
.share-dialog-wrapper
{
.share-dialog-wrapper
{
position
:
relative
;
position
:
relative
;
...
...
h/static/styles/app.scss
View file @
0aa90848
...
@@ -8,19 +8,28 @@ $base-line-height: 20px;
...
@@ -8,19 +8,28 @@ $base-line-height: 20px;
@import
'./elements'
;
@import
'./elements'
;
@import
'./common'
;
@import
'./common'
;
// components
// Components
// ----------
@import
'./annotation'
;
@import
'./api-token-input'
;
@import
'./api-token-input'
;
@import
'./dropdown-menu-btn'
;
@import
'./excerpt'
;
@import
'./excerpt'
;
@import
'./group-list'
;
@import
'./markdown'
;
@import
'./primary-action-btn'
;
@import
'./primary-action-btn'
;
@import
'./dropdown-menu-btn'
;
@import
'./publish-annotation-btn'
;
@import
'./publish-annotation-btn'
;
@import
'./search-status-bar'
;
@import
'./search-status-bar'
;
@import
'./share-link'
;
@import
'./share-link'
;
@import
'./sidebar-tutorial'
;
@import
'./sidebar-tutorial'
;
@import
'./signin-control'
;
@import
'./signin-control'
;
@import
'./simple-search'
;
@import
'./simple-search'
;
@import
'./spinner'
;
@import
'./tags-input'
;
@import
'./thread'
;
@import
'./top-bar'
;
@import
'./top-bar'
;
// Top-level styles
// ----------------
body
{
body
{
$sidebar-h-padding
:
9px
;
$sidebar-h-padding
:
9px
;
...
@@ -93,141 +102,3 @@ body {
...
@@ -93,141 +102,3 @@ body {
top
:
1em
;
top
:
1em
;
}
}
}
}
.user
{
font-weight
:
bold
;
font-size
:
1
.1em
;
&
:hover
{
color
:
$link-color-hover
;
cursor
:
pointer
;
text-decoration
:
underline
;
}
}
/* The groups dropdown list. */
$group-list-width
:
270px
;
$group-list-spacing-below
:
50px
;
.group-list
{
.dropdown
{
white-space
:
nowrap
;
}
.dropdown-menu
{
width
:
$group-list-width
;
max-height
:
500px
;
// fallback for browsers lacking support for vh/calc
max-height
:
calc
(
100vh
-
#{
$top-bar-height
}
-
#{
$group-list-spacing-below
}
);
overflow-y
:
auto
;
.group-name
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
width
:
$group-list-width
-
30px
;
}
}
.group-item
{
display
:
flex
;
flex-direction
:
row
;
flex-grow
:
1
;
padding
:
10px
;
cursor
:
pointer
;
&
:hover
{
.group-name-link
{
color
:
$brand-color
;
}
}
&
.selected
{
.group-name-link
{
font-size
:
$body2-font-size
;
font-weight
:
600
;
}
}
}
.group-icon-container
{
margin-right
:
10px
;
}
.group-cancel-icon-container
{
// the 'Leave group' icon is shifted down slightly
// so that it lines up vertically with the 'chat heads' icon on the
// left-hand side of the groups list
padding-top
:
3px
;
margin-right
:
2px
;
}
.group-details
{
flex-grow
:
1
;
flex-shrink
:
1
;
}
.new-group-btn
{
background-color
:
$gray-lightest
;
.group-item
{
padding-top
:
12px
;
padding-bottom
:
12px
;
}
.h-icon-add
{
font-weight
:
bold
;
}
}
}
// the icon indicating the type of group currently selected at
// the top of the groups list
.group-list-label__icon
{
color
:
$color-gray
;
display
:
inline-block
;
margin-right
:
4px
;
vertical-align
:
baseline
;
// align the base of the chat-heads icon for groups
// with the baseline of the group name label
transform
:
translateY
(
1px
);
}
// the label showing the currently selected group which opens
// the drop-down list when clicked
.group-list-label__label
{
font-size
:
$body2-font-size
;
font-weight
:bold
;
}
// the name of a group in the groups drop-down list
// and 'Post to <Group>' button for saving annotations
.group-name-link
{
white-space
:
nowrap
;
color
:
inherit
;
}
/* The user account dropdown menu */
.user-picker
{
.avatar
{
border-radius
:
2px
;
}
.dropdown-toggle
{
.provider
{
color
:
$gray-light
;
display
:
none
;
}
&
:hover
{
.provider
{
display
:
inline
;
}
}
}
.dropdown.open
.provider
{
display
:
inline
;
}
}
h/static/styles/common.scss
View file @
0aa90848
@import
'compass/typography/text/force-wrap'
;
@import
'compass/layout/stretching'
;
@import
'compass/layout/stretching'
;
@import
'base'
;
@import
'compass/typography/text/force-wrap'
;
@import
'mixins/responsive'
;
@import
'./base'
;
@import
'grid'
;
@import
'./forms'
;
@import
'annotations'
;
@import
'./grid'
;
@import
'forms'
;
@import
'./mixins/responsive'
;
@import
'markdown-editor'
;
@import
'./page'
;
@import
'spinner'
;
@import
'./styled-text'
;
@import
'threads'
;
@import
'styled-text'
;
@import
'tags-input'
;
@import
'page'
;
//ELEMENT STYLES////////////////////////////////
//ELEMENT STYLES////////////////////////////////
body
{
body
{
...
...
h/static/styles/dropdown-menu-btn.scss
View file @
0aa90848
@import
'./primary-action-btn'
;
// the primary action button for a form
// the primary action button for a form
.dropdown-menu-btn
{
.dropdown-menu-btn
{
$text-color
:
$color-seashell
;
$text-color
:
$color-seashell
;
...
@@ -12,7 +14,7 @@
...
@@ -12,7 +14,7 @@
position
:
relative
;
position
:
relative
;
&
__btn
{
&
__btn
{
@
extend
.
primary-action-btn
;
@
include
primary-action-btn
;
// the label occupies the entire space of the button and
// the label occupies the entire space of the button and
// shows a darker state on hover
// shows a darker state on hover
...
...
h/static/styles/group-list.scss
0 → 100644
View file @
0aa90848
/* The groups dropdown list. */
$group-list-width
:
270px
;
$group-list-spacing-below
:
50px
;
.group-list
{
.dropdown
{
white-space
:
nowrap
;
}
.dropdown-menu
{
width
:
$group-list-width
;
max-height
:
500px
;
// fallback for browsers lacking support for vh/calc
max-height
:
calc
(
100vh
-
#{
$top-bar-height
}
-
#{
$group-list-spacing-below
}
);
overflow-y
:
auto
;
.group-name
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
width
:
$group-list-width
-
30px
;
}
}
.group-item
{
display
:
flex
;
flex-direction
:
row
;
flex-grow
:
1
;
padding
:
10px
;
cursor
:
pointer
;
&
:hover
{
.group-name-link
{
color
:
$brand-color
;
}
}
&
.selected
{
.group-name-link
{
font-size
:
$body2-font-size
;
font-weight
:
600
;
}
}
}
.group-icon-container
{
margin-right
:
10px
;
}
.group-cancel-icon-container
{
// the 'Leave group' icon is shifted down slightly
// so that it lines up vertically with the 'chat heads' icon on the
// left-hand side of the groups list
padding-top
:
3px
;
margin-right
:
2px
;
}
.group-details
{
flex-grow
:
1
;
flex-shrink
:
1
;
}
.new-group-btn
{
background-color
:
$gray-lightest
;
.group-item
{
padding-top
:
12px
;
padding-bottom
:
12px
;
}
.h-icon-add
{
font-weight
:
bold
;
}
}
}
// the icon indicating the type of group currently selected at
// the top of the groups list
.group-list-label__icon
{
color
:
$color-gray
;
display
:
inline-block
;
margin-right
:
4px
;
vertical-align
:
baseline
;
// align the base of the chat-heads icon for groups
// with the baseline of the group name label
transform
:
translateY
(
1px
);
}
// the label showing the currently selected group which opens
// the drop-down list when clicked
.group-list-label__label
{
font-size
:
$body2-font-size
;
font-weight
:bold
;
}
// the name of a group in the groups drop-down list
// and 'Post to <Group>' button for saving annotations
.group-name-link
{
white-space
:
nowrap
;
color
:
inherit
;
}
h/static/styles/markdown
-editor
.scss
→
h/static/styles/markdown.scss
View file @
0aa90848
File moved
h/static/styles/primary-action-btn.scss
View file @
0aa90848
// A dark grey button used for the primary action
@mixin
primary-action-btn
{
// in a form
.primary-action-btn
{
// note that there is currently some duplication here between
// note that there is currently some duplication here between
// the styling for this element and <dropdown-menu-btn>
// the styling for this element and <dropdown-menu-btn>
color
:
$color-seashell
;
color
:
$color-seashell
;
...
@@ -24,6 +22,12 @@
...
@@ -24,6 +22,12 @@
}
}
}
}
// A dark grey button used for the primary action
// in a form
.primary-action-btn
{
@include
primary-action-btn
;
}
.primary-action-btn--short
{
.primary-action-btn--short
{
height
:
30px
;
height
:
30px
;
}
}
...
...
h/static/styles/signin-control.scss
View file @
0aa90848
...
@@ -2,3 +2,26 @@
...
@@ -2,3 +2,26 @@
font-size
:
$body2-font-size
;
font-size
:
$body2-font-size
;
padding-left
:
6px
;
padding-left
:
6px
;
}
}
/* The user account dropdown menu */
.signin-control-menu
{
.avatar
{
border-radius
:
2px
;
}
.dropdown-toggle
{
.provider
{
color
:
$gray-light
;
display
:
none
;
}
&
:hover
{
.provider
{
display
:
inline
;
}
}
}
.dropdown.open
.provider
{
display
:
inline
;
}
}
h/static/styles/thread
s
.scss
→
h/static/styles/thread.scss
View file @
0aa90848
File moved
h/templates/client/signin_control.html
View file @
0aa90848
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
/
<a
href=
""
ng-click=
"vm.onLogin()"
>
Sign in
</a>
/
<a
href=
""
ng-click=
"vm.onLogin()"
>
Sign in
</a>
</span>
</span>
<div
ng-if=
"vm.newStyle"
<div
ng-if=
"vm.newStyle"
class=
"pull-right
user-picker
"
class=
"pull-right
signin-control-menu
"
dropdown
dropdown
keyboard-nav
>
keyboard-nav
>
<a
role=
"button"
<a
role=
"button"
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<a
href=
""
ng-click=
"vm.onLogin()"
>
Sign in
</a>
<a
href=
""
ng-click=
"vm.onLogin()"
>
Sign in
</a>
</span>
</span>
<div
ng-if=
"!vm.newStyle"
<div
ng-if=
"!vm.newStyle"
class=
"pull-right
user-picker
"
class=
"pull-right
signin-control-menu
"
dropdown
dropdown
keyboard-nav
>
keyboard-nav
>
<span
role=
"button"
data-toggle=
"dropdown"
dropdown-toggle
>
<span
role=
"button"
data-toggle=
"dropdown"
dropdown-toggle
>
...
...
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