Pretty inputs

Size
2,773 Kb
Views
22,264

How do I make an pretty inputs?

What is a pretty inputs? How do you make a pretty inputs? This script and codes were developed by Hampus Persson on 13 September 2022, Tuesday.

Pretty inputs Previews

Pretty inputs - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pretty inputs</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul> <li> <input class="Input-radio" type="radio" id="radio1" name="radios" checked="checked" /> <label for="radio1">Radio 1</label> </li> <li> <input class="Input-radio" type="radio" id="radio2" name="radios" /> <label for="radio2">Radio 2</label> </li> <li> <input class="Input-checkbox" type="checkbox" id="check1" name="checks" /> <label for="check1">Check 1</label> </li> <li> <input class="Input-checkbox red" type="checkbox" id="check2" name="checks" /> <label for="check2">Check 2</label> </li>
</ul>
</body>
</html>

Pretty inputs - Script Codes CSS Codes

.Input-radio { display: none; cursor: pointer;
}
.Input-radio:focus, .Input-radio:active { outline: none;
}
.Input-radio + label { color: #333; cursor: pointer; display: block; margin-bottom: 12px; padding-left: 25px; position: relative; text-align: left;
}
.Input-radio + label:before, .Input-radio + label:after { content: ''; display: block; width: 14px; height: 14px; left: 0; bottom: -2px; position: absolute;
}
.Input-radio + label:before { background-color: #fff; border-radius: 50%; border: 2px solid #ddd;
}
.Input-radio + label:after { content: ''; position: absolute; top: 4px; left: 4px; background-color: #fff; width: 10px; height: 10px; border-radius: 50%; -webkit-transition: all .2s ease-in-out; transition: all .2s ease-in-out;
}
.Input-radio + label:hover:after { background-color: #c4c4c4;
}
.Input-radio:checked + label:before { box-shadow: inset 0 0 0 10px #fff;
}
.Input-radio:checked + label:after, .Input-radio:checked + label:hover:after { background-color: #7ed321;
}
.Input-checkbox { display: none; cursor: pointer;
}
.Input-checkbox:focus, .Input-checkbox:active { outline: none;
}
.Input-checkbox + label { color: #333; cursor: pointer; display: block; margin-bottom: 12px; padding-left: 25px; position: relative; text-align: left;
}
.Input-checkbox + label:before, .Input-checkbox + label:after { content: ''; display: block; width: 14px; height: 14px; left: 0; bottom: 0; position: absolute;
}
.Input-checkbox + label:before { background-color: #fff; border: 2px solid #ddd;
}
.Input-checkbox + label:after { position: absolute; top: -1px; left: 5px; background-color: transparent; width: 10px; height: 10px; -webkit-transition: all 50ms ease-in-out; transition: all 50ms ease-in-out; color: #7ed321; content: "x"; opacity: 0;
}
.Input-checkbox:checked + label:after, .Input-checkbox:checked + label:hover:after { font-family: sans-serif; opacity: 1;
}
.Input-checkbox.red + label:after { color: red;
}
body { margin: 4em;
}
Pretty inputs - Script Codes
Pretty inputs - Script Codes
Home Page Home
Developer Hampus Persson
Username hmps
Uploaded September 13, 2022
Rating 3
Size 2,773 Kb
Views 22,264
Do you need developer help for Pretty inputs?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Hampus Persson (hmps) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!