mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
195440f2fb
* Add responsive offcanvas classes - Updates navbar-expand classes to de-dupe some styles—these shouldn't interfere now. - Adds some JS to the offcanvas component to help with responsiveness Co-Authored-By: GeoSot <geo.sotis@gmail.com> * Redesign homepage, docs, and examples Homepage: - New Bootstrap purple navbar - Redesigned masthead - Rewrote and redesigned homepage content - Replace Copy text with icons like Bootstrap Icons site across all ClipboardJS instances - Fixed padding issues in site footer - Match homepage button styles to examples page, use gap instead of tons of responsive margin utils Docs: - New navbar, no more subnav. Migrated search and version picker into the main navbar and refreshed the design of it all, including the responsive toggles. - New sidebar navigation is always expanded, and now features Bootstrap Icons alongside section headings - Sidebar navigation autoscrolls to active link for better usability - Subnav and navbar padding issues ironed out - Enhanced the version picker in anticipation of v5.2: we can now link right to the same page in the previous version. - Redesign callouts to add more color to our pages - Collapse table of contents on mobile - Cleanup and redesign button styles with CSS variables - Update design for subnav version dropdown - Update highlight and example to be full-width until md - Improve the Added In badges - Turn the ToC into a well on mobile - Redesign code snippets to better house two action buttons Examples: - Redesign Examples page layout - Add new example for responsive offcanvases in navbars * Convert offcanvas to CSS vars * Feat: add resize handler to Offcanvas.js. If we could use as default the `.offcanvas` class without modifiers, we then, could add a simplified selector The selector itself, ignores the .offcanvas class as it doesn't have any responsive behavior The `aria-modal` addon is to protect us, selection backdrop elements * Separate examples code, Add some selectors, fix stackblitz btn Co-authored-by: GeoSot <geo.sotis@gmail.com>
116 lines
2.6 KiB
SCSS
116 lines
2.6 KiB
SCSS
:root {
|
|
--base00: #fff;
|
|
--base01: #f5f5f5;
|
|
--base02: #c8c8fa;
|
|
--base03: #565c64;
|
|
--base04: #030303;
|
|
--base05: #333;
|
|
--base06: #fff;
|
|
--base07: #9a6700;
|
|
--base08: #bc4c00;
|
|
--base09: #087990;
|
|
--base0A: #795da3;
|
|
--base0B: #183691;
|
|
--base0C: #183691;
|
|
--base0D: #795da3;
|
|
--base0E: #a71d5d;
|
|
--base0F: #333;
|
|
}
|
|
|
|
.hl { background-color: var(--base02); }
|
|
.c { color: var(--base03); }
|
|
.err { color: var(--base08); }
|
|
.k { color: var(--base0E); }
|
|
.l { color: var(----base09); }
|
|
.n { color: var(--base08); }
|
|
.o { color: var(--base05); }
|
|
.p { color: var(--base05); }
|
|
.cm { color: var(--base04); }
|
|
.cp { color: var(--base08); }
|
|
.c1 { color: var(--base03); }
|
|
.cs { color: var(--base04); }
|
|
.gd { color: var(--base08); }
|
|
.ge { font-style: italic; }
|
|
.gh {
|
|
font-weight: 600;
|
|
color: #fff;
|
|
}
|
|
.gi { color: var(--base0C); }
|
|
.gp {
|
|
font-weight: 600;
|
|
color: var(--base04);
|
|
}
|
|
.gs { font-weight: 600; }
|
|
.gu {
|
|
font-weight: 600;
|
|
color: var(--base0C);
|
|
}
|
|
.kc { color: var(--base0E); }
|
|
.kd { color: var(--base0E); }
|
|
.kn { color: var(--base0C); }
|
|
.kp { color: var(--base0E); }
|
|
.kr { color: var(--base0E); }
|
|
.kt { color: var(--base0A); }
|
|
.ld { color: var(--base0C); }
|
|
.m { color: var(--base09); }
|
|
.s { color: var(--base0C); }
|
|
.na { color: var(--base0A); }
|
|
.nb { color: var(--base05); }
|
|
.nc { color: var(--base07); }
|
|
.no { color: var(--base08); }
|
|
.nd { color: var(--base07); }
|
|
.ni { color: var(--base08); }
|
|
.ne { color: var(--base08); }
|
|
.nf { color: var(--base0B); }
|
|
.nl { color: var(--base05); }
|
|
.nn { color: var(--base0A); }
|
|
.nx { color: var(--base0A); }
|
|
.py { color: var(--base08); }
|
|
.nt { color: var(--base08); }
|
|
.nv { color: var(--base08); }
|
|
.ow { color: var(--base0C); }
|
|
.w { color: #fff; }
|
|
.mf { color: var(--base09); }
|
|
.mh { color: var(--base09); }
|
|
.mi { color: var(--base09); }
|
|
.mo { color: var(--base09); }
|
|
.sb { color: var(--base0C); }
|
|
.sc { color: #fff; }
|
|
.sd { color: var(--base04); }
|
|
.s2 { color: var(--base0C); }
|
|
.se { color: var(--base09); }
|
|
.sh { color: var(--base0C); }
|
|
.si { color: var(--base09); }
|
|
.sx { color: var(--base0C); }
|
|
.sr { color: var(--base0C); }
|
|
.s1 { color: var(--base0C); }
|
|
.ss { color: var(--base0C); }
|
|
.bp { color: var(--base05); }
|
|
.vc { color: var(--base08); }
|
|
.vg { color: var(--base08); }
|
|
.vi { color: var(--base08); }
|
|
.il { color: var(--base09); }
|
|
|
|
// Color commas in rgba() values
|
|
.m + .o { color: var(--base03); }
|
|
|
|
// Fix bash
|
|
.language-sh .c { color: var(--base03); }
|
|
|
|
.chroma {
|
|
.language-bash,
|
|
.language-sh {
|
|
&::before {
|
|
color: #777;
|
|
content: "$ ";
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
.language-powershell::before {
|
|
color: #009;
|
|
content: "PM> ";
|
|
user-select: none;
|
|
}
|
|
}
|