Skip to content

Commit bde3186

Browse files
authored
Complete removal and replacement of bootstrap (#6357)
In replacing some of the used bootstrap styles and layouts, this PR also updates the styles of a few affected components to improve visual accessibility. Closes #4164 🚀
1 parent 50bbd74 commit bde3186

33 files changed

+357
-606
lines changed

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"pnpm": ">=9.12.3"
1919
},
2020
"packageManager": "pnpm@9.15.2",
21-
"dependencies": {
22-
"bootstrap-scss": "^4.6.2"
23-
},
2421
"devDependencies": {
2522
"@11ty/eleventy": "^3.0.0",
2623
"@types/hast": "^3.0.4",

pnpm-lock.yaml

-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/_11ty/plugins/markdown.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function _registerAside(markdown: MarkdownIt, id: string, defaultTitle: string |
6565
const title = parsedArgs?.[1] ?? defaultTitle ?? '';
6666
return `<aside class="alert ${style}">
6767
<div class="alert-header">
68-
${icon !== null ? `<i class="material-symbols" aria-hidden="true">${icon}</i>` : ''}
68+
${icon !== null ? `<span class="material-symbols" aria-hidden="true">${icon}</span>` : ''}
6969
<span>${title ?? ''}</span>
7070
</div>
7171
<div class="alert-content">

src/_includes/banner.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="banner">
2-
<p class="banner__text">
2+
<p>
33
Dart 3.6 is here! Read the
44
<a href="https://medium.com/dartlang/announcing-dart-3-6-778dd7a80983" target="_blank">blog post</a>
55
to learn about new features in pub and the language.

src/_includes/cookie-notice.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
enhance the quality of its services and to analyze traffic.
55
<a href="https://policies.google.com/technologies/cookies" target="_blank" rel="noopener">Learn more</a>.
66
</p>
7-
<button id="cookie-consent" class="btn btn-primary">OK, got it</button>
7+
<button id="cookie-consent" class="filled-button">OK, got it</button>
88
</div>
99
</section>

src/_includes/head.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,12 @@
7878
integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw=="
7979
crossorigin="anonymous"
8080
referrerpolicy="no-referrer"></script>
81-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.2/js/bootstrap.min.js"
82-
integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+"
83-
crossorigin="anonymous"
84-
referrerpolicy="no-referrer"></script>
8581
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.min.js"
8682
integrity="sha512-nlp9/l96/EpjYBx7EP7pGASVXNe80hGhYAUrjeXnu/fyF5Py0/RXav4BBNs7n5Hx1WFhOEOWSAVjGeC3oKxDVQ=="
8783
crossorigin="anonymous"
8884
referrerpolicy="no-referrer"></script>
89-
85+
9086
<script src="{{ '/assets/js/os-tabs.js' | append: cache_bust }}"></script>
91-
<script src="{{ '/assets/js/utilities.js' | append: cache_bust }}"></script>
9287
<script src="{{ '/assets/js/main.js' | append: cache_bust }}"></script>
9388

9489
{% if js -%}

src/_includes/page-header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if site.show_banner -%} {% render 'banner.html' %} {%- endif -%}
12
<header id="page-header" class="site-header">
23
{% include 'navigation-main.html' %}
34
{% if obsolete -%}
@@ -10,4 +11,3 @@ <h4 class="text-center">
1011
{% endif -%}
1112
{% endif -%}
1213
</header>
13-
{% if site.show_banner -%} {% render 'banner.html' %} {%- endif -%}

src/_sass/_books.scss

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
@use 'core/bootstrap';
2-
31
.book-img-with-details {
42
margin-bottom: 1.5rem;
53

64
img {
7-
@include bootstrap.media-breakpoint-down(sm) {
8-
max-width: 200px;
9-
}
105
width: 100%;
6+
max-width: 200px;
7+
8+
@media (min-width: 768px) {
9+
max-width: unset;
10+
}
1111
}
1212

1313
.details {
1414
.title {
15-
@include bootstrap.media-breakpoint-up(sm) {
15+
margin-bottom: 0;
16+
17+
@media (min-width: 768px) {
1618
margin-top: 0;
1719
}
18-
margin-bottom: 0;
1920
}
2021
}
2122
}

src/_sass/_dash.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@use 'core/variables' as *;
2-
@use 'core/bootstrap';
32

43
// Homepage styles
54

src/_sass/_overwrites.scss

-63
This file was deleted.

0 commit comments

Comments
 (0)