Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit abf8eb9

Browse files
committed
fix(blog): makes newsletter email field clickable
#363
1 parent c9fafae commit abf8eb9

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

src/components/app-blog-content/app-blog-content.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
text-align: left;
33

44
padding: 0 6rem;
5-
5+
66
h1 {
77
@include media-breakpoint-down(md) {
88
padding: 20px 0;
@@ -13,12 +13,12 @@
1313
margin-bottom: 10px;
1414
}
1515

16-
.--date {
16+
&--date {
1717
color: #6d6e71;
1818
font-size: 12px;
1919
}
2020

21-
.--author {
21+
&--author {
2222
align-items: center;
2323
display: flex;
2424
flex-direction: row;
@@ -37,7 +37,7 @@
3737
}
3838
}
3939

40-
.--main-image {
40+
&--main-image {
4141
border-radius: 35px;
4242
padding: 2%;
4343
width: 100%;
@@ -47,7 +47,6 @@
4747
text-align: center;
4848
padding: 0 1rem;
4949
}
50-
5150
}
5251

5352
.content {
@@ -123,4 +122,4 @@
123122
img {
124123
width: 20px;
125124
}
126-
}
125+
}

src/components/app-blog-content/app-blog-content.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,19 @@ export class AppBlogContent {
7777
<h1>{this.blogPost.title}</h1>
7878
<p>{this.blogPost.summary}</p>
7979
<div>
80-
<div class="--date">{formatDate(publishDate)}</div>
81-
<div class="--author">
80+
<div class="header--date">{formatDate(publishDate)}</div>
81+
<div class="header--author">
8282
<img src={this.blogPost.author.profile_image} />
8383
<div>
8484
By &nbsp;
8585
<stencil-route-link url={`/about/${this.blogPost.author.slug}`}>{`${this.blogPost.author.first_name} ${this.blogPost.author.last_name}`}</stencil-route-link>
8686
</div>
8787
</div>
8888
</div>
89-
<div class="contact-icons-top" id="contact-icons-top">{contactIconsTop}</div>
90-
<img class="--main-image" src={this.blogPost.featured_image} />
89+
<div class="contact-icons-top" id="contact-icons-top">
90+
{contactIconsTop}
91+
</div>
92+
<img class="header--main-image" src={this.blogPost.featured_image} />
9193
</div>
9294
<div class="content">
9395
<div class="row">

src/pages/app-blog/app-blog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
.form-row-content {
1919
@include media-breakpoint-up(sm) {
20-
position: fixed;
20+
// position: fixed; this caused the input field to become unclickable
2121
z-index: -1;
2222
}
2323

@@ -166,7 +166,7 @@
166166

167167
@include media-breakpoint-down(sm) {
168168
text-decoration: none;
169-
border-bottom: 3px solid
169+
border-bottom: 3px solid;
170170
}
171171
}
172172

0 commit comments

Comments
 (0)