Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3fe47ca
add yellow text and bg utilities and variables
broccolini Mar 19, 2019
301c71e
Change to color variables
simurai Mar 20, 2019
a0d97c4
Update docs with new yellow colors
simurai Mar 20, 2019
2fbc4e6
Add deprecation comment
simurai Mar 20, 2019
227f9f5
Add deprecation warning
simurai Mar 29, 2019
4861072
feat(utilities): add .border-{brk}, border-{brk}-0 classes
shawnbot Apr 18, 2019
4c2c8e7
fix(utilities): .border-{breakpoint}-1 is more explicit
shawnbot Apr 30, 2019
96d6230
feat(utilities): add .border-{brk}-{dir}-1 for consistency
shawnbot Apr 30, 2019
ebc2f11
docs(utilities): update responsive border docs
shawnbot Apr 30, 2019
36545d7
improve responsive border utilities code example
shawnbot Apr 30, 2019
8509f68
Update warning
shawnbot May 1, 2019
1b1033e
use md breakpoints in responsive border examples
simurai May 6, 2019
a397d74
fix(support): remove duplicate $border-purple declaration
shawnbot May 9, 2019
df09bf2
feat(utilities): add .border-x
shawnbot May 9, 2019
f419e51
fix(utilities): remove "-1" suffix from border utils
shawnbot May 9, 2019
32e3976
docs(utilities): remove "-1" suffix from border utils
shawnbot May 9, 2019
15ebd6f
docs(utilities): add border-x example
shawnbot May 9, 2019
5e8e118
chore: lint
shawnbot May 9, 2019
e4d8d77
Merge branch 'master' into more-border-utils
shawnbot May 13, 2019
4c374b4
chore: v12.4.0
shawnbot May 14, 2019
8605c3e
fix broken package-lock
shawnbot May 14, 2019
0a14c1c
Merge pull request #775 from primer/more-border-utils
shawnbot May 14, 2019
bf4d17c
fix(support): quote color names in $hue-maps
shawnbot May 14, 2019
16a8d39
chore(deps): uninstall ava; remove test-all-modules script
shawnbot May 14, 2019
1ea75fe
chore: remove tests/ directory (unused)
shawnbot May 14, 2019
a1a86b5
chore: npm audit fix --force
shawnbot May 14, 2019
6ccdbd6
chore: remove metalsmith dev dependencies
shawnbot May 14, 2019
7fb3c69
chore: delete script/check-links, dependencies
shawnbot May 14, 2019
f2b5830
Merge pull request #794 from primer/fix-ruby-sass
shawnbot May 14, 2019
371794e
feat(utilities): add overflow: visible utilities
shawnbot May 14, 2019
9bf1028
deps: downgrade to css-loader@1.0.0 for now
shawnbot May 14, 2019
e1c9ea2
Merge pull request #795 from primer/test-cleanup
shawnbot May 14, 2019
07f35c4
Merge remote-tracking branch 'origin/release-12.4.0' into npm-audit
shawnbot May 14, 2019
037cba9
docs(utilities): add docs for overflow:visible utilities
shawnbot May 14, 2019
cf7165b
Merge pull request #798 from primer/overflow-visible-utils
shawnbot May 14, 2019
28f4dce
Merge branch 'master' into brocs_test
simurai May 14, 2019
e0157ab
Merge pull request #797 from primer/npm-audit
shawnbot May 14, 2019
534ff62
Merge pull request #737 from primer/brocs_test
simurai May 14, 2019
3ef5eff
Update CHANGELOG.md
simurai May 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# 12.4.0

### :rocket: Enhancement
- More responsive border utilities [#775](https://github.com/primer/css/pull/775)
- Add `overflow: visible` utilities [#798](https://github.com/primer/css/pull/798)
- Add `yellow` color utilities that will replace `pending` [#737](https://github.com/primer/css/pull/737)

### :bug: Bug Fix
- Fix Ruby Sass compiler warnings by quoting keys in `$hue-maps` declaration [#794](https://github.com/primer/css/pull/794)

### :house: Internal
- Remove `test-all-modules` scripts and old monorepo test scripts [#795](https://github.com/primer/css/pull/795)
- Resolve all but one ([#796](https://github.com/primer/css/pull/796)) vulnerability in npm dev dependencies [#797](https://github.com/primer/css/pull/797)

### Committers
- [@broccolini](https://github.com/broccolini)
- [@shawnbot](https://github.com/shawnbot)
- [@simurai](https://github.com/simurai)

# 12.3.1

### 🐛 Bug Fix
Expand Down
11,986 changes: 3,086 additions & 8,900 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 5 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primer/css",
"version": "12.3.1",
"version": "12.4.0",
"description": "Primer is the CSS framework that powers GitHub's front-end design. primer includes 23 packages that are grouped into 3 core meta-packages for easy install. Each package and meta-package is independently versioned and distributed via npm, so it's easy to include all or part of Primer within your own project.",
"homepage": "https://primer.style/css",
"author": "GitHub, Inc.",
Expand Down Expand Up @@ -39,7 +39,6 @@
"start-storybook": "start-storybook -p 8001",
"build-storybook": "build-storybook -o .storybuild",
"test": "npm-run-all -s test-urls test-migrate",
"test-all-modules": "ava --verbose tests/test-*.js",
"test-urls": "node docs-test/urls.js",
"test-migrate": "script/test-migrate"
},
Expand All @@ -50,21 +49,18 @@
"@primer/blueprints": "4.0.1",
"@primer/components": "12.0.1",
"@primer/next-pages": "0.0.3",
"@storybook/addon-viewport": "5.0.0",
"@storybook/react": "5.0.10",
"@storybook/addon-viewport": "5.0.11",
"@storybook/react": "5.0.11",
"@svgr/webpack": "2.4.1",
"@zeit/next-css": "^1.0.1",
"@zeit/next-css": "1.0.1",
"@zeit/next-sass": "^1.0.1",
"action-status": "0.1.1",
"autoprefixer": "9.4.7",
"ava": "^0.23.0",
"broken-link-checker": "^0.7.8",
"char-spinner": "^1.0.1",
"chroma-js": "^1.4.1",
"clipboard-copy-element": "^0.5.0",
"code-blocks": "^1.1.0",
"colorette": "^1.0.7",
"css-loader": "^0.28.4",
"css-loader": "1.0.0",
"cssstats": "3.3.0",
"details-dialog-element": "^1.4.0",
"eslint": "4.19.1",
Expand All @@ -83,10 +79,6 @@
"klaw": "3.0.0",
"loader-utils": "^1.1.0",
"mdx-constant": "^0.1.0",
"metalsmith": "^2.3.0",
"metalsmith-filter": "^1.0.2",
"metalsmith-matters": "^1.2.0",
"metalsmith-watch": "^1.0.3",
"minimist": "1.2.0",
"next": "7.0.2",
"node-fetch": "2.4.0",
Expand Down
19 changes: 15 additions & 4 deletions pages/css/utilities/borders.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The default border utility applies a solid, 1px border, with a default gray colo
</div>
```

Borders can be applied to a specific edge or to the Y axis.
Borders can be applied to a specific edge or to the X and Y axes individually:

```html
<div class="d-flex mb-3">
Expand All @@ -38,6 +38,9 @@ Borders can be applied to a specific edge or to the Y axis.
.border-right
</div>
</div>
<div class="border-x">
.border-x
</div>
<div class="border-y">
.border-y
</div>
Expand Down Expand Up @@ -198,10 +201,18 @@ You can also add rounded corners to each edge (top, right, bottom, left) with th

## Responsive borders

Top, right, bottom, and left border utilities are can be used responsively to add or remove borders to an element at different screensizes.
You can adjust border widths on all sides or each side individually with responsive border utilities:

* `border-(sm|md|lg|xl)` adds borders on all sides at and above the breakpoint. The `border-(sm|md|lg|xl)` shorthand is also supported.
* `border-(sm|md|lg|xl)-0` removes borders from all sides at and above the breakpoint.
* `border-(sm|md|lg|xl)-(top|right|bottom|left)` adds a border on the given side at and above the breakpoint.
* `border-(sm|md|lg|xl)-(top|right|bottom|left)-0` the border from the given side at and above the breakpoint.

```html
<div class="border-top border-sm-right border-md-bottom border-lg-top-0">
.border-top-0
<div class="border-top border-sm-right border-md-bottom border-md-top-0">
.border-top
<span class="d-none d-sm-inline">.border-sm-right </span>
<span class="d-none d-md-inline">.border-md-bottom </span>
<span class="d-none d-lg-inline">.border-md-top-0 </span>
</div>
```
20 changes: 17 additions & 3 deletions pages/css/utilities/colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,16 @@ Background colors are most commonly used for filling large blocks of content or
</div>
<div class="col-9 float-left">
<div class="container-lg clearfix">
<div class="h4">.bg-yellow-light</div>
<code>{colors.yellow[2]}, $bg-yellow-light</code>
<Swatch className="bg-yellow-light" />
<div class="col-6 float-left">
<div class="h4">.bg-yellow-dark</div>
<code>{colors.yellow[7]}, $bg-yellow-dark</code>
<Swatch className="bg-yellow-dark border-right-0" />
</div>
<div class="col-6 float-left">
<div class="h4">.bg-yellow-light</div>
<code>{colors.yellow[2]}, $bg-yellow-light</code>
<Swatch className="bg-yellow-light" />
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -173,6 +180,10 @@ You can set the color inheritance on an element by using the `text-inherit` clas
.text-orange-light on white
</div>
<span class="float-left text-red tooltipped tooltipped-n" aria-label="Does not meet accessibility standards"><%= octicon("alert") %></span>
<div class="text-yellow mb-2">
.text-yellow on white
</div>
<span class="float-left text-red tooltipped tooltipped-n" aria-label="Does not meet accessibility standards"><%= octicon("alert") %></span>
<div class="text-green mb-2 ml-4">
.text-green on white
</div>
Expand All @@ -199,6 +210,9 @@ You can set the color inheritance on an element by using the `text-inherit` clas
<div class="bg-green-light mb-2">
.text-gray-dark on .bg-green-light
</div>
<div class="bg-yellow-dark mb-2">
.text-gray-dark on .bg-yellow-dark
</div>
<div class="bg-yellow mb-2">
.text-gray-dark on .bg-yellow
</div>
Expand Down
4 changes: 3 additions & 1 deletion pages/css/utilities/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,18 @@ Hide utilities are able to be applied or changed per breakpoint using the follow
Adjust the visibility of an element with `.v-hidden` and `.v-visible`.

## Overflow
Adjust element overflow with `.overflow-hidden`, `.overflow-scroll`, and `.overflow-auto`. `.overflow-hidden` can also be used to create a new [block formatting context](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context) or clear floats.
Adjust element overflow with `.overflow-hidden`, `.overflow-scroll`, and `.overflow-auto`, or use `.overflow-visible` to undo the effects of CSS with overflow issues. `.overflow-hidden` can also be used to create a new [block formatting context](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context) or clear floats.

Overflow utilities can also target x- and y-axes independently via:

* `.overflow-x-auto`
* `.overflow-x-hidden`
* `.overflow-x-scroll`
* `.overflow-x-visible`
* `.overflow-y-auto`
* `.overflow-y-hidden`
* `.overflow-y-scroll`
* `.overflow-y-visible`

## Floats
Use `.float-left` and `.float-right` to set floats, and `.clearfix` to clear.
Expand Down
157 changes: 0 additions & 157 deletions script/check-links

This file was deleted.

16 changes: 8 additions & 8 deletions src/support/variables/color-system.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ $pinks: (
) !default;

$hue-maps: (
gray: $grays,
blue: $blues,
green: $greens,
yellow: $yellows,
orange: $oranges,
red: $reds,
purple: $purples,
pink: $pinks,
"gray": $grays,
"blue": $blues,
"green": $greens,
"yellow": $yellows,
"orange": $oranges,
"red": $reds,
"purple": $purples,
"pink": $pinks,
) !default;
4 changes: 2 additions & 2 deletions src/support/variables/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ $border-purple: $purple !default;
$border-red: $red !default;
$border-red-light: desaturate($red-300, 60%) !default;

$border-purple: $purple !default;

$border-yellow: desaturate($yellow-300, 60%) !default;

$border-gray-dark: $gray-300 !default;
Expand All @@ -55,6 +53,7 @@ $bg-red-light: $red-100 !default;
$bg-white: $white !default;
$bg-yellow: $yellow-500 !default;
$bg-yellow-light: $yellow-200 !default;
$bg-yellow-dark: $yellow-700 !default;

// Text colors
$text-blue: $blue-500 !default;
Expand All @@ -68,3 +67,4 @@ $text-purple: $purple !default;
$text-pink: $pink-500 !default;
$text-red: $red-600 !default;
$text-white: $white !default;
$text-yellow: $yellow-800 !default;
Loading