1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 22:56:46 +02:00

Don't import Bootstrap CSS again

This commit is contained in:
Mark Otto
2025-04-14 09:57:38 -07:00
parent e6d82194ac
commit 13a3d3e744
6 changed files with 375 additions and 375 deletions

6
package-lock.json generated
View File

@@ -18,11 +18,6 @@
} }
], ],
"license": "MIT", "license": "MIT",
"dependencies": {
"remark": "^15.0.1",
"remark-html": "^16.0.1",
"yaml": "^2.7.0"
},
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0.9.4", "@astrojs/check": "^0.9.4",
"@astrojs/markdown-remark": "^6.3.2", "@astrojs/markdown-remark": "^6.3.2",
@@ -19383,6 +19378,7 @@
"version": "2.8.0", "version": "2.8.0",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz",
"integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==",
"dev": true,
"license": "ISC", "license": "ISC",
"bin": { "bin": {
"yaml": "bin.mjs" "yaml": "bin.mjs"

View File

@@ -146,6 +146,7 @@ $utilities: map.merge(
) )
), ),
"border-top": ( "border-top": (
class: border-top,
property: border-block-start, property: border-block-start,
values: ( values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color), null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
@@ -162,6 +163,7 @@ $utilities: map.merge(
), ),
"border-bottom": ( "border-bottom": (
property: border-block-end, property: border-block-end,
class: border-bottom,
values: ( values: (
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color), null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
0: 0, 0: 0,

View File

@@ -1,5 +1,5 @@
--- ---
// import { getVersionedBsCssProps } from '@libs/bootstrap' import { getVersionedBsCssProps } from '@libs/bootstrap'
import type { Layout } from '@libs/layout' import type { Layout } from '@libs/layout'
interface Props { interface Props {
@@ -10,5 +10,6 @@ interface Props {
const { direction } = Astro.props const { direction } = Astro.props
--- ---
<!-- <link {...getVersionedBsCssProps(direction)} /> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
<link {...getVersionedBsCssProps(direction)} />

View File

@@ -80,7 +80,7 @@ const simplifiedMarkup = markup
showMarkup && ( showMarkup && (
<> <>
{showPreview && ( {showPreview && (
<div class="d-flex align-items-center highlight-toolbar ps-3 pe-2 py-1" data-bs-theme="dark"> <div class="d-flex align-items-center highlight-toolbar ps-3 pe-2 py-1 border-0 border-top border-bottom">
<small class="font-monospace text-body-secondary text-uppercase">{lang}</small> <small class="font-monospace text-body-secondary text-uppercase">{lang}</small>
<div class="d-flex ms-auto"> <div class="d-flex ms-auto">
<button <button

View File

@@ -6,6 +6,8 @@
@use "../../../scss/mixins/border-radius" as *; @use "../../../scss/mixins/border-radius" as *;
@use "variables" as *; @use "variables" as *;
@layer custom {
// //
// Docs examples // Docs examples
// //
@@ -392,3 +394,4 @@
.bd-content .bd-code-snippet { .bd-content .bd-code-snippet {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
}

View File

@@ -22,28 +22,26 @@
// //
// Happy Bootstrapping! // Happy Bootstrapping!
@use "../../../scss/bootstrap" as *;
// Load docs components // Load docs components
@use "variables"; @use "./variables";
@use "navbar"; @use "./navbar";
@use "masthead"; @use "./masthead";
@use "ads"; @use "./ads";
@use "content"; @use "./content";
@use "skippy"; @use "./skippy";
@use "sidebar"; @use "./sidebar";
@use "layout"; @use "./layout";
@use "toc"; @use "./toc";
@use "footer"; @use "./footer";
@use "component-examples"; @use "./component-examples";
@use "buttons"; @use "./buttons";
@use "callouts"; @use "./callouts";
@use "brand"; @use "./brand";
@use "colors"; @use "./colors";
@use "clipboard-js"; @use "./clipboard-js";
@use "placeholder-img"; @use "./placeholder-img";
@use "scrolling"; @use "./scrolling";
// Load docs dependencies // Load docs dependencies
@use "syntax"; @use "./syntax";
@use "anchor"; @use "./anchor";