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
84b3e5e3
Commit
84b3e5e3
authored
Apr 21, 2014
by
Robert Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add search frontmatter key to specify visibility of search
parent
0316c0c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
index.md
source/index.md
+1
-0
layout.erb
source/layouts/layout.erb
+6
-4
screen.css.scss
source/stylesheets/screen.css.scss
+4
-0
variables.scss
source/stylesheets/variables.scss
+1
-1
No files found.
source/index.md
View file @
84b3e5e3
...
...
@@ -13,6 +13,7 @@ toc_footers:
includes
:
-
errors
search
:
true
---
# Introduction
...
...
source/layouts/layout.erb
View file @
84b3e5e3
...
...
@@ -38,10 +38,12 @@ under the License.
<body
class=
"
<%=
page_classes
%>
"
>
<div
class=
"tocify-wrapper"
>
<%=
image_tag
"logo.png"
%>
<div
class=
"search"
>
<input
type=
"text"
class=
"search"
id=
"input-search"
>
</div>
<div
class=
"search-info"
></div>
<%
if
current_page
.
data
.
search
%>
<div
class=
"search"
>
<input
type=
"text"
class=
"search"
id=
"input-search"
>
</div>
<div
class=
"search-info"
></div>
<%
end
%>
<div
id=
"toc"
>
</div>
<%
if
current_page
.
data
.
toc_footers
%>
...
...
source/stylesheets/screen.css.scss
View file @
84b3e5e3
...
...
@@ -81,6 +81,10 @@ html, body {
}
}
img
+
.tocify
{
margin-top
:
$logo-margin
;
}
.search-info
{
margin-top
:
0
;
padding
:
1em
$nav-padding
;
...
...
source/stylesheets/variables.scss
View file @
84b3e5e3
...
...
@@ -54,7 +54,7 @@ $lang-select-pressed-text: #fff; // color of language tab text when mouse is pre
////////////////////
$nav-width
:
230px
;
// width of the navbar
$examples-width
:
50%
;
// portion of the screen taken up by code examples
$logo-margin
:
20px
;
// margin between nav items and logo
$logo-margin
:
20px
;
// margin between nav items and logo
, ignored if search is active
$main-padding
:
28px
;
// padding to left and right of content & examples
$nav-padding
:
15px
;
// padding to left and right of navbar
$nav-indent
:
10px
;
// extra padding for ToC subitems
...
...
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