Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
[#671] implemented hovering effects + @media screen: hide map title
Browse files Browse the repository at this point in the history
  • Loading branch information
jenarp committed Oct 15, 2021
1 parent 3233f64 commit ece20c8
Showing 1 changed file with 39 additions and 7 deletions.
46 changes: 39 additions & 7 deletions src/main/app/src/Components/Landscape/Map/Map.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@

.landscapeMapContainer .map .title {
fill: rgba(255, 255, 255, 0.75);
}

@media screen {
.title {
display: none;
}
}

.landscapeMapContainer .map .details {
border: 1px solid #3f51b5;
border-radius: 10px;
background-color: white;
}

.landscapeMapContainer .map .item {
cursor: pointer;
}
Expand All @@ -20,21 +27,26 @@
fill: rgba(255, 255, 255, 0.75);
cursor: pointer;
}

.landscapeMapContainer .map g .label rect {
fill-opacity: 1;
stroke-width: 0.1em;
}

.landscapeMapContainer .map g .item_shortName {
fill: #000;
}

.landscapeMapContainer .map path {
stroke-opacity: 0.8;
stroke-linecap: round;
stroke-linejoin: round;
}

.landscapeMapContainer .ReactSVGPanZoom svg g rect {
fill: transparent;
}

@-o-keyframes highlightLabel {
0% {
stroke-width: 5px;
Expand All @@ -47,6 +59,7 @@
stroke-width: 5px;
}
}

@-webkit-keyframes highlightLabel {
0% {
stroke-width: 5px;
Expand All @@ -59,6 +72,7 @@
stroke-width: 5px;
}
}

@keyframes highlightLabel {
0% {
stroke-width: 5px;
Expand All @@ -71,48 +85,52 @@
stroke-width: 5px;
}
}

@-o-keyframes highlightRelation {
0% {
stroke-width: 5px;
stroke: #000;
}
50% {
stroke-width: 40px;
stroke-width: 13;
stroke: white;
}
to {
stroke: #000;
stroke-width: 5px;
}
}

@-webkit-keyframes highlightRelation {
0% {
stroke-width: 5px;
stroke: #000;
}
50% {
stroke-width: 40px;
stroke-width: 13;
stroke: white;
}
to {
stroke: #000;
stroke-width: 5px;
}
}

@keyframes highlightRelation {
0% {
stroke-width: 5px;
stroke: #000;
}
50% {
stroke-width: 40px;
stroke-width: 13;
stroke: white;
}
to {
stroke: #000;
stroke-width: 5px;
}
}

.landscapeMapContainer .highlightLabel {
/* box-shadow: 0 0 0 2px #FF4081;
*/
Expand All @@ -123,22 +141,36 @@
-o-animation-iteration-count: 2;
animation-iteration-count: 2;
}

.landscapeMapContainer .highlightRelation {
/* box-shadow: 0 0 0 2px #FF4081;
*/
-webkit-animation: highlightRelation 1s linear;
-o-animation: highlightRelation 1s linear;
animation: highlightRelation 1s linear;
-webkit-animation-iteration-count: 2;
-o-animation-iteration-count: 2;
animation-iteration-count: 2;
-webkit-animation-iteration-count: 1.5;
-o-animation-iteration-count: 1.5;
animation-iteration-count: 1.5;
}

.landscapeMapContainer .with-transition {
z-index: 2;
}

.landscapeMapContainer .with-transition svg > g {
transition: transform 1s ease-out;
}

.landscapeMapContainer .showHighlight {
z-index: 2;
}

.landscapeMapContainer .map g.groupArea.unselected:hover polygon {
fill-opacity: 0.2
}

.map g.relation.unselected path:hover {
stroke: #C0C0C0;
stroke-width: 13;
stroke-opacity: 1;
}

0 comments on commit ece20c8

Please sign in to comment.