0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-12 00:08:59 +01:00
Bootstrap/site/content/docs/5.1/examples/dropdowns/dropdowns.css
Julien Déramond 333d89e498
Docs: replace CSS by utilities in examples (#35699)
* Drop .opacity-50 and .opacity-75 redefinition in examples

* Drop unused .card-img-right from blog example CSS files

* Use line-height utilities when possible

* Use rounded-* utilities in examples

* Replace .nav-underline by .nav-scroller and use it in examples.html default

* Use .mb-1 for .blog-post-title

* Remove unused CSS rule and use .fw-* utilities for carousels examples

* Use utilities for cheatsheet examples

* Extract some CSS to utilities for .nav-masthead .nav-link in cover example

* Dashboard group of minor modifications

* Dropdowns example: refactoring

* Dropdowns example refactoring: fix linting by removing selector by id

* Features example refactoring

* Headers example refactoring

* List groups example refactoring

* Sidebars example refactoring

* Sign-in example refactoring

* Starter template refactoring

* Fix RTL examples

Co-authored-by: Mark Otto <markd.otto@gmail.com>
2022-02-23 10:31:18 -08:00

79 lines
1.2 KiB
CSS

.dropdown-menu {
margin: 4rem auto;
}
.dropdown-item-danger {
color: var(--bs-red);
}
.dropdown-item-danger:hover,
.dropdown-item-danger:focus {
color: #fff;
background-color: var(--bs-red);
}
.dropdown-item-danger.active {
background-color: var(--bs-red);
}
.btn-hover-light {
background-color: var(--bs-white);
}
.btn-hover-light:hover,
.btn-hover-light:focus {
color: var(--bs-blue);
background-color: var(--bs-light);
}
.cal-month,
.cal-days,
.cal-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
align-items: center;
}
.cal-month-name {
grid-column-start: 2;
grid-column-end: 7;
text-align: center;
}
.cal-weekday,
.cal-btn {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
height: 3rem;
padding: 0;
}
.cal-btn:not([disabled]) {
font-weight: 500;
}
.cal-btn:hover,
.cal-btn:focus {
background-color: rgba(0, 0, 0, .05);
}
.cal-btn[disabled] {
opacity: .5;
}
.form-control-dark {
background-color: rgba(255, 255, 255, .05);
border-color: rgba(255, 255, 255, .15);
}
.w-220px {
width: 220px;
}
.w-280px {
width: 280px;
}
.w-340px {
width: 340px;
}
.w-600px {
width: 600px;
}