mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
61 lines
No EOL
1.1 KiB
HTML
61 lines
No EOL
1.1 KiB
HTML
<fieldset>
|
|
<legend>Frameworks</legend>
|
|
|
|
<div class="button-group">
|
|
<input type="radio" id="svelt" name="frameworks" checked="" />
|
|
<label for="svelt">Svelt</label>
|
|
</div>
|
|
|
|
<div class="button-group">
|
|
<input type="radio" id="react" name="frameworks" />
|
|
<label for="react">React</label>
|
|
</div>
|
|
|
|
<div class="button-group">
|
|
<input type="radio" id="vue" name="frameworks" />
|
|
<label for="vue">Vue</label>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<style>
|
|
/* From Uiverse.io by spj2401Dev - Tags: */
|
|
.button-group {
|
|
flex-grow: 1;
|
|
margin: auto;
|
|
}
|
|
|
|
.button-group input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
.button-group label {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
border: 1px solid #2b426d;
|
|
background-color: #385c7e;
|
|
color: white;
|
|
border-radius: 15px;
|
|
transition: all ease 0.2s;
|
|
text-align: center;
|
|
flex-grow: 1;
|
|
flex-basis: 0;
|
|
width: 90px;
|
|
font-size: 13px;
|
|
margin: 5px;
|
|
box-shadow: 0px 0px 50px -15px #000000;
|
|
}
|
|
|
|
.button-group input[type="radio"]:checked + label {
|
|
background-color: white;
|
|
color: #02375a;
|
|
border: 1px solid #2b426d;
|
|
}
|
|
|
|
fieldset {
|
|
border: 0;
|
|
display: flex;
|
|
}
|
|
|
|
</style>
|
|
|