Created
October 8, 2021 10:16
-
-
Save jatinhemnani01/b53770db3ac18e455d85a562f4ed2237 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
*, | |
*:before, | |
*:after { | |
box-sizing: border-box; | |
} | |
body { | |
padding: 1em; | |
font-family: 'Poppins', sans-serif; | |
font-size: 15px; | |
color: #b9b9b9; | |
background-color: #121212; | |
} | |
h4 { | |
color: #f0a500; | |
} | |
input, | |
input[type="radio"] + label, | |
input[type="checkbox"] + label:before, | |
select option, | |
select { | |
width: 100%; | |
padding: 1em; | |
line-height: 1.4; | |
background-color: #f9f9f9; | |
border: 1px solid #e5e5e5; | |
border-radius: 3px; | |
-webkit-transition: 0.35s ease-in-out; | |
-moz-transition: 0.35s ease-in-out; | |
-o-transition: 0.35s ease-in-out; | |
transition: 0.35s ease-in-out; | |
transition: all 0.35s ease-in-out; | |
} | |
input:focus { | |
outline: 0; | |
border-color: #bd8200; | |
} | |
input:focus + .input-icon i { | |
color: #f0a500; | |
} | |
input:focus + .input-icon:after { | |
border-right-color: #f0a500; | |
} | |
input[type="radio"] { | |
display: none; | |
} | |
input[type="radio"] + label, | |
select { | |
display: inline-block; | |
width: 50%; | |
text-align: center; | |
float: left; | |
border-radius: 0; | |
} | |
input[type="radio"] + label:first-of-type { | |
border-top-left-radius: 3px; | |
border-bottom-left-radius: 3px; | |
font-size: 14px; | |
} | |
input[type="radio"] + label:last-of-type { | |
border-top-right-radius: 3px; | |
border-bottom-right-radius: 3px; | |
font-size: 14px; | |
} | |
input[type="radio"] + label i { | |
padding-right: 0.4em; | |
} | |
input[type="radio"]:checked + label, | |
input:checked + label:before, | |
select:focus, | |
select:active { | |
background-color: #f0a500; | |
color: #fff; | |
border-color: #bd8200; | |
} | |
input[type="checkbox"] { | |
display: none; | |
} | |
input[type="checkbox"] + label { | |
position: relative; | |
display: block; | |
padding-left: 1.6em; | |
} | |
input[type="checkbox"] + label:before { | |
position: absolute; | |
top: 0.2em; | |
left: 0; | |
display: block; | |
width: 1em; | |
height: 1em; | |
padding: 0; | |
content: ""; | |
} | |
input[type="checkbox"] + label:after { | |
position: absolute; | |
top: 0.45em; | |
left: 0.2em; | |
font-size: 0.8em; | |
color: #fff; | |
opacity: 0; | |
font-family: 'Poppins', sans-serif; | |
content: "\f00c"; | |
} | |
input:checked + label:after { | |
opacity: 1; | |
} | |
select { | |
height: 3.4em; | |
line-height: 2; | |
} | |
select:first-of-type { | |
border-top-left-radius: 3px; | |
border-bottom-left-radius: 3px; | |
} | |
select:last-of-type { | |
border-top-right-radius: 3px; | |
border-bottom-right-radius: 3px; | |
} | |
select:focus, | |
select:active { | |
outline: 0; | |
} | |
select option { | |
background-color: #f0a500; | |
color: #fff; | |
} | |
.input-group { | |
margin-bottom: 1em; | |
zoom: 1; | |
} | |
.input-group:before, | |
.input-group:after { | |
content: ""; | |
display: table; | |
} | |
.input-group:after { | |
clear: both; | |
} | |
.input-group-icon { | |
position: relative; | |
} | |
.input-group-icon input { | |
padding-left: 4.4em; | |
} | |
.input-group-icon .input-icon { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 3.4em; | |
height: 3.4em; | |
line-height: 3.4em; | |
text-align: center; | |
pointer-events: none; | |
} | |
.input-group-icon .input-icon:after { | |
position: absolute; | |
top: 0.6em; | |
bottom: 0.6em; | |
left: 3.4em; | |
display: block; | |
border-right: 1px solid #e5e5e5; | |
content: ""; | |
-webkit-transition: 0.35s ease-in-out; | |
-moz-transition: 0.35s ease-in-out; | |
-o-transition: 0.35s ease-in-out; | |
transition: 0.35s ease-in-out; | |
transition: all 0.35s ease-in-out; | |
} | |
.input-group-icon .input-icon i { | |
-webkit-transition: 0.35s ease-in-out; | |
-moz-transition: 0.35s ease-in-out; | |
-o-transition: 0.35s ease-in-out; | |
transition: 0.35s ease-in-out; | |
transition: all 0.35s ease-in-out; | |
} | |
.container { | |
max-width: 38em; | |
padding: 1em 3em 2em 3em; | |
margin: 0em auto; | |
background-color: #212121; | |
border-radius: 4.2px; | |
box-shadow: 0px 3px 10px -2px rgba(0, 0, 0, 0.2); | |
} | |
.row { | |
zoom: 1; | |
} | |
.row:before, | |
.row:after { | |
content: ""; | |
display: table; | |
} | |
.row:after { | |
clear: both; | |
} | |
.col-half { | |
padding-right: 10px; | |
float: left; | |
width: 50%; | |
} | |
.col-half:last-of-type { | |
padding-right: 0; | |
} | |
.col-third { | |
padding-right: 10px; | |
float: left; | |
width: 33.33333333%; | |
} | |
.col-third:last-of-type { | |
padding-right: 0; | |
} | |
@media only screen and (max-width: 540px) { | |
.col-half { | |
width: 100%; | |
padding-right: 0; | |
} | |
} | |
.whatif-header { | |
padding: 2em 1em; | |
} | |
.header-logo { | |
width: 25%; | |
height: 25%; | |
} | |
@media screen and (max-width: 50em) { | |
.header-logo { | |
width: 75%; | |
height: 75%; | |
} | |
} | |
.form-title { | |
display: flex; | |
align-content: center; | |
} | |
.form-title h2{ | |
font-size: 36px; | |
padding: 20px 0; | |
margin: 0 auto; | |
color: #fff; | |
} | |
div.input-two input{ | |
padding-left: 10px; | |
} | |
label { | |
color: #f0a500; | |
} | |
div.select select { | |
width: 100%; | |
margin-top: 5px; | |
} | |
@media screen and (max-width: 50em) { | |
.container { | |
padding: 1em 1.5em 2em 1.5em;; | |
} | |
.form-title h2{ | |
font-size: 24px; | |
} | |
} | |
.profile-url input{ | |
padding-left: 10px; | |
margin-top: 5px; | |
} | |
.submit-button { | |
padding: 1em; | |
background-color: #f0a500; | |
color: #fff; | |
border: none; | |
border-radius: 3px; | |
font-family: 'Poppins', sans-serif; | |
font-size: 14px; | |
} | |
.button-wrapper { | |
display: flex; | |
justify-content: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment