Skip to content

Commit 00dc573

Browse files
committed
add extra css to see how it works
1 parent 0fe8d7f commit 00dc573

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docs/stylesheets/home.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
:root {
2+
--md-home-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
3+
}
4+
5+
/* Hide default content on home page */
6+
body[data-md-page="index"] .md-main__inner {
7+
max-width: 100%;
8+
margin: 0;
9+
}
10+
11+
body[data-md-page="index"] .md-content {
12+
display: flex;
13+
align-items: center;
14+
justify-content: center;
15+
min-height: calc(100vh - 64px);
16+
background: var(--md-home-background);
17+
color: white;
18+
}
19+
20+
body[data-md-page="index"] .md-content__inner {
21+
max-width: 800px;
22+
text-align: center;
23+
padding: 2rem;
24+
}
25+
26+
/* Custom home page styling */
27+
body[data-md-page="index"] h1 {
28+
color: white;
29+
font-size: 3rem;
30+
margin-bottom: 1rem;
31+
}
32+
33+
body[data-md-page="index"] p {
34+
color: rgba(255,255,255,0.8);
35+
font-size: 1.2rem;
36+
line-height: 1.6;
37+
}

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ plugins:
3030
- drawio
3131
- search
3232
- mkdocs-video
33+
extra_css:
34+
- stylesheets/home.css
3335

3436
markdown_extensions: #requires pymdown-extensions + markdown in ci job
3537
- def_list

0 commit comments

Comments
 (0)