mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-23 23:02:22 +00:00
Fix node color selection on Chrome, Fixes: #181
This commit is contained in:
parent
22ddb3d51e
commit
b22d0dfc1d
@ -1,6 +1,10 @@
|
|||||||
<svg
|
<svg
|
||||||
class="map"
|
class="map"
|
||||||
preserveAspectRatio="none"
|
preserveAspectRatio="none"
|
||||||
></svg>
|
>
|
||||||
|
<filter id="grayscale">
|
||||||
|
<feColorMatrix id="feGrayscale" type="saturate" values="0"/>
|
||||||
|
</filter>
|
||||||
|
</svg>
|
||||||
|
|
||||||
<app-draw-link-tool *ngIf="drawLinkTool" (linkCreated)="linkCreated($event)"></app-draw-link-tool>
|
<app-draw-link-tool *ngIf="drawLinkTool" (linkCreated)="linkCreated($event)"></app-draw-link-tool>
|
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 260 B |
@ -31,17 +31,14 @@ g.node:hover {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*g.node text {*/
|
|
||||||
/*font-family: Roboto !important;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
|
|
||||||
svg.map image:hover, svg.map image.chosen, g.selected {
|
svg.map image:hover, svg.map image.chosen, g.selected {
|
||||||
-webkit-filter: grayscale(100%);
|
-webkit-filter: grayscale(100%);
|
||||||
-moz-filter: grayscale(100%);
|
-moz-filter: grayscale(100%);
|
||||||
-ms-filter: grayscale(100%);
|
-ms-filter: grayscale(100%);
|
||||||
-o-filter: grayscale(100%);
|
-o-filter: grayscale(100%);
|
||||||
filter: grayscale(100%);
|
filter: grayscale(100%);
|
||||||
|
filter: gray;
|
||||||
|
filter: url("#grayscale"); /* Chrome doesn't support CSS filters on SVG */
|
||||||
}
|
}
|
||||||
|
|
||||||
path.selected {
|
path.selected {
|
||||||
|
Loading…
Reference in New Issue
Block a user