Skip to content

Commit

Permalink
fix(all): fix .less relative paths for better IDE and StackBlitz supp…
Browse files Browse the repository at this point in the history
…ort (#81)

* fix(all): fix .less relative paths for better IDE and StackBlitz support

* chore(core): fix extra replace

* chore(core): remove extra .less
  • Loading branch information
MarsiBarsi authored Jan 11, 2021
1 parent 7676d84 commit f061dcd
Show file tree
Hide file tree
Showing 31 changed files with 73 additions and 73 deletions.
24 changes: 12 additions & 12 deletions projects/addon-mobile/styles/tinkoff-ui-angular-mobile.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@import '../../core/styles/basic/normalize';
@import '../../core/styles/basic/main';
@import '../../core/styles/themes/theme-default-vars';
@import '../../core/styles/markup/tui-island';
@import '../../core/styles/markup/tui-palette';
@import '../../core/styles/markup/tui-space';
@import '../../core/styles/themes/wrapper/textfield';
@import '../../core/styles/themes/wrapper/table';
@import '../../core/styles/themes/wrapper/primary';
@import '../../core/styles/themes/wrapper/secondary';
@import '../../core/styles/themes/wrapper/whiteblock';
@import '../../core/styles/themes/wrapper/outline';
@import '../../core/styles/basic/normalize.less';
@import '../../core/styles/basic/main.less';
@import '../../core/styles/themes/theme-default-vars.less';
@import '../../core/styles/markup/tui-island.less';
@import '../../core/styles/markup/tui-palette.less';
@import '../../core/styles/markup/tui-space.less';
@import '../../core/styles/themes/wrapper/textfield.less';
@import '../../core/styles/themes/wrapper/table.less';
@import '../../core/styles/themes/wrapper/primary.less';
@import '../../core/styles/themes/wrapper/secondary.less';
@import '../../core/styles/themes/wrapper/whiteblock.less';
@import '../../core/styles/themes/wrapper/outline.less';
2 changes: 1 addition & 1 deletion projects/core/components/button/button.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

@padding-xs: 8px;
@padding-s: 12px;
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/data-list/data-list.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

tui-data-list {
.text-body-m();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../styles/basic/basic-imports';
@import '../../../styles/basic/basic-imports.less';

:host {
.clearbtn();
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/dialog/dialog.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.text-body-m();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.createStackingContext();
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/error/error.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.text-basic();
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/expand/expand.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
display: block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../styles/basic/basic-imports';
@import '../../../styles/basic/basic-imports.less';

@arrowSize: 8px;
@arrowOffset: 14px;
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/hints-host/hints-host.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
position: fixed;
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/label/label.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/link/link.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.clearbtn();
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/loader/loader.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

@size-xs: 12px;
@size-s: 16px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.text-basic();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

@itemSize: 36px;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

@sizeM: 16px;
@sizeL: 24px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.text-body-l();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

.textfield();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

@itemSize: 63px;

Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/root/root.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/mixins/mixins';
@import '../../styles/mixins/mixins.less';

:host {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

@scroll-width: 12px;
@scroll-width-large: 14px;
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/scrollbar/scrollbar.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/tooltip/tooltip.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.transition(color);
Expand Down
2 changes: 1 addition & 1 deletion projects/core/components/wrapper/wrapper.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/basic/basic-imports';
@import '../../styles/basic/basic-imports.less';

:host {
.transition(~'color, background');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../styles/basic/basic-imports';
@import '../../../styles/basic/basic-imports.less';

:host {
.shadow(2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../styles/basic/basic-imports';
@import '../../../styles/basic/basic-imports.less';

:host {
position: fixed;
Expand Down
12 changes: 6 additions & 6 deletions projects/core/styles/basic/basic-imports.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../mixins/mixins';
@import '../mixins/picker';
@import '../mixins/text';
@import '../mixins/textfield';
@import '../variables/sizes';
@import '../variables/media';
@import '../mixins/mixins.less';
@import '../mixins/picker.less';
@import '../mixins/text.less';
@import '../mixins/textfield.less';
@import '../variables/sizes.less';
@import '../variables/media.less';
38 changes: 19 additions & 19 deletions projects/core/styles/taiga-ui-global.less
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@import './basic/basic-imports';
@import './basic/keyframes';
@import './basic/normalize';
@import './basic/main';
@import './markup/tui-autofill';
@import './markup/tui-container';
@import './markup/tui-form';
@import './markup/tui-group';
@import './markup/tui-island';
@import './markup/tui-list';
@import './markup/tui-menu-link';
@import './markup/tui-mobile-only';
@import './markup/tui-palette';
@import './markup/tui-required';
@import './markup/tui-row';
@import './markup/tui-skeleton';
@import './markup/tui-space';
@import './markup/tui-table';
@import './markup/tui-text';
@import './basic/basic-imports.less';
@import './basic/keyframes.less';
@import './basic/normalize.less';
@import './basic/main.less';
@import './markup/tui-autofill.less';
@import './markup/tui-container.less';
@import './markup/tui-form.less';
@import './markup/tui-group.less';
@import './markup/tui-island.less';
@import './markup/tui-list.less';
@import './markup/tui-menu-link.less';
@import './markup/tui-mobile-only.less';
@import './markup/tui-palette.less';
@import './markup/tui-required.less';
@import './markup/tui-row.less';
@import './markup/tui-skeleton.less';
@import './markup/tui-space.less';
@import './markup/tui-table.less';
@import './markup/tui-text.less';
2 changes: 1 addition & 1 deletion projects/core/styles/taiga-ui-local.less
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//Have to reimport this: https://github.com/angular/angular-cli/issues/7245
@import './basic/basic-imports';
@import './basic/basic-imports.less';
6 changes: 3 additions & 3 deletions projects/core/styles/taiga-ui-theme.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './theme/fonts.css';
@import './taiga-ui-local';
@import './theme/variables';
@import './theme/wrapper';
@import './taiga-ui-local.less';
@import './theme/variables.less';
@import './theme/wrapper.less';
14 changes: 7 additions & 7 deletions projects/core/styles/theme/wrapper.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import './wrapper/icon';
@import './wrapper/outline';
@import './wrapper/primary';
@import './wrapper/secondary';
@import './wrapper/table';
@import './wrapper/textfield';
@import './wrapper/whiteblock';
@import './wrapper/icon.less';
@import './wrapper/outline.less';
@import './wrapper/primary.less';
@import './wrapper/secondary.less';
@import './wrapper/table.less';
@import './wrapper/textfield.less';
@import './wrapper/whiteblock.less';

0 comments on commit f061dcd

Please sign in to comment.