diff --git a/hwe/css/map.css b/hwe/css/map.css index 44ff4fb9..7ff54243 100644 --- a/hwe/css/map.css +++ b/hwe/css/map.css @@ -5,6 +5,7 @@ background:black; font-size:13px; color:white; + position: relative; } .map_title{ @@ -33,6 +34,7 @@ width:700px; height:500px; position:relative; + overflow: hidden; } .map_body .map_bglayer1{ @@ -99,7 +101,7 @@ z-index: 6; line-height:15px; height:15px; - + } .world_map .nation_name{ background-color: rgb(30, 164, 255); diff --git a/hwe/scss/main.scss b/hwe/scss/main.scss index e871e3d5..7fe458a9 100644 --- a/hwe/scss/main.scss +++ b/hwe/scss/main.scss @@ -131,6 +131,23 @@ body { grid-column-end: 2; grid-row-start: 1; grid-row-end: 2; + + + .world_map{ + width:500px; + height: calc((500px + 20px) * 500 / 700); + } + + .map_title{ + transform-origin: 0px 0px; + transform: scale(calc(500 / 700)); + margin-bottom: -20px * 200 / 700; + } + + .map_body{ + transform-origin: 0px 0px; + transform: scale(calc(500 / 700)); + } } diff --git a/hwe/templates/map.php b/hwe/templates/map.php index bc50e3b0..d5e8a202 100644 --- a/hwe/templates/map.php +++ b/hwe/templates/map.php @@ -1,4 +1,4 @@ -