-
-
Notifications
You must be signed in to change notification settings - Fork 935
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin-ui): More styling for product variant list
- Loading branch information
1 parent
438802d
commit 0522e5c
Showing
9 changed files
with
94 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
min-height: 40px; | ||
padding: 0; | ||
position: relative; | ||
padding: 6px; | ||
} | ||
|
||
.compact-select { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
admin-ui/src/app/catalog/components/variant-price-detail/variant-price-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,7 @@ | |
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.value { | ||
margin-top: 3px; | ||
} |
4 changes: 4 additions & 0 deletions
4
admin-ui/src/app/shared/components/title-input/title-input.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<ng-content></ng-content> | ||
<div class="edit-icon"> | ||
<clr-icon shape="edit"></clr-icon> | ||
</div> |
38 changes: 38 additions & 0 deletions
38
admin-ui/src/app/shared/components/title-input/title-input.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@import "variables"; | ||
|
||
:host { | ||
display: block; | ||
position: relative; | ||
|
||
::ng-deep input { | ||
font-size: 18px; | ||
color: $color-grey-700; | ||
max-width: 100%; | ||
&:not(:focus) { | ||
border-color: transparent !important; | ||
} | ||
} | ||
|
||
::ng-deep .clr-control-container { | ||
max-width: 100%; | ||
} | ||
|
||
.edit-icon { | ||
position: absolute; | ||
right: 8px; | ||
top: 6px; | ||
color: $color-grey-300; | ||
opacity: 0; | ||
transition: opacity 0.2s; | ||
} | ||
|
||
&:hover { | ||
::ng-deep input:not(:focus) { | ||
background-color: $color-grey-200 !important; | ||
} | ||
.edit-icon { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
admin-ui/src/app/shared/components/title-input/title-input.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'vdr-title-input', | ||
templateUrl: './title-input.component.html', | ||
styleUrls: ['./title-input.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class TitleInputComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters