Skip to content

Commit

Permalink
Merge pull request #444 from appuniversum/chore/deprecate-app-style-i…
Browse files Browse the repository at this point in the history
…mport-paths

Deprecate the  `app/styles/*` import paths
  • Loading branch information
Windvis committed Oct 12, 2023
2 parents 43b07b4 + 57b0ebc commit 8834b4b
Show file tree
Hide file tree
Showing 180 changed files with 8,258 additions and 85 deletions.
8 changes: 8 additions & 0 deletions app/styles/_ember-appuniversum-deprecated.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$-au-import-path-warning-already-shown: false;

@mixin paths($import-path) {
@if not $-au-import-path-warning-already-shown {
$-au-import-path-warning-already-shown: true !global;
@warn "The `@import \"#{$import-path}\";` import path is deprecated. Use the new import paths instead: https://appuniversum.github.io/ember-appuniversum/?path=/story/outline-getting-started--page#customising-the-scss-for-your-project";
}
}
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* UTILITIES: Single function helper classes (namespace: '.au-u-...')
*/

@use "./ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum");

@import "ember-appuniversum/a-settings";
@import "ember-appuniversum/a-tools";
@import "ember-appuniversum/a-generic";
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
Style namespace: .au-c-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-components");

@import "c-accordion";
@import "c-alert";
@import "c-app";
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
File namespace: _e-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-elements");

@import "e-page";
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
File namespace: _g-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-generic");

@import "g-reset";
@import "g-box-sizing";
@import "g-font";
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-objects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
Style namespace: .au-o-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-objects");

@import "o-box";
@import "o-flow";
@import "o-grid";
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-plugins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
File namespace: _p-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-plugins");

@import "p-ember-power-select";
@import "p-duet-datepicker";
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
File namespace: _s-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-settings");

@import "s-colors.scss";
@import "s-global";
@import "s-utilities";
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
File namespace: _t-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-tools");

@import "t-font-size";
@import "t-sass-mq";
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_a-utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
Style namespace: .au-u-...
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/a-utilities");

@import "u-align-text";
@import "u-background";
@import "u-break-word";
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/* Variables
========================================================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-accordion");

$au-accordion-spacing: $au-unit !default;

/* Component
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#ALERT
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-alert");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Global app container
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-app");

.au-c-app {
display: flex;
flex-direction: column;
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#BADGE
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-badge");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-body-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#BODY CONTAINER
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-body-container");

.au-c-body-container {
display: flex;
flex-direction: column;
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-brand.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#BRAND
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-brand");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#BUTTON-GROUP
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-button-group");

.au-c-button-group {
display: flex;
align-items: center;
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#BUTTONS
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-button");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#CARD
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-card");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-content-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#CONTENT HEADER
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-content-header");

/* Component
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#CONTENT
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-content");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-control-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#Control group
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-control-group");

/* Component
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
https://github.com/mdo/wtf-forms/blob/master/wtf-forms.css
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-control");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-data-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#DATA TABLE (DRAFT)
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-data-table");

.au-c-data-table {
position: relative;
display: flex;
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#DROPDOWN
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-dropdown");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-fieldset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#Fieldset
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-fieldset");

/* Component
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-file-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#FILE CARD
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-file-card");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-file-upload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#FILE UPLOAD
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-file-upload");

.au-c-file-upload-box {
border: 0.1rem solid var(--au-gray-200);
background-color: var(--au-white);
Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-form-row.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#FORM-ROW
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-form-row");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#FORM
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-form");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-heading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#HEADINGS
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-heading");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-help-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#HELP TEXT
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-help-text");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-hr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#Horizontal Ruler
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-hr");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#ICONS
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-icon");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#INPUT
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-input");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#LABELS
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-label");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#LINKS
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-link");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-list-horizontal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#LIST HORIZONTAL
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-list-horizontal");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-list-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#LIST NAVIGATION
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-list-navigation");

/* Variables
========================================================================== */

Expand Down
3 changes: 3 additions & 0 deletions app/styles/ember-appuniversum/_c-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#LIST
================================== */

@use "../ember-appuniversum-deprecated" as deprecated;
@include deprecated.paths("ember-appuniversum/c-list");

/* Component
========================================================================== */

Expand Down
Loading

0 comments on commit 8834b4b

Please sign in to comment.