forked from olcxjas-softworks/LarpixClient
Android run fix
This commit is contained in:
parent
9ae1ddac0d
commit
dd49c18cbd
12 changed files with 1456 additions and 4 deletions
300
android/app/src/main/assets/public/style.css
Normal file
300
android/app/src/main/assets/public/style.css
Normal file
|
|
@ -0,0 +1,300 @@
|
|||
@font-face {
|
||||
font-family: 'Nunito';
|
||||
src: URL('Nunito-Regular.ttf') format('truetype');
|
||||
}
|
||||
:root {
|
||||
--main-bg-color: rgb(20, 20, 20);
|
||||
--text-color: rgb(240, 240, 245);
|
||||
--icon-button-size: 2rem;
|
||||
--press-scale: scale(0.92);
|
||||
--light-border-color: rgba(255, 255, 255, 0.08);
|
||||
--button-margin: 0.4rem;
|
||||
--icon-button-height: 3.4rem;
|
||||
--button-height: 2.4rem;
|
||||
--border-width: 0.09rem;
|
||||
|
||||
--big-default: rgb(207 207 207);
|
||||
--big-red: rgb(202 0 0);
|
||||
--big-green: rgb(25 189 0);
|
||||
}
|
||||
.red {
|
||||
color: var(--big-red);
|
||||
}
|
||||
.green {
|
||||
color: var(--big-green);
|
||||
}
|
||||
.mininote {
|
||||
font-size: 80%;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
.aqua {
|
||||
color: rgb(0 139 200);
|
||||
}
|
||||
html {
|
||||
font-size: max(16px, calc(100vw / 120));
|
||||
}
|
||||
body {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
background-color: var(--main-bg-color);
|
||||
display: flex;
|
||||
height: 100dvh;
|
||||
overflow: hidden;
|
||||
}
|
||||
* {
|
||||
font-size: 1rem;
|
||||
scrollbar-width: none;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
transition: all 0.2s ease;
|
||||
color: var(--text-color);
|
||||
font-family: "Nunito", sans-serif;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
button, input {
|
||||
border-radius: 0.8rem;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
margin: var(--button-margin);
|
||||
padding: var(--button-margin);
|
||||
|
||||
height: var(--button-height);
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
}
|
||||
input {
|
||||
padding-left: calc(var(--button-margin) * 2);
|
||||
}
|
||||
|
||||
|
||||
indicator {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
left: -0.08rem;
|
||||
border: 0.15rem solid transparent;
|
||||
border-radius: 0.8rem;
|
||||
transform: translateY(calc( ( var(--icon-button-height) + (var(--button-margin) * 2) ) / 2 - 0.25rem));
|
||||
}
|
||||
indicator.notification {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0.5rem;
|
||||
left: -0.08rem;
|
||||
border: 0.15rem solid var(--text-color);
|
||||
border-radius: 0.8rem;
|
||||
transform: translateY(calc( ( var(--icon-button-height) + (var(--button-margin) * 2) ) / 2 - 0.25rem));
|
||||
}
|
||||
indicator.hover {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 1.2rem;
|
||||
left: -0.08rem;
|
||||
border: 0.15rem solid var(--text-color);
|
||||
border-radius: 0.8rem;
|
||||
transform: translateY(calc( ( var(--icon-button-height) + (var(--button-margin) * 2) ) / 2 - 0.6rem));
|
||||
}
|
||||
indicator.active {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 2rem;
|
||||
left: -0.08rem;
|
||||
border: 0.15rem solid var(--text-color);
|
||||
border-radius: 0.8rem;
|
||||
transform: translateY(calc( ( var(--icon-button-height) + (var(--button-margin) * 2) ) / 2 - 1rem));
|
||||
}
|
||||
|
||||
|
||||
.icon-button {
|
||||
height: var(--icon-button-height);
|
||||
width: var(--icon-button-height);
|
||||
justify-content: center;
|
||||
}
|
||||
.icon-button svg {
|
||||
width: var(--icon-button-size);
|
||||
height: var(--icon-button-size);
|
||||
}
|
||||
button:hover, input:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
button:active, input:active {
|
||||
transform: var(--press-scale);
|
||||
}
|
||||
roomcontent {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
height: 100dvh;
|
||||
width: calc(100vw - (var(--icon-button-height) + (var(--button-margin) * 2) + var(--border-width)) - 17rem);
|
||||
border-right: var(--border-width) solid var(--light-border-color);
|
||||
}
|
||||
roomcontent2 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
height: calc(100dvh - (var(--button-height) * 1.5));
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
height: 100dvh;
|
||||
width: calc(var(--icon-button-height) + (var(--button-margin) * 2) + var(--border-width));
|
||||
border-right: var(--border-width) solid var(--light-border-color);
|
||||
}
|
||||
sidebar.second {
|
||||
width: 17rem;
|
||||
min-width: 17rem;
|
||||
max-width: 17rem;
|
||||
}
|
||||
.sidebar-section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.collapse-text-button {
|
||||
padding-left: calc(var(--button-margin) + 0.2rem);
|
||||
flex-shrink: 0;
|
||||
flex-grow: 1;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
height: 2rem;
|
||||
font-weight: 600;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.collapse-text-button .chevron {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
}
|
||||
|
||||
.collapse-text-button.collapsed .chevron {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.add-action-button {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
padding: 0;
|
||||
flex-shrink: 0;
|
||||
justify-content: center;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.add-action-button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.add-action-button svg {
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
}
|
||||
hr {
|
||||
border: none;
|
||||
height: 0;
|
||||
background-color: transparent;
|
||||
border-bottom: var(--border-width) solid var(--light-border-color);
|
||||
width: 60%;
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
|
||||
#notification-container {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
position: fixed;
|
||||
top: 1.5rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 1500;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.8rem;
|
||||
pointer-events: none;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.notification {
|
||||
background: rgba(255, 255, 255, 0.015);
|
||||
backdrop-filter: blur(1.2rem);
|
||||
-webkit-backdrop-filter: blur(1.2rem);
|
||||
|
||||
border: var(--border-width) solid var(--light-border-color);
|
||||
border-radius: 0.9rem;
|
||||
|
||||
padding: 0.8rem 1.3rem;
|
||||
color: var(--text-color);
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
|
||||
box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
|
||||
|
||||
opacity: 0;
|
||||
transform: translateY(-1rem);
|
||||
transition:
|
||||
opacity 0.3s ease,
|
||||
transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
|
||||
background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.notification.show {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.notification.info {
|
||||
border-color: var(--big-default);
|
||||
}
|
||||
|
||||
.notification.error {
|
||||
border-color: var(--big-red);
|
||||
}
|
||||
|
||||
.notification.success {
|
||||
border-color: var(--big-green);
|
||||
}
|
||||
|
||||
roomtopbar {
|
||||
height: calc(var(--button-height) * 1.5);
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
width: 100%;
|
||||
border-bottom: var(--border-width) solid var(--light-border-color);
|
||||
|
||||
line-height: calc(var(--button-height) * 1.5);
|
||||
font-weight: bold;
|
||||
padding-left: calc(var(--button-margin) * 3);
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
sidebar.second#roomdetailsbar {
|
||||
height: calc(var(--button-height) * 1.5);
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
border-bottom: var(--border-width) solid var(--light-border-color);
|
||||
}
|
||||
fullcontainer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
herotitle {
|
||||
font-weight: bold;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue