Skip to content

Commit

Permalink
Document the @use rule (#364)
Browse files Browse the repository at this point in the history
Closes #361
  • Loading branch information
nex3 authored Sep 4, 2019
2 parents 2088a02 + 8277f5b commit b27ef20
Show file tree
Hide file tree
Showing 8 changed files with 471 additions and 42 deletions.
34 changes: 34 additions & 0 deletions source/code-snippets/_example-use-with.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<% example do %>
// _library.scss
$black: #000 !default;
$border-radius: 0.25rem !default;
$box-shadow: 0 0.5rem 1rem rgba($black, 0.15) !default;

code {
border-radius: $border-radius;
box-shadow: $box-shadow;
}
---
// style.scss
@use 'library' with (
$black: #222,
$border-radius: 0.1rem
);
===
// _library.sass
$black: #000 !default
$border-radius: 0.25rem !default
$box-shadow: 0 0.5rem 1rem rgba($black, 0.15) !default

code
border-radius: $border-radius
box-shadow: $box-shadow
---
// style.sass
@use 'library' with ($black: #222, $border-radius: 0.1rem)
===
code {
border-radius: 0.1rem;
box-shadow: 0 0.5rem 1rem rgba(#222, 0.15);
}
<% end %>
2 changes: 2 additions & 0 deletions source/documentation/at-rules/forward.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ title: "@forward"
introduction: >
TODO(nweiz): Write this
---

## Controlling Visibility
Loading

0 comments on commit b27ef20

Please sign in to comment.