jekyll-theme-primer 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.md +1 -1
  3. data/README.md +39 -13
  4. data/_includes/head-custom-google-analytics.html +10 -0
  5. data/_includes/head-custom.html +9 -0
  6. data/_layouts/default.html +7 -5
  7. data/_layouts/home.html +4 -0
  8. data/_layouts/page.html +4 -0
  9. data/_layouts/post.html +4 -0
  10. data/_sass/primer-base/lib/base.scss +17 -0
  11. data/_sass/primer-base/lib/normalize.scss +2 -4
  12. data/_sass/primer-layout/lib/grid-offset.scss +12 -23
  13. data/_sass/primer-markdown/lib/code.scss +3 -16
  14. data/_sass/primer-markdown/lib/lists.scss +5 -1
  15. data/_sass/primer-markdown/lib/markdown-body.scss +1 -1
  16. data/_sass/primer-support/lib/mixins/buttons.scss +13 -9
  17. data/_sass/primer-support/lib/mixins/layout.scss +18 -12
  18. data/_sass/primer-support/lib/variables/layout.scss +15 -1
  19. data/_sass/primer-support/lib/variables/misc.scss +1 -1
  20. data/_sass/primer-utilities/index.scss +1 -0
  21. data/_sass/primer-utilities/lib/animations.scss +33 -2
  22. data/_sass/primer-utilities/lib/borders.scss +75 -38
  23. data/_sass/primer-utilities/lib/details.scss +18 -0
  24. data/_sass/primer-utilities/lib/flexbox.scss +45 -73
  25. data/_sass/primer-utilities/lib/layout.scss +16 -27
  26. data/_sass/primer-utilities/lib/margin.scss +42 -75
  27. data/_sass/primer-utilities/lib/padding.scss +26 -56
  28. data/_sass/primer-utilities/lib/typography.scss +22 -23
  29. data/_sass/primer-utilities/lib/visibility-display.scss +21 -45
  30. data/_sass/primer.scss +4 -0
  31. metadata +71 -72
  32. data/_sass/primer-base/LICENSE +0 -21
  33. data/_sass/primer-base/README.md +0 -48
  34. data/_sass/primer-base/build/build.css +0 -1
  35. data/_sass/primer-base/build/index.js +0 -1
  36. data/_sass/primer-base/package.json +0 -68
  37. data/_sass/primer-layout/LICENSE +0 -21
  38. data/_sass/primer-layout/README.md +0 -137
  39. data/_sass/primer-layout/build/build.css +0 -1
  40. data/_sass/primer-layout/build/index.js +0 -1
  41. data/_sass/primer-layout/package.json +0 -65
  42. data/_sass/primer-markdown/LICENSE +0 -21
  43. data/_sass/primer-markdown/README.md +0 -218
  44. data/_sass/primer-markdown/build/build.css +0 -1
  45. data/_sass/primer-markdown/build/index.js +0 -1
  46. data/_sass/primer-markdown/package.json +0 -69
  47. data/_sass/primer-support/LICENSE +0 -21
  48. data/_sass/primer-support/README.md +0 -42
  49. data/_sass/primer-support/package.json +0 -66
  50. data/_sass/primer-utilities/LICENSE +0 -21
  51. data/_sass/primer-utilities/README.md +0 -48
  52. data/_sass/primer-utilities/build/build.css +0 -1
  53. data/_sass/primer-utilities/build/index.js +0 -1
  54. data/_sass/primer-utilities/package.json +0 -65
  55. data/assets/javascript/anchor-js/.eslintrc +0 -77
  56. data/assets/javascript/anchor-js/.gitattributes +0 -2
  57. data/assets/javascript/anchor-js/.npmignore +0 -4
  58. data/assets/javascript/anchor-js/.travis.yml +0 -6
  59. data/assets/javascript/anchor-js/anchor.js +0 -334
  60. data/assets/javascript/anchor-js/anchor.min.js +0 -6
  61. data/assets/javascript/anchor-js/banner.js +0 -17
  62. data/assets/javascript/anchor-js/docs/anchor.js +0 -334
  63. data/assets/javascript/anchor-js/docs/favicon.ico +0 -0
  64. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.eot +0 -0
  65. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.svg +0 -11
  66. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.ttf +0 -0
  67. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.woff +0 -0
  68. data/assets/javascript/anchor-js/docs/fonts/fonts.css +0 -24
  69. data/assets/javascript/anchor-js/docs/grunticon/grunticon.loader.js +0 -3
  70. data/assets/javascript/anchor-js/docs/grunticon/icons.data.png.css +0 -5
  71. data/assets/javascript/anchor-js/docs/grunticon/icons.data.svg.css +0 -5
  72. data/assets/javascript/anchor-js/docs/grunticon/icons.fallback.css +0 -5
  73. data/assets/javascript/anchor-js/docs/grunticon/png/grunticon-link.png +0 -0
  74. data/assets/javascript/anchor-js/docs/grunticon/preview.html +0 -33
  75. data/assets/javascript/anchor-js/docs/img/anchoring-links.png +0 -0
  76. data/assets/javascript/anchor-js/docs/img/anchorjs_logo.png +0 -0
  77. data/assets/javascript/anchor-js/docs/img/anchorlinks2.png +0 -0
  78. data/assets/javascript/anchor-js/docs/img/gh-link.svg +0 -9
  79. data/assets/javascript/anchor-js/docs/img/gh_link.svg +0 -9
  80. data/assets/javascript/anchor-js/docs/img/hyperlink.svg +0 -9
  81. data/assets/javascript/anchor-js/docs/img/link.svg +0 -6
  82. data/assets/javascript/anchor-js/docs/img/mini-logo.png +0 -0
  83. data/assets/javascript/anchor-js/docs/img/primer-md.png +0 -0
  84. data/assets/javascript/anchor-js/docs/index.html +0 -807
  85. data/assets/javascript/anchor-js/docs/scripts.js +0 -12
  86. data/assets/javascript/anchor-js/docs/styles.css +0 -493
metadata CHANGED
@@ -1,58 +1,106 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-primer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-16 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.5'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jekyll-github-metadata
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.9'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.9'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: jekyll-seo-tag
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
51
  - - "~>"
32
52
  - !ruby/object:Gem::Version
33
- version: '2.2'
53
+ version: '2.0'
34
54
  type: :runtime
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
38
58
  - - "~>"
39
59
  - !ruby/object:Gem::Version
40
- version: '2.2'
60
+ version: '2.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: html-proofer
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.0'
41
75
  - !ruby/object:Gem::Dependency
42
- name: rubocop
76
+ name: rubocop-github
43
77
  requirement: !ruby/object:Gem::Requirement
44
78
  requirements:
45
79
  - - "~>"
46
80
  - !ruby/object:Gem::Version
47
- version: '0.40'
81
+ version: '0.16'
48
82
  type: :development
49
83
  prerelease: false
50
84
  version_requirements: !ruby/object:Gem::Requirement
51
85
  requirements:
52
86
  - - "~>"
53
87
  - !ruby/object:Gem::Version
54
- version: '0.40'
55
- description:
88
+ version: '0.16'
89
+ - !ruby/object:Gem::Dependency
90
+ name: w3c_validators
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.3'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.3'
103
+ description:
56
104
  email:
57
105
  - open-source@github.com
58
106
  executables: []
@@ -62,31 +110,22 @@ files:
62
110
  - LICENSE.md
63
111
  - README.md
64
112
  - _includes/.gitkeep
113
+ - _includes/head-custom-google-analytics.html
114
+ - _includes/head-custom.html
65
115
  - _layouts/default.html
116
+ - _layouts/home.html
117
+ - _layouts/page.html
118
+ - _layouts/post.html
66
119
  - _sass/jekyll-theme-primer.scss
67
- - _sass/primer-base/LICENSE
68
- - _sass/primer-base/README.md
69
- - _sass/primer-base/build/build.css
70
- - _sass/primer-base/build/index.js
71
120
  - _sass/primer-base/index.scss
72
121
  - _sass/primer-base/lib/base.scss
73
122
  - _sass/primer-base/lib/normalize.scss
74
123
  - _sass/primer-base/lib/typography-base.scss
75
- - _sass/primer-base/package.json
76
- - _sass/primer-layout/LICENSE
77
- - _sass/primer-layout/README.md
78
- - _sass/primer-layout/build/build.css
79
- - _sass/primer-layout/build/index.js
80
124
  - _sass/primer-layout/index.scss
81
125
  - _sass/primer-layout/lib/columns.scss
82
126
  - _sass/primer-layout/lib/container.scss
83
127
  - _sass/primer-layout/lib/grid-offset.scss
84
128
  - _sass/primer-layout/lib/grid.scss
85
- - _sass/primer-layout/package.json
86
- - _sass/primer-markdown/LICENSE
87
- - _sass/primer-markdown/README.md
88
- - _sass/primer-markdown/build/build.css
89
- - _sass/primer-markdown/build/index.js
90
129
  - _sass/primer-markdown/index.scss
91
130
  - _sass/primer-markdown/lib/blob-csv.scss
92
131
  - _sass/primer-markdown/lib/code.scss
@@ -95,9 +134,6 @@ files:
95
134
  - _sass/primer-markdown/lib/lists.scss
96
135
  - _sass/primer-markdown/lib/markdown-body.scss
97
136
  - _sass/primer-markdown/lib/tables.scss
98
- - _sass/primer-markdown/package.json
99
- - _sass/primer-support/LICENSE
100
- - _sass/primer-support/README.md
101
137
  - _sass/primer-support/index.scss
102
138
  - _sass/primer-support/lib/mixins/buttons.scss
103
139
  - _sass/primer-support/lib/mixins/layout.scss
@@ -108,62 +144,26 @@ files:
108
144
  - _sass/primer-support/lib/variables/layout.scss
109
145
  - _sass/primer-support/lib/variables/misc.scss
110
146
  - _sass/primer-support/lib/variables/typography.scss
111
- - _sass/primer-support/package.json
112
- - _sass/primer-utilities/LICENSE
113
- - _sass/primer-utilities/README.md
114
- - _sass/primer-utilities/build/build.css
115
- - _sass/primer-utilities/build/index.js
116
147
  - _sass/primer-utilities/index.scss
117
148
  - _sass/primer-utilities/lib/animations.scss
118
149
  - _sass/primer-utilities/lib/borders.scss
119
150
  - _sass/primer-utilities/lib/box-shadow.scss
120
151
  - _sass/primer-utilities/lib/colors.scss
152
+ - _sass/primer-utilities/lib/details.scss
121
153
  - _sass/primer-utilities/lib/flexbox.scss
122
154
  - _sass/primer-utilities/lib/layout.scss
123
155
  - _sass/primer-utilities/lib/margin.scss
124
156
  - _sass/primer-utilities/lib/padding.scss
125
157
  - _sass/primer-utilities/lib/typography.scss
126
158
  - _sass/primer-utilities/lib/visibility-display.scss
127
- - _sass/primer-utilities/package.json
159
+ - _sass/primer.scss
128
160
  - _sass/rouge.scss
129
161
  - assets/css/style.scss
130
- - assets/javascript/anchor-js/.eslintrc
131
- - assets/javascript/anchor-js/.gitattributes
132
- - assets/javascript/anchor-js/.npmignore
133
- - assets/javascript/anchor-js/.travis.yml
134
- - assets/javascript/anchor-js/anchor.js
135
- - assets/javascript/anchor-js/anchor.min.js
136
- - assets/javascript/anchor-js/banner.js
137
- - assets/javascript/anchor-js/docs/anchor.js
138
- - assets/javascript/anchor-js/docs/favicon.ico
139
- - assets/javascript/anchor-js/docs/fonts/anchorjs-extras.eot
140
- - assets/javascript/anchor-js/docs/fonts/anchorjs-extras.svg
141
- - assets/javascript/anchor-js/docs/fonts/anchorjs-extras.ttf
142
- - assets/javascript/anchor-js/docs/fonts/anchorjs-extras.woff
143
- - assets/javascript/anchor-js/docs/fonts/fonts.css
144
- - assets/javascript/anchor-js/docs/grunticon/grunticon.loader.js
145
- - assets/javascript/anchor-js/docs/grunticon/icons.data.png.css
146
- - assets/javascript/anchor-js/docs/grunticon/icons.data.svg.css
147
- - assets/javascript/anchor-js/docs/grunticon/icons.fallback.css
148
- - assets/javascript/anchor-js/docs/grunticon/png/grunticon-link.png
149
- - assets/javascript/anchor-js/docs/grunticon/preview.html
150
- - assets/javascript/anchor-js/docs/img/anchoring-links.png
151
- - assets/javascript/anchor-js/docs/img/anchorjs_logo.png
152
- - assets/javascript/anchor-js/docs/img/anchorlinks2.png
153
- - assets/javascript/anchor-js/docs/img/gh-link.svg
154
- - assets/javascript/anchor-js/docs/img/gh_link.svg
155
- - assets/javascript/anchor-js/docs/img/hyperlink.svg
156
- - assets/javascript/anchor-js/docs/img/link.svg
157
- - assets/javascript/anchor-js/docs/img/mini-logo.png
158
- - assets/javascript/anchor-js/docs/img/primer-md.png
159
- - assets/javascript/anchor-js/docs/index.html
160
- - assets/javascript/anchor-js/docs/scripts.js
161
- - assets/javascript/anchor-js/docs/styles.css
162
162
  homepage: https://github.com/pages-themes/jekyll-theme-primer
163
163
  licenses:
164
- - None
164
+ - MIT
165
165
  metadata: {}
166
- post_install_message:
166
+ post_install_message:
167
167
  rdoc_options: []
168
168
  require_paths:
169
169
  - lib
@@ -171,16 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: '0'
174
+ version: 2.4.0
175
175
  required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubyforge_project:
182
- rubygems_version: 2.6.11
183
- signing_key:
181
+ rubygems_version: 3.2.15
182
+ signing_key:
184
183
  specification_version: 4
185
184
  summary: Primer is a Jekyll theme for GitHub Pages based on GitHub's Primer styles
186
185
  test_files: []
@@ -1,21 +0,0 @@
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.
@@ -1,48 +0,0 @@
1
- # Primer CSS Base
2
-
3
- [![npm version](http://img.shields.io/npm/v/primer-base.svg)](https://www.npmjs.org/package/primer-base)
4
- [![Build Status](https://travis-ci.org/primer/primer-css.svg?branch=master)](https://travis-ci.org/primer/primer-css)
5
-
6
- > GitHub's CSS to reset the browsers default styles. Built on top of normalize.css
7
-
8
- This repository is a module of the full [primer-css][primer-css] repository. And is built off of [normalize.css](https://github.com/necolas/normalize.css/)
9
-
10
- ## Install
11
-
12
- This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-base` with this command.
13
-
14
- ```
15
- $ npm install --save primer-base
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-base/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 base in the [docs][docs].
39
-
40
- ## License
41
-
42
- [MIT](./LICENSE) &copy; [GitHub](https://github.com/)
43
-
44
- [primer-css]: https://github.com/primer/primer
45
- [docs]: http://primercss.io/
46
- [npm]: https://www.npmjs.com/
47
- [install-npm]: https://docs.npmjs.com/getting-started/installing-node
48
- [sass]: http://sass-lang.com/
@@ -1 +0,0 @@
1
- /*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}summary{display:list-item}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:0.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}*{box-sizing:border-box}input,select,textarea,button{font-family:inherit;font-size:inherit;line-height:inherit}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.5;color:#24292e;background-color:#fff}a{color:#0366d6;text-decoration:none}a:hover{text-decoration:underline}b,strong{font-weight:600}hr,.rule{height:0;margin:15px 0;overflow:hidden;background:transparent;border:0;border-bottom:1px solid #dfe2e5}hr::before,.rule::before{display:table;content:""}hr::after,.rule::after{display:table;clear:both;content:""}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}button{cursor:pointer}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0}h1{font-size:32px;font-weight:600}h2{font-size:24px;font-weight:600}h3{font-size:20px;font-weight:600}h4{font-size:16px;font-weight:600}h5{font-size:14px;font-weight:600}h6{font-size:12px;font-weight:600}p{margin-top:0;margin-bottom:10px}small{font-size:90%}blockquote{margin:0}ul,ol{padding-left:0;margin-top:0;margin-bottom:0}ol ol,ul ol{list-style-type:lower-roman}ul ul ol,ul ol ol,ol ul ol,ol ol ol{list-style-type:lower-alpha}dd{margin-left:0}tt,code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px}pre{margin-top:0;margin-bottom:0;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px}.octicon{vertical-align:text-bottom}
@@ -1 +0,0 @@
1
- module.exports = {"cssstats":{"size":3790,"gzipSize":1481,"humanizedSize":"4kB","humanizedGzipSize":"1kB","rules":{"total":70,"size":{"graph":[3,1,1,1,1,2,1,1,2,1,3,1,1,1,2,2,1,4,1,1,1,1,2,1,3,2,1,1,1,1,2,1,3,6,1,2,1,2,1,2,2,1,3,5,2,1,1,6,2,3,2,1,1,2,2,2,2,2,2,2,2,1,1,3,1,1,1,2,4,1],"max":6,"average":1.8142857142857143}},"selectors":{"total":127,"type":104,"class":4,"id":0,"pseudoClass":5,"pseudoElement":4,"values":["html","body","article","aside","details","figcaption","figure","footer","header","main","menu","nav","section","summary","audio","canvas","progress","video","audio:not([controls])","progress","template","[hidden]","a","a:active","a:hover","abbr[title]","b","strong","b","strong","dfn","h1","mark","small","sub","sup","sub","sup","img","svg:not(:root)","code","kbd","pre","samp","figure","hr","button","input","select","textarea","optgroup","button","input","button","select","button","html [type=\"button\"]","[type=\"reset\"]","[type=\"submit\"]","button::-moz-focus-inner","[type=\"button\"]::-moz-focus-inner","[type=\"reset\"]::-moz-focus-inner","[type=\"submit\"]::-moz-focus-inner","button:-moz-focusring","[type=\"button\"]:-moz-focusring","[type=\"reset\"]:-moz-focusring","[type=\"submit\"]:-moz-focusring","fieldset","legend","textarea","[type=\"checkbox\"]","[type=\"radio\"]","[type=\"number\"]::-webkit-inner-spin-button","[type=\"number\"]::-webkit-outer-spin-button","[type=\"search\"]","[type=\"search\"]::-webkit-search-cancel-button","[type=\"search\"]::-webkit-search-decoration","::-webkit-input-placeholder","::-webkit-file-upload-button","*","input","select","textarea","button","body","a","a:hover","b","strong","hr",".rule","hr::before",".rule::before","hr::after",".rule::after","table","td","th","button","h1","h2","h3","h4","h5","h6","h1","h2","h3","h4","h5","h6","p","small","blockquote","ul","ol","ol ol","ul ol","ul ul ol","ul ol ol","ol ul ol","ol ol ol","dd","tt","code","pre",".octicon"],"specificity":{"max":20,"average":3.4488188976377954}},"declarations":{"total":127,"unique":91,"properties":{"font-family":["sans-serif","monospace, monospace","inherit","-apple-system,BlinkMacSystemFont,\"Segoe UI\",Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\"","\"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace","\"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace"],"-ms-text-size-adjust":["100%"],"-webkit-text-size-adjust":["100%"],"margin":["0","0.67em 0","1em 40px","0","0 2px","15px 0","0"],"display":["block","list-item","inline-block","none","none","table","table","table"],"height":["0","0","auto","0"],"vertical-align":["baseline","baseline","text-bottom"],"background-color":["transparent","#ff0","#fff"],"-webkit-text-decoration-skip":["objects"],"outline-width":["0"],"border-bottom":["none","1px solid #dfe2e5"],"text-decoration":["underline","underline dotted","none","underline"],"font-weight":["inherit","bolder","bold","600","600","600","600","600","600","600"],"font-style":["italic"],"font-size":["2em","80%","75%","1em","inherit","14px","32px","24px","20px","16px","14px","12px","90%","12px","12px"],"color":["#000","inherit","inherit","#24292e","#0366d6"],"line-height":["0","inherit","1.5"],"position":["relative"],"bottom":["-0.25em"],"top":["-0.5em"],"border-style":["none","none"],"overflow":["hidden","visible","visible","auto","hidden"],"box-sizing":["content-box","border-box","border-box","border-box"],"font":["inherit","inherit"],"text-transform":["none"],"-webkit-appearance":["button","textfield","none","button"],"padding":["0","0.35em 0.625em 0.75em","0","0","0"],"outline":["1px dotted ButtonText"],"border":["1px solid #c0c0c0","0"],"max-width":["100%"],"white-space":["normal"],"outline-offset":["-2px"],"opacity":["0.54"],"background":["transparent"],"content":["\"\"","\"\""],"clear":["both"],"border-spacing":["0"],"border-collapse":["collapse"],"cursor":["pointer"],"margin-top":["0","0","0","0"],"margin-bottom":["0","10px","0","0"],"padding-left":["0"],"list-style-type":["lower-roman","lower-alpha"],"margin-left":["0"]}},"mediaQueries":{"total":0,"unique":0,"values":[],"contents":[]}}}
@@ -1,68 +0,0 @@
1
- {
2
- "_from": "primer-base@1.3.0",
3
- "_id": "primer-base@1.3.0",
4
- "_inBundle": false,
5
- "_integrity": "sha1-168n/E8ahjG/NuQOqf3G0H3TGRg=",
6
- "_location": "/primer-base",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "version",
10
- "registry": true,
11
- "raw": "primer-base@1.3.0",
12
- "name": "primer-base",
13
- "escapedName": "primer-base",
14
- "rawSpec": "1.3.0",
15
- "saveSpec": null,
16
- "fetchSpec": "1.3.0"
17
- },
18
- "_requiredBy": [
19
- "#USER",
20
- "/"
21
- ],
22
- "_resolved": "https://registry.npmjs.org/primer-base/-/primer-base-1.3.0.tgz",
23
- "_shasum": "d7af27fc4f1a8631bf36e40ea9fdc6d07dd31918",
24
- "_spec": "primer-base@1.3.0",
25
- "_where": "/Users/benbalter/projects/primer",
26
- "author": {
27
- "name": "GitHub, Inc."
28
- },
29
- "bugs": {
30
- "url": "https://github.com/primer/primer-css/issues"
31
- },
32
- "bundleDependencies": false,
33
- "dependencies": {
34
- "primer-support": "^4.2.0"
35
- },
36
- "deprecated": false,
37
- "description": "CSS to reset the browsers default styles",
38
- "files": [
39
- "index.scss",
40
- "lib",
41
- "build"
42
- ],
43
- "homepage": "http://primercss.io/",
44
- "keywords": [
45
- "primer",
46
- "css",
47
- "github",
48
- "primercss",
49
- "base",
50
- "reset",
51
- "normalize"
52
- ],
53
- "license": "MIT",
54
- "main": "build/index.js",
55
- "name": "primer-base",
56
- "repository": {
57
- "type": "git",
58
- "url": "https://github.com/primer/primer-css/tree/master/modules/primer-base"
59
- },
60
- "scripts": {
61
- "build": "primer-module-build index.scss",
62
- "lint": "stylelint **/*.scss -s scss",
63
- "prepare": "npm run build",
64
- "test": "npm-run-all -s build lint"
65
- },
66
- "style": "index.scss",
67
- "version": "1.3.0"
68
- }
@@ -1,21 +0,0 @@
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.
@@ -1,137 +0,0 @@
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/primer-css.svg?branch=master)](https://travis-ci.org/primer/primer-css)
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
- <!-- %docs
39
- title: Layout
40
- status: Deprecated
41
- status_issue: https://github.com/github/design-systems/issues/59
42
- key: /css/styles/core/objects/layout
43
- -->
44
-
45
- 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.
46
-
47
- You can find all the below styles in `_layout.scss`.
48
-
49
- #### Container
50
-
51
- Center your page's contents with a `.container`.
52
-
53
- ```html+erb
54
- <div class="container">
55
- <!-- contents here -->
56
- </div>
57
- ```
58
-
59
- The container applies `width: 980px;` and uses horizontal `margin`s to center it.
60
-
61
- #### Grid
62
-
63
- ##### How it works
64
-
65
- 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:
66
-
67
- - Add a `.container` to encapsulate everything and provide ample horizontal gutter space.
68
- - Create your outer row to clear the floated columns with `<div class="columns">`.
69
- - Add your columns with individual `<div class="column">`s.
70
- - Add your fractional width classes to set the width of the columns (e.g., `.one-fourth`).
71
-
72
- ##### Demo
73
-
74
- In practice, your columns will look like the example below.
75
-
76
- ```html
77
- <div class="container">
78
- <div class="columns mb-1">
79
- <div class="one-fifth column block-blue p-3 border">
80
- .one-fifth
81
- </div>
82
- <div class="four-fifths column block-blue p-3 border">
83
- .four-fifths
84
- </div>
85
- </div>
86
-
87
- <div class="columns mb-1">
88
- <div class="one-fourth column block-blue p-3 border">
89
- .one-fourth
90
- </div>
91
- <div class="three-fourths column block-blue p-3 border">
92
- .three-fourths
93
- </div>
94
- </div>
95
-
96
- <div class="columns mb-1">
97
- <div class="one-third column block-blue p-3 border">
98
- .one-third
99
- </div>
100
- <div class="two-thirds column block-blue p-3 border">
101
- .two-thirds
102
- </div>
103
- </div>
104
-
105
- <div class="columns">
106
- <div class="one-half column block-blue p-3 border">
107
- .one-half
108
- </div>
109
- <div class="one-half column block-blue p-3 border">
110
- .one-half
111
- </div>
112
- </div>
113
- </div>
114
- ```
115
-
116
- ##### Centered
117
-
118
- Columns can be [centered](/utilities/#centering-content) by adding `.centered` to the `.column` class.
119
-
120
- ```html
121
- <div class="columns">
122
- <div class="one-half column centered block-blue p-3">
123
- .one-half
124
- </div>
125
- </div>
126
- ```
127
- <!-- %enddocs -->
128
-
129
- ## License
130
-
131
- [MIT](./LICENSE) &copy; [GitHub](https://github.com/)
132
-
133
- [primer-css]: https://github.com/primer/primer
134
- [docs]: http://primercss.io/
135
- [npm]: https://www.npmjs.com/
136
- [install-npm]: https://docs.npmjs.com/getting-started/installing-node
137
- [sass]: http://sass-lang.com/