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

Update to Dart sass to allow @use at-rule use #669

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
837 changes: 236 additions & 601 deletions dist/spectre-exp.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/spectre-exp.min.css

Large diffs are not rendered by default.

355 changes: 93 additions & 262 deletions dist/spectre-icons.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/spectre-icons.min.css

Large diffs are not rendered by default.

2,772 changes: 754 additions & 2,018 deletions dist/spectre.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/spectre.min.css

Large diffs are not rendered by default.

773 changes: 225 additions & 548 deletions docs/dist/docs.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/docs.min.css

Large diffs are not rendered by default.

837 changes: 236 additions & 601 deletions docs/dist/spectre-exp.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/spectre-exp.min.css

Large diffs are not rendered by default.

355 changes: 93 additions & 262 deletions docs/dist/spectre-icons.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/spectre-icons.min.css

Large diffs are not rendered by default.

3,614 changes: 991 additions & 2,623 deletions docs/dist/spectre-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/spectre-rtl.min.css

Large diffs are not rendered by default.

2,772 changes: 754 additions & 2,018 deletions docs/dist/spectre.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/spectre.min.css

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions docs/getting-started/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,13 @@ <h4 class="s-subtitle" id="importing">Importing Sass<a class="anchor" href="#imp
<span class="hljs-variable">$dark-color</span>: <span class="hljs-number">#3e396b</span>;

<span class="hljs-comment">// Import full Spectre source code</span>
<span class="hljs-keyword">@import</span> <span class="hljs-string">"node_modules/spectre.css/src/spectre"</span>;
<span class="hljs-keyword">@use</span> <span class="hljs-string">"node_modules/spectre.css/src/spectre"</span>;
</code></pre>
<p>Alternatively, you can create custom <code>_variables.scss</code> and import it to <code>project-name.scss</code>.</p>
<pre class="code" data-lang="Sass"><code><span class="hljs-comment">// Example of project-name.scss</span>
<span class="hljs-keyword">@import</span> <span class="hljs-string">"variables"</span>;

<span class="hljs-comment">// Import only the needed components</span>
<span class="hljs-keyword">@import</span> <span class="hljs-string">"node_modules/spectre.css/src/buttons"</span>;
<span class="hljs-keyword">@import</span> <span class="hljs-string">"node_modules/spectre.css/src/forms"</span>;
<span class="hljs-keyword">@use</span> <span class="hljs-string">"node_modules/spectre.css/src/buttons"</span>;
<span class="hljs-keyword">@use</span> <span class="hljs-string">"node_modules/spectre.css/src/forms"</span>;
</code></pre>
<h4 class="s-subtitle" id="folders">Folder structure<a class="anchor" href="#folders" aria-hidden="true">#</a></h4>
<pre class="code"><code>spectre/
Expand Down
8 changes: 3 additions & 5 deletions docs/src/getting-started/custom.pug
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ block docs-content
$dark-color: #3e396b;

// Import full Spectre source code
@import "node_modules/spectre.css/src/spectre";
@use "node_modules/spectre.css/src/spectre";

p
| Alternatively, you can create custom
Expand All @@ -100,11 +100,9 @@ block docs-content
code
:highlight(lang="scss")
// Example of project-name.scss
@import "variables";

// Import only the needed components
@import "node_modules/spectre.css/src/buttons";
@import "node_modules/spectre.css/src/forms";
@use "node_modules/spectre.css/src/buttons";
@use "node_modules/spectre.css/src/forms";

+docs-subheading('folders', 'Folder structure')

Expand Down