Skip to content

Commit

Permalink
style updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Sep 4, 2014
1 parent da57c30 commit 1ff002f
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 14 deletions.
4 changes: 3 additions & 1 deletion docs/components/docs/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ <h1 class="logo">
</header><!-- end of .page-header -->

<article class="main lang-page" role="main">
<section class="content">
<header class="docs-header">
<h1 class="page-title">Node.js</h1>
</header>

<section class="content">
<article>
<h1>{{module[0].toUpperCase() + module.substr(1)}}</h1>
<p>
Expand Down
144 changes: 131 additions & 13 deletions docs/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ textarea {
========================================================================== */

html {
height: 100%;
background: #fff;
}

body {
height: 100%;
font-family: 'Roboto', sans-serif;
color: #5d6061;
}
Expand Down Expand Up @@ -332,7 +334,6 @@ h1, h2, h3, h4, h5, h6 {
What is it?
*/
.about pre {
border: 0;
font-size: 110%;
}

Expand Down Expand Up @@ -556,16 +557,95 @@ h1, h2, h3, h4, h5, h6 {
/* Docs Content
========================================================================== */

.content {
padding: 4em 2em 1em;
.docs-header {
position: relative;
padding: 7em 2em 4em;
background: #f8f8f8;
border-bottom: 1px solid rgba(0,0,0,0.05);
}

/*
Page Title
*/

.page-title {
margin-bottom: 1em;
margin: 0;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
color: #4285f4;
font-size: 2.4em;
line-height: 1em;
}

/*
Versions
*/

.versions {
display: inline-block;
margin-top: 2em;
}

.versions span,
.versions a {
display: block;
}

.v-current {
font-size: 1.2em;
color: #2b70e2;
}

.v-current i {
font-size: 0.7em;
}

.v-btn {
padding: 0.5em;
border: 1px solid rgba(0,0,0,0.2);
background: rgba(0,0,0,0.07);
font-size: 0.8em;
color: rgba(0,0,0,0.6);
text-align: center;
text-decoration: none;
/* Transitions */
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}

.v-btn:hover {
background: rgba(0,0,0,0.02);
}

.v-btn img {
position: relative;
top: -0.1em;
opacity: 0.3;
}

.v-list {
color: rgba(0,0,0,0.2);
}

.v-list a {
color: #4285f4;
text-decoration: none;
}

.v-list a:hover {
text-decoration: underline;
}

/*
Content
*/


.content {
padding: 1em 2em;
}

.content pre,
Expand All @@ -578,6 +658,10 @@ h1, h2, h3, h4, h5, h6 {
margin: 2em 0 0.5em;
}

.content>h2:first-child {
margin-top: 1em;
}

/*
Tables
*/
Expand Down Expand Up @@ -818,6 +902,26 @@ h1, h2, h3, h4, h5, h6 {

}

@media only screen and (min-width: 45em) {

/*
Docs Header
*/

.versions {
position: absolute;
top: 6em;
right: 2em;
margin: 0;
}

.v-btn {
font-size: 0.7em;
line-height: normal;
}

}

@media only screen and (min-width: 50em) {

/*
Expand Down Expand Up @@ -900,6 +1004,17 @@ h1, h2, h3, h4, h5, h6 {
top: 70px;
}

/*
Docs Header
*/

.docs-header {
padding-top: 7.7em;
}

.versions {
top: 7em;
}

/*
Content
Expand All @@ -909,11 +1024,7 @@ h1, h2, h3, h4, h5, h6 {
.content {
width: 80%;
margin: 0 auto;
padding: 4em 0;
}

.content {
padding-top: 6em;
padding: 2em 0;
}

/*
Expand Down Expand Up @@ -1058,19 +1169,26 @@ h1, h2, h3, h4, h5, h6 {
*/

.lang-page {
max-width: 780px;
padding-left: 290px;
background: url(../img/lang-bg.png) repeat-y;
}

.docs-header {
margin-left: 240px;
}

.content {
width: 100%;
max-width: 1070px;
padding-left: 290px;
padding-right: 2em;
/* Box Sizing */
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding-top: 6.2em;
font-size: 0.9em;
}


.side-nav {
position: absolute;
top: 0;
Expand Down

0 comments on commit 1ff002f

Please sign in to comment.