Skip to content

Commit

Permalink
Document the @use rule (sass#364)
Browse files Browse the repository at this point in the history
Closes sass#361
  • Loading branch information
Israel-4Ever committed Sep 4, 2019
2 parents 2454333 + 3816340 commit b3765ad
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 b3765ad

Please sign in to comment.