Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more .border-white-fade utilities #713

Merged
merged 8 commits into from
Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
10 changes: 10 additions & 0 deletions pages/css/utilities/borders.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ Use `border-black-fade` to add an rgba black border with an alpha transparency o
</div>
```

On dark backgrounds use `border-white-fade` instead. It adds an rgba white border with an alpha transparency of `0.15`.

```html
<div class="bg-gray-dark text-white p-3">
<div class="border border-white-fade p-2">
.border-white-fade
</div>
</div>
```

## Border style

Use `border-dashed` to give an element a dashed border.
Expand Down
1 change: 1 addition & 0 deletions src/support/variables/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $highlight-yellow: rgba(255, 247, 140, 0.5);

// Border colors
$border-black-fade: $black-fade-15 !default;
$border-white-fade: $white-fade-15 !default;

$border-blue: $blue-500 !default;
$border-blue-light: $blue-200 !default;
Expand Down
2 changes: 2 additions & 0 deletions src/utilities/borders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
.border-gray-dark { border-color: $border-gray-dark !important; }
/* Use with .border to turn the border rgba black 0.15 */
.border-black-fade { border-color: $border-black-fade !important; }
/* Use with .border to turn the border rgba white 0.15 */
.border-white-fade { border-color: $border-white-fade !important; }

$edges: (
top: (top-left, top-right),
Expand Down