Skip to content

Commit

Permalink
Update to Bootstrap 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 4, 2023
1 parent 4537990 commit 9417f49
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 76 deletions.
6 changes: 6 additions & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// The order of these imports is critical.
// See https://getbootstrap.com/docs/5.3/customize/sass/
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/variables-dark";

@import "./easyadmin-theme/variables-theme.scss";
@import "./easyadmin-theme/variables-bootstrap.scss";

Expand Down
1 change: 1 addition & 0 deletions assets/css/easyadmin-theme/detail-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
--bs-tooltip-padding-y: 10px;

.tooltip-inner {
font-size: 13px;
text-align: start;
}
}
Expand Down
1 change: 1 addition & 0 deletions assets/css/easyadmin-theme/fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
.field-date input[type="date"].form-control,
.field-time input[type="time"].form-control {
width: auto;
max-width: 100%;
}

// Language field
Expand Down
1 change: 1 addition & 0 deletions assets/css/easyadmin-theme/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ label.form-check-label {
border: 1px solid var(--form-input-border-color);
box-shadow: var(--form-input-shadow);
color: var(--form-input-text-color);
font-size: .875rem;
height: 30px;
padding: 3px 7px 4px;
white-space: nowrap;
Expand Down
13 changes: 0 additions & 13 deletions assets/css/easyadmin-theme/variables-bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,4 @@ $pagination-disabled-color: var(--text-muted) !default;
$pagination-disabled-bg: var(--white) !default;
$pagination-disabled-border-color: transparent !default;

$btn-transition: all .08s ease-in !default;
$btn-font-weight: 400 !default;
$btn-padding-y: 4px !default;
$btn-padding-x: 8px !default;
$btn-padding-y-lg: 7px !default;
$btn-padding-x-lg: 12px !default;
$btn-padding-y-sm: 3px !default;
$btn-padding-x-sm: 5px !default;
$btn-border-width: 0 !default;
$btn-border-radius: var(--border-radius) !default;
$btn-border-radius-lg: var(--border-radius) !default;
$btn-border-radius-sm: var(--border-radius) !default;

$custom-control-indicator-border-color: var(--gray-600) !default;
20 changes: 20 additions & 0 deletions assets/css/easyadmin-theme/variables-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,23 @@

--border-color: hsl(213, 24%, 91%);
}

// Bootstrap variables
.badge {
--bs-badge-font-weight: 500;
}
.btn {
--bs-btn-padding-x: 8px;
--bs-btn-padding-y: 4px;
--bs-btn-font-size: 0.875rem;
--bs-btn-font-weight: 400;
--bs-btn-border-width: 0;
--bs-btn-border-radius: var(--border-radius);
}
.dropdown-menu {
--bs-dropdown-font-size: 0.875rem;
}
.table {
--bs-table-color-state: var(--table-cell-color);
--bs-table-bg: var(--body-bg);
}
2 changes: 2 additions & 0 deletions src/Resources/public/app.00a7b690.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
2 changes: 0 additions & 2 deletions src/Resources/public/app.1357e916.js

This file was deleted.

24 changes: 24 additions & 0 deletions src/Resources/public/app.59076cd0.css

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions src/Resources/public/app.59076cd0.rtl.css

Large diffs are not rendered by default.

25 changes: 0 additions & 25 deletions src/Resources/public/app.bb26af28.css

This file was deleted.

25 changes: 0 additions & 25 deletions src/Resources/public/app.bb26af28.rtl.css

This file was deleted.

6 changes: 3 additions & 3 deletions src/Resources/public/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"entrypoints": {
"app": {
"css": [
"/app.bb26af28.css",
"/app.bb26af28.rtl.css"
"/app.59076cd0.css",
"/app.59076cd0.rtl.css"
],
"js": [
"/app.1357e916.js"
"/app.00a7b690.js"
]
},
"form": {
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"app.css": "app.bb26af28.css",
"app.rtl.css": "app.bb26af28.rtl.css",
"app.js": "app.1357e916.js",
"app.css": "app.59076cd0.css",
"app.rtl.css": "app.59076cd0.rtl.css",
"app.js": "app.00a7b690.js",
"form.js": "form.fc39362b.js",
"page-layout.js": "page-layout.3347892e.js",
"page-color-scheme.js": "page-color-scheme.a1970567.js",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1663,9 +1663,9 @@ boolbase@^1.0.0:
integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==

bootstrap@^5.1.0:
version "5.2.3"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.2.3.tgz#54739f4414de121b9785c5da3c87b37ff008322b"
integrity sha512-cEKPM+fwb3cT8NzQZYEu4HilJ3anCrWqh3CHAok1p9jXqMPsPTBhU25fBckEJHJ/p+tTxTFTsFQGM+gaHpi3QQ==
version "5.3.2"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.2.tgz#97226583f27aae93b2b28ab23f4c114757ff16ae"
integrity sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==

brace-expansion@^1.1.7:
version "1.1.11"
Expand Down

0 comments on commit 9417f49

Please sign in to comment.