Updates the UI of esx_menu_dialog to match esx_menu_default, replace absolute units with vh

This commit is contained in:
Kr3mu
2025-08-31 20:49:32 +02:00
committed by _Not_
parent 69fe76ca38
commit 69772dbd5a
2 changed files with 84 additions and 85 deletions
+84 -84
View File
@@ -1,132 +1,132 @@
@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
#controls { #controls {
font-family: montserrat; font-family: "Poppins", sans-serif;
font-size: 3em; font-size: 2.77vh;
color: #fff; color: #fff;
position: absolute; position: absolute;
bottom: 40; bottom: 3.7vh;
right: 40; right: 3.7vh;
} }
.controls { .controls {
display: none; display: none;
} }
.dialog { .dialog {
font-family: montserrat; font-family: "Poppins", sans-serif;
background: rgba(33, 33, 33, 0.8); background: #212121;
color: #fff; color: #fff;
position: absolute; position: absolute;
border-top-left-radius: 5px; border-radius: 0.46vh;
border-top-right-radius: 5px; overflow: hidden;
overflow: hidden; top: 50%;
top: 50%; left: 50%;
left: 50%; width: 55.6vh;
width: 600px; height: 14.1vh;
height: 152px; padding-bottom: 1vh;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.head { .head {
display: flex; display: flex;
flex-basis: 100%; flex-basis: 100%;
align-items: center; align-items: center;
color: #fff; justify-content: center;
color: #fff;
font-size: 1.6vh;
font-weight: 500;
text-transform: uppercase;
} }
.dialog.big { .dialog.big {
height: 200px; height: 18.5vh;
} }
.dialog .head { .dialog .head {
background: rgba(25, 25, 25, 0.9); background: #161616;
text-align: center; text-align: center;
height: 40px; height: 3.7vh;
} }
.dialog .head span::before { .dialog .head span::before {
content: ""; content: "";
display: inline-block; display: inline-block;
height: 100%; height: 100%;
vertical-align: middle; vertical-align: middle;
} }
.dialog input[type="text"] { .dialog input[type="text"] {
width: 60%; width: 60%;
height: 32px; height: 2.96vh;
outline: 0; outline: 0;
background: none; background: none;
text-align: center; text-align: center;
margin-top: 26px; margin-top: 2.4vh;
margin-left: 125px; margin-left: 11.6vh;
font-size: large; font-size: 1.48vh;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
color: white; color: white;
border: 0.5px solid #ffffff3b; border: 0.05vh solid #ffffff3b;
border-radius: 0px; border-radius: 0.3vh;
} }
.dialog input[type="text"]:active, .dialog input[type="text"]:active,
.dialog input[type="text"]:hover { .dialog input[type="text"]:hover {
color: white; color: white;
} }
.dialog textarea { .dialog textarea {
width: 100%; width: 100%;
height: 128px; height: 11.85vh;
} }
.dialog button[name="submit"] { .dialog button[name="submit"] {
width: 17.6%; width: 17.6%;
height: 32px; height: 2.96vh;
margin-left: 160px; margin-left: 14.8vh;
font-weight: 300; font-weight: 500;
color: rgb(37, 34, 53);
border-radius: 10px; color: #fb9b04;
text-transform: uppercase; border-radius: 0.5vh;
background: rgb(50, 79, 208); font-size: 1.2vh;
outline: 0; background: #fb9c0433;
border: none; outline: 0;
transition: all 0.2s ease-in-out; border: none;
transition: all 0.2s ease-in-out;
} }
.dialog button { .dialog button {
z-index: 9999; z-index: 9999;
transform: translate(-0%, 50%); transform: translate(-0%, 50%);
} }
.dialog button[name="cancel"] { .dialog button[name="cancel"] {
width: 17.6%; width: 17.6%;
height: 32px; height: 2.96vh;
margin-left: 60px; margin-left: 5.6vh;
border: none;
text-transform: uppercase; font-weight: 500;
font-weight: 200;
border-radius: 10px; color: #fefefe;
color: rgb(53, 34, 34); border-radius: 0.5vh;
outline: 0; font-size: 1.2vh;
background: #c74545; background: #94949433;
transition: all 0.2s ease-in-out; outline: 0;
border: none;
transition: all 0.2s ease-in-out;
} }
.dialog button[name="cancel"]:hover { .dialog button[name="cancel"]:hover {
letter-spacing: 1px; letter-spacing: 0.09vh;
color: #ffffff; transform: scale(1.05) translate(-0%, 50%);
width: 17.6%;
} }
.dialog button[name="submit"]:hover { .dialog button[name="submit"]:hover {
letter-spacing: 1px; letter-spacing: 0.09vh;
color: white; transform: scale(1.05) translate(-0%, 50%);
width: 17.6%;
} }
.head::before, * {
.head::after { font-family: Poppins !important;
content: "";
flex-grow: 1;
background: #00e1ff;
height: 2px;
margin: 0px 3px;
} }
-1
View File
@@ -3,7 +3,6 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="stylesheet" href="nui://esx_menu_dialog/html/css/app.css" /> <link rel="stylesheet" href="nui://esx_menu_dialog/html/css/app.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@1,300&family=PT+Sans+Narrow&display=swap" rel="stylesheet" />
</head> </head>
<body> <body>