Third pass on css and reportMenu
This commit is contained in:
parent
0d29ef5787
commit
d6bd883c94
@ -127,7 +127,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px), only screen and (max-height: 800px) {
|
||||||
div.about-room-main {
|
div.about-room-main {
|
||||||
section.share-url.not-mobile {
|
section.share-url.not-mobile {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px), only screen and (max-height: 800px) {
|
||||||
.global-message-content {
|
.global-message-content {
|
||||||
height: calc(100% - 5px);
|
height: calc(100% - 5px);
|
||||||
}
|
}
|
||||||
|
@ -90,13 +90,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
div.menu-container-main {
|
div.menu-container-main {
|
||||||
--size-first-columns-grid: clamp(120px, 15%, 200px);
|
--size-first-columns-grid: 200px;
|
||||||
|
|
||||||
font-family: "Press Start 2P";
|
font-family: "Press Start 2P";
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
height: 80vh;
|
height: 70vh;
|
||||||
width: 75vw;
|
width: 75vw;
|
||||||
top: clamp(55px, 10vh, 10vh);
|
top: 10vh;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -126,9 +126,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px) {
|
||||||
div.menu-container-main {
|
div.menu-container-main {
|
||||||
bottom: 55px;
|
--size-first-columns-grid: 120px;
|
||||||
|
//height: calc(100vh - 110px);
|
||||||
|
top: 55px;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
font-size: 0.5em;
|
font-size: 0.5em;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px), only screen and (max-height: 800px) {
|
||||||
.menuIcon {
|
.menuIcon {
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
img {
|
img {
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px) {
|
||||||
div.customize-main section button {
|
div.customize-main section button {
|
||||||
width: 130px;
|
width: 130px;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ function changeNotification() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px), only screen and (max-height: 800px) {
|
||||||
div.settings-main {
|
div.settings-main {
|
||||||
section {
|
section {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
import {onDestroy, onMount} from "svelte";
|
import {onDestroy, onMount} from "svelte";
|
||||||
import type {Unsubscriber} from "svelte/store";
|
import type {Unsubscriber} from "svelte/store";
|
||||||
import {playersStore} from "../../Stores/PlayersStore";
|
import {playersStore} from "../../Stores/PlayersStore";
|
||||||
import {connectionManager} from "../../Connexion/ConnectionManager";
|
//import {connectionManager} from "../../Connexion/ConnectionManager";
|
||||||
import {GameConnexionTypes} from "../../Url/UrlManager";
|
//import {GameConnexionTypes} from "../../Url/UrlManager";
|
||||||
|
|
||||||
let blockActive = true;
|
let blockActive = true;
|
||||||
let reportActive = !blockActive;
|
let reportActive = !blockActive;
|
||||||
let anonymous: boolean;
|
let anonymous: boolean = false;
|
||||||
let userUUID: string | undefined = '';
|
let userUUID: string | undefined = '';
|
||||||
let userName = "No name";
|
let userName = "No name";
|
||||||
let unsubscriber: Unsubscriber
|
let unsubscriber: Unsubscriber
|
||||||
@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
anonymous = connectionManager.getConnexionType === GameConnexionTypes.anonymous;
|
//anonymous = connectionManager.getConnexionType === GameConnexionTypes.anonymous;
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
@ -48,8 +48,15 @@
|
|||||||
reportActive = true;
|
reportActive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onKeyDown(e:KeyboardEvent) {
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:window on:keydown={onKeyDown}/>
|
||||||
|
|
||||||
<div class="report-menu-main nes-container is-rounded">
|
<div class="report-menu-main nes-container is-rounded">
|
||||||
<section class="report-menu-title">
|
<section class="report-menu-title">
|
||||||
<h2>Moderate {userName}</h2>
|
<h2>Moderate {userName}</h2>
|
||||||
@ -96,7 +103,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
height: 70vh;
|
height: 70vh;
|
||||||
width: 50vw;
|
width: 50vw;
|
||||||
top: clamp(55px, 10vh, 10vh);
|
top: 10vh;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
||||||
section.report-menu-title {
|
section.report-menu-title {
|
||||||
@ -122,9 +129,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px) {
|
||||||
div.report-menu-main {
|
div.report-menu-main {
|
||||||
bottom: 55px;
|
top: 21vh;
|
||||||
|
height: 60vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
font-size: 0.5em;
|
font-size: 0.5em;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,13 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
height: clamp(100px, 20vh, 20vh);
|
height: clamp(100px, 15vh, 300px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-height: 630px) {
|
||||||
|
div.report-container-main textarea {
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -30,7 +30,7 @@ section.section-input-send-text {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-height: 900px) {
|
@media only screen and (max-width: 800px), only screen and (max-height: 800px) {
|
||||||
section.section-input-send-text {
|
section.section-input-send-text {
|
||||||
--height-toolbar: 30%;
|
--height-toolbar: 30%;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user