From afc9fc26c4c9861921969652e456d2b44a5a1e62 Mon Sep 17 00:00:00 2001 From: sD Date: Wed, 12 Feb 2020 18:50:56 +0100 Subject: change menu icon naming and revert old style buttons for the default theme --- webAO/client.html | 28 ++++++++++++++-------------- webAO/client.js | 4 ++-- webAO/styles/classic.css | 13 +++++++++++++ webAO/styles/client.css | 27 +++++++++------------------ webAO/styles/default.css | 15 +++++++++++++++ 5 files changed, 53 insertions(+), 34 deletions(-) diff --git a/webAO/client.html b/webAO/client.html index 2be5ea4..7002f9b 100644 --- a/webAO/client.html +++ b/webAO/client.html @@ -115,20 +115,20 @@
- + Defense - + - + Prosecution - + @@ -160,24 +160,24 @@
Main Menu
- - 📍 + + 📍
Areas
- - 💼 + + 💼
Evidence
- - 🔧 + + 🔧
Settings
- - + +
About
- - 🚨 + + 🚨
Call Mod
diff --git a/webAO/client.js b/webAO/client.js index 0aa3ec0..b81d5ec 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2480,9 +2480,9 @@ window.togglePresent = togglePresent; */ export function toggleMenu(menu) { if (menu !== selectedMenu) { - document.getElementById("menu_" + menu).className = "menu_icon active"; + document.getElementById("menu_" + menu).className = "menu_button active"; document.getElementById("content_" + menu).className = "menu_content active"; - document.getElementById("menu_" + selectedMenu).className = "menu_icon"; + document.getElementById("menu_" + selectedMenu).className = "menu_button"; document.getElementById("content_" + selectedMenu).className = "menu_content"; selectedMenu = menu; } diff --git a/webAO/styles/classic.css b/webAO/styles/classic.css index 936caec..e67cbef 100644 --- a/webAO/styles/classic.css +++ b/webAO/styles/classic.css @@ -93,4 +93,17 @@ img { .menu_content { background-color: #847342; +} + +.client_button { + min-width: 6em; + margin: 1px; + padding: 6px 2px; + clip-path: polygon(75% 0, 100% 50%, 100% 100%, 0 100%, 0 50%, 25% 0); + cursor: pointer; + text-align: center; + color: white; + background-color: #7b2900; + text-shadow: 0 0 4px #000; + border: 1px solid #000; } \ No newline at end of file diff --git a/webAO/styles/client.css b/webAO/styles/client.css index 9997e99..70d6096 100644 --- a/webAO/styles/client.css +++ b/webAO/styles/client.css @@ -403,6 +403,10 @@ transition-property: width; } +.healthchange_button { + font-size: 1.5em; +} + .judge_button { display: inline-block; min-width: 85px; @@ -423,19 +427,6 @@ vertical-align: middle; } -.client_button { - min-width: 6em; - margin: 1px; - padding: 6px 2px; - clip-path: polygon(75% 0, 100% 50%, 100% 100%, 0 100%, 0 50%, 25% 0); - cursor: pointer; - text-align: center; - color: white; - background-color: #7b2900; - text-shadow: 0 0 4px #000; - border: 1px solid #000; -} - .client_button.hover_button.inactive { display: none; } @@ -494,23 +485,23 @@ display: block; } -.menu_icon { +.menu_button { cursor: pointer; display: inline-table; margin: 10px 15px; opacity: 1; } -.menu_icon.active { +.menu_button.active { opacity: 0.25; } -.menu_icon:hover { +.menu_button:hover { color: #FFD081; } -.em-3 { - font-size: 3em; +.menu_icon { + font-size: 2em; } .area-button { diff --git a/webAO/styles/default.css b/webAO/styles/default.css index 2581ae2..eb50603 100644 --- a/webAO/styles/default.css +++ b/webAO/styles/default.css @@ -48,4 +48,19 @@ img { #client_chatwaiting { display: none; +} + +.client_button { + margin: 1px; + padding: 2px 15px; + cursor: pointer; + text-align: center; + font-weight: bold; + color: white; + background-color: #7b2900; + border-radius: 3px; + border-style: solid; + border-width: 1px; + border-color: #fff; + box-shadow: 1px 1px inset; } \ No newline at end of file -- cgit