Skip to content

Commit 888bd7d

Browse files
committed
Use CSS to Make Home Layout Responsive with Logo Img
1 parent 70dd759 commit 888bd7d

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44
# Every Tuesday at 12pm Mountain Time
55

6-
![](assets/logo/svg/horizontal_logo_light.svg){: style="width:450px;float: right;padding-left: 10px;"}
6+
<img class="logo-article-img" src="assets/logo/svg/horizontal_logo_light.svg" alt="weekly-dev- chat logo">
77

88
A casual weekly [virtual chat](join.md) mostly focused on web and software development.
99

docs/stylesheets/extra.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.logo-article-img {
2+
width: 300px;
3+
margin-left: 20px;
4+
}
5+
@media (min-width: 768px) {
6+
.logo-article-img {
7+
width: 450px;
8+
float: right;
9+
margin-left: 10px;
10+
}
11+
}

mkdocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ theme:
1717
logo: assets/logo/png/square_logo_light_150.png
1818

1919

20-
21-
2220
# Enable the blogging behaviour (builtin plugin)
2321
# see https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/
2422
plugins:
@@ -41,4 +39,6 @@ exclude_docs: |
4139
past_topics.md
4240
markdown_extensions:
4341
- attr_list # This lets us specify image dimensions, etc.
44-
42+
43+
extra_css:
44+
- stylesheets/extra.css

0 commit comments

Comments
 (0)