Skip to content

Commit

Permalink
Merge branch 'main' into metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsiBarsi committed Dec 28, 2020
2 parents 270b089 + bdc32a7 commit 6c321c4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion projects/addon-doc/src/components/page/page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class TuiDocPageComponent {
header = '';

@Input()
packageName = '';
package = '';

activeItemIndex = NaN;

Expand Down
6 changes: 3 additions & 3 deletions projects/addon-doc/src/components/page/page.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ <h1 class="title">
status="custom"
></tui-tag>
<tui-tag
*ngIf="packageName"
*ngIf="package"
class="tag"
[value]="packageName"
[value]="package"
[autoColor]="true"
></tui-tag>
</h1>
Expand Down Expand Up @@ -48,7 +48,7 @@ <h1 class="title">
<tui-doc-source-code
class="source-code"
[header]="header"
[package]="packageName"
[package]="package"
></tui-doc-source-code>
</header>
<div class="content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
[style.paddingLeft.px]="paddingLeft"
[style.borderRightWidth.px]="paddingRight"
>
<ng-content select="polymorpheus-outlet"></ng-content>
<ng-content select="[polymorpheus-outlet]"></ng-content>
</div>
<div class="content" tuiPreventDefault="click">
<div
Expand Down
34 changes: 17 additions & 17 deletions projects/core/styles/mixins/text.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@

//typed text
.text-body-xl-bold() {
.font(19px, 28px, 'bold');
.font(19px, 28px, bold);
}

.text-body-xl() {
.font(19px, 28px, 'normal');
.font(19px, 28px, normal);
}

.text-body-l-bold(@type: 1) {
.font(17px, 24px, 'bold');
.font(17px, 24px, bold);

& when (@type = 2) {
line-height: 20px;
Expand All @@ -50,7 +50,7 @@
}

.text-body-l(@type: 1) {
.font(17px, 24px, 'normal');
.font(17px, 24px, normal);

& when (@type = 2) {
line-height: 20px;
Expand All @@ -62,84 +62,84 @@
}

.text-body-m-bold(@type: 1) {
.font(15px, 24px, 'bold');
.font(15px, 24px, bold);

& when (@type = 2) {
line-height: 20px;
}
}

.text-body-m(@type: 1) {
.font(15px, 24px, 'normal');
.font(15px, 24px, normal);

& when (@type = 2) {
line-height: 20px;
}
}

.text-body-s-bold(@type: 1) {
.font(13px, 20px, 'bold');
.font(13px, 20px, bold);

& when (@type = 2) {
line-height: 16px;
}
}

.text-body-s(@type: 1) {
.font(13px, 20px, 'normal');
.font(13px, 20px, normal);

& when (@type = 2) {
line-height: 16px;
}
}

.text-body-xs() {
.font(11px, 16px, 'normal');
.font(11px, 16px, normal);
letter-spacing: 0.4px;
}

//tabs,tags, category

.text-caption-l-bold() {
.font(13px, 20px, 'bold');
.font(13px, 20px, bold);
letter-spacing: 1px;
text-transform: uppercase;
}

.text-caption-l() {
.font(13px, 20px, 'normal');
.font(13px, 20px, normal);
letter-spacing: 1px;
text-transform: uppercase;
}

.text-caption-bold() {
.font(11px, 16px, 'bold');
.font(11px, 16px, bold);
letter-spacing: 1px;
text-transform: uppercase;
}

.text-caption() {
.font(11px, 16px, 'normal');
.font(11px, 16px, normal);
letter-spacing: 1px;
text-transform: uppercase;
}

// mixins fot font properties
.font(@size, @line-height: 'none', @weight: 'normal', @color: 'none') {
.font(@size, @line-height: 'none', @weight: normal, @color: 'none') {
font-weight: @weight;
font-size: @size;
font-family: var(--tui-text-font);
}

.font(@size, @line-height: 'none', @weight: 'normal', @color: 'none') when not (@line-height = 'none') {
.font(@size, @line-height: 'none', @weight: normal, @color: 'none') when not (@line-height = 'none') {
line-height: @line-height;
}

.font(@size, @line-height: 'none', @weight: 'normal', @color: 'none') when not (@color = 'none') {
.font(@size, @line-height: 'none', @weight: normal, @color: 'none') when not (@color = 'none') {
color: @color;
}

.font_heading(@size, @line-height: 'normal') {
.font_heading(@size, @line-height: normal) {
font-weight: bold;
line-height: @line-height;
font-size: @size;
Expand Down
2 changes: 1 addition & 1 deletion projects/kit/components/select/select.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
>
<ng-content></ng-content>
<div
polymorpheus-outlet
*ngIf="value"
polymorpheus-outlet
class="value"
automation-id="tui-select__value"
[content]="computedContent"
Expand Down

0 comments on commit 6c321c4

Please sign in to comment.