History: Bootstrap 5 Cheatsheet
Preview of version: 2
{HTML()}
<st
- page_2 {
--tiki-page-content-top-margin: 80px;
}
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.b-example-divider {
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}
.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}
.bi {
vertical-align: -.125em;
fill: currentColor;
}
.nav-scroller {
position: relative;
z-index: 2;
height: 2.75rem;
overflow-y: hidden;
}
.nav-scroller .nav {
display: flex;
flex-wrap: nowrap;
padding-bottom: 1rem;
margin-top: -1px;
overflow-x: auto;
text-align: center;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
body {
scroll-behavior: smooth;
}
/**
* Bootstrap "Journal code" icon
* @link https://icons.getbootstrap.com/icons/journal-code/
*/
.bd-heading a::before {
display: inline-block;
width: 1em;
height: 1em;
margin-right: .25rem;
content: "";
background-image: url("data:image/svg+xml,%3Csvg xm
background-size: 1em;
}
/* stylelint-disable-next-line selector-max-universal */
.bd-heading + div > * + * {
margin-top: 3rem;
}
/* Table of contents */
.bd-aside a {
padding: .1875rem .5rem;
margin-top: .125rem;
margin-left: .3125rem;
color: rgba(0, 0, 0, .65);
}
.bd-aside a:hover,
.bd-aside a:focus {
color: rgba(0, 0, 0, .85);
background-color: rgba(121, 82, 179, .1);
}
.bd-aside .active {
font-weight: 600;
color: rgba(0, 0, 0, .85);
}
.bd-aside .btn {
padding: .25rem .5rem;
font-weight: 600;
color: rgba(0, 0, 0, .65);
}
.bd-aside .btn:hover,
.bd-aside .btn:focus {
color: rgba(0, 0, 0, .85);
background-color: rgba(121, 82, 179, .1);
}
.bd-aside .btn:focus {
box-shadow: 0 0 0 1px rgba(121, 82, 179, .7);
}
.bd-aside .btn::before {
width: 1.25em;
line-height: 0;
content: url("data:image/svg+xml,%3csvg xm
transition: transform .35s ease;
/* rtl:raw:
transform: rotate(180deg) translateX(-2px);
*/
transform-origin: .5em 50%;
}
.bd-aside .btnaria-expanded=%22true%22::before {
transform: rotate(90deg)/* rtl:ignore */;
}
/* Examples */
.scrollspy-example {
height: 200px;
}
id=%22modal%22 .bd-example .btn,
id=%22buttons%22 .bd-example .btn,
id=%22tooltips%22 .bd-example .btn,
id=%22popovers%22 .bd-example .btn,
id=%22dropdowns%22 .bd-example .btn-group,
id=%22dropdowns%22 .bd-example .dropdown,
id=%22dropdowns%22 .bd-example .dropup,
id=%22dropdowns%22 .bd-example .dropend,
id=%22dropdowns%22 .bd-example .dropstart {
margin: 0 1rem 1rem 0;
}
/* Layout */
@media (min-width: 1200px) {
#page-data {
display: grid;
grid-template-rows: auto;
grid-template-columns: 1fr 4fr 1fr;
gap: 1rem;
}
.bd-header {
position: fixed;
top: 0;
/* rtl:begin:ignore */
right: 0;
left: 0;
/* rtl:end:ignore */
z-index: 1030;
grid-column: 1 / span 3;
}
.bd-aside,
.bd-cheatsheet {
padding-top: 6rem;
}
/**
* 1. Too bad only Firefox supports subgrids ATM
*/
.bd-cheatsheet,
.bd-cheatsheet section,
.bd-cheatsheet article {
display: inherit; /* 1 */
grid-template-rows: auto;
grid-template-columns: 1fr 4fr;
grid-column: 1 / span 2;
gap: inherit; /* 1 */
}
.bd-aside {
grid-area: 1 / 3;
scroll-margin-top: 4rem;
}
.bd-cheatsheet section,
.bd-cheatsheet section > h2 {
top: 4rem;
scroll-margin-top: 2rem;
}
.bd-cheatsheet section > h2::before {
position: absolute;
/* rtl:begin:ignore */
top: 0;
right: 0;
bottom: -2rem;
left: 0;
/* rtl:end:ignore */
z-index: -1;
content: "";
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) calc(100% - 3rem), rgba(255, 255, 255, .01));
}
.bd-cheatsheet article,
.bd-cheatsheet .bd-heading {
top: 10rem;
scroll-margin-top: 8rem;
}
.bd-cheatsheet .bd-heading {
z-index: 1;
}
}
</style>