feat: 메인화면의 도시정보를 500px, 700px 가변
This commit is contained in:
+175
-103
@@ -19,7 +19,7 @@ body {
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
body{
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,37 @@ body {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.mainCityInfo {
|
||||
display: grid;
|
||||
border-right: solid 1px gray;
|
||||
border-bottom: solid 1px gray;
|
||||
|
||||
.gPanel {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
border-top: solid 1px gray;
|
||||
border-left: solid 1px gray;
|
||||
|
||||
.gHead {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.cityNamePanel,
|
||||
.nationNamePanel {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border-top: solid 1px gray;
|
||||
border-left: solid 1px gray;
|
||||
}
|
||||
|
||||
.popPanel {
|
||||
grid-column: 1 / 3;
|
||||
grid-template-columns: 1fr 5fr;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
#map_view {
|
||||
@@ -58,7 +89,7 @@ body {
|
||||
}
|
||||
|
||||
|
||||
#routeButtons{
|
||||
#routeButtons {
|
||||
grid-column-start: 1;
|
||||
grid-column-end: 2;
|
||||
grid-row-start: 3;
|
||||
@@ -98,6 +129,31 @@ body {
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.mainCityInfo {
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
|
||||
.cityNamePanel,
|
||||
.nationNamePanel {
|
||||
grid-column: 1 / 5;
|
||||
}
|
||||
|
||||
.officer4Panel {
|
||||
grid-column: 4 / 5;
|
||||
grid-row: 3 / 4;
|
||||
}
|
||||
|
||||
.officer3Panel {
|
||||
grid-column: 4 / 5;
|
||||
grid-row: 4 / 5;
|
||||
}
|
||||
|
||||
.officer2Panel {
|
||||
grid-column: 4 / 5;
|
||||
grid-row: 5 / 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
@@ -133,18 +189,18 @@ body {
|
||||
grid-row-end: 2;
|
||||
|
||||
|
||||
.world_map{
|
||||
width:500px;
|
||||
.world_map {
|
||||
width: 500px;
|
||||
height: calc((500px + 20px) * 500 / 700);
|
||||
}
|
||||
|
||||
.map_title{
|
||||
.map_title {
|
||||
transform-origin: 0px 0px;
|
||||
transform: scale(calc(500 / 700));
|
||||
margin-bottom: -20px * 200 / 700;
|
||||
}
|
||||
|
||||
.map_body{
|
||||
.map_body {
|
||||
transform-origin: 0px 0px;
|
||||
transform: scale(calc(500 / 700));
|
||||
}
|
||||
@@ -158,7 +214,7 @@ body {
|
||||
grid-row-end: 3;
|
||||
}
|
||||
|
||||
#routeButtons{
|
||||
#routeButtons {
|
||||
grid-column-start: 1;
|
||||
grid-column-end: 2;
|
||||
grid-row-start: 3;
|
||||
@@ -172,6 +228,16 @@ body {
|
||||
grid-row-start: 4;
|
||||
grid-row-end: 5;
|
||||
}
|
||||
|
||||
.mainCityInfo {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
|
||||
.cityNamePanel,
|
||||
.nationNamePanel {
|
||||
grid-column: 1 / 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toolbarButton {
|
||||
@@ -246,127 +312,133 @@ body {
|
||||
|
||||
/*임시용 */
|
||||
|
||||
#container{
|
||||
#container {
|
||||
/*width:1000px;*/
|
||||
margin:auto;
|
||||
font-size:13px;
|
||||
margin: auto;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/*임시용 끝*/
|
||||
|
||||
#message_board{
|
||||
position:relative;
|
||||
#message_board {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/*
|
||||
#message_board section{
|
||||
overflow-y:auto;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
*/
|
||||
.msg_plate{
|
||||
width:100%;
|
||||
outline-style:solid;
|
||||
outline-width:1px;
|
||||
.msg_plate {
|
||||
width: 100%;
|
||||
outline-style: solid;
|
||||
outline-width: 1px;
|
||||
outline-color: gray;
|
||||
min-height:64px;
|
||||
font-size:12px;
|
||||
word-break:break-all;
|
||||
color:white;
|
||||
min-height: 64px;
|
||||
font-size: 12px;
|
||||
word-break: break-all;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.msg_plate_private{
|
||||
background-color:#5d1e1a;
|
||||
.msg_plate_private {
|
||||
background-color: #5d1e1a;
|
||||
}
|
||||
|
||||
.msg_plate_private.msg_plate_dest{
|
||||
background-color:#5d461a;
|
||||
.msg_plate_private.msg_plate_dest {
|
||||
background-color: #5d461a;
|
||||
}
|
||||
|
||||
.msg_plate_public{
|
||||
background-color:#141c65;
|
||||
.msg_plate_public {
|
||||
background-color: #141c65;
|
||||
|
||||
}
|
||||
|
||||
.msg_plate_national, .msg_plate_diplomacy{
|
||||
background-color:#00582c;
|
||||
.msg_plate_national,
|
||||
.msg_plate_diplomacy {
|
||||
background-color: #00582c;
|
||||
}
|
||||
|
||||
.msg_plate_national.msg_plate_dest, .msg_plate_diplomacy.msg_plate_dest {
|
||||
background-color:#704615;
|
||||
.msg_plate_national.msg_plate_dest,
|
||||
.msg_plate_diplomacy.msg_plate_dest {
|
||||
background-color: #704615;
|
||||
}
|
||||
|
||||
.msg_plate_national.msg_plate_src, .msg_plate_diplomacy.msg_plate_src {
|
||||
background-color:#70153b;
|
||||
.msg_plate_national.msg_plate_src,
|
||||
.msg_plate_diplomacy.msg_plate_src {
|
||||
background-color: #70153b;
|
||||
}
|
||||
|
||||
.public_message{
|
||||
min-height:300px;
|
||||
.public_message {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.diplomacy_message{
|
||||
min-height:300px;
|
||||
.diplomacy_message {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.national_message{
|
||||
min-height:300px;
|
||||
.national_message {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.private_message{
|
||||
min-height:300px;
|
||||
.private_message {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.msg_icon{
|
||||
float:left;
|
||||
width:64px;
|
||||
height:64px;
|
||||
border-right:solid 1px gray;
|
||||
.msg_icon {
|
||||
float: left;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-right: solid 1px gray;
|
||||
}
|
||||
|
||||
.msg_time{
|
||||
font-size:0.75em;
|
||||
font-weight:normal;
|
||||
.msg_time {
|
||||
font-size: 0.75em;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.msg_header{
|
||||
.msg_header {
|
||||
font-weight: bold;
|
||||
margin-bottom:3px;
|
||||
color:white;
|
||||
margin-bottom: 3px;
|
||||
color: white;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.message_input_form{
|
||||
position:relative;
|
||||
.message_input_form {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#msg_input{
|
||||
color:white;
|
||||
background-color:black;
|
||||
font-size:12px;
|
||||
margin:0 2px;
|
||||
height:20px;
|
||||
border:solid 1px gray;
|
||||
#msg_input {
|
||||
color: white;
|
||||
background-color: black;
|
||||
font-size: 12px;
|
||||
margin: 0 2px;
|
||||
height: 20px;
|
||||
border: solid 1px gray;
|
||||
}
|
||||
|
||||
#msg_submit{
|
||||
position:absolute;
|
||||
right:0;
|
||||
margin-right:2px;
|
||||
#msg_submit {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
#mailbox_list{
|
||||
float:left;
|
||||
color:white;
|
||||
background-color:black;
|
||||
font-size:12px;
|
||||
width:160px;
|
||||
height:20px;
|
||||
#mailbox_list {
|
||||
float: left;
|
||||
color: white;
|
||||
background-color: black;
|
||||
font-size: 12px;
|
||||
width: 160px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.board_header{
|
||||
color:white;
|
||||
outline-style:solid;
|
||||
outline-width:1px;
|
||||
.board_header {
|
||||
color: white;
|
||||
outline-style: solid;
|
||||
outline-width: 1px;
|
||||
outline-color: gray;
|
||||
}
|
||||
|
||||
/*
|
||||
.board_side{
|
||||
position:absolute;
|
||||
@@ -384,28 +456,28 @@ body {
|
||||
height: 1.2em;
|
||||
}
|
||||
*/
|
||||
.msg_invalid{
|
||||
color:rgba(255,255,255,0.5);
|
||||
.msg_invalid {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.msg_body{
|
||||
padding-left:64px;
|
||||
.msg_body {
|
||||
padding-left: 64px;
|
||||
}
|
||||
|
||||
.msg_target{
|
||||
margin:2px 2px 0 2px;
|
||||
padding:2px 3px;
|
||||
display:inline-block;
|
||||
.msg_target {
|
||||
margin: 2px 2px 0 2px;
|
||||
padding: 2px 3px;
|
||||
display: inline-block;
|
||||
box-shadow: 2px 2px black;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.btn-delete-msg{
|
||||
.btn-delete-msg {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
margin:2px 2px 0 2px;
|
||||
font-size:8px;
|
||||
margin: 2px 2px 0 2px;
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -414,31 +486,31 @@ body {
|
||||
}
|
||||
*/
|
||||
|
||||
.msg_target.msg_bright{
|
||||
color:black;
|
||||
.msg_target.msg_bright {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.msg_target.msg_dark{
|
||||
color:white;
|
||||
.msg_target.msg_dark {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.msg_from_to{
|
||||
display:inline-block;
|
||||
.msg_from_to {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.msg_content{
|
||||
margin-left:10px;
|
||||
margin-right:5px;
|
||||
overflow:hidden;
|
||||
.msg_content {
|
||||
margin-left: 10px;
|
||||
margin-right: 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.msg_prompt{
|
||||
text-align:right;
|
||||
margin-top:5px;
|
||||
margin-right:5px;
|
||||
.msg_prompt {
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#mailbox_list option{
|
||||
color:white;
|
||||
background-color:black;
|
||||
#mailbox_list option {
|
||||
color: white;
|
||||
background-color: black;
|
||||
}
|
||||
@@ -1,47 +1,48 @@
|
||||
<table style='width:100%;' class='tb_layout bg2'>
|
||||
<tr><td colspan=8 style='text-align:center;height:20px;color:<?=$nationTextColor?>;background-color:<?=$nationColor?>;font-weight:bold;font-size:13px;'>【 <?=$region?> | <?=$levelText?> 】 <?=$name?></td></tr>
|
||||
<tr><td colspan=8 style='text-align:center;height:20px;color:<?=$nationTextColor?>;background-color:<?=$nationColor?>'><b><?=$nationName?"지배 국가 【 {$nationName} 】":'공 백 지'?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>주민</b></td>
|
||||
<td height=7 colspan=3><?=$this->bar($pop/$pop_max*100)?></td>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>민심</b></td>
|
||||
<td height=7><?=$this->bar($trust)?></td>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>태수</b></td>
|
||||
<td rowspan=2 style='text-align:center;'><?=$officerName[4]?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 style='text-align:center;'><?=$pop?>/<?=$pop_max?></td>
|
||||
<td style='text-align:center;'><?=round($trust, 1)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=50 rowspan=2 style='text-align:center;' class='bg1'><b>농업</b></td>
|
||||
<td width=100 height=7><?=$this->bar($agri/$agri_max*100)?></td>
|
||||
<td width=50 rowspan=2 style='text-align:center;' class='bg1'><b>상업</b></td>
|
||||
<td width=100 height=7><?=$this->bar($comm/$comm_max*100)?></td>
|
||||
<td width=50 rowspan=2 style='text-align:center;' class='bg1'><b>치안</b></td>
|
||||
<td width=100 height=7><?=$this->bar($secu/$secu_max*100)?></td>
|
||||
<td width=50 rowspan=2 style='text-align:center;' class='bg1'><b>군사</b></td>
|
||||
<td rowspan=2 style='text-align:center;'><?=$officerName[3]?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='text-align:center;'><?=$agri?>/<?=$agri_max?></td>
|
||||
<td style='text-align:center;'><?=$comm?>/<?=$comm_max?></td>
|
||||
<td style='text-align:center;'><?=$secu?>/<?=$secu_max?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>수비</b></td>
|
||||
<td height=7><?=$this->bar($def/$def_max*100)?></td>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>성벽</b></td>
|
||||
<td height=7><?=$this->bar($wall/$wall_max*100)?></td>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>시세</b></td>
|
||||
<td height=7><?=$this->bar(($trade-95)*10)?></td>
|
||||
<td rowspan=2 style='text-align:center;' class='bg1'><b>종사</b></td>
|
||||
<td rowspan=2 style='text-align:center;'><?=$officerName[2]?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='text-align:center;'><?=$def?>/<?=$def_max?></td>
|
||||
<td style='text-align:center;'><?=$wall?>/<?=$wall_max?></td>
|
||||
<td style='text-align:center;'><?=$trade?"{$trade}%":'상인없음'?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style='width:100%;' class='tb_layout bg2 mainCityInfo'>
|
||||
<div class="cityNamePanel" style="color:<?= $nationTextColor ?>;background-color:<?= $nationColor ?>;"><div>【 <?= $region ?> | <?= $levelText ?> 】 <?= $name ?></div></div>
|
||||
<div class="nationNamePanel" style="color:<?= $nationTextColor ?>;background-color:<?= $nationColor ?>;"><?= $nationName ? "지배 국가 【 {$nationName} 】" : '공 백 지' ?></div>
|
||||
<div class="gPanel popPanel">
|
||||
<div class="gHead bg1">주민</div>
|
||||
<div class="gBody"><?= $this->bar($pop / $pop_max * 100) ?><?= $pop ?>/<?= $pop_max ?></div>
|
||||
</div>
|
||||
<div class="gPanel trustPanel">
|
||||
<div class="gHead bg1">민심</div>
|
||||
<div class="gBody"><?= $this->bar($trust) ?><?= round($trust, 1) ?></div>
|
||||
</div>
|
||||
<div class="gPanel agriPanel">
|
||||
<div class="gHead bg1">농업</div>
|
||||
<div class="gBody"><?= $this->bar($agri / $agri_max * 100) ?><?= $agri ?>/<?= $agri_max ?></div>
|
||||
</div>
|
||||
<div class="gPanel commPanel">
|
||||
<div class="gHead bg1">상업</div>
|
||||
<div class="gBody"><?= $this->bar($comm / $comm_max * 100) ?><?= $comm ?>/<?= $comm_max ?></div>
|
||||
</div>
|
||||
<div class="gPanel secuPanel">
|
||||
<div class="gHead bg1">치안</div>
|
||||
<div class="gBody"><?= $this->bar($secu / $secu_max * 100) ?><?= $secu ?>/<?= $secu_max ?></div>
|
||||
</div>
|
||||
<div class="gPanel defPanel">
|
||||
<div class="gHead bg1">수비</div>
|
||||
<div class="gBody"><?= $this->bar($def / $def_max * 100) ?><?= $def ?>/<?= $def_max ?></div>
|
||||
</div>
|
||||
<div class="gPanel wallPanel">
|
||||
<div class="gHead bg1">성벽</div>
|
||||
<div class="gBody"><?= $this->bar($wall / $wall_max * 100) ?><?= $wall ?>/<?= $wall_max ?></div>
|
||||
</div>
|
||||
<div class="gPanel tradePanel">
|
||||
<div class="gHead bg1">시세</div>
|
||||
<div class="gBody"><?= $this->bar(($trade - 95) * 10) ?><?= $trade ? "{$trade}%" : '상인없음' ?></div>
|
||||
</div>
|
||||
<div class="gPanel officer4Panel">
|
||||
<div class="gHead bg1">태수</div>
|
||||
<div class="gBody"><?= $officerName[4] ?></div>
|
||||
</div>
|
||||
<div class="gPanel officer3Panel">
|
||||
<div class="gHead bg1">군사</div>
|
||||
<div class="gBody"><?= $officerName[3] ?></div>
|
||||
</div>
|
||||
<div class="gPanel officer2Panel">
|
||||
<div class="gHead bg1">종사</div>
|
||||
<div class="gBody"><?= $officerName[2] ?></div>
|
||||
</div>
|
||||
</div>
|
||||
+1
-1
@@ -537,7 +537,7 @@ export async function reloadWorldMap(option: loadMapOption, drawTarget = '.world
|
||||
|
||||
});
|
||||
|
||||
$objs.on('touchend', function (e) {
|
||||
$objs.on('touchend', function () {
|
||||
if (window.sam_toggleSingleTap) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user