Skip to content

Commit a4db901

Browse files
committed
changing html background color
1 parent 01497a8 commit a4db901

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

build/assets/css/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,10 @@ button:disabled, button:disabled:active, button.is-disabled, button.is-disabled:
13961396
}
13971397
}
13981398

1399+
.full-width {
1400+
width: 100%;
1401+
}
1402+
13991403
.split {
14001404
display: flex;
14011405
}
@@ -1404,6 +1408,10 @@ button:disabled, button:disabled:active, button.is-disabled, button.is-disabled:
14041408
padding: 0 16px;
14051409
}
14061410

1411+
picture {
1412+
display: block;
1413+
}
1414+
14071415
.media__caption,
14081416
.caption {
14091417
margin: 8px 0;

build/work/cpl.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ <h2 class="page__sub-title"></h2>
5959
<div class="column two-thirds">
6060
<article class="content">
6161
<div class="specimen stretch">
62-
<picture class="image paper">
62+
<picture class="image">
6363
<source srcset="../assets/webp/projects/cpl/p-cpl.webp" type="image/webp">
6464
<source srcset="../assets/img/projects/cpl/p-cpl.jpg" type="image/jpeg">
65-
<img src="../assets/img/projects/cpl/p-cpl.jpg" alt="Elephant at sunset">
65+
<img src="../assets/img/projects/cpl/p-cpl.jpg" alt="Elephant at sunset" class="paper full-width">
6666
</picture>
6767

6868
<div class="caption">Reverse channel letters on canopy.</div>

src/scss/_custom.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,3 +400,6 @@ ul.pretty {
400400
position: relative; /* If you want text inside of it */
401401
}
402402

403+
// .blend--multiply {
404+
// mix-blend-mode: multiply;
405+
// }

src/scss/components/_media.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
}
1313
}
1414

15+
.full-width {
16+
width: 100%;
17+
}
18+
1519
.split {
1620
display: flex;
1721

@@ -20,6 +24,10 @@
2024
}
2125
}
2226

27+
picture {
28+
display: block;
29+
}
30+
2331
.media__caption,
2432
.caption {
2533
text-align: left;

src/templates/helpers/picture.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ module.exports = function(path, alt, options) {
3737
// Custom Class
3838
// Data-src?
3939

40-
picture += '<picture class="image paper">\n';
40+
picture += '<picture class="image">\n';
4141
picture += '<source srcset="' + webpPath + '" type="image/webp">\n';
4242
picture += '<source srcset="' + imgPath + '" type="image/jpeg">\n';
43-
picture += '<img src="' + imgPath + '" alt="' + alt + '">\n';
43+
picture +=
44+
'<img src="' + imgPath + '" alt="' + alt + '" class="paper full-width">\n';
4445
picture += '</picture>';
4546

4647
return new Handlebars.SafeString(picture);

0 commit comments

Comments
 (0)