This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SIP-5] Repair and refactor CountryMap (apache#5721)
* Extract slice and formData * update css indent * remove no-effect call * improve text label * adjust text size * fix bound calculation * use string literal * make path constant
- Loading branch information
1 parent
9f2b502
commit f72cdc3
Showing
2 changed files
with
150 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
.country_map svg { | ||
background-color: #feffff; | ||
background-color: #feffff; | ||
} | ||
|
||
.country_map { | ||
position: relative; | ||
} | ||
|
||
.country_map .background { | ||
fill: rgba(255,255,255,0); | ||
pointer-events: all; | ||
fill: rgba(255,255,255,0); | ||
pointer-events: all; | ||
} | ||
|
||
.country_map .map-layer { | ||
fill: #fff; | ||
stroke: #aaa; | ||
fill: #fff; | ||
stroke: #aaa; | ||
} | ||
|
||
.country_map .effect-layer { | ||
pointer-events: none; | ||
pointer-events: none; | ||
} | ||
|
||
.country_map text { | ||
font-weight: 300; | ||
color: #333333; | ||
.country_map .text-layer { | ||
color: #333333; | ||
text-anchor: middle; | ||
pointer-events: none; | ||
} | ||
|
||
.country_map text.result-text { | ||
font-weight: 300; | ||
font-size: 24px; | ||
} | ||
|
||
.country_map text.big-text { | ||
font-size: 30px; | ||
font-weight: 400; | ||
color: #333333; | ||
font-weight: 700; | ||
font-size: 16px; | ||
} | ||
|
||
.country_map path.region { | ||
cursor: pointer; | ||
cursor: pointer; | ||
stroke: #eee; | ||
} |
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