Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
b621aa4
Check in Bower components
robbiemanson Oct 6, 2015
4dec908
Change instances of 'Primer' to 'Origin' and update repo in config
robbiemanson Oct 6, 2015
3d67bc4
WIP: first Origin candidate
robbiemanson Oct 7, 2015
dcd0339
Add Gemfile and update docs
robbiemanson Oct 7, 2015
7f6e776
Set `baseurl` to `/origin` to work around GitHub Pages URL structures
robbiemanson Oct 7, 2015
3869eb8
Change CNAME entry
robbiemanson Oct 7, 2015
df91221
Change CNAME and update version number in Jekyll config
robbiemanson Oct 7, 2015
127dc2c
Remove CNAME file and update docs
robbiemanson Oct 7, 2015
36ae756
Improve documentation and begin deleting Primer-specific docs
robbiemanson Oct 7, 2015
c19c8e3
Update /about page
robbiemanson Oct 7, 2015
258a233
Update menu items and documentation
robbiemanson Oct 8, 2015
56fdf60
Update details of npm and Bower files
robbiemanson Oct 8, 2015
9413568
Improve docs and repo structure
robbiemanson Oct 8, 2015
2e4a7fb
Documentation improvements
robbiemanson Oct 8, 2015
a908877
Delete unneeded contribution and maintenance docs for now
robbiemanson Oct 8, 2015
15248fe
Update npm package details and add `.npmignore` rules
robbiemanson Oct 8, 2015
b4a308e
Remove unneeded npm module dependencies
robbiemanson Oct 8, 2015
2b41e99
Remove `.bowercc` because we want Bower components installed at root
robbiemanson Oct 8, 2015
0195cf5
Update version numbers
robbiemanson Oct 8, 2015
583f7a8
Add note about updating version number in `_config.yml`
robbiemanson Oct 8, 2015
11f0af1
Make `fa-css-utilities` a regular dependency and update version numbers
robbiemanson Oct 8, 2015
82b304c
Reorganise file structure to ease setup
robbiemanson Oct 8, 2015
4debea6
Bump version numbers
robbiemanson Oct 8, 2015
bb333bb
Restructure into local and global directories and update docs
robbiemanson Oct 8, 2015
f8fa0cc
Fix docs and update version numbers
robbiemanson Oct 8, 2015
9bd576e
Merge branch 'rearrange-to-global-and-local-files'
robbiemanson Oct 8, 2015
b97ee30
Remove duplicate npm dependencies and update docs
robbiemanson Oct 8, 2015
37cbec0
Add 'Base styles' section
robbiemanson Oct 9, 2015
7d98177
Put documentation files into directories and remove old Bower components
robbiemanson Oct 9, 2015
194a010
Add candidate `Button` component
robbiemanson Oct 9, 2015
e505f8a
Update Button docs
robbiemanson Oct 9, 2015
9d6269a
Update Button docs
robbiemanson Oct 9, 2015
491e6a4
Improve installation instructions
robbiemanson Oct 9, 2015
e83e3ca
Fix broken link in docs
robbiemanson Oct 9, 2015
799f1b9
Increase contrast of secondary button labels and shadows
robbiemanson Oct 9, 2015
ce09381
Bump version numbers
robbiemanson Oct 9, 2015
6133eda
Fixed broken homepage links and improved docs
robbiemanson Oct 9, 2015
6043dc9
Fix broken homepage link
robbiemanson Oct 9, 2015
a3c8b27
Docs improvements
robbiemanson Oct 9, 2015
2392f34
Update installation details with step for copying /fonts
robbiemanson Oct 9, 2015
9cda4b7
Add Source Sans Pro license file
robbiemanson Oct 9, 2015
1a68a96
Add doc details of local development
robbiemanson Oct 9, 2015
6bdc410
Add Browsersync as dependency and include Grunt task
robbiemanson Oct 12, 2015
516ccb3
Improve documentation
robbiemanson Oct 12, 2015
9e94570
Split `text-color` and `background-color` into two sections
robbiemanson Oct 12, 2015
8c5a3ea
Remove Bower package file
robbiemanson Oct 12, 2015
fb0c7e0
Bump version numbers
robbiemanson Oct 12, 2015
8abbaad
Merge branch 'install-browsersync'
robbiemanson Oct 12, 2015
a73f1de
Fix docs typo
robbiemanson Oct 12, 2015
2cc4f23
Remove Hound
robbiemanson Oct 12, 2015
d848449
Add component nav placeholders
robbiemanson Oct 12, 2015
39f338a
Add bower gem
Oct 13, 2015
3257d63
Update readme with Chruby stuff
Oct 13, 2015
fda5be7
Reintroduce bower.json to ensure Primer dependencies are included
robbiemanson Oct 13, 2015
d771067
Update readme in correct order and delete comment from docs.scss
Oct 13, 2015
517d0fa
Remove Bower from Gemfile and update install setup instructions
robbiemanson Oct 13, 2015
e3bd163
Merge remote-tracking branch 'origin/master'
robbiemanson Oct 13, 2015
31036be
Change `jekyll serve` to `bundle exec jekyll serve`
robbiemanson Oct 14, 2015
70a9ffd
Update to v1.6.0 of `fa-css-utilities`
robbiemanson Oct 14, 2015
4d67080
Improvements to contribution documentation
robbiemanson Oct 14, 2015
106d221
Bump version number
robbiemanson Oct 14, 2015
5799232
Change Jekyll port to 4001 to prevent conflicts with other apps
robbiemanson Oct 15, 2015
cc9b20f
Change default Grunt task to only start browserSync
robbiemanson Oct 15, 2015
02d7e02
Update docs
robbiemanson Oct 15, 2015
6c6ec7a
Add new FAQ and Naming Conventions pages
robbiemanson Oct 20, 2015
af12607
Add a `.Navbar` component and bump the version number
paddyduke Oct 20, 2015
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
Prev Previous commit
Next Next commit
Add 'Base styles' section
  • Loading branch information
robbiemanson committed Oct 9, 2015
commit 37cbec0ca7c2ce8cb14d21b698c0f2a4babb7655
3 changes: 3 additions & 0 deletions docs/_includes/sidenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ <h4 class="menu-title">
<a class="menu-item {% if page.title == "Code style" %}selected{% endif %}" href="{{ site.baseurl }}/code-style/">
Code style
</a>
<a class="menu-item {% if page.title == "Base styles" %}selected{% endif %}" href="{{ site.baseurl }}/base-styles/">
Base styles
</a>
<a class="menu-item {% if page.title == "Utilities" %}selected{% endif %}" href="{{ site.baseurl }}/utilities/">
Utilities
</a>
Expand Down
27 changes: 27 additions & 0 deletions docs/base-styles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: page
title: Base styles
---

These are the base rules upon which everything in Origin is built.

## HTML5 doctype

Origin makes use of certain HTML elements and CSS properties that **require** the use of the HTML5 doctype. Include it at the beginning of all your views/pages.

{% highlight html %}
<!DOCTYPE html>
<html lang="en">
...
</html>
{% endhighlight %}

## Box-sizing

We reset `box-sizing` to `border-box` for every element in Origin. This allows us to more easily assign widths to elements that also have `padding` and `border`s.

## Built on Normalize

For improved cross-browser rendering, we use [Normalize.css](http://necolas.github.io/normalize.css/) to correct small inconsistencies across browsers and devices.

[**View the source `_base.scss` for more information**](https://github.com/fac/origin/blob/master/assets/scss/local/base/_base.scss)
34 changes: 0 additions & 34 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,37 +149,3 @@ The appearance of dependencies must be configured using the interface they provi
Controlling dimensions, margins, position, and inheritable styles of a
component can be done _indirectly_. Add a class to its root element, or wrap
it in another element.

{% highlight scss %}
/* Excerpt */

.Excerpt {
/* ... */
}

/* Attaches to a nested component */

.Excerpt-button {
display: inline-block;
margin-top: 20px;
}

/* Wraps a nested component */

.Excerpt-wrapButton {
display: inline-block;
margin-top: 20px;
}
{% endhighlight %}

{% highlight html %}
<article class="Excerpt u-floatContainer">
{{! other implementation details }}

<read-button class="Excerpt-button">Read more</read-button>

<div class="Excerpt-wrapButton">
<read-button>Read more</read-button>
</div>
</article>
{% endhighlight %}