Skip to content

Commit

Permalink
Merge pull request #29 from paulcpederson/master
Browse files Browse the repository at this point in the history
doc site improvements, code styles
  • Loading branch information
nikolaswise committed Oct 6, 2014
2 parents 915e247 + 6a72cbf commit e06e34f
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 96 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Lots of foundational styles.
- Modal
- Accordion
- Block Grid
- Code Styles

### Fixes
- Type Helpers Cascade Properly
Expand Down
122 changes: 48 additions & 74 deletions docs/source/assets/css/github.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,118 +4,92 @@ github.com style (c) Vasily Polovnyov <[email protected]>
*/

pre .comment,
pre .template_comment,
pre .diff .header,
pre .javadoc {
.hljs-comment,
.hljs-template_comment,
.hljs-diff .hljs-header,
.hljs-javadoc {
color: #998;
font-style: italic
}

pre .keyword,
pre .css .rule .keyword,
pre .winutils,
pre .javascript .title,
pre .nginx .title,
pre .subst,
pre .request,
pre .status {
.hljs-keyword,
.hljs-css .hljs-rule .hljs-keyword,
.hljs-winutils,
.hljs-javascript .hljs-title,
.hljs-nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: #333;
font-weight: bold
}

pre .number,
pre .hexcolor,
pre .ruby .constant {
.hljs-number,
.hljs-hexcolor,
.hljs-ruby .hljs-constant {
color: #099;
}

pre .string,
pre .tag .value,
pre .phpdoc,
pre .tex .formula {
.hljs-string,
.hljs-tag .hljs-value,
.hljs-phpdoc,
.hljs-tex .hljs-formula {
color: #d14
}

pre .title,
pre .id {
.hljs-title,
.hljs-id {
color: #900;
font-weight: bold
}

pre .javascript .title,
pre .lisp .title,
pre .clojure .title,
pre .subst {
font-weight: normal
}

pre .class .title,
pre .haskell .type,
pre .vhdl .literal,
pre .tex .command {
.hljs-class .hljs-title,
.hljs-haskell .hljs-type,
.hljs-vhdl .hljs-literal,
.hljs-tex .hljs-command {
color: #458;
font-weight: bold
}

pre .tag,
pre .tag .title,
pre .rules .property,
pre .django .tag .keyword {
.hljs-tag,
.hljs-tag .hljs-title,
.hljs-rules .hljs-property,
.hljs-django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal
}

pre .attribute,
pre .variable,
pre .lisp .body {
.hljs-attribute,
.hljs-variable,
.hljs-lisp .hljs-body {
color: #008080
}

pre .regexp {
.hljs-regexp {
color: #009926
}

pre .class {
.hljs-class {
color: #458;
font-weight: bold
}

pre .symbol,
pre .ruby .symbol .string,
pre .lisp .keyword,
pre .tex .special,
pre .prompt {
.hljs-symbol,
.hljs-ruby .hljs-symbol .hljs-string,
.hljs-lisp .hljs-keyword,
.hljs-tex .hljs-special,
.hljs-prompt {
color: #990073
}

pre .built_in,
pre .lisp .title,
pre .clojure .built_in {
.hljs-built_in,
.hljs-lisp .hljs-title,
.hljs-clojure .hljs-built_in {
color: #0086b3
}

pre .preprocessor,
pre .pi,
pre .doctype,
pre .shebang,
pre .cdata {
.hljs-preprocessor,
.hljs-pi,
.hljs-doctype,
.hljs-shebang,
.hljs-cdata {
color: #999;
font-weight: bold
}

pre .deletion {
background: #fdd
}

pre .addition {
background: #dfd
}

pre .diff .change {
background: #0086b3
}

pre .chunk {
.hljs-chunk {
color: #aaa
}
2 changes: 1 addition & 1 deletion docs/source/components.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down
2 changes: 1 addition & 1 deletion docs/source/grid.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down
14 changes: 7 additions & 7 deletions docs/source/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down Expand Up @@ -47,7 +47,7 @@ <h4 class="side-nav-title">Contributing</h4>

When used statically, one very helpful thing to know is that Calcite Web comes bundled with several modifier classes. For example, if you need to add some margin to the top of an element, instead of writing a class and adding it yourself, you can use the built in `leader-X` class:

```
```html
<div class="leader-3">
This item will get three 'lines' of margin at the top.
</div>
Expand All @@ -59,15 +59,15 @@ <h4 class="side-nav-title">Contributing</h4>

To install Calcite-Web as a ruby gem, add a reference to the gem to your Gemfile:

```
```ruby
gem "calcite-web", :git => "https://github.com/ArcGIS/calcite-web.git", :tag => "v0.0.0"
```

Be sure to use the most up to date tag.

Then in your project's sass file, just import it:

```
```scss
@import "calcite-web";
```

Expand All @@ -79,19 +79,19 @@ <h4 class="side-nav-title">Contributing</h4>

To install Calcite Web with npm, type:

```
```bash
npm install --save-dev git://github.com/ArcGIS/calcite-web.git
```

You can also use a specific release by appending the version number to the end:

```
```bash
npm install --save-dev git://github.com/ArcGIS/calcite-web.git#v0.0.1
```

Then, if you're using sass, be sure to add `node_modules/calcite-web/dist/sass/` to your load path. If you're using `grunt-contrib-sass` you add that like this:

```
```js
'sass': {
target: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion docs/source/javascript.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down
16 changes: 8 additions & 8 deletions docs/source/layouts/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ <h1 class="sub-nav-title"><a href="{{relativePath}}" class="link-white">Web</a><
<header class="third-nav">
<div class="container">
<nav>
<a class="third-nav-link is-active" href="{{relativePath}}">Get Started</a>
<a class="third-nav-link" href="{{relativePath}}type">Type</a>
<a class="third-nav-link" href="{{relativePath}}grid">Grid</a>
<a class="third-nav-link" href="{{relativePath}}components">Components</a>
<a class="third-nav-link" href="{{relativePath}}patterns">Patterns</a>
<a class="third-nav-link" href="{{relativePath}}sass">Sass</a>
<a class="third-nav-link" href="{{relativePath}}javascript">JavaScript</a>
<a class="third-nav-link {% if dest == 'index.html' %}is-active{% endif %}" href="{{relativePath}}">Get Started</a>
<a class="third-nav-link {% if dest == 'type/index.html' %}is-active{% endif %}" href="{{relativePath}}type">Type</a>
<a class="third-nav-link {% if dest == 'grid/index.html' %}is-active{% endif %}" href="{{relativePath}}grid">Grid</a>
<a class="third-nav-link {% if dest == 'components/index.html' %}is-active{% endif %}" href="{{relativePath}}components">Components</a>
<a class="third-nav-link {% if dest == 'patterns/index.html' %}is-active{% endif %}" href="{{relativePath}}patterns">Patterns</a>
<a class="third-nav-link {% if dest == 'sass/index.html' %}is-active{% endif %}" href="{{relativePath}}sass">Sass</a>
<a class="third-nav-link {% if dest == 'javascript/index.html' %}is-active{% endif %}" href="{{relativePath}}javascript">JavaScript</a>
</nav>
</div>
</header>
Expand All @@ -95,7 +95,7 @@ <h1 class="sub-nav-title"><a href="{{relativePath}}" class="link-white">Web</a><
{% block footer %}

<!-- Footer Pattern -->
<footer class="footer header-light">
<footer class="footer header-light leader-3">
<div class="container">
<nav class="column-6">
<h6>Arc<span>GIS</span></h6>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/patterns.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down
2 changes: 1 addition & 1 deletion docs/source/sass.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down
2 changes: 1 addition & 1 deletion docs/source/type.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Calcite Web | Esri Patterns
title: Calcite Web
description: Quickly build beautiful, consistent websites with the Calcite Web Framework
data:
- kss
Expand Down
2 changes: 1 addition & 1 deletion lib/sass/calcite-web/patterns/_third-nav.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.third-nav {
@extend .header-light;
border-bottom: 1px solid $light-gray;
border-bottom: 1px solid $lighter-gray;
padding: $baseline/4 0;
}

Expand Down
8 changes: 8 additions & 0 deletions lib/sass/calcite-web/type/_type-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,22 @@
}

code {
padding: .25rem;
border-radius: 3px;
border: 1px solid $lightest-gray;
color: $darkest-gray;
background: $off-white;
white-space: pre;
@include font-size(-2);
}

pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
max-width: 100%;
code {
padding: 1rem;
display: block;
overflow: auto;
word-wrap: normal;
Expand Down

0 comments on commit e06e34f

Please sign in to comment.