Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated/Fixed Docs Layout #85

Merged
merged 6 commits into from
Jul 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib/*
checkouts
mori.js
target
_site/
153 changes: 114 additions & 39 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ body {
padding: 0;
font-family: Helvetica, Arial, sans-serif;
background-color: white;
font-size: 16px;
}

a {
Expand All @@ -16,91 +17,165 @@ a:hover {
color: #333;
}

#mori {
h2, h3 {
padding-top: 1.5em;
}

.wrapper {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
display: -webkit-flex;
display: -ms-flex;
display: flex;
overflow: hidden;
}

#title {
color: #003300;
margin: 0px 0px 0px -5px;
font-size: 84px;
margin: 0 0 0 -0.1em;
font-size: 5em;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}

#mori-nav {
.mori-nav {
min-width: 10em;
overflow: auto;
margin: 0;
background-color: #efffef;
border-right: 1px solid #ccc;
position: fixed;
left: 0px;
top: 0px;
bottom: 0px;
overflow-y: scroll;
width: 220px;
box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 35px 10px 10px 20px;
padding: 1.5em 1em 1.5em;
}

#mori-content {
position: absolute;
left: 220px;
top: 0px;
.mori-content {
box-sizing: border-box;
-moz-box-sizing: border-box;
padding-left: 25px;
padding: 1.5em 3em;
overflow: auto;
width: 100%;
-webkit-flex: 3;
-ms-flex: 3;
flex: 3;
}

.mori-nav > ul > li {
padding: 0 0 1em;
}

#mori-nav ul {
.mori-nav ul {
margin: 1em 0;
padding: 0;
list-style: none;
}

#mori-nav ul li {
font-size: 12px;
.mori-nav li {
font-size: 0.8rem;
padding: 0;
list-style: none;
font-family: Helvetica, Arial, sans-serif;
}

.toc-title {
font-family: helvetica, sans-serif;
font-size: 14px;
font-size: 1rem;
font-weight: bold;
display: block;
text-decoration: underline;
}

#mori-content {
width: 650px;
main {
width: 100%;
max-width: 38em;
}

#mori-content p,
#mori-content ul li {
font-size: 14px;
.mori-content p,
.mori-content ul li {
line-height: 1.5em;
}

#mori-content h2 {
.mori-content h2 {
color: #030;
font-family: helvetica, arial, sans-serif;
}
#mori-content h3 {
.mori-content h3 {
color: #030;
font-family: helvetica, arial, sans-serif;
font-size: 18px;
font-size: 1.2rem;
}

.example {
padding: 2px 10px;
padding: 2px 0.6rem;
border: 1px solid #bcb;
box-sizing: border-box;
}
.code {
font-size: 13px;
font-size: 0.8rem;
overflow-y: hidden;
}
#mori-content .syntaxhighlighter {
overflow-y: hidden !important;
}
h3 .sig {
color: #666;
font-family: "Inconsolata", courier, mono;
font-family: "Inconsolata", courier, monospace;
font-weight: normal;
font-size: 16px;
margin-left: 10px;
font-size: 1rem;
margin-left: 0.6rem;
}

/* increase font size on huge displays */
@media all and (min-width: 80rem) {
.wrapper {
font-size: 20px;
}
}

/* change layout on small displays */
@media all and (max-width: 50rem) {
.wrapper {
-webkit-flex-flow: column wrap;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
position: static;
height: auto;
width: 100%;
}

.mori-nav, .mori-content {
-webkit-flex: 0 1 auto;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
width: 100%;
padding: 1em;
height: auto;
}

.mori-nav {
border-right: none;
border-bottom: 1px solid #ccc;
-webkit-columns: 2;
-moz-columns: 2;
columns: 2;
}

.mori-nav ul {
margin: 0;
}

.mori-nav ul ul {
display: none;
}

.mori-nav li {
padding: 0;
}

.mori-nav .main {
display: none;
}

main {
margin: 0 auto;
}
}
Loading