Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit158a007

Browse files
happycollisionmmistakes
authored andcommitted
Adds second variable for featured image (front only)
This way, the featured image on the front page of the site can becontrolled differently than the featured image in posts/pages.
1 parentaca6c71 commit158a007

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎_sass/_page.scss‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$feature-image-height:400px;// min 150px recommended
2+
$front-page-feature-image-height:400px;// min 150px recommended
23

34
body {
45
margin:0;
@@ -131,6 +132,18 @@ body {
131132
min-height:$feature-image-height;// match .entry-image min-height
132133
}
133134
}
135+
// Feature Image height on Front Page
136+
#post-index {
137+
&.feature.header-title {
138+
height:$front-page-feature-image-height;
139+
}
140+
.entry-image {
141+
min-height:$front-page-feature-image-height;
142+
img {
143+
min-height:$front-page-feature-image-height;
144+
}
145+
}
146+
}
134147
// Feature Image Caption
135148
.image-credit {
136149
position:absolute;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp