mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
56 lines
1.1 KiB
HTML
56 lines
1.1 KiB
HTML
<div class="radio-inputs">
|
|
<label class="radio">
|
|
<input type="radio" name="radio" checked="">
|
|
<span class="name">HTML</span>
|
|
</label>
|
|
<label class="radio">
|
|
<input type="radio" name="radio">
|
|
<span class="name">React</span>
|
|
</label>
|
|
|
|
<label class="radio">
|
|
<input type="radio" name="radio">
|
|
<span class="name">Vue</span>
|
|
</label>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by Yaya12085 - Tags: radio, select, tab */
|
|
.radio-inputs {
|
|
position: relative;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
border-radius: 0.5rem;
|
|
background-color: #EEE;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
|
|
padding: 0.25rem;
|
|
width: 300px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.radio-inputs .radio {
|
|
flex: 1 1 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.radio-inputs .radio input {
|
|
display: none;
|
|
}
|
|
|
|
.radio-inputs .radio .name {
|
|
display: flex;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 0.5rem;
|
|
border: none;
|
|
padding: .5rem 0;
|
|
color: rgba(51, 65, 85, 1);
|
|
transition: all .15s ease-in-out;
|
|
}
|
|
|
|
.radio-inputs .radio input:checked + .name {
|
|
background-color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
</style>
|