use static dir for images reference since scss
This commit is contained in:
1 parent
fc2872e03e
commit
15049eb762
6 files changed
+2
-4
No files matched your search
Executable → Regular
+2
-4
@@ -19,12 +19,10 @@ $icon-red: #f0384d;
|
|||||||
$icon-yellow: #fcc958;
|
$icon-yellow: #fcc958;
|
||||||
|
|
||||||
// Pattern
|
// Pattern
|
||||||
// hugo needs to precompile images in public dir, and make it automatically with images called from content.
|
|
||||||
// here we need to use it in css, then need to generate it, calling it first from a content md file.
|
|
||||||
@mixin add-bg-pattern($id) {
|
@mixin add-bg-pattern($id) {
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
background-position: top center;
|
background-position: top center;
|
||||||
background-image: url('../images/bg/pattern-#{$id}.png');
|
background-image: url('/images/bg/pattern-#{$id}.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sections bg transitions
|
// Sections bg transitions
|
||||||
@@ -35,7 +33,7 @@ $icon-yellow: #fcc958;
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-image: url('../images/svg/curve-#{$id}.svg');
|
background-image: url('/images/svg/curve-#{$id}.svg');
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-position: $pos center;
|
background-position: $pos center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user