Skip to content

Commit

Permalink
chore(website): update all scss files for @use imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Aug 13, 2021
1 parent 787bfb5 commit 958f34f
Show file tree
Hide file tree
Showing 108 changed files with 127 additions and 136 deletions.
1 change: 1 addition & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
files:
include: 'packages/*/src/**/*.scss'
ignore: 'packages/documentation/src/**/*'
options:
formatter: stylish
merge-default-rules: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@import '@react-md/theme/dist/color-palette';

$rmd-theme-primary: $rmd-teal-500;
$rmd-theme-secondary: $rmd-pink-a-200;
$rmd-utils-auto-dense: true;
@use '@react-md/theme/dist/color-palette' as *;
@forward 'react-md' with (
$rmd-theme-primary: $rmd-teal-500,
$rmd-theme-secondary: $rmd-pink-a-200,
$rmd-utils-auto-dense: true,
);

$solarized-base-03: #002b36;
$solarized-base-02: #073642;
Expand Down
2 changes: 0 additions & 2 deletions packages/documentation/src/_mixins.scss

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-utils-phone-media {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
color: $rmd-black-base;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
align-items: flex-start;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-elevation(6);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.code {
@include rmd-states-focus-shadow($css-modules: true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.sheet {
background-color: $rmd-sheet-dark-elevation-background-color;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

$card-margin: 0.5rem;
$doubled-card-margin: $card-margin * 2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.dialog {
@include rmd-app-bar-theme-update-var(prominent-dense-height, 5rem);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.header {
align-items: flex-start;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.output {
@include rmd-elevation(4);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-elevation(6);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-utils-desktop-media {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-elevation(6);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-app-bar-theme-update-var(height, $rmd-app-bar-height);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

// all the importants are really just required to override the useFixedPositioning styles
// that aren't configurable right now that have to be changed for the hacky phone "emulation"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.list {
@include rmd-elevation(4);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-badge-theme-update-var(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-button-theme-update-var(outline-width, 4px);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.chip {
margin: 0.25rem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

$blind-height: 1.5rem;
$blind-margin: 2px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

$blind-height: 1.5rem;
$blind-margin: 2px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.blinds {
@include rmd-transition(deceleration);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-utils-block-centered;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'react-md/dist/everything';

.container {
display: flex;
flex-wrap: wrap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

$spacing: 0.5rem;
$padding: 1rem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// sass-lint:disable class-name-format
@import 'react-md/dist/everything';
@use 'react-md' as *;

.preview {
@include rmd-elevation(2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

// duplicated from TableOfContents.scss
$toc-width: 15rem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'react-md/dist/everything';
@use 'react-md' as *;

.container {
@include rmd-typography(subtitle-1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'react-md/dist/everything';

.textarea {
height: 15rem;
}