0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-05 17:24:20 +01:00
Bootstrap/site/content/docs/5.1/examples/dropdowns/dropdowns.css
Julien Déramond 520cc8de92
Docs: group together reusable CSS for examples in a single stylesheet (#35649)
* Docs: group together examples reusable CSS in a stylesheet

* Use pointer-events utility in sidebars example

* Remove @import and move the content into _default/examples.html. Handle 2 sorts of dividers

* Remove footers.css extra css declaration

* Fix modals example

* Review: remove .b-example-hr

Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com>
2022-01-19 13:27:57 +02:00

77 lines
1.3 KiB
CSS

.dropdown-menu {
position: static;
display: block;
width: auto;
margin: 4rem auto;
}
.dropdown-menu-macos {
display: grid;
gap: .25rem;
padding: .5rem;
border-radius: .5rem;
}
.dropdown-menu-macos .dropdown-item {
border-radius: .25rem;
}
.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 {
text-align: left;
background-color: var(--bs-white);
border-radius: .25rem;
}
.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);
}