This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
57 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
15 changes: 9 additions & 6 deletions
15
projects/ngx-explorer/src/lib/components/icons/icons.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,10 +1,13 @@ | ||
<div class="nxe-icons-container"> | ||
<div class="nxe-icons-wrapper" *ngFor="let item of items" (dblclick)="open($event, item)" (click)="select($event, item)"> | ||
<div class="nxe-icons-wrapper-inner" [ngClass]="{'nxe-icon-selected':isSelected(item)}"> | ||
<div class="nxe-icon"> | ||
<i [className]="icons[item.type]"></i> | ||
<div class="nxe-icons"> | ||
<div class="nxe-icons-backpad" (click)="emptySpaceClick()"></div> | ||
<div class="nxe-icons-container"> | ||
<div class="nxe-icons-wrapper" *ngFor="let item of items" (dblclick)="open($event, item)" (click)="select($event, item)"> | ||
<div class="nxe-icons-wrapper-inner" [ngClass]="{'nxe-icon-selected':isSelected(item)}"> | ||
<div class="nxe-icon"> | ||
<i [className]="icons[item.type]"></i> | ||
</div> | ||
<div class="nxe-icon-text">{{ getDisplayName(item.data) }}</div> | ||
</div> | ||
<div class="nxe-icon-text">{{ getDisplayName(item.data) }}</div> | ||
</div> | ||
</div> | ||
</div> |
103 changes: 59 additions & 44 deletions
103
projects/ngx-explorer/src/lib/components/icons/icons.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,64 +1,79 @@ | ||
// TODO: var colors | ||
|
||
.nxe-icons-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ | ||
-moz-box-sizing: border-box; /* Firefox, other Gecko */ | ||
box-sizing: border-box; /* Opera/IE 8+ */ | ||
.nxe-icons { | ||
width: 100%; | ||
height: 100%; | ||
position: relative; | ||
|
||
.nxe-icons-wrapper { | ||
margin: 10px 10px 0px 10px; | ||
height: 110px; | ||
width: 80px; | ||
display: inline-block; | ||
flex-grow: 0; | ||
|
||
.nxe-icons-wrapper-inner { | ||
border: 1px solid transparent; | ||
padding-bottom: 5px; | ||
text-align: center; | ||
border-radius: 5px; | ||
.nxe-icons-backpad { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
.nxe-icons-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ | ||
-moz-box-sizing: border-box; /* Firefox, other Gecko */ | ||
box-sizing: border-box; /* Opera/IE 8+ */ | ||
|
||
.nxe-icon { | ||
margin-top: 5px; | ||
.nxe-icons-wrapper { | ||
margin: 10px 10px 0px 10px; | ||
height: 110px; | ||
width: 80px; | ||
display: inline-block; | ||
flex-grow: 0; | ||
z-index: 1; | ||
|
||
i { | ||
font-size: 50px; | ||
color: #999; | ||
font-weight: 500; | ||
.nxe-icons-wrapper-inner { | ||
border: 1px solid transparent; | ||
padding-bottom: 5px; | ||
text-align: center; | ||
border-radius: 5px; | ||
|
||
&.fa { | ||
-webkit-text-stroke: 2px white; | ||
} | ||
&:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
&.nxe-icon-selected { | ||
background-color: #f1f9ff; | ||
border: 1px solid #94cfff; | ||
|
||
.nxe-icon { | ||
margin-top: 5px; | ||
|
||
i { | ||
font-size: 50px; | ||
color: #999; | ||
font-weight: 500; | ||
|
||
&.fa { | ||
-webkit-text-stroke: 2px #f1f9ff; | ||
-webkit-text-stroke: 2px white; | ||
} | ||
} | ||
} | ||
|
||
&.nxe-icon-selected { | ||
background-color: #f1f9ff; | ||
border: 1px solid #94cfff; | ||
|
||
.nxe-icon { | ||
i { | ||
&.fa { | ||
-webkit-text-stroke: 2px #f1f9ff; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
.nxe-icon-text { | ||
text-align: center; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 3; | ||
-webkit-box-orient: vertical; | ||
.nxe-icon-text { | ||
text-align: center; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 3; | ||
-webkit-box-orient: vertical; | ||
} | ||
} | ||
} | ||
} |
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