Skip to content

Commit b66359b

Browse files
committed
new css styling for the blog page
1 parent f659019 commit b66359b

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

_layouts/blog.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
22
layout: default
33
---
4+
<header id="header">
5+
<div class="logo">
6+
<img id="header-img"" src="../resources/webarkit-logo-social.jpg" alt="webarkit logo"/>
7+
</div>
8+
</header>
49
<main class="content" role="main">
5-
<img class="logo" src="../resources/webarkit-logo-social.jpg" alt="webarkit logo"/>
610
<section class="main-content">
711
{{ content }}
812
{% include footer.html %}

_sass/jekyll-theme-cayman.scss

+26-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,32 @@ a {
4444
}
4545

4646
.logo {
47-
max-width: 50%
47+
width: 60vw;
48+
}
49+
50+
@media (max-width: 650px) {
51+
.logo {
52+
margin-top: 15px;
53+
width: 100%;
54+
position: relative;
55+
}
56+
}
57+
58+
.logo > img {
59+
width: 100%;
60+
height: 100%;
61+
max-width: 300px;
62+
display: flex;
63+
justify-content: center;
64+
align-items: center;
65+
text-align: center;
66+
margin-left: 20px;
67+
}
68+
69+
@media (max-width: 650px) {
70+
.logo > img {
71+
margin: 0 auto;
72+
}
4873
}
4974

5075
.btn {

0 commit comments

Comments
 (0)