-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from nck974/mobile-friendly
Mobile friendly
- Loading branch information
Showing
49 changed files
with
514 additions
and
573 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
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 |
---|---|---|
@@ -1,6 +0,0 @@ | ||
.fab-container { | ||
position: fixed; | ||
bottom: 20px; | ||
right: 20px; | ||
z-index: 1; | ||
} | ||
20 changes: 12 additions & 8 deletions
20
...enes/src/app/pages/categories/components/category-in-list/category-in-list.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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
<mat-card class="card" *ngIf="category"> | ||
<div class="card-wrapper flex-center"> | ||
<mat-card class="material-card-element-no-padding card-with-hover-effect" | ||
*ngIf="category"> | ||
|
||
<mat-card-header> | ||
<mat-card-header> | ||
|
||
<mat-card-title class="card-header" (click)="onOpenDetails()" title="{{category.description}}"> | ||
{{ category.name }} | ||
</mat-card-title> | ||
<mat-card-title class="show-pointer" (click)="onOpenDetails()" | ||
title="{{category.description}}"> | ||
{{ category.name }} | ||
</mat-card-title> | ||
|
||
<div mat-card-avatar [style.background-color]="getAvatarColor()"></div> | ||
<div mat-card-avatar [style.background-color]="getAvatarColor()"></div> | ||
|
||
</mat-card-header> | ||
</mat-card-header> | ||
|
||
</mat-card> | ||
</mat-card> | ||
</div> |
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 |
---|---|---|
@@ -1,11 +0,0 @@ | ||
.card { | ||
margin: 10px; | ||
} | ||
.card:hover{ | ||
border: 1px solid black; | ||
box-shadow: 8px 8px 2px 1px #7b1fa21a; | ||
} | ||
|
||
.card-header { | ||
cursor: pointer; | ||
} | ||
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 |
---|---|---|
@@ -1,20 +0,0 @@ | ||
.card { | ||
margin: 1rem; | ||
max-width: 70rem; | ||
min-width: 35rem; | ||
} | ||
|
||
.center-card { | ||
display: flex; | ||
align-self: center; | ||
justify-content: center; | ||
} | ||
|
||
.item-metadata { | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
} | ||
|
||
.no-overflow { | ||
word-wrap: break-word; | ||
} | ||
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
27 changes: 1 addition & 26 deletions
27
ng-diogenes/src/app/pages/edit-category/edit-category.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 |
---|---|---|
@@ -1,28 +1,3 @@ | ||
.center { | ||
display: flex; | ||
align-self: center; | ||
justify-content: center; | ||
} | ||
|
||
.card { | ||
margin: 1rem; | ||
max-width: 600px; | ||
padding: 1rem; | ||
} | ||
|
||
.title { | ||
margin: 1rem; | ||
} | ||
|
||
.form { | ||
min-width: 150px; | ||
width: 100%; | ||
} | ||
|
||
.form mat-form-field { | ||
width: 100%; | ||
} | ||
|
||
.textarea-height { | ||
min-height: 150px; | ||
} | ||
} |
49 changes: 30 additions & 19 deletions
49
ng-diogenes/src/app/pages/edit-item/components/edit-bulk/edit-bulk.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
35 changes: 6 additions & 29 deletions
35
ng-diogenes/src/app/pages/edit-item/components/edit-bulk/edit-bulk.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 |
---|---|---|
@@ -1,31 +1,8 @@ | ||
.bulk-wrapper{ | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
.dashed-container-height { | ||
min-height: 10rem; | ||
} | ||
|
||
.bulk-container{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border: 2px dashed #ccc; | ||
padding: 20px; | ||
margin: 20px; | ||
text-align: center; | ||
width: 100%; | ||
max-width: 600px; | ||
min-height: 200px; | ||
cursor: pointer; | ||
} | ||
|
||
.stepper-container{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 20px; | ||
} | ||
|
||
.drag-over{ | ||
border: 4px dashed; | ||
} | ||
// Disable the padding of the card | ||
::ng-deep .mat-vertical-content { | ||
padding: 0px !important; | ||
} |
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
22 changes: 2 additions & 20 deletions
22
...iogenes/src/app/pages/edit-item/components/edit-item-image/edit-item-image.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 |
---|---|---|
@@ -1,21 +1,3 @@ | ||
// Image | ||
.item-image-container { | ||
max-width: 60rem; | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
} | ||
|
||
.item-image { | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.item-image-buttons-container { | ||
display: flex; | ||
justify-content: flex-end; | ||
} | ||
|
||
.item-add-new-image-container { | ||
display: flex; | ||
justify-content: center; | ||
.hidden-input { | ||
display: none; | ||
} |
Oops, something went wrong.