Skip to content

Commit

Permalink
feat: replace background image (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyongyu committed Apr 26, 2022
1 parent 5ab4b30 commit f47895f
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions content/cn/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{{< /blocks/section >}}


{{< blocks/section >}}
{{< blocks/section color="blue-deep">}}
<div class="col">
<h1 class="text-center">This is the second Section</h1>
</div>
Expand All @@ -72,7 +72,7 @@ <h1 class="text-center">This is the second Section</h1>

{{< /blocks/section >}}

{{< blocks/section >}}
{{< blocks/section color="blue-light">}}

<div class="col-12">
<h1 class="text-center">This is another Section</h1>
Expand Down
Binary file modified content/cn/about/featured-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/cn/featured-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions content/en/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{{< /blocks/section >}}


{{< blocks/section >}}
{{< blocks/section color="blue-deep">}}
<div class="col">
<h1 class="text-center">This is the second Section -- Wait PM design</h1>
</div>
Expand All @@ -74,7 +74,7 @@ <h1 class="text-center">This is the second Section -- Wait PM design</h1>

{{< /blocks/section >}}

{{< blocks/section >}}
{{< blocks/section color="blue-light">}}

<div class="col-12">
<h1 class="text-center">Another Section -- Wait PM design</h1>
Expand Down
Binary file modified content/en/about/featured-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/en/featured-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion themes/docsy/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $td-enable-google-fonts: true !default;

// Theme colors

$primary: #30638E !default;
$primary: #502ec5 !default;
$primary-light: lighten($primary, 75%) !default;
$secondary: #FFA630 !default;
$success: #3772FF !default;
Expand All @@ -28,7 +28,9 @@ $white: #fff !default;
$light: #D3F3EE !default;

$dark: #403F4C !default;
$blue-light: #7bfff4 !default;
$blue: #72A1E5 !default;
$blue-deep: #26a3ff !default;
$orange: #BA5A31 !default;
$gray-100: #f8f9fa !default;
$gray-200: #eee !default;
Expand Down
4 changes: 2 additions & 2 deletions themes/docsy/assets/scss/blocks/_cover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
padding-bottom: 5rem;
background: {
repeat: no-repeat;
position: 50% 0;
position: 100% 100%;
size: cover;
};

Expand All @@ -21,4 +21,4 @@
bottom: 2px;
right: 4px;
}
}
}
4 changes: 3 additions & 1 deletion themes/docsy/assets/vendor/bootstrap/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ $colors: map-merge(
"cyan": $cyan,
"white": $white,
"gray": $gray-600,
"gray-dark": $gray-800
"gray-dark": $gray-800,
'blue-light': $blue-light,
'blue-deep': $blue-deep
),
$colors
);
Expand Down
6 changes: 3 additions & 3 deletions themes/docsy/layouts/shortcodes/blocks/cover.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
<link rel="preload" as="image" href="{{ $promo_image_big.RelPermalink }}" media="(min-width: 1200px)">
<style>
#{{ $blockID }} {
background-image: url({{ $promo_image_small.RelPermalink }});
background-image: url({{ $promo_image_small.RelPermalink }});
}
@media only screen and (min-width: 1200px) {
#{{ $blockID }} {
background-image: url({{ $promo_image_big.RelPermalink }});
background-image: url({{ $promo_image_big.RelPermalink }});
}
}
</style>
{{ end }}
<section id="{{ $blockID }}" class="row td-cover-block td-cover-block--height-{{ $height }}{{ if not .Site.Params.ui.navbar_translucent_over_cover_disable }} js-td-cover{{ end }} td-overlay td-overlay--dark -bg-{{ $col_id }}">
<section id="{{ $blockID }}" class="row td-cover-block td-cover-block--height-{{ $height }}{{ if not .Site.Params.ui.navbar_translucent_over_cover_disable }} js-td-cover{{ end }} td-overlay -bg-{{ $col_id }}">
<div class="container td-overlay__inner">
<div class="row">
<div class="col-12">
Expand Down

0 comments on commit f47895f

Please sign in to comment.