Created
January 31, 2022 06:39
-
-
Save IdrisDose/cc66aaf446c98bf1b4e7c8e6fee31af6 to your computer and use it in GitHub Desktop.
Reskinned qb-input to be centered with qbcore colors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap"); | |
:root { | |
--heading-bg: #DC143c; | |
--form-wrapper-bg: #171717; | |
--element-bg: #444444; | |
--btn-bg : #28A745; | |
--btn-hover-bg : #07661d; | |
} | |
* { | |
padding: 0; | |
margin: 0; | |
font-family: "Poppins", sans-serif !important; | |
font-weight: 300; | |
color: white; | |
} | |
.root-wrapper { | |
width: 100%; | |
height: 100vh; | |
background: transparent !important; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
opacity: 0.9; | |
} | |
html, | |
body { | |
background: transparent !important; | |
} | |
.main-wrapper { | |
min-width: 300px; | |
max-width: 500px; | |
width: 15%; | |
position: relative; | |
overflow: hidden; | |
border-radius: 2px; | |
padding: 1.5rem; | |
display: none; | |
background-color: var(--form-wrapper-bg); | |
} | |
.heading { | |
display: flex; | |
justify-content: center; | |
overflow: wrap; | |
margin-bottom: 5px; | |
background-color: var(--heading-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
border-radius: 2px; | |
color: white; | |
font-size: 0.9rem; | |
font-weight: 400; | |
padding: 0.45rem; | |
} | |
.heading h1 { | |
font-size: 18px; | |
position: relative; | |
font-weight: 500; | |
} | |
.form { | |
width: 100%; | |
height: auto; | |
min-height: 10%; | |
max-height: 70%; | |
margin: auto; | |
display: flex; | |
flex-direction: column; | |
} | |
.form label { | |
margin-top: 24px; | |
} | |
.form-control[type="number"] { | |
appearance: none; | |
-webkit-appearance: none; | |
} | |
.form-control[type="text"], | |
.form-control[type="number"], | |
.form-control[type="password"] { | |
border: none; | |
font-size: 14px; | |
border-radius: 2px; | |
margin: 5px 0px; | |
background-color: var(--element-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
height: 50px; | |
text-align: center; | |
width: 100%; | |
} | |
.form-control[type="text"]:focus, | |
.form-control[type="number"]:focus, | |
.form-control[type="password"]:focus { | |
transition-property: box-shadow; | |
transition-duration: 0.25s; | |
transition-timing-function: linear, ease-in; | |
} | |
.form-input-group { | |
background-color: var(--element-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
margin-top: 5px; | |
margin-bottom: 10px; | |
padding: 5px; | |
border-radius: 2px; | |
} | |
.input-group { | |
display: flex; | |
flex-flow: row wrap; | |
justify-content: space-evenly; | |
} | |
.input-group-chk { | |
display: flex; | |
flex-flow: column wrap; | |
align-content: center; | |
justify-content: center; | |
} | |
.input-group label { | |
color: rgba(255, 255, 255, 0.65) !important; | |
} | |
.input-group label:checked { | |
color: rgba(255, 255, 255, 1) !important; | |
} | |
.form-group-title { | |
width: 100%; | |
text-align: center; | |
} | |
.select-title { | |
background-color: var(--element-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
margin-top: 5px; | |
padding: 5px; | |
border-radius: 2px; | |
text-align: center; | |
} | |
.form-select { | |
width: 100%; | |
background-color: var(--element-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
margin-top: 2.5px; | |
margin-bottom: 10px; | |
padding: 5px; | |
border-radius: 2px; | |
border: none; | |
height: 50px; | |
} | |
.form-select:active, | |
.form-select:focus { | |
width: 100%; | |
background-color: var(--element-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
margin-top: 5px; | |
margin-bottom: 10px; | |
padding: 5px; | |
border-radius: 2px; | |
border: none; | |
} | |
.form-select option:hover { | |
background-color: var(--element-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
padding: 1rem 0; | |
border-radius: 2px; | |
border: none; | |
appearance: none; | |
} | |
::placeholder { | |
opacity: 65%; | |
color: white; | |
} | |
.background { | |
width: auto; | |
height: auto; | |
position: absolute; | |
top: 0; | |
left: 0; | |
background-color: var(--element-bg); | |
z-index: -99; | |
display: none; | |
} | |
.btn { | |
width: 100%; | |
height: 50px; | |
font-size: 16px; | |
background-color: var(--btn-bg); | |
/* box-shadow: 0rem 0rem 0.1rem 0.05rem #000000; */ | |
border: none; | |
font-weight: 500; | |
border-radius: 2px; | |
transition-property: color, background-color; | |
transition-duration: 0.1s, 0.3s; | |
transition-timing-function: linear, ease-in; | |
margin-top: 5px; | |
} | |
.btn:hover { | |
background-color: var(--btn-hover-bg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment