From 5c0416d999b090d7d140d0761dd9abe9b3f4c54a Mon Sep 17 00:00:00 2001 From: Diana Mounter Date: Mon, 4 Dec 2017 19:37:46 -0500 Subject: [PATCH 1/6] update system font stack to system-ui for testing --- modules/primer-support/lib/variables/typography.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/primer-support/lib/variables/typography.scss b/modules/primer-support/lib/variables/typography.scss index c3d857317a..1ba169d0f0 100644 --- a/modules/primer-support/lib/variables/typography.scss +++ b/modules/primer-support/lib/variables/typography.scss @@ -33,7 +33,7 @@ $lh-condensed: 1.25 !default; $lh-default: 1.5 !default; // Font stacks -$body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default; +$body-font: -apple-system, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, system-ui, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default; // Monospace font stack $mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !default; From cd685d3ebcafbe595246f17e57f45ea97d9c8444 Mon Sep 17 00:00:00 2001 From: Sophie Shepherd Date: Thu, 18 Jan 2018 12:46:12 -0600 Subject: [PATCH 2/6] rm all primer-page-headers code --- modules/primer-marketing/index.scss | 1 - modules/primer-marketing/package.json | 1 - modules/primer-page-headers/.npmignore | 2 - modules/primer-page-headers/LICENSE | 21 ------ modules/primer-page-headers/README.md | 58 ----------------- modules/primer-page-headers/index.scss | 4 -- modules/primer-page-headers/lib/headers.scss | 68 -------------------- modules/primer-page-headers/package.json | 44 ------------- modules/primer/package.json | 1 - 9 files changed, 200 deletions(-) delete mode 100644 modules/primer-page-headers/.npmignore delete mode 100644 modules/primer-page-headers/LICENSE delete mode 100644 modules/primer-page-headers/README.md delete mode 100644 modules/primer-page-headers/index.scss delete mode 100644 modules/primer-page-headers/lib/headers.scss delete mode 100644 modules/primer-page-headers/package.json diff --git a/modules/primer-marketing/index.scss b/modules/primer-marketing/index.scss index 10023acc90..cc2d1f0a67 100755 --- a/modules/primer-marketing/index.scss +++ b/modules/primer-marketing/index.scss @@ -17,7 +17,6 @@ // marketing specific css modules @import "primer-marketing-type/index.scss"; @import "primer-marketing-buttons/index.scss"; -@import "primer-page-headers/index.scss"; @import "primer-page-sections/index.scss"; @import "primer-tables/index.scss"; @import "primer-marketing-utilities/index.scss"; diff --git a/modules/primer-marketing/package.json b/modules/primer-marketing/package.json index d58f08ac12..8c2d344660 100644 --- a/modules/primer-marketing/package.json +++ b/modules/primer-marketing/package.json @@ -31,7 +31,6 @@ "primer-marketing-support": "1.5.0", "primer-marketing-type": "1.4.5", "primer-marketing-utilities": "1.6.1", - "primer-page-headers": "1.4.5", "primer-page-sections": "1.4.5", "primer-support": "4.5.2", "primer-tables": "1.4.5" diff --git a/modules/primer-page-headers/.npmignore b/modules/primer-page-headers/.npmignore deleted file mode 100644 index dd51a98b42..0000000000 --- a/modules/primer-page-headers/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.yml -.github diff --git a/modules/primer-page-headers/LICENSE b/modules/primer-page-headers/LICENSE deleted file mode 100644 index 71fbac5e24..0000000000 --- a/modules/primer-page-headers/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 GitHub Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/modules/primer-page-headers/README.md b/modules/primer-page-headers/README.md deleted file mode 100644 index 339d19cec4..0000000000 --- a/modules/primer-page-headers/README.md +++ /dev/null @@ -1,58 +0,0 @@ -# Primer Marketing CSS Page Headers - -[![npm version](https://img.shields.io/npm/v/primer-page-headers.svg)](https://www.npmjs.org/package/primer-page-headers) -[![Build Status](https://travis-ci.org/primer/primer.svg?branch=master)](https://travis-ci.org/primer/primer) - -> Jumbotrons, heroes, and featured content sections for marketing websites at GitHub. - -This repository is a module of the full [primer][primer] repository. - -## Documentation - - - -Documentation & refactor coming very soon - - - - -## Install - -This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-page-headers` with this command. - -``` -$ npm install --save primer-page-headers -``` - -## Usage - -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. - -```scss -@import "primer-page-headers/index.scss"; -``` - -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._ - -## Build - -For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` - -``` -$ npm run build -``` - -## License - -MIT © [GitHub](https://github.com/) - -[primer]: https://github.com/primer/primer -[primer-support]: https://github.com/primer/primer-support -[support]: https://github.com/primer/primer-support -[docs]: http://primer.github.io/ -[npm]: https://www.npmjs.com/ -[install-npm]: https://docs.npmjs.com/getting-started/installing-node -[sass]: http://sass-lang.com/ diff --git a/modules/primer-page-headers/index.scss b/modules/primer-page-headers/index.scss deleted file mode 100644 index f833d588af..0000000000 --- a/modules/primer-page-headers/index.scss +++ /dev/null @@ -1,4 +0,0 @@ -// support files -@import "primer-support/index.scss"; -@import "primer-marketing-support/index.scss"; -@import "./lib/headers.scss"; diff --git a/modules/primer-page-headers/lib/headers.scss b/modules/primer-page-headers/lib/headers.scss deleted file mode 100644 index 607569b0e4..0000000000 --- a/modules/primer-page-headers/lib/headers.scss +++ /dev/null @@ -1,68 +0,0 @@ -.jumbotron { - position: relative; - padding-top: $spacer-6; - padding-bottom: $spacer-6; - - @include breakpoint(sm) { - padding-top: $spacer-6 * 1.5; - padding-bottom: $spacer-6 * 1.5; - } - - @include breakpoint(xl) { - padding-top: $spacer-6 * 3; - padding-bottom: $spacer-6 * 3; - } -} - -.jumbotron-supertron { - @include breakpoint(lg) { - height: 45vw; - min-height: 590px; - max-height: 55vh; - padding-top: $spacer-6 + $spacer-6; - padding-bottom: $spacer-6 + $spacer-6; - } -} - -.jumbotron-minitron { - padding-top: $spacer-4; - padding-bottom: $spacer-4; - - @include breakpoint(sm) { - padding-top: $spacer-5; - padding-bottom: $spacer-5; - } -} - -.jumbotron-shadow { - // Shadow - &::after { - position: absolute; - bottom: 0; - left: 0; - width: 100%; - height: 30px; - content: " "; - background-color: transparent; - background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05)); - background-repeat: repeat-x; - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05); - } -} - -.jumbotron-photo { - position: relative; - background-color: $gray-dark; - background-size: cover; - - &::before { - position: absolute; - bottom: 0; - left: 0; - display: block; - width: 100%; - height: 100%; - content: ""; - background-color: rgba(0, 0, 0, 0.25); - } -} diff --git a/modules/primer-page-headers/package.json b/modules/primer-page-headers/package.json deleted file mode 100644 index 197df9d484..0000000000 --- a/modules/primer-page-headers/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "version": "1.4.5", - "name": "primer-page-headers", - "description": "Jumbotrons, heroes, and featured content sections for marketing websites at GitHub.", - "homepage": "http://primer.github.io/", - "author": "GitHub, Inc.", - "license": "MIT", - "style": "build/build.css", - "sass": "index.scss", - "main": "build/index.js", - "primer": { - "category": "marketing", - "module_type": "components" - }, - "files": [ - "index.scss", - "lib", - "build" - ], - "repository": "https://github.com/primer/primer/tree/master/modules/primer-page-headers", - "bugs": { - "url": "https://github.com/primer/primer/issues" - }, - "scripts": { - "build": "../../script/npm-run primer-module-build index.scss", - "prepare": "npm run build", - "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" - }, - "dependencies": { - "primer-marketing-support": "1.5.0", - "primer-support": "4.5.2" - }, - "keywords": [ - "css", - "flash", - "github", - "hero", - "jumbotron", - "primer", - "design-system", - "style" - ] -} diff --git a/modules/primer/package.json b/modules/primer/package.json index ea6afbacfd..31018ea75c 100644 --- a/modules/primer/package.json +++ b/modules/primer/package.json @@ -47,7 +47,6 @@ "primer-marketing-type": "1.4.5", "primer-marketing-utilities": "1.6.1", "primer-navigation": "1.5.3", - "primer-page-headers": "1.4.5", "primer-page-sections": "1.4.5", "primer-popover": "0.0.6", "primer-product": "5.6.2", From 52c4b50904777f57b5519cdc01e73d8061d46650 Mon Sep 17 00:00:00 2001 From: Sophie Shepherd Date: Thu, 18 Jan 2018 15:29:47 -0600 Subject: [PATCH 3/6] delete primer tables --- modules/primer-marketing/index.scss | 1 - modules/primer-marketing/package.json | 3 +- modules/primer-tables/.npmignore | 2 - modules/primer-tables/LICENSE | 21 ---------- modules/primer-tables/README.md | 57 --------------------------- modules/primer-tables/index.scss | 4 -- modules/primer-tables/lib/tables.scss | 39 ------------------ modules/primer-tables/package.json | 42 -------------------- modules/primer-tables/stories.js | 10 ----- modules/primer/package.json | 1 - 10 files changed, 1 insertion(+), 179 deletions(-) delete mode 100644 modules/primer-tables/.npmignore delete mode 100644 modules/primer-tables/LICENSE delete mode 100644 modules/primer-tables/README.md delete mode 100644 modules/primer-tables/index.scss delete mode 100644 modules/primer-tables/lib/tables.scss delete mode 100644 modules/primer-tables/package.json delete mode 100644 modules/primer-tables/stories.js diff --git a/modules/primer-marketing/index.scss b/modules/primer-marketing/index.scss index 10023acc90..cc65264836 100755 --- a/modules/primer-marketing/index.scss +++ b/modules/primer-marketing/index.scss @@ -19,5 +19,4 @@ @import "primer-marketing-buttons/index.scss"; @import "primer-page-headers/index.scss"; @import "primer-page-sections/index.scss"; -@import "primer-tables/index.scss"; @import "primer-marketing-utilities/index.scss"; diff --git a/modules/primer-marketing/package.json b/modules/primer-marketing/package.json index d58f08ac12..22e4d99355 100644 --- a/modules/primer-marketing/package.json +++ b/modules/primer-marketing/package.json @@ -33,7 +33,6 @@ "primer-marketing-utilities": "1.6.1", "primer-page-headers": "1.4.5", "primer-page-sections": "1.4.5", - "primer-support": "4.5.2", - "primer-tables": "1.4.5" + "primer-support": "4.5.2" } } diff --git a/modules/primer-tables/.npmignore b/modules/primer-tables/.npmignore deleted file mode 100644 index dd51a98b42..0000000000 --- a/modules/primer-tables/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.yml -.github diff --git a/modules/primer-tables/LICENSE b/modules/primer-tables/LICENSE deleted file mode 100644 index 71fbac5e24..0000000000 --- a/modules/primer-tables/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 GitHub Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/modules/primer-tables/README.md b/modules/primer-tables/README.md deleted file mode 100644 index d35dd603a3..0000000000 --- a/modules/primer-tables/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Primer Marketing CSS Tables - -[![npm version](https://img.shields.io/npm/v/primer-tables.svg)](https://www.npmjs.org/package/primer-tables) -[![Build Status](https://travis-ci.org/primer/primer.svg?branch=master)](https://travis-ci.org/primer/primer) - -> Styles to display tabular data for marketing websites at GitHub. - -This repository is a module of the full [primer][primer] repository. - -## Documentation - - - -Documentation & refactor coming very soon - - - -## Install - -This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-tables` with this command. - -``` -$ npm install --save primer-tables -``` - -## Usage - -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. - -```scss -@import "primer-tables/index.scss"; -``` - -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._ - -## Build - -For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` - -``` -$ npm run build -``` - -## License - -MIT © [GitHub](https://github.com/) - -[primer]: https://github.com/primer/primer -[primer-support]: https://github.com/primer/primer-support -[support]: https://github.com/primer/primer-support -[docs]: http://primer.github.io/ -[npm]: https://www.npmjs.com/ -[install-npm]: https://docs.npmjs.com/getting-started/installing-node -[sass]: http://sass-lang.com/ diff --git a/modules/primer-tables/index.scss b/modules/primer-tables/index.scss deleted file mode 100644 index 1505afe54a..0000000000 --- a/modules/primer-tables/index.scss +++ /dev/null @@ -1,4 +0,0 @@ -// support files -@import "primer-support/index.scss"; -@import "primer-marketing-support/index.scss"; -@import "./lib/tables.scss"; diff --git a/modules/primer-tables/lib/tables.scss b/modules/primer-tables/lib/tables.scss deleted file mode 100644 index f362d0295f..0000000000 --- a/modules/primer-tables/lib/tables.scss +++ /dev/null @@ -1,39 +0,0 @@ -// stylelint-disable selector-max-type, selector-max-compound-selectors - -.data-table { - width: 100%; - margin-top: $spacer-3; - border-collapse: collapse; - border: $border; - box-shadow: 0 1px 1px rgba($black, 0.05); - - th { - font-weight: $font-weight-normal; - text-align: left; - } - - td, - th { - padding: $spacer-3; - border-right: $border; - border-bottom: $border; - } - - tbody { - th { - width: 25%; - } - - th, - td { - border-bottom-color: $border-gray; - } - - tr:last-child { - th, - td { - border-bottom: $border; - } - } - } -} diff --git a/modules/primer-tables/package.json b/modules/primer-tables/package.json deleted file mode 100644 index 3c45f58e82..0000000000 --- a/modules/primer-tables/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "version": "1.4.5", - "name": "primer-tables", - "description": "Styles to display tabular data for marketing websites at GitHub.", - "homepage": "http://primer.github.io/", - "author": "GitHub, Inc.", - "license": "MIT", - "style": "build/build.css", - "sass": "index.scss", - "main": "build/index.js", - "primer": { - "category": "marketing", - "module_type": "components" - }, - "files": [ - "index.scss", - "lib", - "build" - ], - "repository": "https://github.com/primer/primer/tree/master/modules/primer-tables", - "bugs": { - "url": "https://github.com/primer/primer/issues" - }, - "scripts": { - "build": "../../script/npm-run primer-module-build index.scss", - "prepare": "npm run build", - "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" - }, - "dependencies": { - "primer-marketing-support": "1.5.0", - "primer-support": "4.5.2" - }, - "keywords": [ - "css", - "github", - "primer", - "design-system", - "style", - "tables" - ] -} diff --git a/modules/primer-tables/stories.js b/modules/primer-tables/stories.js deleted file mode 100644 index 8bf51d6c4f..0000000000 --- a/modules/primer-tables/stories.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import { storiesOf } from '@storybook/react' -import storiesFromMarkdown from '../../.storybook/lib/storiesFromMarkdown' - -const stories = storiesOf('Tables', module) - -storiesFromMarkdown(require.context('.', true, /\.md$/)) - .forEach(({title, story}) => { - stories.add(title, story) - }) diff --git a/modules/primer/package.json b/modules/primer/package.json index ea6afbacfd..3ab2397024 100644 --- a/modules/primer/package.json +++ b/modules/primer/package.json @@ -54,7 +54,6 @@ "primer-subhead": "1.0.3", "primer-support": "4.5.2", "primer-table-object": "1.4.5", - "primer-tables": "1.4.5", "primer-tooltips": "1.5.2", "primer-truncate": "1.4.5", "primer-utilities": "4.8.5" From 3d92836cb807c35c3e4ff349b2c5a7077dbd5b77 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Wed, 17 Oct 2018 12:05:21 -0700 Subject: [PATCH 4/6] rebase release-11.0.0 --- modules/primer-marketing/index.scss | 1 - modules/primer-marketing/package.json | 1 - modules/primer-page-sections/.npmignore | 2 - modules/primer-page-sections/LICENSE | 21 ------- modules/primer-page-sections/README.md | 57 ------------------- modules/primer-page-sections/index.scss | 4 -- .../lib/page-section.scss | 18 ------ modules/primer-page-sections/package.json | 45 --------------- modules/primer/package.json | 1 - 9 files changed, 150 deletions(-) delete mode 100644 modules/primer-page-sections/.npmignore delete mode 100644 modules/primer-page-sections/LICENSE delete mode 100644 modules/primer-page-sections/README.md delete mode 100644 modules/primer-page-sections/index.scss delete mode 100644 modules/primer-page-sections/lib/page-section.scss delete mode 100644 modules/primer-page-sections/package.json diff --git a/modules/primer-marketing/index.scss b/modules/primer-marketing/index.scss index 10023acc90..4d4ee3243e 100755 --- a/modules/primer-marketing/index.scss +++ b/modules/primer-marketing/index.scss @@ -18,6 +18,5 @@ @import "primer-marketing-type/index.scss"; @import "primer-marketing-buttons/index.scss"; @import "primer-page-headers/index.scss"; -@import "primer-page-sections/index.scss"; @import "primer-tables/index.scss"; @import "primer-marketing-utilities/index.scss"; diff --git a/modules/primer-marketing/package.json b/modules/primer-marketing/package.json index 6f9c639031..a763aec512 100644 --- a/modules/primer-marketing/package.json +++ b/modules/primer-marketing/package.json @@ -34,7 +34,6 @@ "primer-marketing-type": "1.4.9", "primer-marketing-utilities": "1.6.5", "primer-page-headers": "1.4.9", - "primer-page-sections": "1.4.9", "primer-support": "4.6.0", "primer-tables": "1.4.9" } diff --git a/modules/primer-page-sections/.npmignore b/modules/primer-page-sections/.npmignore deleted file mode 100644 index dd51a98b42..0000000000 --- a/modules/primer-page-sections/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.yml -.github diff --git a/modules/primer-page-sections/LICENSE b/modules/primer-page-sections/LICENSE deleted file mode 100644 index 71fbac5e24..0000000000 --- a/modules/primer-page-sections/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 GitHub Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/modules/primer-page-sections/README.md b/modules/primer-page-sections/README.md deleted file mode 100644 index 2d32078ca9..0000000000 --- a/modules/primer-page-sections/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Primer Page Sections - -[![npm version](https://img.shields.io/npm/v/primer-page-sections.svg)](https://www.npmjs.org/package/primer-page-sections) -[![Build Status](https://travis-ci.org/primer/primer.svg?branch=master)](https://travis-ci.org/primer/primer) - -> Flash messages, or alerts, inform users of successful or pending actions. Use them sparingly. Don’t show more than one at a time. - -This repository is a module of the full [primer][primer] repository. - -## Documentation - - - -Documentation & refactor coming very soon - - - -## Install - -This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-page-sections` with this command. - -``` -$ npm install --save primer-page-sections -``` - -## Usage - -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. - -```scss -@import "primer-page-sections/index.scss"; -``` - -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._ - -## Build - -For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` - -``` -$ npm run build -``` - -## License - -MIT © [GitHub](https://github.com/) - -[primer]: https://github.com/primer/primer -[primer-support]: https://github.com/primer/primer-support -[support]: https://github.com/primer/primer-support -[docs]: http://primer.github.io/ -[npm]: https://www.npmjs.com/ -[install-npm]: https://docs.npmjs.com/getting-started/installing-node -[sass]: http://sass-lang.com/ diff --git a/modules/primer-page-sections/index.scss b/modules/primer-page-sections/index.scss deleted file mode 100644 index 78b9de46f9..0000000000 --- a/modules/primer-page-sections/index.scss +++ /dev/null @@ -1,4 +0,0 @@ -// support files -@import "primer-support/index.scss"; -@import "primer-marketing-support/index.scss"; -@import "./lib/page-section.scss"; diff --git a/modules/primer-page-sections/lib/page-section.scss b/modules/primer-page-sections/lib/page-section.scss deleted file mode 100644 index 1908d7dd9c..0000000000 --- a/modules/primer-page-sections/lib/page-section.scss +++ /dev/null @@ -1,18 +0,0 @@ -// Styles for page sections -.page-section { - padding: $spacer-5 0; - margin-top: 0; - - @include breakpoint(md) { - padding: $spacer-6 + $spacer-3 0; - } -} - -// Adds a little extra headroom for sections linked to via in-page anchor links -.page-section-jumplink:target { - padding-top: ($spacer-6 * 2) + $spacer-5; - - @include breakpoint(md) { - padding-top: $spacer-6 * 2; - } -} diff --git a/modules/primer-page-sections/package.json b/modules/primer-page-sections/package.json deleted file mode 100644 index aca91eed33..0000000000 --- a/modules/primer-page-sections/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "version": "1.4.9", - "name": "primer-page-sections", - "description": "Styles to create distinct sections of marketing pages at GitHub.", - "homepage": "http://primer.github.io/", - "author": "GitHub, Inc.", - "license": "MIT", - "style": "build/build.css", - "sass": "index.scss", - "main": "build/index.js", - "primer": { - "category": "marketing", - "module_type": "components" - }, - "files": [ - "index.scss", - "lib", - "build" - ], - "repository": "https://github.com/primer/primer/tree/master/modules/primer-page-sections", - "bugs": { - "url": "https://github.com/primer/primer/issues" - }, - "scripts": { - "build": "../../script/npm-run primer-module-build index.scss", - "prepare": "npm run build", - "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint", - "prepublishOnly": "../../script/notify pending", - "publish": "../../script/notify success" - }, - "dependencies": { - "primer-marketing-support": "1.5.3", - "primer-support": "4.6.0" - }, - "keywords": [ - "css", - "github", - "page sections", - "primer", - "design-system", - "sections", - "style" - ] -} diff --git a/modules/primer/package.json b/modules/primer/package.json index 1c852b0c63..642bc68c9d 100644 --- a/modules/primer/package.json +++ b/modules/primer/package.json @@ -50,7 +50,6 @@ "primer-marketing-utilities": "1.6.5", "primer-navigation": "1.5.7", "primer-page-headers": "1.4.9", - "primer-page-sections": "1.4.9", "primer-pagination": "1.0.3", "primer-popover": "0.1.4", "primer-product": "5.6.7", From 9f5871300e7fb6458ae75a6d11c801a777f09454 Mon Sep 17 00:00:00 2001 From: Sophie Shepherd Date: Thu, 18 Jan 2018 12:21:00 -0600 Subject: [PATCH 5/6] rm sections directory --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ca462fc31..55aff87229 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -145,7 +145,7 @@ - [muan](https://github.com/muan) # 10.2.0 (2017-12-11) - + #### :rocket: Enhancement * [#376](https://github.com/primer/primer/pull/376) Extend spacing scale for marketing. ([@gladwearefriends](https://github.com/gladwearefriends)) * [#409](https://github.com/primer/primer/pull/409) Add Sass key to package.json. ([@broccolini](https://github.com/broccolini)) From 367896844cc207eaa27188da6e370cf076810d45 Mon Sep 17 00:00:00 2001 From: Sophie Shepherd Date: Thu, 18 Jan 2018 12:22:10 -0600 Subject: [PATCH 6/6] rm space --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55aff87229..2ca462fc31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -145,7 +145,7 @@ - [muan](https://github.com/muan) # 10.2.0 (2017-12-11) - + #### :rocket: Enhancement * [#376](https://github.com/primer/primer/pull/376) Extend spacing scale for marketing. ([@gladwearefriends](https://github.com/gladwearefriends)) * [#409](https://github.com/primer/primer/pull/409) Add Sass key to package.json. ([@broccolini](https://github.com/broccolini))