atomic-css/index.html

117 lines
3.4 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;
}
.block > *
{
padding:10px 0 10px 10px;
}
.block > *:last-child
{
padding-right: 10px;
}
.block label
{
width:100%;
}
.block input[type='radio']
{
display: block;
position: relative;
margin: 0;
appearance: none;
}
.block input[type='radio']::before
{
content: " ";
display: block;
position: relative;
width: 17px;
height: 17px;
border: 2px solid #000;
border-radius: 20px;
}
.block input[type='radio']:checked::after
{
content: " ";
display: block;
position: absolute;
width: 11px;
height: 11px;
top: 15px;
left: 15px;
border-radius: 20px;
background: #000;
}
</style>
<style>
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;600;900&display=swap');
.text--size-micro{ font-size: 12px; line-height:24px; }
.text--size-small{ font-size: 14px; line-height:24px; }
.text--size-copy{ font-size:16px; line-height:24px; }
.text--size-h2{ font-size:24px; line-height:28px; }
.text--size-h1{ font-size:32px; line-height:48px; }
.text--green-darken-01{ color: #4B6451; }
.text--weight-light{ font-family:"Nunito Sans"; font-weight:100; }
.text--weight-normal{ font-family:"Nunito Sans"; font-weight:300; }
.text--weight-bold{ font-family:"Nunito Sans"; font-weight:600; }
.text--weight-black{ font-family:"Nunito Sans"; font-weight:900; }
.text--uppercase{ text-transform: uppercase; }
</style>
</head>
<body>
<form>
<div class="text--size-h2 text--weight-black">Review Your Order</div>
<div class="text--size-copy text--weight-black text--uppercase">Payment Method</div>
<div class="block">
<div class="text--size-copy text--weight-bold">Credit Card</div>
<a class="text--green-darken-01" href="/">Change</a>
</div>
<div class="block">
<input id="check-1" type="radio" name="slot-1" value="option-1"/>
<label for="check-1">
<span class="text--size-copy text--weight-bold">Credit Card</strong><br>
<span class="text--size-copy text--weight-normal">Credit Card</span><br>
<span class="text--size-copy text--weight-normal">Credit Card</span><br>
<span class="text--size-copy text--weight-normal">Credit Card</span><br>
<span class="text--size-copy text--weight-normal">Credit Card</span>
</label>
<a href="/">Change</a>
</div>
<div class="block">
<input id="check-2" type="radio" name="slot-1" value="option-2"/>
<label for="check-2">
<strong>Paypal</strong><br>
<span>also good</span>
</label>
<a href="/">Change</a>
</div>
</form>
</body>
</html>