1
1
mirror of https://github.com/primer/css.git synced 2024-11-10 07:58:36 +03:00

Merge remote-tracking branch 'origin/dev' into shawnbot/type-vars

This commit is contained in:
Shawn Allen 2017-07-18 11:04:42 -07:00
commit 9f244524df
48 changed files with 124 additions and 95 deletions

View File

@ -28,7 +28,7 @@ $ npm install --save primer-css
## Usage
The source files included are written in [Sass][sass] (SCSS). You can point your Sass `include-path` at your project's `node_modules` directory and import it like this:
The source files included are written in [Sass][sass] (SCSS). After [installing](#install) with npm, you can add your project's `node_modules` directory to your Sass [include paths](https://github.com/sass/node-sass#includepaths) (AKA [load paths](http://technology.customink.com/blog/2014/10/09/understanding-and-using-sass-load-paths/) in Ruby), then import it like this:
```scss
@import "primer-css/index.scss";

View File

@ -1,5 +1,5 @@
// Default flash
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.flash {
position: relative;
padding: $spacer-3;

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"alerts",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"avatars",

View File

@ -1,4 +1,4 @@
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
* {
box-sizing: border-box;
}

View File

@ -1,6 +1,6 @@
// Headings
// --------------------------------------------------
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
h1,
h2,
h3,

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -1,4 +1,4 @@
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.blankslate {
position: relative;
padding: $spacer-5;

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"breadcrumb",

View File

@ -1,4 +1,4 @@
// stylelint-disable selector-no-type, block-opening-brace-space-before, no-duplicate-selectors
// stylelint-disable selector-max-type, block-opening-brace-space-before, no-duplicate-selectors
// Base button styles
.btn {

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"cards",

View File

@ -34,6 +34,7 @@
"primer-utilities": "^4.3.5"
},
"devDependencies": {
"primer-module-build": "*"
"primer-module-build": "*",
"stylelint-config-primer": "^2.0.0"
}
}

View File

@ -50,7 +50,8 @@
"primer-utilities": "^4.3.5"
},
"devDependencies": {
"primer-module-build": "*"
"primer-module-build": "*",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -1,6 +1,6 @@
// Needs refactoring
// stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
// Base form controls
//
// Overrides for common inputs for easier styling.

View File

@ -3,7 +3,7 @@
// Typical form groups - `<dl.form-group>` with a `<dt>` containing the label and
// `<dd> containing the form elements.
// stylelint-disable selector-max-compound-selectors
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.form-group {
margin: 15px 0;

View File

@ -1,5 +1,5 @@
// Needs refactoring
// stylelint-disable selector-no-qualifying-type, selector-no-type
// stylelint-disable selector-no-qualifying-type, selector-max-type
dl.form-group > dd {
.form-control {
&.is-autocheck-loading,

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -1,6 +1,6 @@
// Needs refactoring
// stylelint-disable selector-no-qualifying-type
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
// Labels
//
// Use labels to add keyword tags or phrases to issues and pull requests. These

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -1,4 +1,4 @@
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.markdown-body .csv-data {
td,
th {

View File

@ -1,4 +1,4 @@
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.markdown-body {
// Inline code snippets
code,

View File

@ -1,6 +1,6 @@
// Needs refactoring
// stylelint-disable selector-max-compound-selectors, selector-max-specificity
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.markdown-body {
// Headings
h1,

View File

@ -1,6 +1,6 @@
// Need to target base styles
// stylelint-disable selector-max-compound-selectors, selector-no-qualifying-type, primer/selector-no-utility
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.markdown-body {
// Images & Stuff
img {

View File

@ -1,6 +1,6 @@
// Base styles
// stylelint-disable selector-no-qualifying-type
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.markdown-body {
// Lists, Blockquotes & Such

View File

@ -1,5 +1,5 @@
// All of our block level items should have the same margin
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
$margin: 16px;
// This is styling for generic markdownized text. Anything you put in a

View File

@ -1,5 +1,5 @@
// Needs refactoring
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.markdown-body {
// Tables
table {

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"github",

View File

@ -15,11 +15,12 @@
"url": "https://github.com/primer/primer-css/issues"
},
"scripts": {
"test": "stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run lint"
},
"devDependencies": {
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"css",

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -32,6 +32,7 @@
"primer-tables": "^1.0.2"
},
"devDependencies": {
"primer-module-build": "*"
"primer-module-build": "*",
"stylelint-config-primer": "^2.0.0"
}
}

View File

@ -1,5 +1,5 @@
// Outer wrapper
// stylelint-disable selector-no-type
// stylelint-disable selector-max-type
.tabnav {
margin-top: 0;
margin-bottom: 15px;

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"css",

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"css",

View File

@ -29,6 +29,7 @@
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*"
"primer-module-build": "*",
"stylelint-config-primer": "^2.0.0"
}
}

View File

@ -15,11 +15,12 @@
"url": "https://github.com/primer/primer-css/issues"
},
"scripts": {
"test": "stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run lint"
},
"devDependencies": {
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -1,4 +1,4 @@
// stylelint-disable selector-no-type, selector-max-compound-selectors
// stylelint-disable selector-max-type, selector-max-compound-selectors
.data-table {
width: 100%;

View File

@ -19,7 +19,8 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-marketing-support": "^1.0.2",
@ -27,8 +28,8 @@
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"css",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -19,15 +19,16 @@
"scripts": {
"build": "primer-module-build index.scss",
"prepare": "npm run build",
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
"lint": "stylelint **/*.scss -c .stylelintrc.json -s scss",
"test": "npm run build && npm run lint"
},
"dependencies": {
"primer-support": "^4.0.7"
},
"devDependencies": {
"primer-module-build": "*",
"stylelint": "*",
"stylelint-config-primer": "*"
"stylelint": "^7.13.0",
"stylelint-config-primer": "^2.0.0"
},
"keywords": [
"primer",

View File

@ -5,6 +5,7 @@
"clean": "lerna clean",
"diff": "lerna diff",
"updated": "lerna updated",
"lint": "lerna run lint",
"release-pr": "script/release-pr",
"release-candidate": "script/release-candidate",
"release": "script/release",