Skip to content
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
Improve overall website design.
- Thinner and more elegant fonts on landing page.
- Removed "Overview" menu item, shortened "Documentation" to "Docs".
- Replaced jumbotron logo+title with motivational text.
- Removed "View details" buttons on landing page, make features clickable
  instead.
- Introduced testimonial quote section on landing page.
- Introduced "Open Source" section on landing page.
- Refactored overall jumbotron layout/content.
- Removed PromCon 2016 button.
- Changed documentation font to smaller size.
- Adjusted header font sizes and weights.
- Made code blocks look cooler, with orange left border.
- Don't wrap long lines in code blocks.
- Harmonized background colors between pre, code, and toc.
- Aligned the navbar Prometheus logo with the docs menu.
  • Loading branch information
juliusv committed Apr 11, 2016
commit d55a613e7a1fc0fe3baf9b8e3c44bab5d518b695
202 changes: 146 additions & 56 deletions content/css/docs.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
/* Move down content because we have a fixed navbar that is 50px tall */
body {
font-family: 'Open Sans', serif;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

.navbar {
margin-bottom: 0;
min-height: 60px;
}

.navbar-brand {
font-size: 20px;
margin-top: 4px;
font-family: Lato, sans-serif;
font-size: 26px;
font-weight: 300;
color: #aaa;
}

.navbar-brand img {
height: 27px;
height: 30px;
display: inline;
margin-top: -4px;
margin-top: -5px;
margin-right: 3px;
margin-left: 12px;
}

.navbar .github-stars {
Expand All @@ -25,60 +29,166 @@ body {
height: 20px;
}

.navbar-toggle {
margin-top: 22px;
}

.navbar-jumbotron .navbar {
min-height: 83px;
}

.navbar-jumbotron .navbar-brand {
margin-top: 14px;
}

.navbar-jumbotron .main-nav {
margin-top: 17px;
}

.main-nav {
margin-top: 4px;
letter-spacing: 1px;
font-family: 'Lato', sans-serif;
font-size: 16px;
text-transform: uppercase;
}

.jumbotron {
background-color: #e6522c;
background-image: url("/assets/jumbotron-background.png");
text-align: center;
font-family: Lato, sans-serif;
text-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px;
margin-bottom: 50px;
padding: 40px 0;
}

.jumbotron h1 {
margin-top: 30px;
font-size: 52px;
font-weight: 300;
color: #fff;
}

.jumbotron p {
color: rgba(255,255,255,0.7);
.jumbotron .subtitle {
font-weight: 300;
font-size: 32px;
color: rgba(255,255,255,0.8);
margin-bottom: 20px;
}

.jumbotron a.btn {
border: none;
background-color: rgba(0,0,0,0.15);
color: #fff;
padding: 20px 25px 20px 25px;
margin-top: 15px;
}

.jumbotron a.btn:hover {
background-color: rgba(0,0,0,0.25);
color: #fff;
}

.jumbotron img {
height: 100px;
padding-bottom: 15px;
.feature-item {
font-family: 'Lato', sans-serif;
font-weight: 300;
cursor: pointer;
height: 200px;
}

.jumbotron .subtitle {
margin-bottom: 20px;
.feature-item:hover {
background-color: #fad9d1;
border-radius: 3px;
}

.main .fa {
color: #e6522c;
.feature-item a {
text-decoration: none;
color: none;
}

.main h2 {
.feature-item h2 {
color: #333;
font-weight: 300;
font-size: 25px;
white-space: nowrap;
}

.feature-item .fa {
margin-right: 5px;
color: #e6522c;
}

.feature-item p {
font-size: 16px;
line-height: 1.8em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
color: #111;
}

.top-hr {
margin-top: 30px;
}

.quote {
margin: 25px 0 25px 0;
font-family: 'Lato', sans-serif;
font-weight: 300;
text-align: center;
}

.quote-text {
width: 60%;
margin: auto;
font-size: 22px;
font-style: italic;
color: #be3511;
}

.quote-source {
font-size: 16px;
margin-top: 15px;
margin-left: 50px;
}

.open-source {
margin: 25px 0 25px 0;
font-family: 'Lato', sans-serif;
font-weight: 300;
text-align: center;
}

.open-source h1 {
margin-top: 0;
font-weight: 300;
}

.open-source p {
width: 50%;
margin: auto;
font-size: 20px;
}

.trusted-by {
font-family: 'Lato', sans-serif;
font-size: 20px;
font-weight: 300;
padding-bottom: 10px;
}

.logos {
display: flex;
align-items: center;
justify-content: center;
height: 64px;
}

footer {
font-size: 12px;
color: #333;
}

a.sc-logo img {
margin-left: 3px;
margin-bottom: 3px;
}

/* Docs-related styles. */
.side-nav-col {
z-index: 100;
Expand Down Expand Up @@ -125,19 +235,17 @@ a.sc-logo img {
}

.doc-content {
margin-top: 25px;
}

.doc-content {
font-size: 18px;
font-size: 16px;
}

.doc-content p, .doc-content.ul, .doc-content .alert {
margin: 25px 0 25px 0;
margin: 15px 0 15px 0;
line-height: 1.5;
}

.doc-content > h1 {
color: #e6522c;
font-size: 30px;
text-transform: uppercase;
margin: 40px 0 10px 0;
}
Expand All @@ -152,7 +260,7 @@ a.sc-logo img {

.doc-content > h2 {
color: #e6522c;
font-size: 25px;
font-size: 22px;
}

.doc-content > h2 code {
Expand All @@ -161,7 +269,8 @@ a.sc-logo img {
}

.doc-content > h3 {
font-size: 22px;
font-size: 20px;
font-weight: bold;
}

.doc-content > h4 {
Expand Down Expand Up @@ -214,7 +323,7 @@ a.sc-logo img {

.toc {
padding: 1em;
background-color: #eee;
background-color: #f9f2f4;
}

.toc-right {
Expand All @@ -234,33 +343,21 @@ a.sc-logo img {
}

pre {
border: 1px solid #ddd;
border-left: 4px solid #e6522c;
border-radius: 0;
font-family: "Courier New", Monaco, Menlo, Consolas, monospace;
background-color: #f9f2f4;
border: 1px solid #333;
color: #333;
padding: 15px;
}

code {
color: #333;
pre code {
white-space: pre;
}

.main p {
font-size: 16px;
line-height: 1.8em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}

.main .desc {
margin-bottom: 20px;
}

.main-nav {
letter-spacing: 1px;
font-family: Avenir, 'Open Sans', serif;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
code {
color: #333;
}

aside {
Expand All @@ -276,10 +373,3 @@ article {
.read-more > a {
color: #888;
}

.logos {
display: flex;
align-items: center;
justify-content: center;
height: 64px;
}
Loading