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
1030376e
Commit
1030376e
authored
Oct 01, 2013
by
Robert Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More style fixes and changes
parent
f7e6117e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
39 deletions
+77
-39
layout.erb
source/layouts/layout.erb
+1
-1
all.css.scss
source/stylesheets/all.css.scss
+46
-30
syntax.css.scss.erb
source/stylesheets/syntax.css.scss.erb
+5
-0
variables.scss
source/stylesheets/variables.scss
+25
-8
No files found.
source/layouts/layout.erb
View file @
1030376e
...
...
@@ -9,7 +9,7 @@
<!-- Use title if it's in the page YAML frontmatter -->
<title>
<%=
current_page
.
data
.
title
||
"API Documentation"
%>
</title>
<%=
stylesheet_link_tag
"
normalize"
,
"all"
,
"syntax
"
%>
<%=
stylesheet_link_tag
"
all
"
%>
<script
src=
"http://code.jquery.com/jquery-1.10.1.min.js"
></script>
<%=
javascript_include_tag
"all"
%>
...
...
source/stylesheets/all.css.scss
View file @
1030376e
@charset
"utf-8"
;
@import
'normalize'
;
@import
'compass'
;
@import
'variables'
;
@import
'syntax'
;
/*
* jquery.tocify.css 1.7.0
...
...
@@ -24,11 +26,11 @@ html, body {
z-index
:
10
;
background-color
:
$main-bg
;
padding
:
1px
0
;
// prevent headers margin from overflowing
padding
-bottom
:
1px
;
// prevent margin overflow
.dark-box
{
width
:
$examples-width
;
background
:
$examples-bg
;
background
-color
:
$examples-bg
;
position
:
absolute
;
right
:
0
;
top
:
0
;
...
...
@@ -41,28 +43,29 @@ html, body {
z-index
:
50
;
font-weight
:
bold
;
background-color
:
$lang-select-bg
;
@include
background-image
(
linear-gradient
(
top
,
#1d82c6
,
#1864ab
));
border-bottom
:
1px
solid
#000
;
// @include background-image(linear-gradient(top, #1d82c6, #1864ab));
border-bottom
:
5px
solid
$examples-bg
;
// box-shadow: 0 10px 5px $code-bg;
a
{
background-color
:
$lang-select-bg
;
//
background-color: $lang-select-bg;
display
:
block
;
float
:left
;
color
:
$lang-select-text
;
text-decoration
:
none
;
padding
:
0
10px
;
border-right
:
1px
solid
$lang-select-border
;
//
border-right: 1px solid $lang-select-border;
line-height
:
30px
;
@include
background-image
(
linear-gradient
(
top
,
#1d82c6
,
#1864ab
));
&
:active
,
&
.active
{
&
.active
{
background-color
:
$examples-bg
;
border-top
:
1px
solid
$examples-bg
;
border-right-color
:
$examples-bg
;
margin-bottom
:
-1px
;
background-image
:
none
;
position
:
relative
;
top
:
1px
;
z-index
:
70
;
}
&
:active
{
background-color
:
#000
;
border-color
:
#000
;
}
}
&
:after
{
...
...
@@ -87,12 +90,15 @@ html, body {
background-color
:
rgba
(
0
,
0
,
0
,
0
.05
);
padding
:
3px
;
border-radius
:
3px
;
@include
break-words
;
}
&
>
h1
,
&
>
h2
,
&
>
h3
,
&
>
p
,
&
>
table
,
&
>
ul
,
&
>
ol
{
margin-right
:
$examples-width
;
@include
box-sizing
(
border-box
);
}
&
>
h1
,
&
>
h2
,
&
>
h3
,
&
>
p
,
&
>
table
,
&
>
ul
,
&
>
ol
{
padding
:
0
$main-padding
;
@include
box-sizing
(
border-box
);
display
:
block
;
@include
embedded-text
;
}
...
...
@@ -120,9 +126,8 @@ html, body {
th
{
padding
:
5px
10px
;
border-bottom
:
1px
solid
#
999
;
border-bottom
:
1px
solid
#
ccc
;
vertical-align
:
bottom
;
max-width
:
100%
;
}
td
{
...
...
@@ -130,14 +135,14 @@ html, body {
}
tr
:last-child
{
border-bottom
:
1px
solid
#
999
;
border-bottom
:
1px
solid
#
ccc
;
}
tr
:nth-child
(
even
)>
td
{
tr
:nth-child
(
odd
)>
td
{
background-color
:
lighten
(
$main-bg
,
4
.2%
);
}
tr
:nth-child
(
odd
)>
td
{
tr
:nth-child
(
even
)>
td
{
background-color
:
lighten
(
$main-bg
,
2
.4%
);
}
}
...
...
@@ -158,15 +163,15 @@ html, body {
h2
{
font-size
:
20px
;
margin-top
:
2
em
;
margin-top
:
4
em
;
margin-bottom
:
0
;
padding-bottom
:
1
.2em
;
@include
background-image
(
linear-gradient
(
top
,
rgba
(
#fff
,
0
.4
)
,
rgba
(
#fff
,
0
)));
}
h2
,
h1
+
p
,
h1
+
table
,
h1
+
ul
,
h1
+
ol
{
border-top
:
1px
solid
#ccc
;
padding-top
:
1
.2em
;
@include
background-image
(
linear-gradient
(
top
,
rgba
(
#fff
,
0
.75
)
,
rgba
(
#fff
,
0
)));
}
h1
+
h2
,
h1
+
div
+
h2
{
...
...
@@ -189,16 +194,20 @@ html, body {
margin-top
:
0
;
}
img
{
max-width
:
100%
;
}
pre
,
blockquote
{
background-color
:
$code-bg
;
float
:right
;
width
:
$examples-width
;
clear
:right
;
@include
box-sizing
(
border-box
);
padding
:
0
$main-padding
;
margin
:
0
;
color
:
#fff
;
@include
text-shadow
(
0px
1px
2px
rgba
(
0
,
0
,
0
,
0
.4
));
padding
:
$main-padding
/
2
$main-padding
;
padding
:
2em
$main-padding
;
&
>
p
{
margin
:
0
;
}
a
{
color
:
#fff
;
...
...
@@ -207,10 +216,15 @@ html, body {
}
}
pre
{
background-color
:
$code-bg
;
@include
fancy-inset-border-top
;
@include
fancy-inset-border-bottom
;
blockquote
{
&
>
p
{
background-color
:
$code-annotation-bg
;
border-radius
:
5px
;
padding
:
$code-annotation-padding
;
color
:
#ccc
;
@include
fancy-inset-border-top
;
@include
fancy-inset-border-bottom
;
}
}
}
...
...
@@ -229,6 +243,7 @@ html, body {
font-weight
:
bold
;
&
>
img
{
background-color
:
#f29a3c
;
display
:
block
;
margin-bottom
:
$logo-margin
;
}
...
...
@@ -240,7 +255,7 @@ html, body {
overflow-x
:hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
@include
text-shadow
(
0px
-1px
1px
rgba
(
0
,
0
,
0
,
0
.5
));
// @include text-shadow(0px 0px 3px rgba(0,0,0,0.7
));
}
/* The Table of Contents is composed of multiple nested unordered lists. These styles remove the default styling of an unordered list because it is ugly. */
...
...
@@ -252,7 +267,6 @@ html, body {
}
.tocify
li
{
background-color
:
rgba
(
#1d82c6
,
0
);
color
:
#fff
;
@include
transition-property
(
'background'
);
@include
transition-timing-function
(
'linear'
);
...
...
@@ -262,7 +276,9 @@ html, body {
.tocify
.tocify-focus
{
@include
box-shadow
(
0px
1px
0px
#000
);
// @include background-image(linear-gradient(top, #1d82c6, #1864ab));
background-color
:
rgba
(
#1d82c6
,
1
);
// background-color: #1d82c6;
background-color
:
$nav-select-bg
;
color
:
#fff
;
}
/* Top level header elements */
...
...
source/stylesheets/syntax.css.erb
→
source/stylesheets/syntax.css.
scss.
erb
View file @
1030376e
<%=
Rouge
::
Themes
::
Base16
::
Monokai
.
render
(
:scope
=>
'.highlight'
)
%>
@import 'variables';
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
color: #909090;
}
.highlight, .highlight .w {
background-color: $code-bg;
}
\ No newline at end of file
source/stylesheets/variables.scss
View file @
1030376e
...
...
@@ -2,19 +2,21 @@
$nav-width
:
230px
;
// default padding of the navbar
$nav-padding
:
20
px
;
$nav-padding
:
15
px
;
// background colors
$nav-bg
:
#393939
;
$examples-bg
:
#393939
;
$code-bg
:
#262626
;
$code-bg
:
#292929
;
$code-annotation-bg
:
#1c1c1c
;
$nav-subitem-bg
:
#262626
;
$lang-select-bg
:
#1d82c6
;
$lang-select-hover-bg
:
#175fa1
;
$nav-select-bg
:
#2467af
;
$lang-select-border
:
#000
;
$lang-select-bg
:
#222222
;
$main-bg
:
#eaf2f6
;
// border colors
$lang-select-border
:
#113a6f
;
//
$lang-select-border: #113a6f;
// text colors
// $nav-bg: #393939;
...
...
@@ -23,13 +25,15 @@ $lang-select-border: #113a6f;
// $nav-subitem-bg: #262626;
$lang-select-text
:
#fff
;
$examples-width
:
45%
;
$examples-width
:
50%
;
$code-annotation-padding
:
13px
;
// indentation amount for sub-items
$nav-indent
:
10px
;
// padding to the left of the main content, to the right of the navbar
$main-padding
:
40
px
;
$main-padding
:
28
px
;
// primary text color
$main-text-color
:
#333
;
...
...
@@ -38,7 +42,7 @@ $main-text-color: #333;
$line-color
:
#cfcfcf
;
// margin between nav items and logo
$logo-margin
:
0px
;
$logo-margin
:
2
0px
;
// these are for the code blocks on the right, and the
...
...
@@ -54,4 +58,17 @@ $logo-margin: 0px;
@mixin
embedded-text
(
$opacity
:
1
)
{
@include
text-shadow
(
0px
1px
0px
rgba
(
#fff
,
$opacity
));
}
@mixin
break-words
{
-ms-word-break
:
break-all
;
word-break
:
break-all
;
/* Non standard for webkit */
word-break
:
break-word
;
-webkit-hyphens
:
auto
;
-moz-hyphens
:
auto
;
hyphens
:
auto
;
}
\ No newline at end of file
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