fix(game-ui): 공통 Lumen 버튼 모양을 통일한다
상하단 이동·갱신 제어와 장수 목록, 토너먼트, 명령 선택을 공통 semantic button family로 연결한다. 고정 행은 공통 fixed-height 변형이 hover와 active 높이를 보정하게 하고 실제 Chromium geometry 회귀를 추가한다.
This commit is contained in:
@@ -588,7 +588,13 @@ const clickOutsideMenu = (event: Event) => {
|
||||
</button>
|
||||
</div>
|
||||
</details>
|
||||
<button type="button" class="select-command" @click="togglePicker()">명령 선택 ▾</button>
|
||||
<button
|
||||
type="button"
|
||||
class="legacy-button legacy-button--info legacy-button--fixed-height select-command"
|
||||
@click="togglePicker()"
|
||||
>
|
||||
명령 선택 ▾
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="queue-area">
|
||||
@@ -806,8 +812,7 @@ const clickOutsideMenu = (event: Event) => {
|
||||
}
|
||||
.control-pad > button,
|
||||
.clock,
|
||||
.legacy-menu > summary,
|
||||
.select-command {
|
||||
.legacy-menu > summary {
|
||||
box-sizing: border-box;
|
||||
min-height: 34px;
|
||||
border: 0;
|
||||
@@ -822,6 +827,12 @@ const clickOutsideMenu = (event: Event) => {
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
.select-command {
|
||||
--legacy-button-height: 34px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 4px;
|
||||
}
|
||||
.clock {
|
||||
background: #345c85;
|
||||
font-variant-numeric: tabular-nums;
|
||||
@@ -1024,9 +1035,6 @@ const clickOutsideMenu = (event: Event) => {
|
||||
grid-template-columns: 5fr 7fr;
|
||||
order: 1;
|
||||
}
|
||||
.advanced-actions > * {
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
.bottom-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
|
||||
@@ -61,7 +61,7 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
>
|
||||
<div class="bottom-item">
|
||||
<button
|
||||
class="bottom-trigger legacy-button legacy-button--navigation"
|
||||
class="bottom-trigger legacy-button legacy-button--navigation legacy-button--fixed-height"
|
||||
type="button"
|
||||
data-bottom-menu="global"
|
||||
:aria-expanded="openId === 'global'"
|
||||
@@ -132,7 +132,7 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
|
||||
<div class="bottom-item nation-bottom-item">
|
||||
<button
|
||||
class="bottom-trigger nation-trigger legacy-button legacy-button--lumen"
|
||||
class="bottom-trigger nation-trigger legacy-button legacy-button--lumen legacy-button--fixed-height"
|
||||
:style="{
|
||||
'--legacy-button-bg': nationMenuColor,
|
||||
'--legacy-button-border': 'color-mix(in srgb, var(--nation-menu-color) 90%, #000)',
|
||||
@@ -178,7 +178,7 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
|
||||
<div class="bottom-item">
|
||||
<button
|
||||
class="bottom-trigger quick-trigger legacy-button legacy-button--dark"
|
||||
class="bottom-trigger quick-trigger legacy-button legacy-button--dark legacy-button--fixed-height"
|
||||
type="button"
|
||||
data-bottom-menu="quick"
|
||||
:aria-expanded="openId === 'quick'"
|
||||
@@ -221,7 +221,7 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
|
||||
<div class="bottom-refresh-controls">
|
||||
<button
|
||||
class="bottom-trigger auto-refresh-trigger legacy-button legacy-button--navigation"
|
||||
class="bottom-trigger auto-refresh-trigger legacy-button legacy-button--navigation legacy-button--fixed-height"
|
||||
:class="{ active: realtimeEnabled }"
|
||||
type="button"
|
||||
data-bottom-menu="auto-refresh"
|
||||
@@ -232,7 +232,7 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
<strong>{{ realtimeEnabled ? 'ON' : 'OFF' }}</strong>
|
||||
</button>
|
||||
<button
|
||||
class="bottom-trigger manual-refresh-trigger legacy-button legacy-button--dark"
|
||||
class="bottom-trigger manual-refresh-trigger legacy-button legacy-button--dark legacy-button--fixed-height"
|
||||
type="button"
|
||||
data-bottom-menu="manual-refresh"
|
||||
aria-label="직접 갱신"
|
||||
@@ -279,9 +279,9 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
}
|
||||
|
||||
.bottom-trigger {
|
||||
--legacy-button-height: 45px;
|
||||
box-sizing: border-box;
|
||||
width: 125px;
|
||||
height: 45px;
|
||||
padding: 6px 4px;
|
||||
font-family: inherit;
|
||||
font-size: 16px;
|
||||
@@ -316,15 +316,6 @@ const onAction = (action: NonNullable<MainNavigationLinkItem['action']>) => {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.bottom-trigger.legacy-button:not(:disabled, [aria-disabled='true']):hover,
|
||||
.bottom-trigger.legacy-button:not(:disabled, [aria-disabled='true'])[aria-expanded='true'] {
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.bottom-trigger.legacy-button:not(:disabled, [aria-disabled='true']):active {
|
||||
height: 43px;
|
||||
}
|
||||
|
||||
.dropup-caret {
|
||||
display: inline-block;
|
||||
margin-left: 4px;
|
||||
|
||||
@@ -14,6 +14,7 @@ defineProps<{
|
||||
<button
|
||||
type="button"
|
||||
role="tab"
|
||||
class="legacy-button legacy-button--dark legacy-button--fixed-height"
|
||||
:aria-selected="activePage === 'tournament'"
|
||||
:class="{ active: activePage === 'tournament' }"
|
||||
@click="navigate"
|
||||
@@ -25,6 +26,7 @@ defineProps<{
|
||||
<button
|
||||
type="button"
|
||||
role="tab"
|
||||
class="legacy-button legacy-button--dark legacy-button--fixed-height"
|
||||
:aria-selected="activePage === 'betting'"
|
||||
:class="{ active: activePage === 'betting' }"
|
||||
@click="navigate"
|
||||
@@ -34,7 +36,13 @@ defineProps<{
|
||||
</RouterLink>
|
||||
</nav>
|
||||
<RouterLink v-slot="{ navigate }" custom to="/">
|
||||
<button class="close-button" type="button" @click="navigate">창 닫기</button>
|
||||
<button
|
||||
class="legacy-button legacy-button--navigation legacy-button--fixed-height close-button"
|
||||
type="button"
|
||||
@click="navigate"
|
||||
>
|
||||
창 닫기
|
||||
</button>
|
||||
</RouterLink>
|
||||
</div>
|
||||
</header>
|
||||
@@ -64,33 +72,21 @@ defineProps<{
|
||||
gap: 4px;
|
||||
}
|
||||
button {
|
||||
height: 44px;
|
||||
--legacy-button-height: 44px;
|
||||
margin: 0;
|
||||
border: 1px solid #666;
|
||||
border-radius: 5.25px;
|
||||
background: #444;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tournament-page-tabs button {
|
||||
min-width: 72px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.tournament-page-tabs button.active {
|
||||
border-color: #f39c12;
|
||||
background: #8a5b13;
|
||||
--legacy-button-bg: #8a5b13;
|
||||
--legacy-button-border: #704a0f;
|
||||
}
|
||||
.close-button {
|
||||
width: 88px;
|
||||
padding: 10px 16px;
|
||||
border-color: #375a7f;
|
||||
background: #375a7f;
|
||||
}
|
||||
button:hover,
|
||||
button:focus {
|
||||
filter: brightness(1.25);
|
||||
}
|
||||
button:focus-visible {
|
||||
outline: 2px solid #f39c12;
|
||||
|
||||
Reference in New Issue
Block a user