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

Merge branch 'master' into mkt/color-modes-whee

This commit is contained in:
Colin Keany 2020-11-17 14:28:26 -05:00 committed by GitHub
commit 0a59f53083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3451 additions and 1730 deletions

View File

@ -62,8 +62,8 @@ Form controls in Primer CSS currently have no basic layout specified (this is by
<label> <input type="checkbox" /> Remember me </label>
<label> <input type="radio" id="herp" name="herpderp" checked /> Herp </label>
<label> <input type="radio" id="derp" name="herpderp" /> Derp </label>
<label> <input type="radio" id="potato" name="radio-group-example" checked /> Potato </label>
<label> <input type="radio" id="tomato" name="radio-group-example" /> Tomato </label>
<button class="btn" type="submit">Submit</button>
</form>

View File

@ -85,7 +85,7 @@ Reset margins built into typography elements or other components with `m-0`, `mt
## Responsive margins
All margin utilities, except `mx-auto`, can be adjusted per [breakpoint](/objects/grid#breakpoints) using the following formula: `m[direction]-[breakpoint]-[spacer]`. Each responsive style is applied to the specified breakpoint and up.
All margin utilities can be adjusted per [breakpoint](/objects/grid#breakpoints) using the following formula: `m[direction]-[breakpoint]-[spacer]`. Each responsive style is applied to the specified breakpoint and up.
```html live
<div class="bg-yellow d-inline-block">

1818
docs/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,9 +12,9 @@
"@babel/preset-react": "^7.10.4",
"@loadable/component": "^5.10.2",
"@primer/components": "^17.1.0",
"@primer/gatsby-theme-doctocat": "^0.25.2",
"@primer/octicons": "^11.0.0",
"@primer/octicons-react": "^11.0.0",
"@primer/gatsby-theme-doctocat": "^1.2.0",
"@primer/octicons": "^9.1.1",
"@primer/octicons-react": "^9.1.1",
"@svgr/webpack": "^4.3.2",
"autoprefixer": "^9.6.1",
"babel-preset-gatsby": "^0.5.10",

View File

@ -26,17 +26,16 @@ export {colors, gradientHues, palettes, getPaletteByName}
export const allColors = palettes.reduce((all, {values}) => all.concat(values), [])
// TODO: fix the borders code
//
// export const borders = Object.keys(variables)
// .filter(key => key.startsWith('border-') && !variables[key].includes('$'))
// .sort()
// .map(key => ({
// variable: key,
// value: variables[key],
// slug: key,
// aliases: {border: key}
// }))
export const borders = Object.keys(variables)
// Re: border-gray-darker, see https://github.com/primer/css/pull/1192
.filter(key => key.startsWith('border-') && !variables[key].includes('$') && key !== 'border-gray-darker')
.sort()
.map(key => ({
variable: key,
value: variables[key],
slug: key,
aliases: {border: key}
}))
function getPaletteByName(name) {
return palettes.find(palette => palette.name === name)

3330
package-lock.json generated

File diff suppressed because it is too large Load Diff