btn-outline-danger
bootstrap5.css
bootstrap5.css
.btn-outline-danger {
color: #dc3545;
border-color: #dc3545;
}
bootstrap5.css
.btn-outline-danger:hover {
color: #fff;
background-color: #dc3545;
border-color: #dc3545;
}
bootstrap5.css
.btn-outline-danger:focus,
.btn-outline-danger.focus {
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}
bootstrap5.css
.btn-outline-danger.disabled,
.btn-outline-danger:disabled {
color: #dc3545;
background-color: transparent;
}
bootstrap5.css
.btn-outline-danger:not(:disabled):not(.disabled):active,
.btn-outline-danger:not(:disabled):not(.disabled).active,
.show > .btn-outline-danger.dropdown-toggle {
color: #fff;
background-color: #dc3545;
border-color: #dc3545;
}
bootstrap5.css
.btn-outline-danger:not(:disabled):not(.disabled):active:focus,
.btn-outline-danger:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-danger.dropdown-toggle:focus {
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}
html bootstrap5 Sample
アウトラインボタンの色:btn-outline-*
<!-- 塗りつぶしがない -->
<button class="btn btn-outline-primary">outline-primary</button>
<button class="btn btn-outline-secondary">outline-secondary</button>
<button class="btn btn-outline-success">outline-success</button>
<button class="btn btn-outline-danger">outline-danger</button>
<button class="btn btn-outline-warning">outline-warning</button>
<button class="btn btn-outline-info">outline-info</button>
<button class="btn btn-outline-light">outline-light</button>
<button class="btn btn-outline-dark">outline-dark</button>