Skip to content

Commit

Permalink
theme css
Browse files Browse the repository at this point in the history
  • Loading branch information
ropalko committed May 14, 2024
1 parent 16fe37e commit fe784e7
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
3 changes: 3 additions & 0 deletions bs5/Swiper.PartAssets.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
};
}

@if (Kit.Css.Is("bs5")) {
<link rel="stylesheet" href="@MyView.Folder.Url/theme/theme.css" @Kit.Page.AssetAttributes()/>
}
<link rel="stylesheet" href="@MyView.Folder.Url/dist/styles.min.css" @Kit.Page.AssetAttributes()/>
<script src="@MyView.Folder.Url/dist/scripts.min.js" @Kit.Page.AssetAttributes()></script>

Expand Down
2 changes: 1 addition & 1 deletion bs5/dist/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bs5/dist/styles.min.css.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions bs5/styles/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,26 @@

p {
color: #fff;
font-size: $font-size-base*1.25;
font-size: calc(var(--bs-body-font-size, var(--bs-body-font-size-fallback-app-swiper)) * 1.25);
text-shadow: 0px 0px 16px rgba(0, 0, 0, 0.8);
margin: 0 0 $font-size-base * 0.6875;
margin: 0 0 calc(var(--bs-body-font-size, var(--bs-body-font-size-fallback-app-swiper)) * 0.6875);

&.lead {
margin-bottom: $grid-gutter-width/2;
font-size: $font-size-base*1.8;
font-size: calc(var(--bs-body-font-size, var(--bs-body-font-size-fallback-app-swiper)) * 1.8);
font-weight: 600;

@include media-breakpoint-up(md) {
line-height: 1.2em;
font-size: $font-size-base*3;
font-size: calc(var(--bs-body-font-size, var(--bs-body-font-size-fallback-app-swiper)) * 3);
}
@include media-breakpoint-up(lg) {
line-height: 1.2em;
font-size: $font-size-base*4;
font-size: calc(var(--bs-body-font-size, var(--bs-body-font-size-fallback-app-swiper)) * 4);
}
@include media-breakpoint-up(xl) {
line-height: 1.2em;
font-size: $font-size-base*5;
font-size: calc(var(--bs-body-font-size, var(--bs-body-font-size-fallback-app-swiper)) *5);
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions bs5/theme/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Bootstrap 5 uses CSS variables. You can use app-related variables in this file. The standard Bootstrap values are used as a fallback
Check our Docs for more information: https://go.2sxc.org/app-theme
*/

:root {
--bs-body-font-size-fallback-app-swiper: 1rem;
}

0 comments on commit fe784e7

Please sign in to comment.