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
bd643cd8
Commit
bd643cd8
authored
Jul 02, 2015
by
Jake Hartnell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2336 from hypothesis/topbar-toolbar-harmony
Topbar toolbar harmony
parents
027704e9
a0406ac8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
57 deletions
+42
-57
simple-search.coffee
h/static/scripts/directive/simple-search.coffee
+11
-6
common.scss
h/static/styles/common.scss
+0
-16
forms.scss
h/static/styles/forms.scss
+6
-1
simple-search.scss
h/static/styles/simple-search.scss
+2
-11
topbar.scss
h/static/styles/topbar.scss
+23
-23
No files found.
h/static/scripts/directive/simple-search.coffee
View file @
bd643cd8
module
.
exports
=
[
'$http'
,
'$parse'
,
(
$http
,
$parse
)
->
module
.
exports
=
[
'$http'
,
'$parse'
,
(
$http
,
$parse
)
->
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
button
=
elem
.
find
(
'button'
)
input
=
elem
.
find
(
'input'
)
button
.
on
(
'click'
,
->
input
.
focus
())
scope
.
reset
=
(
event
)
->
scope
.
reset
=
(
event
)
->
event
.
preventDefault
()
event
.
preventDefault
()
scope
.
query
=
''
scope
.
query
=
''
...
@@ -30,12 +35,12 @@ module.exports = ['$http', '$parse', ($http, $parse) ->
...
@@ -30,12 +35,12 @@ module.exports = ['$http', '$parse', ($http, $parse) ->
<input class="simple-search-input" type="text" ng-model="searchtext" name="searchText"
<input class="simple-search-input" type="text" ng-model="searchtext" name="searchText"
placeholder="{{loading && 'Loading' || 'Search'}}…"
placeholder="{{loading && 'Loading' || 'Search'}}…"
ng-disabled="loading" />
ng-disabled="loading" />
<
span class="simple-search-ico
n" ng-hide="loading">
<
button class="simple-search-icon btn btn-clea
n" ng-hide="loading">
<i class="h-icon-search"></i>
<i class="h-icon-search
btn-icon
"></i>
</
spa
n>
</
butto
n>
<
span class="simple-search-icon" ng-show="loading"
>
<
button class="simple-search-icon btn btn-clean" ng-show="loading" disabled
>
<
i class="spinner"></i
>
<
span class="btn-icon"><span class="spinner"></span></span
>
</
spa
n>
</
butto
n>
</form>
</form>
'''
'''
]
]
h/static/styles/common.scss
View file @
bd643cd8
...
@@ -110,22 +110,6 @@ html {
...
@@ -110,22 +110,6 @@ html {
}
}
}
}
// Share this view /////////////////////
.share-dialog-toggle
{
top
:
1px
;
left
:
8px
;
position
:
relative
;
cursor
:
pointer
;
color
:
$gray-light
;
float
:
left
;
margin-right
:
15px
;
&
:hover
{
color
:
$gray-dark
;
}
}
.share-links
{
.share-links
{
a
{
a
{
font-size
:
1
.5em
;
font-size
:
1
.5em
;
...
...
h/static/styles/forms.scss
View file @
bd643cd8
...
@@ -238,7 +238,8 @@
...
@@ -238,7 +238,8 @@
}
}
.btn-clean
{
.btn-clean
{
&
,
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
&
,
&
:focus
,
&
:hover
,
&
:active
,
&
[
disabled
],
&
.js-hover
,
&
.js-focus
,
&
.js-active
,
&
.js-disabled
{
@include
box-shadow
(
none
);
@include
box-shadow
(
none
);
padding-left
:
0
;
padding-left
:
0
;
padding-right
:
0
;
padding-right
:
0
;
...
@@ -253,6 +254,10 @@
...
@@ -253,6 +254,10 @@
&
:active
,
&
.js-active
{
&
:active
,
&
.js-active
{
color
:
$link-color-hover
;
color
:
$link-color-hover
;
}
}
&
[
disabled
],
&
.js-disabled
{
color
:
$text-color
;
}
}
}
// Positions the icon nicely within the button.
// Positions the icon nicely within the button.
...
...
h/static/styles/simple-search.scss
View file @
bd643cd8
@import
"base.scss"
;
@import
"base.scss"
;
@import
"mixins/icons"
;
@import
"mixins/icons"
;
.simple-search
{
overflow
:
hidden
;
}
.simple-search-form
{
.simple-search-form
{
@include
clearfix
;
@include
clearfix
;
position
:
relative
;
position
:
relative
;
padding
:
0
1
.5385em
;
padding
:
0
2em
;
color
:
$gray-darker
;
color
:
$gray-dark
;
}
.simple-search-form
*
{
line-height
:
inherit
;
}
}
.simple-search-icon
{
.simple-search-icon
{
...
@@ -27,7 +19,6 @@
...
@@ -27,7 +19,6 @@
}
}
input
.simple-search-input
{
input
.simple-search-input
{
float
:
left
;
outline
:
none
;
outline
:
none
;
color
:
$text-color
;
color
:
$text-color
;
width
:
100%
;
width
:
100%
;
...
...
h/static/styles/topbar.scss
View file @
bd643cd8
...
@@ -6,42 +6,42 @@
...
@@ -6,42 +6,42 @@
border
:
solid
1px
$gray-lighter
;
border
:
solid
1px
$gray-lighter
;
border-style
:
solid
none
;
border-style
:
solid
none
;
height
:
30px
;
height
:
30px
;
line-height
:
28px
;
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
z-index
:
5
;
z-index
:
5
;
.barbutton
{
.inner
{
&
:hover
{
*
{
@include
box-shadow
(
inset
0
1px
3px
hsla
(
0
,
0%
,
0%
,
.1
));
font-size
:
14px
;
line-height
:
28px
;
.btn-icon
{
font-size
:
18px
;
}
}
}
&
:active
{
@include
respond-to
(
wide-handhelds
handhelds
)
{
@include
box-shadow
(
inset
0
2px
3px
hsla
(
0
,
0%
,
0%
,
.1
))
;
margin
:
0
.72em
;
}
}
}
}
}
.inner
{
.topbar
.btn
{
margin
:
0
auto
;
color
:
$gray-light
;
max-width
:
$break-tablet
;
height
:
28px
;
padding
:
0
4em
;
min-width
:
28px
;
position
:
relative
;
@include
respond-to
(
wide-handhelds
handhelds
)
{
border
:
0
;
padding-left
:
0
;
padding
:
0
;
padding-right
:
0
;
}
&
.pull-right
{
&
:active
,
.js-active
{
display
:
inline-block
;
@include
single-transition
(
background-color
,
.25s
)
;
font-family
:
$sans-font-family
;
background-color
:
$gray-light
;
}
}
&
>
*
:first-child
,
&
>
*
:last-child
{
&
:focus
,
.js-focus
,
&
:hover
,
.js-hover
{
line-height
:
28px
;
color
:
$gray-dark
;
margin
:
0
.72em
;
}
}
}
}
}
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