ラジオボタンをどのように変更して、選択時にボーダーの色とドットの色を変更することができますか?その中のドットのサイズを変更する - 私は完全な塗りつぶしを望んでいない)。カスタマイズするラジオボタン - 国境とその中の選択したドット
選択時にラジオボタンの周りに四角形の境界線が表示されないようにしたいと思います。
ラジオボタンをどのように変更して、選択時にボーダーの色とドットの色を変更することができますか?その中のドットのサイズを変更する - 私は完全な塗りつぶしを望んでいない)。カスタマイズするラジオボタン - 国境とその中の選択したドット
選択時にラジオボタンの周りに四角形の境界線が表示されないようにしたいと思います。
ここでは、あなたが探しているものを正確に実行しているCodepenがあります。そこ
@import url('http://fonts.googleapis.com/css?family=Lato');
body, html{
height: 100%;
background: #222222;
\t font-family: 'Lato', sans-serif;
}
.container{
display: block;
position: absolute;
margin: auto;
height: 450px;
width: 400px;
bottom: 0; left:0; right: 0; top:0;
padding: 0;
}
h2 {
\t color: #AAAAAA;
\t font-weight: normal;
}
.container ul{
list-style: none;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
ul li{
color: #AAAAAA;
display: block;
position: relative;
float: left;
width: 100%;
height: 100px;
\t border-bottom: 1px solid #111111;
}
ul li input[type=radio]{
position: absolute;
visibility: hidden;
}
ul li label{
display: block;
position: relative;
font-weight: 300;
font-size: 1.35em;
padding: 25px 25px 25px 80px;
margin: 10px auto;
height: 30px;
z-index: 9;
cursor: pointer;
-webkit-transition: all 0.25s linear;
}
ul li:hover label{
\t color: #FFFFFF;
}
ul li .check{
display: block;
position: absolute;
border: 5px solid #AAAAAA;
border-radius: 100%;
height: 25px;
width: 25px;
top: 30px;
left: 20px;
\t z-index: 5;
\t transition: border .25s linear;
\t -webkit-transition: border .25s linear;
}
ul li:hover .check {
border: 5px solid #FFFFFF;
}
ul li .check::before {
display: block;
position: absolute;
\t content: '';
border-radius: 100%;
height: 15px;
width: 15px;
top: 5px;
\t left: 5px;
margin: auto;
\t transition: background 0.25s linear;
\t -webkit-transition: background 0.25s linear;
}
input[type=radio]:checked ~ .check {
border: 5px solid #0DFF92;
}
input[type=radio]:checked ~ .check::before{
background: #0DFF92;
}
input[type=radio]:checked ~ label{
color: #0DFF92;
}
.signature {
\t position: fixed;
\t margin: auto;
\t bottom: 0;
\t top: auto;
\t width: 100%;
}
.signature p{
\t text-align: center;
\t font-family: Helvetica, Arial, Sans-Serif;
\t font-size: 0.85em;
\t color: #AAAAAA;
}
.signature .much-heart{
\t display: inline-block;
\t position: relative;
\t margin: 0 4px;
\t height: 10px;
\t width: 10px;
\t background: #AC1D3F;
\t border-radius: 4px;
\t -ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.signature .much-heart::before,
.signature .much-heart::after {
\t display: block;
content: '';
position: absolute;
margin: auto;
height: 10px;
width: 10px;
border-radius: 5px;
background: #AC1D3F;
top: -4px;
}
.signature .much-heart::after {
\t bottom: 0;
\t top: auto;
\t left: -4px;
}
.signature a {
\t color: #AAAAAA;
\t text-decoration: none;
\t font-weight: bold;
}
<div class="container">
\t
\t <h2>For dinner I would like to eat:</h2>
\t
<ul>
<li>
<input type="radio" id="f-option" name="selector">
<label for="f-option">Pizza</label>
<div class="check"></div>
</li>
<li>
<input type="radio" id="s-option" name="selector">
<label for="s-option">Spaghetti</label>
<div class="check"><div class="inside"></div></div>
</li>
<li>
<input type="radio" id="t-option" name="selector">
<label for="t-option">Tacos</label>
<div class="check"><div class="inside"></div></div>
</li>
</ul>
</div>
<div class="signature">
\t <p>Made with <i class="much-heart"></i> by <a href="http://codepen.io/AngelaVelasquez">Angela Velasquez</a></p>
</div>
現在、直接ラジオボタンのスタイルを設定する方法はありませんし、それを表示する方法についてのブラウザに任されています。私はどのブラウザを使っているのかは分かりませんが、ChromeやFireFoxは選択時に枠線を付けません。しかし、それを削除するにはまだinput[type=radio] { outline:none }
を試すことができます。