Skip to content

Commit

Permalink
feat(core): move theme related styles into separate export (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Dec 7, 2020
1 parent 42bf3e3 commit c240274
Show file tree
Hide file tree
Showing 210 changed files with 281 additions and 1,642 deletions.
2 changes: 1 addition & 1 deletion projects/addon-charts/components/axes/axes.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@size-xs: 32px;
@size-s: 64px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@size-s: 64px;
@size-m: 144px;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-commerce/components/card/card.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@payment-system-logo-height: 10px;
@brand-logo-size: 14px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@font-face {
font-family: 'cvc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@width-full: 392px;
@width-mobile: 288px;
Expand All @@ -11,7 +11,7 @@

:host {
display: block;
height: var(--tui-height-extra-large);
height: @height-extra-large;
width: @width-full;
border-radius: var(--tui-radius);
overflow: hidden;
Expand Down Expand Up @@ -77,7 +77,7 @@
&_inactive,
:host._disabled &_inactive {
color: transparent;
transition: color 0s @animation-duration;
transition: color 0s 0.3s;
}
}

Expand Down Expand Up @@ -105,7 +105,7 @@
.textfield-input();

&_card {
transition: color 0s @animation-duration;
transition: color 0s 0.3s;

:host._disabled & {
transition: color 0s;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-commerce/components/money/money.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
white-space: nowrap;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/src/components/code/code.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/src/components/copy/copy.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/src/components/demo/demo.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@color-dark: #454e58;
@color-gray: #e5e7ea;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@color-property: #8f75d1;

Expand Down Expand Up @@ -51,10 +51,10 @@
}

.deprecated {
background-color: fade(@color-red-100, 8%);
background-color: var(--tui-error-bg);
}

.deprecated-label {
margin-right: 2px;
color: @color-text-error;
color: var(--tui-error-fill);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/src/components/main/main.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@keyframes tuiShaking {
from,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

@sidebar-width: 260px;

Expand Down
2 changes: 1 addition & 1 deletion projects/addon-doc/src/components/page/page.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
.createStackingContext();
Expand Down Expand Up @@ -37,19 +37,19 @@
z-index: -1;
background-image: linear-gradient(
45deg,
var(--tui-color-border) 25%,
var(--tui-base-03) 25%,
transparent 25%,
transparent 75%,
var(--tui-color-border) 75%,
var(--tui-color-border)
var(--tui-base-03) 75%,
var(--tui-base-03)
),
linear-gradient(
45deg,
var(--tui-color-border) 25%,
var(--tui-base-03) 25%,
transparent 25%,
transparent 75%,
var(--tui-color-border) 75%,
var(--tui-color-border)
var(--tui-base-03) 75%,
var(--tui-base-03)
);
background-size: 6px 6px;
background-position: 0 0, 3px 3px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
.createStackingContext();
Expand All @@ -25,19 +25,19 @@
z-index: -1;
background-image: linear-gradient(
45deg,
var(--tui-color-border) 25%,
var(--tui-base-03) 25%,
transparent 25%,
transparent 75%,
var(--tui-color-border) 75%,
var(--tui-color-border)
var(--tui-base-03) 75%,
var(--tui-base-03)
),
linear-gradient(
45deg,
var(--tui-color-border) 25%,
var(--tui-base-03) 25%,
transparent 25%,
transparent 75%,
var(--tui-color-border) 75%,
var(--tui-color-border)
var(--tui-base-03) 75%,
var(--tui-base-03)
);
background-size: 6px 6px;
background-position: 0 0, 3px 3px;
Expand All @@ -49,7 +49,7 @@
height: 1px;
margin: 0 0 0 -1px;
border: none;
background: var(--tui-color-border);
background: var(--tui-base-03);
}

.gradient {
Expand Down Expand Up @@ -85,13 +85,13 @@
}

.direction {
color: var(--tui-color-text-light);
color: var(--tui-text-02);
margin: 0 6px;

&:hover,
&_active {
color: var(--tui-color-primary-text);
background: var(--tui-color-secondary-hover);
color: var(--tui-primary-text);
background: var(--tui-secondary-hover);
}
}

Expand All @@ -101,5 +101,5 @@

.palette {
box-sizing: border-box;
box-shadow: inset 0 1px var(--tui-color-border);
box-shadow: inset 0 1px var(--tui-base-03);
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: flex;
height: var(--tui-height-extra-large);
height: @height-extra-large;
align-items: center;
padding-right: 12px;
}

.label {
.text-body-s();
height: var(--tui-height-extra-large);
height: @height-extra-large;
box-sizing: border-box;
padding: 7px 16px;
min-width: 200px;
Expand All @@ -33,7 +33,7 @@
.button {
width: 32px;
height: 32px;
margin: 0 var(--tui-space);
margin: 0 @space;
transition: background 0.2s;
}

Expand Down
2 changes: 1 addition & 1 deletion projects/addon-editor/components/editor/editor.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
.createStackingContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
height: 16px;
border-radius: 100%;
margin: -8px 0 0 -8px;
box-shadow: inset 0 0 0 2px var(--tui-color-blank), 0 0 0 1px var(--tui-color-border);
box-shadow: inset 0 0 0 2px var(--tui-base-01), 0 0 0 1px var(--tui-base-03);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand All @@ -16,6 +16,6 @@
.color {
width: 24px;
height: 24px;
box-shadow: inset 0 0 0 1px var(--tui-color-border-dark);
box-shadow: inset 0 0 0 1px var(--tui-base-03-dark);
border-radius: 2px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
height: 16px;
border-radius: 100%;
margin: 0 -8px;
box-shadow: inset 0 0 0 2px var(--tui-color-blank), 0 0 0 1px var(--tui-color-border);
box-shadow: inset 0 0 0 2px var(--tui-base-01), 0 0 0 1px var(--tui-base-03);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
height: 16px;
border-radius: 100%;
margin: 0 -8px;
box-shadow: inset 0 0 0 2px var(--tui-color-blank), 0 0 0 1px var(--tui-color-border);
box-shadow: inset 0 0 0 2px var(--tui-base-01), 0 0 0 1px var(--tui-base-03);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'taiga-ui-angular-local';
@import 'taiga-ui-local';

:host {
display: block;
Expand Down
Loading

0 comments on commit c240274

Please sign in to comment.