Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node-slate
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
Nguyễn Hải Sơn
node-slate
Commits
b5419b1e
Commit
b5419b1e
authored
Jun 15, 2014
by
Robert Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add background to nav button
parent
3a91faa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
layout.erb
source/layouts/layout.erb
+4
-2
screen.css.scss
source/stylesheets/screen.css.scss
+11
-9
No files found.
source/layouts/layout.erb
View file @
b5419b1e
...
...
@@ -42,8 +42,10 @@ under the License.
<body
class=
"
<%=
page_classes
%>
"
>
<a
href=
"#"
id=
"nav-button"
>
<%=
image_tag
(
'navbar.png'
)
%>
<span>
NAV
</span>
<span>
NAV
<%=
image_tag
(
'navbar.png'
)
%>
</span>
</a>
<div
class=
"tocify-wrapper"
>
<%=
image_tag
"logo.png"
%>
...
...
source/stylesheets/screen.css.scss
View file @
b5419b1e
...
...
@@ -197,12 +197,20 @@ html, body {
// button to show navigation on mobile devices
#nav-button
{
span
{
display
:
block
;
$side-pad
:
$main-padding
/
2
-
8px
;
padding
:
$side-pad
$side-pad
$side-pad
;
background-color
:
rgba
(
$main-bg
,
0
.7
);
@include
transform-origin
(
0
,
0
);
@include
transform
(
rotate
(
-90deg
)
translate
(
-100%
,
0
));
border-radius
:
0
0
0
5px
;
}
padding
:
0
1
.5em
5em
0
;
// increase touch size area
display
:
none
;
position
:
fixed
;
top
:
0
;
left
:
0
;
$side-pad
:
$main-padding
/
2
-
8px
;
padding
:
$side-pad
1
.5em
5em
$side-pad
;
// increase touch area size
z-index
:
100
;
color
:
#000
;
text-decoration
:
none
;
...
...
@@ -211,13 +219,7 @@ html, body {
line-height
:
16px
;
img
{
height
:
16px
;
}
span
{
position
:
absolute
;
top
:
35px
;
left
:
1px
;
line-height
:
1
;
@include
transform
(
rotate
(
-90deg
));
vertical-align
:
bottom
;
}
@include
transition
(
left
ease-in-out
0
.3s
);
...
...
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