96 lines
2.3 KiB
HTML
96 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.block
|
|
{
|
|
position:relative;
|
|
display: flex;
|
|
align-items: stretch;
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
|
|
background:lightgrey;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
|
|
.style--wide
|
|
{
|
|
width:100%;
|
|
}
|
|
.pad-normal
|
|
{
|
|
padding:10px;
|
|
}
|
|
|
|
input[type='radio']
|
|
{
|
|
display: block;
|
|
position: relative;
|
|
top: 0;
|
|
left: 0;
|
|
margin: 0;
|
|
appearance: none;
|
|
}
|
|
input[type='radio']::before
|
|
{
|
|
content: " ";
|
|
display: block;
|
|
position: relative;
|
|
width: 17px;
|
|
height: 17px;
|
|
border: 2px solid #000;
|
|
border-radius: 20px;
|
|
}
|
|
input[type='radio']:checked::after
|
|
{
|
|
content: " ";
|
|
display: block;
|
|
position: absolute;
|
|
width: 11px;
|
|
height: 11px;
|
|
top: 15px;
|
|
left: 15px;
|
|
border-radius: 20px;
|
|
background: #000;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<form>
|
|
|
|
<div class="block">
|
|
<input class="pad-normal" id="check-1" type="radio" name="slot-1" value="option-1"/>
|
|
<label class="pad-normal" for="check-1">
|
|
<span>Credit Card</span>
|
|
</label>
|
|
<a class="pad-normal" href="/">Change</a>
|
|
</div>
|
|
|
|
<div class="block">
|
|
<div class="icon--radio"></div>
|
|
<div class="style--wide">
|
|
<label for="check-2">Credit Card <input id="check-2" type="radio" name="slot-1" value="option-2"/></label>
|
|
<br>
|
|
<span>Check it</span>
|
|
</div>
|
|
<a class="style--axuillary" href="/">Change</a>
|
|
</div>
|
|
|
|
<div class="block">
|
|
<input id="check-3" type="radio" name="slot-1" value="option-3"/>
|
|
<p style="width:100%;">
|
|
<label for="check-3">Credit Card</label>
|
|
<br>
|
|
<span>Check it</span>
|
|
</p>
|
|
<a class="" href="/">Change</a>
|
|
</div>
|
|
|
|
</form>
|
|
</body>
|
|
</html> |