Skip to content

Commit 4bc86b5

Browse files
committed
Prevent image from overflowing on mobile
1 parent 3787826 commit 4bc86b5

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

docs/_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ format:
259259
theme: cosmo
260260
#light: default #flatly
261261
#dark: darkly
262-
#css: styles/my-style.css
262+
css: styles/my-style.css
263263
code-copy: true
264264
#code-fold: false #show
265265
##code-line-numbers: true

docs/index.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
![](/images/python-banner-2025.png){fig-align="center" fig-alt="Intro to Software Development in Python (banner image)" height=400}
1+
22

33
# Welcome {.unnumbered}
44

5-
Welcome to the \"Intro to Python Programming and Applications\" book (<span id="auto-copyright-year">2025</span> edition, online)!
5+
<img src="/images/python-banner-2025.png"
6+
class="banner-image"
7+
alt="Intro to Software Development in Python (banner image)."
8+
>
69

10+
Welcome to the \"Intro to Python Programming and Applications\" book (<span id="auto-copyright-year">2025</span> edition, online)!
711

812
Whether you are a professional seeking to enhance technical skills, or a student aspiring to enter the field, this book should serve as a valuable resource.
913

docs/styles/my-style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.banner-image {
2+
width: 100%;
3+
height: auto;
4+
max-width: 100%;
5+
display: block;
6+
object-fit: cover;
7+
}

0 commit comments

Comments
 (0)