jekyll-theme-primer 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +21 -0
  4. data/_includes/.gitkeep +1 -0
  5. data/_layouts/default.html +14 -0
  6. data/_sass/jekyll-theme-primer.scss +8 -0
  7. data/_sass/normalize.css/CHANGELOG.md +135 -0
  8. data/_sass/normalize.css/LICENSE.md +21 -0
  9. data/_sass/normalize.css/README.md +128 -0
  10. data/_sass/normalize.css/normalize.scss +419 -0
  11. data/_sass/normalize.css/package.json +111 -0
  12. data/_sass/primer-base/CHANGELOG.md +48 -0
  13. data/_sass/primer-base/LICENSE +21 -0
  14. data/_sass/primer-base/README.md +48 -0
  15. data/_sass/primer-base/build/build.css +2 -0
  16. data/_sass/primer-base/index.scss +5 -0
  17. data/_sass/primer-base/lib/base.scss +66 -0
  18. data/_sass/primer-base/lib/typography-base.scss +85 -0
  19. data/_sass/primer-base/package.json +109 -0
  20. data/_sass/primer-layout/CHANGELOG.md +44 -0
  21. data/_sass/primer-layout/LICENSE +21 -0
  22. data/_sass/primer-layout/README.md +141 -0
  23. data/_sass/primer-layout/build/build.css +2 -0
  24. data/_sass/primer-layout/index.scss +4 -0
  25. data/_sass/primer-layout/lib/columns.scss +69 -0
  26. data/_sass/primer-layout/lib/container.scss +33 -0
  27. data/_sass/primer-layout/lib/grid-offset.scss +30 -0
  28. data/_sass/primer-layout/lib/grid.scss +48 -0
  29. data/_sass/primer-layout/package.json +105 -0
  30. data/_sass/primer-markdown/CHANGELOG.md +168 -0
  31. data/_sass/primer-markdown/LICENSE +21 -0
  32. data/_sass/primer-markdown/README.md +223 -0
  33. data/_sass/primer-markdown/build/build.css +2 -0
  34. data/_sass/primer-markdown/index.scss +8 -0
  35. data/_sass/primer-markdown/lib/blob-csv.scss +27 -0
  36. data/_sass/primer-markdown/lib/code.scss +76 -0
  37. data/_sass/primer-markdown/lib/headings.scss +65 -0
  38. data/_sass/primer-markdown/lib/images.scss +119 -0
  39. data/_sass/primer-markdown/lib/lists.scss +72 -0
  40. data/_sass/primer-markdown/lib/markdown-body.scss +111 -0
  41. data/_sass/primer-markdown/lib/tables.scss +29 -0
  42. data/_sass/primer-markdown/package.json +109 -0
  43. data/_sass/primer-support/CHANGELOG.md +66 -0
  44. data/_sass/primer-support/LICENSE +21 -0
  45. data/_sass/primer-support/README.md +42 -0
  46. data/_sass/primer-support/index.scss +7 -0
  47. data/_sass/primer-support/lib/mixins/layout.scss +52 -0
  48. data/_sass/primer-support/lib/mixins/misc.scss +29 -0
  49. data/_sass/primer-support/lib/mixins/typography.scss +76 -0
  50. data/_sass/primer-support/lib/variables.scss +179 -0
  51. data/_sass/primer-support/package.json +105 -0
  52. data/_sass/primer-utilities/CHANGELOG.md +94 -0
  53. data/_sass/primer-utilities/LICENSE +21 -0
  54. data/_sass/primer-utilities/README.md +48 -0
  55. data/_sass/primer-utilities/build/build.css +2 -0
  56. data/_sass/primer-utilities/build/index.js +2 -0
  57. data/_sass/primer-utilities/index.scss +9 -0
  58. data/_sass/primer-utilities/lib/animations.scss +156 -0
  59. data/_sass/primer-utilities/lib/border.scss +29 -0
  60. data/_sass/primer-utilities/lib/colors.scss +45 -0
  61. data/_sass/primer-utilities/lib/layout.scss +109 -0
  62. data/_sass/primer-utilities/lib/margin.scss +58 -0
  63. data/_sass/primer-utilities/lib/padding.scss +54 -0
  64. data/_sass/primer-utilities/lib/typography.scss +155 -0
  65. data/_sass/primer-utilities/package.json +108 -0
  66. data/_sass/rouge.scss +209 -0
  67. data/assets/style.scss +4 -0
  68. metadata +138 -0
@@ -0,0 +1,44 @@
1
+ # v0.2.4
2
+
3
+ * Updating version - Jon Rohan [github/github@6bf5fe5](https://github.com/github/github/commit/6bf5fe5)
4
+ * Updating link to real primer-css repository - Jon Rohan [github/github@bbaedda](https://github.com/github/github/commit/bbaedda)
5
+ * Updating the modules stylelint - Jon Rohan [github/github@389609f](https://github.com/github/github/commit/389609f)
6
+ * Make sure the modules build without error before publishing - Jon Rohan [github/github@57ac5e6](https://github.com/github/github/commit/57ac5e6)
7
+ * Updating the statuses, and fixing a couple of bugs - Jon Rohan [github/github@9d36f44](https://github.com/github/github/commit/9d36f44)
8
+ * Adding documentation status to most of the modules - Jon Rohan [github/github@b97695c](https://github.com/github/github/commit/b97695c)
9
+
10
+ # v0.2.3
11
+
12
+ * Publishing a new version - Jon Rohan [github/github@eed0e96](https://github.com/github/github/commit/eed0e96)
13
+ * Adding link to homepage in readme docs - Jon Rohan [github/github@633f421](https://github.com/github/github/commit/633f421)
14
+ * Removing some unnecessary lint plugins and using native - Jon Rohan [github/github@2ae0070](https://github.com/github/github/commit/2ae0070)
15
+ * including no-utility lint plugin - Jon Rohan [github/github@5cb86ed](https://github.com/github/github/commit/5cb86ed)
16
+ * Adding lint plugins for new config - Jon Rohan [github/github@7fb9613](https://github.com/github/github/commit/7fb9613)
17
+
18
+ # v0.2.2
19
+
20
+ * Mentioning the build file - Jon Rohan [github/github@64ca4a7](https://github.com/github/github/commit/64ca4a7)
21
+ * Including build/build.css in distributed npm module - Jon Rohan [github/github@e4effbf](https://github.com/github/github/commit/e4effbf)
22
+ * Updating modules to run on prepublish to include build.css in distribution - Jon Rohan [github/github@5b573a0](https://github.com/github/github/commit/5b573a0)
23
+ * Re-ordering the docs to the bottom of the readme - Jon Rohan [github/github@9c1f291](https://github.com/github/github/commit/9c1f291)
24
+ * Updating the link - Jon Rohan [github/github@f67684b](https://github.com/github/github/commit/f67684b)
25
+
26
+ # v0.2.1
27
+
28
+ * Bumping version to include postcss.json in npm - Jon Rohan [github/github@9e560ba](https://github.com/github/github/commit/9e560ba)
29
+ * Using stylelint to lint the modules instead of scss_lint - Jon Rohan [github/github@cb0b8fd](https://github.com/github/github/commit/cb0b8fd)
30
+
31
+ # v0.2.0
32
+
33
+ * Cutting new version 0.2.0 - Jon Rohan [github/github@a6f6586](https://github.com/github/github/commit/a6f6586)
34
+ * Don't link requirements - Jon Rohan [github/github@7740e81](https://github.com/github/github/commit/7740e81)
35
+ * Updating the README with more detailed instructions - Jon Rohan [github/github@5dd7c34](https://github.com/github/github/commit/5dd7c34)
36
+ * Reorganize the module folders into a more flexible organization - Jon Rohan [github/github@5a07101](https://github.com/github/github/commit/5a07101)
37
+ * cleaning up the package.json files - Jon Rohan [github/github@77763a1](https://github.com/github/github/commit/77763a1)
38
+ * Adding npm version badges to readme - Jon Rohan [github/github@90b1871](https://github.com/github/github/commit/90b1871)
39
+ * Adding tavisci build badges to the readmes - Jon Rohan [github/github@1a6126f](https://github.com/github/github/commit/1a6126f)
40
+
41
+ # v0.1.0
42
+
43
+ * Adding readme - Jon Rohan [github/github@be0ad16](https://github.com/github/github/commit/be0ad16)
44
+ * Moving primer/primer layout to css module - Jon Rohan [github/github@4137724](https://github.com/github/github/commit/4137724)
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 GitHub Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,141 @@
1
+ # Primer CSS Layout
2
+
3
+ [![NPM version](http://img.shields.io/npm/v/primer-layout.svg)](https://www.npmjs.org/package/primer-layout)
4
+ [![Build Status](https://travis-ci.org/primer/layout.svg?branch=master)](https://travis-ci.org/primer/layout)
5
+
6
+ > Primer’s layout includes basic page containers and a single-tiered, fraction-based grid system. That sounds more complicated than it really is though—it’s just containers, rows, and columns.
7
+
8
+ This repository is a module of the full [primer-css][primer-css] repository.
9
+
10
+ ## Install
11
+
12
+ This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-layout` with this command.
13
+
14
+ ```
15
+ $ npm install --save primer-layout
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
21
+
22
+ ```scss
23
+ @import "primer-layout/index.scss";
24
+ ```
25
+
26
+ You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
27
+
28
+ ## Build
29
+
30
+ For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` The built css file is also included in the npm package.
31
+
32
+ ```
33
+ $ npm run build
34
+ ```
35
+
36
+ ## Documentation
37
+
38
+ You can read more about other primer modules in the [full primer docs][docs].
39
+
40
+ <!-- %docs
41
+ title: Layout
42
+ homepage: https://github.com/primer/layout
43
+ status: In review
44
+ status_issue: https://github.com/github/design-systems/issues/59
45
+ -->
46
+
47
+ ### Layout
48
+
49
+ Primer's layout includes basic page containers and a single-tiered, fraction-based grid system. That sounds more complicated than it really is though—it's just containers, rows, and columns.
50
+
51
+ You can find all the below styles in `_layout.scss`.
52
+
53
+ #### Container
54
+
55
+ Center your page's contents with a `.container`.
56
+
57
+ ```html+erb
58
+ <div class="container">
59
+ <!-- contents here -->
60
+ </div>
61
+ ```
62
+
63
+ The container applies `width: 980px;` and uses horizontal `margin`s to center it.
64
+
65
+ #### Grid
66
+
67
+ ##### How it works
68
+
69
+ The grid is pretty standard—you create rows with `.columns` and individual columns with a column class and fraction class. Here's how it works:
70
+
71
+ - Add a `.container` to encapsulate everything and provide ample horizontal gutter space.
72
+ - Create your outer row to clear the floated columns with `<div class="columns">`.
73
+ - Add your columns with individual `<div class="column">`s.
74
+ - Add your fractional width classes to set the width of the columns (e.g., `.one-fourth`).
75
+
76
+ ##### Demo
77
+
78
+ In practice, your columns will look like the example below.
79
+
80
+ ```html
81
+ <div class="container">
82
+ <div class="columns mb-1">
83
+ <div class="one-fifth column block-blue p-3 border">
84
+ .one-fifth
85
+ </div>
86
+ <div class="four-fifths column block-blue p-3 border">
87
+ .four-fifths
88
+ </div>
89
+ </div>
90
+
91
+ <div class="columns mb-1">
92
+ <div class="one-fourth column block-blue p-3 border">
93
+ .one-fourth
94
+ </div>
95
+ <div class="three-fourths column block-blue p-3 border">
96
+ .three-fourths
97
+ </div>
98
+ </div>
99
+
100
+ <div class="columns mb-1">
101
+ <div class="one-third column block-blue p-3 border">
102
+ .one-third
103
+ </div>
104
+ <div class="two-thirds column block-blue p-3 border">
105
+ .two-thirds
106
+ </div>
107
+ </div>
108
+
109
+ <div class="columns">
110
+ <div class="one-half column block-blue p-3 border">
111
+ .one-half
112
+ </div>
113
+ <div class="one-half column block-blue p-3 border">
114
+ .one-half
115
+ </div>
116
+ </div>
117
+ </div>
118
+ ```
119
+
120
+ ##### Centered
121
+
122
+ Columns can be [centered](/utilities/#centering-content) by adding `.centered` to the `.column` class.
123
+
124
+ ```html
125
+ <div class="columns">
126
+ <div class="one-half column centered block-blue p-3">
127
+ .one-half
128
+ </div>
129
+ </div>
130
+ ```
131
+ <!-- %enddocs -->
132
+
133
+ ## License
134
+
135
+ [MIT](./LICENSE) &copy; [GitHub](https://github.com/)
136
+
137
+ [primer-css]: https://github.com/primer/primer
138
+ [docs]: http://primercss.io/
139
+ [npm]: https://www.npmjs.com/
140
+ [install-npm]: https://docs.npmjs.com/getting-started/installing-node
141
+ [sass]: http://sass-lang.com/
@@ -0,0 +1,2 @@
1
+ .container{width:980px;margin-right:auto;margin-left:auto}.container::before{display:table;content:""}.container::after{display:table;clear:both;content:""}.container-md{max-width:768px;margin-right:auto;margin-left:auto}.container-md::before{display:table;content:""}.container-md::after{display:table;clear:both;content:""}.container-lg{max-width:1004px;margin-right:auto;margin-left:auto}.container-lg::before{display:table;content:""}.container-lg::after{display:table;clear:both;content:""}.container-xl{max-width:1280px;margin-right:auto;margin-left:auto}.container-xl::before{display:table;content:""}.container-xl::after{display:table;clear:both;content:""}.columns{margin-right:-10px;margin-left:-10px}.columns::before{display:table;content:""}.columns::after{display:table;clear:both;content:""}.column{float:left;padding-right:10px;padding-left:10px}.one-third{width:33.333333%}.two-thirds{width:66.666667%}.one-fourth{width:25%}.one-half{width:50%}.three-fourths{width:75%}.one-fifth{width:20%}.four-fifths{width:80%}.single-column{padding-right:10px;padding-left:10px}.table-column{display:table-cell;width:1%;padding-right:10px;padding-left:10px;vertical-align:top}.centered{display:block;float:none;margin-right:auto;margin-left:auto}.col-1{width:8.33333%}.col-2{width:16.66667%}.col-3{width:25%}.col-4{width:33.33333%}.col-5{width:41.66667%}.col-6{width:50%}.col-7{width:58.33333%}.col-8{width:66.66667%}.col-9{width:75%}.col-10{width:83.33333%}.col-11{width:91.66667%}.col-12{width:100%}@media (min-width: 544px){.col-sm-1{width:8.33333%}.col-sm-2{width:16.66667%}.col-sm-3{width:25%}.col-sm-4{width:33.33333%}.col-sm-5{width:41.66667%}.col-sm-6{width:50%}.col-sm-7{width:58.33333%}.col-sm-8{width:66.66667%}.col-sm-9{width:75%}.col-sm-10{width:83.33333%}.col-sm-11{width:91.66667%}.col-sm-12{width:100%}}@media (min-width: 768px){.col-md-1{width:8.33333%}.col-md-2{width:16.66667%}.col-md-3{width:25%}.col-md-4{width:33.33333%}.col-md-5{width:41.66667%}.col-md-6{width:50%}.col-md-7{width:58.33333%}.col-md-8{width:66.66667%}.col-md-9{width:75%}.col-md-10{width:83.33333%}.col-md-11{width:91.66667%}.col-md-12{width:100%}}@media (min-width: 1004px){.col-lg-1{width:8.33333%}.col-lg-2{width:16.66667%}.col-lg-3{width:25%}.col-lg-4{width:33.33333%}.col-lg-5{width:41.66667%}.col-lg-6{width:50%}.col-lg-7{width:58.33333%}.col-lg-8{width:66.66667%}.col-lg-9{width:75%}.col-lg-10{width:83.33333%}.col-lg-11{width:91.66667%}.col-lg-12{width:100%}}@media (min-width: 1280px){.col-xl-1{width:8.33333%}.col-xl-2{width:16.66667%}.col-xl-3{width:25%}.col-xl-4{width:33.33333%}.col-xl-5{width:41.66667%}.col-xl-6{width:50%}.col-xl-7{width:58.33333%}.col-xl-8{width:66.66667%}.col-xl-9{width:75%}.col-xl-10{width:83.33333%}.col-xl-11{width:91.66667%}.col-xl-12{width:100%}}.gut-sm{margin-right:-6px;margin-left:-6px}.gut-sm>[class*="col-"]{padding-right:6px !important;padding-left:6px !important}.gut-md{margin-right:-12px;margin-left:-12px}.gut-md>[class*="col-"]{padding-right:12px !important;padding-left:12px !important}.gut-lg{margin-right:-24px;margin-left:-24px}.gut-lg>[class*="col-"]{padding-right:24px !important;padding-left:24px !important}
2
+
@@ -0,0 +1,4 @@
1
+ @import "primer-support/index.scss";
2
+ @import "./lib/container.scss";
3
+ @import "./lib/columns.scss";
4
+ @import "./lib/grid.scss";
@@ -0,0 +1,69 @@
1
+ // Grid system
2
+ //
3
+ // Create rows with `.columns` to clear the floated columns and outdent the
4
+ // padding on `.column`s with negative margin for alignment.
5
+
6
+ .columns {
7
+ margin-right: -$grid-gutter;
8
+ margin-left: -$grid-gutter;
9
+ @include clearfix;
10
+ }
11
+
12
+ // Base class for every column (requires a column width from below)
13
+ .column {
14
+ float: left;
15
+ padding-right: $grid-gutter;
16
+ padding-left: $grid-gutter;
17
+ }
18
+
19
+ // Column widths
20
+ .one-third {
21
+ width: 33.333333%;
22
+ }
23
+
24
+ .two-thirds {
25
+ width: 66.666667%;
26
+ }
27
+
28
+ .one-fourth {
29
+ width: 25%;
30
+ }
31
+
32
+ .one-half {
33
+ width: 50%;
34
+ }
35
+
36
+ .three-fourths {
37
+ width: 75%;
38
+ }
39
+
40
+ .one-fifth {
41
+ width: 20%;
42
+ }
43
+
44
+ .four-fifths {
45
+ width: 80%;
46
+ }
47
+
48
+ // Single column hack
49
+ .single-column {
50
+ padding-right: $grid-gutter;
51
+ padding-left: $grid-gutter;
52
+ }
53
+
54
+ // Equal width columns via table sorcery.
55
+ .table-column {
56
+ display: table-cell;
57
+ width: 1%;
58
+ padding-right: $grid-gutter;
59
+ padding-left: $grid-gutter;
60
+ vertical-align: top;
61
+ }
62
+
63
+ // Centers content horizontally. Can be used inside or outside the grid.
64
+ .centered {
65
+ display: block;
66
+ float: none;
67
+ margin-right: auto;
68
+ margin-left: auto;
69
+ }
@@ -0,0 +1,33 @@
1
+ // Fixed-width, centered column for site content.
2
+ // This will be deprecated and replaced with container-lg in future
3
+ .container {
4
+ width: $container-width;
5
+ margin-right: auto;
6
+ margin-left: auto;
7
+ @include clearfix;
8
+ }
9
+
10
+ // Handy container styles that match our breakpoints
11
+ // 768px
12
+ .container-md {
13
+ max-width: $container-md;
14
+ margin-right: auto;
15
+ margin-left: auto;
16
+ @include clearfix;
17
+ }
18
+
19
+ // 1004px - this matches the current fixed width: 980px + padding: px-3
20
+ .container-lg {
21
+ max-width: $container-lg;
22
+ margin-right: auto;
23
+ margin-left: auto;
24
+ @include clearfix;
25
+ }
26
+
27
+ // 1280px
28
+ .container-xl {
29
+ max-width: $container-xl;
30
+ margin-right: auto;
31
+ margin-left: auto;
32
+ @include clearfix;
33
+ }
@@ -0,0 +1,30 @@
1
+ // Optional offset options to work with grid.scss
2
+
3
+ // Offset Columns
4
+ .offset-1 { margin-left: (1 / 12 * 100%); }
5
+ .offset-2 { margin-left: (2 / 12 * 100%); }
6
+ .offset-3 { margin-left: (3 / 12 * 100%); }
7
+ .offset-4 { margin-left: (4 / 12 * 100%); }
8
+ .offset-5 { margin-left: (5 / 12 * 100%); }
9
+ .offset-6 { margin-left: (6 / 12 * 100%); }
10
+ .offset-7 { margin-left: (7 / 12 * 100%); }
11
+ .offset-8 { margin-left: (8 / 12 * 100%); }
12
+ .offset-9 { margin-left: (9 / 12 * 100%); }
13
+ .offset-10 { margin-left: (10 / 12 * 100%); }
14
+ .offset-11 { margin-left: (11 / 12 * 100%); }
15
+
16
+ @each $breakpoint in map-keys($breakpoints) {
17
+ @include breakpoint($breakpoint) {
18
+ .offset-#{$breakpoint}-1 { margin-left: (1 / 12 * 100%); }
19
+ .offset-#{$breakpoint}-2 { margin-left: (2 / 12 * 100%); }
20
+ .offset-#{$breakpoint}-3 { margin-left: (3 / 12 * 100%); }
21
+ .offset-#{$breakpoint}-4 { margin-left: (4 / 12 * 100%); }
22
+ .offset-#{$breakpoint}-5 { margin-left: (5 / 12 * 100%); }
23
+ .offset-#{$breakpoint}-6 { margin-left: (6 / 12 * 100%); }
24
+ .offset-#{$breakpoint}-7 { margin-left: (7 / 12 * 100%); }
25
+ .offset-#{$breakpoint}-8 { margin-left: (8 / 12 * 100%); }
26
+ .offset-#{$breakpoint}-9 { margin-left: (9 / 12 * 100%); }
27
+ .offset-#{$breakpoint}-10 { margin-left: (10 / 12 * 100%); }
28
+ .offset-#{$breakpoint}-11 { margin-left: (11 / 12 * 100%); }
29
+ }
30
+ }
@@ -0,0 +1,48 @@
1
+ // GRID
2
+ // stylelint-disable block-closing-brace-newline-after, declaration-block-properties-order, declaration-block-semicolon-newline-after, declaration-block-single-line-max-declarations
3
+
4
+ // Columns
5
+ .col-1 { width: (1 / 12 * 100%); }
6
+ .col-2 { width: (2 / 12 * 100%); }
7
+ .col-3 { width: (3 / 12 * 100%); }
8
+ .col-4 { width: (4 / 12 * 100%); }
9
+ .col-5 { width: (5 / 12 * 100%); }
10
+ .col-6 { width: (6 / 12 * 100%); }
11
+ .col-7 { width: (7 / 12 * 100%); }
12
+ .col-8 { width: (8 / 12 * 100%); }
13
+ .col-9 { width: (9 / 12 * 100%); }
14
+ .col-10 { width: (10 / 12 * 100%); }
15
+ .col-11 { width: (11 / 12 * 100%); }
16
+ .col-12 { width: 100%; }
17
+
18
+ @each $breakpoint in map-keys($breakpoints) {
19
+ @include breakpoint($breakpoint) {
20
+ .col-#{$breakpoint}-1 { width: ( 1 / 12 * 100%); }
21
+ .col-#{$breakpoint}-2 { width: ( 2 / 12 * 100%); }
22
+ .col-#{$breakpoint}-3 { width: ( 3 / 12 * 100%); }
23
+ .col-#{$breakpoint}-4 { width: ( 4 / 12 * 100%); }
24
+ .col-#{$breakpoint}-5 { width: ( 5 / 12 * 100%); }
25
+ .col-#{$breakpoint}-6 { width: ( 6 / 12 * 100%); }
26
+ .col-#{$breakpoint}-7 { width: ( 7 / 12 * 100%); }
27
+ .col-#{$breakpoint}-8 { width: ( 8 / 12 * 100%); }
28
+ .col-#{$breakpoint}-9 { width: ( 9 / 12 * 100%); }
29
+ .col-#{$breakpoint}-10 { width: ( 10 / 12 * 100%); }
30
+ .col-#{$breakpoint}-11 { width: ( 11 / 12 * 100%); }
31
+ .col-#{$breakpoint}-12 { width: 100%; }
32
+ }
33
+ }
34
+
35
+ // Gutters apply padding and a negative margin to the outside of the container
36
+ @mixin gutters ($gutter-width: $spacer3) {
37
+ margin-right: -$gutter-width;
38
+ margin-left: -$gutter-width;
39
+
40
+ > [class*="col-"] {
41
+ padding-right: $gutter-width !important;
42
+ padding-left: $gutter-width !important;
43
+ }
44
+ }
45
+
46
+ .gut-sm { @include gutters($spacer-2); }
47
+ .gut-md { @include gutters($spacer-3); }
48
+ .gut-lg { @include gutters($spacer-4); }
@@ -0,0 +1,105 @@
1
+ {
2
+ "_args": [
3
+ [
4
+ {
5
+ "raw": "primer-layout@^0.2.4",
6
+ "scope": null,
7
+ "escapedName": "primer-layout",
8
+ "name": "primer-layout",
9
+ "rawSpec": "^0.2.4",
10
+ "spec": ">=0.2.4 <0.3.0",
11
+ "type": "range"
12
+ },
13
+ "/Users/benbalter/projects/jekyll-theme-primer"
14
+ ]
15
+ ],
16
+ "_from": "primer-layout@>=0.2.4 <0.3.0",
17
+ "_id": "primer-layout@0.2.4",
18
+ "_inCache": true,
19
+ "_location": "/primer-layout",
20
+ "_nodeVersion": "5.12.0",
21
+ "_npmOperationalInternal": {
22
+ "host": "packages-12-west.internal.npmjs.com",
23
+ "tmp": "tmp/primer-layout-0.2.4.tgz_1471631141474_0.3794332854449749"
24
+ },
25
+ "_npmUser": {
26
+ "name": "jonrohan",
27
+ "email": "yes@jonrohan.codes"
28
+ },
29
+ "_npmVersion": "3.8.6",
30
+ "_phantomChildren": {},
31
+ "_requested": {
32
+ "raw": "primer-layout@^0.2.4",
33
+ "scope": null,
34
+ "escapedName": "primer-layout",
35
+ "name": "primer-layout",
36
+ "rawSpec": "^0.2.4",
37
+ "spec": ">=0.2.4 <0.3.0",
38
+ "type": "range"
39
+ },
40
+ "_requiredBy": [
41
+ "/"
42
+ ],
43
+ "_resolved": "https://registry.npmjs.org/primer-layout/-/primer-layout-0.2.4.tgz",
44
+ "_shasum": "36b86fbc77d15350f1a816ee4df3da51d0495d64",
45
+ "_shrinkwrap": null,
46
+ "_spec": "primer-layout@^0.2.4",
47
+ "_where": "/Users/benbalter/projects/jekyll-theme-primer",
48
+ "author": {
49
+ "name": "GitHub, Inc."
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/primer/layout/issues"
53
+ },
54
+ "dependencies": {
55
+ "primer-support": "*"
56
+ },
57
+ "description": "Containers, rows, and columns for creating page layout.",
58
+ "devDependencies": {
59
+ "autoprefixer": "^6.3.6",
60
+ "node-sass": "^3.7.0",
61
+ "postcss-cli": "^2.5.2",
62
+ "stylelint": "^7.0.3",
63
+ "stylelint-config-primer": "^1.1.0"
64
+ },
65
+ "directories": {},
66
+ "dist": {
67
+ "shasum": "36b86fbc77d15350f1a816ee4df3da51d0495d64",
68
+ "tarball": "https://registry.npmjs.org/primer-layout/-/primer-layout-0.2.4.tgz"
69
+ },
70
+ "files": [
71
+ "index.scss",
72
+ "lib",
73
+ "build"
74
+ ],
75
+ "gitHead": "65ec42da11ef78c876d2e285fa3842752f0b38b8",
76
+ "homepage": "http://primercss.io/",
77
+ "keywords": [
78
+ "primer",
79
+ "css",
80
+ "github",
81
+ "primercss"
82
+ ],
83
+ "license": "MIT",
84
+ "maintainers": [
85
+ {
86
+ "name": "jonrohan",
87
+ "email": "yes@jonrohan.codes"
88
+ }
89
+ ],
90
+ "name": "primer-layout",
91
+ "optionalDependencies": {},
92
+ "readme": "ERROR: No README data found!",
93
+ "repository": {
94
+ "type": "git",
95
+ "url": "git+https://github.com/primer/layout.git"
96
+ },
97
+ "scripts": {
98
+ "build": "node-sass index.scss --include-path node_modules --output-style compressed | postcss -c .postcss.json -o build/build.css",
99
+ "prepublish": "npm run setup && npm run build",
100
+ "setup": "if [ ! -d \"node_modules\" ]; then npm install; fi",
101
+ "test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
102
+ },
103
+ "style": "index.scss",
104
+ "version": "0.2.4"
105
+ }