Skip to content

Commit

Permalink
chore: kebab-case less
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Jul 16, 2024
1 parent a23400e commit ec6e053
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<h3 class="title">Cleaning schedule</h3>
<div>
<div
class="wrapper Group tui-space_top-3"
class="wrapper group tui-space_top-3"
[tuiDateFormat]="{mode: 'YMD'}"
>
<tui-input-date
class="LastDate"
class="last-date"
[formControl]="control"
[tuiDateFormat]="{separator: '-'}"
>
Expand All @@ -16,7 +16,7 @@ <h3 class="title">Cleaning schedule</h3>
<label
*ngIf="value$ | async as value"
tuiProgressLabel
class="Progress"
class="progress"
>
<span class="percent">{{ value }}%</span>

Expand All @@ -29,7 +29,7 @@ <h3 class="title">Cleaning schedule</h3>
</label>
</div>
<div
class="wrapper Group tui-space_top-3"
class="wrapper group tui-space_top-3"
[tuiDateFormat]="{mode: 'YMD'}"
>
<tui-input-date
Expand All @@ -42,7 +42,7 @@ <h3 class="title">Cleaning schedule</h3>
<label
*ngIf="value$ | async as value"
tuiProgressLabel
class="Progress hidden"
class="progress hidden"
>
<span class="text">COMPLETED</span>
<span class="percent">{{ value }}%</span>
Expand All @@ -60,7 +60,7 @@ <h3 class="title">Cleaning schedule</h3>
<button
appearance="primary"
tuiButton
class="Add"
class="add"
>
Add
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
margin: 0;
}

.Add {
.add {
padding-left: 30px;
padding-right: 30px;
margin-left: auto;
Expand All @@ -36,22 +36,22 @@ tui-progress-circle {
transition: color 2s;
}

.Group {
.group {
display: flex;
margin-top: 0;
margin-bottom: -5px;
gap: 10px;
align-items: center;
}

.Progress {
.progress {
transform: scale(0.7);
}

.hidden {
visibility: hidden;
}

.LastDate {
.last-date {
width: 160px;
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="cost">
<div class="bar-chart">
<h1
<h3
TuiTitle
class="Spend"
class="spend"
>
Utility costs
</h1>
</h3>
<p class="legend">
<span class="item">
<small class="name">Electricity bills</small>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
color: var(--tui-text-primary);
}

.Spend {
.spend {
margin-left: auto;
margin-right: auto;
text-align: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ <h3 class="title">Lighting</h3>
@if (testForm.get('testValue1')!.value) {
<label
tuiBlock
class="BlockLabel Checked"
class="block-label checked"
>
<div class="LeftSize">
<div class="left-size">
<input
formControlName="testValue1"
tuiCheckbox
Expand All @@ -30,9 +30,9 @@ <h3 class="title">Lighting</h3>
} @else {
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
<div class="LeftSize">
<div class="left-size">
<input
formControlName="testValue1"
tuiCheckbox
Expand All @@ -46,9 +46,9 @@ <h3 class="title">Lighting</h3>
@if (testForm.get('testValue2')!.value) {
<label
tuiBlock
class="BlockLabel Checked"
class="block-label checked"
>
<div class="LeftSize">
<div class="left-size">
<input
formControlName="testValue2"
tuiCheckbox
Expand All @@ -66,9 +66,9 @@ <h3 class="title">Lighting</h3>
} @else {
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
<div class="LeftSize">
<div class="left-size">
<input
formControlName="testValue2"
tuiCheckbox
Expand All @@ -82,9 +82,9 @@ <h3 class="title">Lighting</h3>
@if (testForm.get('testValue3')!.value) {
<label
tuiBlock
class="BlockLabel Checked"
class="block-label checked"
>
<div class="LeftSize">
<div class="left-size">
<input
formControlName="testValue3"
tuiCheckbox
Expand All @@ -102,9 +102,9 @@ <h3 class="title">Lighting</h3>
} @else {
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
<div class="LeftSize">
<div class="left-size">
<input
formControlName="testValue3"
tuiCheckbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
height: 30px;
}

.LeftSize {
.left-size {
display: flex;
gap: 1rem;
align-items: center;
}

.BlockLabel {
.block-label {
justify-content: space-between;
}

.Checked {
.checked {
background-color: #fcba1414;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="Safety">
<div class="safety">
<h3 class="title">Safety</h3>
<form
orientation="vertical"
Expand All @@ -9,7 +9,7 @@ <h3 class="title">Safety</h3>
>
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
Alarm system
<input
Expand All @@ -20,7 +20,7 @@ <h3 class="title">Safety</h3>
</label>
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
Close the curtains
<input
Expand All @@ -31,7 +31,7 @@ <h3 class="title">Safety</h3>
</label>
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
Video monitoring
<input
Expand All @@ -42,7 +42,7 @@ <h3 class="title">Safety</h3>
</label>
<label
tuiBlock
class="BlockLabel"
class="block-label"
>
Enable gas sensor notification
<input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.Safety {
.safety {
display: flex;
flex-direction: column;
gap: 10px;
Expand All @@ -20,7 +20,7 @@
padding-bottom: 20%;
}

.BlockLabel {
.block-label {
display: flex;
justify-content: space-between;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tuiCardLarge
tuiHeader
tuiSurface="elevated"
class="Button"
class="button"
>
<aside tuiAccessories>
<tui-avatar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
margin-bottom: auto;
}

.Button {
.button {
max-width: max-content;
padding-right: 28px;
gap: 15px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="climate-control">
<h3 class="title">Climate control</h3>
<div class="Group">
<div class="group">
<tui-input-number [(ngModel)]="value">Room temperature С°</tui-input-number>
<tui-input-number [(ngModel)]="value2">Water temperature</tui-input-number>
<tui-input-number [(ngModel)]="value3">Air humidity, %</tui-input-number>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
margin: 0;
}

.Group {
.group {
display: flex;
flex-direction: column;
gap: 10px;
Expand Down
20 changes: 10 additions & 10 deletions apps/taiga-lumbermill/src/dashboards/iot/iot.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class="tiles"
[debounce]="500"
>
<div class="Cards">
<div class="cards">
<app-small-card
img="/door.svg"
name="Open the door"
Expand All @@ -24,16 +24,16 @@
name="Turn on the kettle"
/>
</div>
<div class="Column">
<div class="Row">
<div class="Grow"><app-safety /></div>
<div class="Grow"><app-line-chart /></div>
<div class="Grow"><app-climate-control /></div>
<div class="column">
<div class="row">
<div class="grow"><app-safety /></div>
<div class="grow"><app-line-chart /></div>
<div class="grow"><app-climate-control /></div>
</div>
<div class="Row">
<div class="Grow"><app-lighting /></div>
<div class="Grow"><app-bar-chart /></div>
<div class="Grow"><app-cleaning /></div>
<div class="row">
<div class="grow"><app-lighting /></div>
<div class="grow"><app-bar-chart /></div>
<div class="grow"><app-cleaning /></div>
</div>
</div>
</tui-tiles>
20 changes: 10 additions & 10 deletions apps/taiga-lumbermill/src/dashboards/iot/iot.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,60 @@
padding-top: 20px;
}

.TilesBlock {
.tiles-block {
max-width: 500px;
}

.Cards {
.cards {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
justify-content: space-around;
}

.Group2 {
.group2 {
display: flex;
flex-wrap: wrap;
flex: auto;
gap: 20px;
}

.Group3 {
.group3 {
display: flex;
flex: 1;
}

.Grow {
.grow {
width: 100%;
height: 100%;
}

.Row {
.row {
display: grid;
grid-template-columns: 4fr 6fr 4fr;
gap: 15px;
}

@media (max-width: 900px) {
.Row {
.row {
display: flex;
flex: 1;
flex-wrap: wrap;
}

.Grow {
.grow {
height: max-content;
}
}

@media (max-width: 570px) {
.Grow {
.grow {
width: 100%;
}
}

.Column {
.column {
display: flex;
gap: 10px;
flex-direction: column;
Expand Down

0 comments on commit ec6e053

Please sign in to comment.