Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): make it possible to override styles (refs #16)
Now styles for ng2-tree should be included explicitly from node_modules/ng2-tree/src/styles.css They will be applied globally. Examples can be seen in demo app (either distributed with the module or ng2-tree-demo repo)
- Loading branch information
Showing
11 changed files
with
165 additions
and
149 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
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
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 was deleted.
Oops, something went wrong.
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,145 @@ | ||
.node-menu { | ||
position: relative; | ||
width: 150px; | ||
} | ||
|
||
.node-menu .node-menu-content { | ||
width: 100%; | ||
padding: 5px; | ||
position: absolute; | ||
border: 1px solid #bdbdbd; | ||
border-radius: 5%; | ||
box-shadow: 0 0 5px #bdbdbd; | ||
background-color: #eee; | ||
color: #212121; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
} | ||
|
||
.node-menu .node-menu-content li.node-menu-item { | ||
list-style: none; | ||
padding: 3px; | ||
} | ||
|
||
.node-menu .node-menu-content .node-menu-item:hover { | ||
border-radius: 5%; | ||
opacity: unset; | ||
cursor: pointer; | ||
background-color: #bdbdbd; | ||
transition: background-color 0.2s ease-out; | ||
} | ||
|
||
.node-menu .node-menu-content .node-menu-item .node-menu-item-icon { | ||
display: inline-block; | ||
width: 16px; | ||
} | ||
|
||
.node-menu .node-menu-content .node-menu-item .node-menu-item-icon.new-tag:before { | ||
content: '\25CF'; | ||
} | ||
.node-menu .node-menu-content .node-menu-item .node-menu-item-icon.new-folder:before { | ||
content: '\25B6'; | ||
} | ||
|
||
.node-menu .node-menu-content .node-menu-item .node-menu-item-icon.rename:before { | ||
content: '\270E'; | ||
} | ||
|
||
.node-menu .node-menu-content .node-menu-item .node-menu-item-icon.remove:before { | ||
content: '\2716'; | ||
} | ||
|
||
.node-menu .node-menu-content .node-menu-item .node-menu-item-value { | ||
margin-left: 5px; | ||
} | ||
|
||
tree-internal ul { | ||
padding: 3px 0 3px 25px; | ||
} | ||
|
||
tree-internal li { | ||
padding: 0; | ||
margin: 0; | ||
list-style: none; | ||
} | ||
|
||
tree-internal .over-drop-target { | ||
border: 4px solid #757575; | ||
transition: padding 0.2s ease-out; | ||
padding: 5px; | ||
border-radius: 5%; | ||
} | ||
|
||
tree-internal .tree { | ||
box-sizing: border-box; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
} | ||
|
||
tree-internal .tree li { | ||
list-style: none; | ||
cursor: default; | ||
} | ||
|
||
tree-internal .tree li div { | ||
display: inline-block; | ||
box-sizing: border-box; | ||
} | ||
|
||
tree-internal .tree .node-value { | ||
display: inline-block; | ||
color: #212121; | ||
} | ||
|
||
tree-internal .tree .node-value:after { | ||
display: block; | ||
padding-top: -3px; | ||
width: 0; | ||
height: 2px; | ||
background-color: #212121; | ||
content: ''; | ||
transition: width 0.3s; | ||
} | ||
|
||
tree-internal .tree .node-value:hover:after { | ||
width: 100%; | ||
} | ||
|
||
tree-internal .tree .node-selected:after { | ||
width: 100%; | ||
} | ||
|
||
tree-internal .tree .folding { | ||
width: 25px; | ||
display: inline-block; | ||
line-height: 1px; | ||
padding: 0 5px; | ||
font-weight: bold; | ||
} | ||
|
||
tree-internal .tree .folding.node-collapsed { | ||
cursor: pointer; | ||
} | ||
|
||
tree-internal .tree .folding.node-collapsed:before { | ||
content: '\25B6'; | ||
color: #757575; | ||
} | ||
|
||
tree-internal .tree .folding.node-expanded { | ||
cursor: pointer; | ||
} | ||
|
||
tree-internal .tree .folding.node-expanded:before { | ||
content: '\25BC'; | ||
color: #757575; | ||
} | ||
|
||
tree-internal .tree .folding.node-leaf { | ||
color: #212121; | ||
text-align: center; | ||
font-size: 0.89em; | ||
} | ||
|
||
tree-internal .tree .folding.node-leaf:before { | ||
content: '\25CF'; | ||
color: #757575; | ||
} |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.