Skip to content

Commit 367e08f

Browse files
committed
add css comments
Signed-off-by: sirutBuasai <sirutbuasai27@outlook.com>
1 parent ce2d35f commit 367e08f

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

docs/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@ pip install -r docs/requirements.txt
1313
Start the development server with live reload:
1414

1515
```bash
16-
mkdocs serve
17-
```
18-
19-
Build the static site:
20-
21-
```bash
22-
mkdocs build
16+
mkdocs serve --livereload
2317
```
2418

2519
## Tutorials Setup (Local Only)
@@ -31,6 +25,7 @@ git clone https://github.com/aws-samples/sample-aws-deep-learning-containers.git
3125
```
3226

3327
This step is only required for local development. GitHub Actions automatically clones this repository during production deployment.
28+
For any changes required to the tutorial pages, create a new PR in [aws-samples/sample-aws-deep-learning-containers](https://github.com/aws-samples/sample-aws-deep-learning-containers.git).
3429

3530
## Navigation
3631

docs/mkdocs/stylesheets/extra.css

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* ==========================================================================
2+
AWS Color Palette
3+
========================================================================== */
4+
15
:root {
26
--aws-white: #ffffff;
37
--aws-paper: #f1f3f3;
@@ -11,11 +15,19 @@
1115

1216
--lightmode-text: var(--aws-squid-ink);
1317
--darkmode-text: var(--aws-white);
18+
}
19+
20+
/* ==========================================================================
21+
Light Mode
22+
========================================================================== */
23+
24+
/* Theme colors */
25+
[data-md-color-scheme="default"] {
1426
--md-primary-fg-color: var(--aws-sky);
1527
--md-accent-fg-color: var(--aws-smile);
1628
}
1729

18-
/* Light mode - dark text and icon */
30+
/* Header, tabs, and search text/icons */
1931
.md-tabs__link,
2032
.md-header__title,
2133
.md-search__input::placeholder,
@@ -27,15 +39,29 @@
2739
color: var(--lightmode-text) !important;
2840
fill: var(--lightmode-text) !important;
2941
}
42+
43+
/* Search input text */
3044
.md-search__input {
3145
color: var(--lightmode-text) !important;
3246
}
47+
48+
/* Header logo */
3349
[data-md-color-scheme="default"] .md-header__button.md-logo img,
3450
[data-md-color-scheme="default"] .md-header__button.md-logo svg {
3551
content: url('../../assets/logos/AWS_logo_RGB.svg');
3652
}
3753

38-
/* Dark mode - light text and icon */
54+
/* ==========================================================================
55+
Dark Mode
56+
========================================================================== */
57+
58+
/* Theme colors */
59+
[data-md-color-scheme="slate"] {
60+
--md-primary-fg-color: var(--aws-sky);
61+
--md-accent-fg-color: var(--aws-smile);
62+
}
63+
64+
/* Header, tabs, and search text/icons */
3965
[data-md-color-scheme="slate"] .md-tabs__link,
4066
[data-md-color-scheme="slate"] .md-header__title,
4167
[data-md-color-scheme="slate"] .md-search__input::placeholder,
@@ -47,9 +73,13 @@
4773
color: var(--darkmode-text) !important;
4874
fill: var(--darkmode-text) !important;
4975
}
76+
77+
/* Search input text */
5078
[data-md-color-scheme="slate"] .md-search__input {
5179
color: var(--darkmode-text) !important;
5280
}
81+
82+
/* Header logo */
5383
[data-md-color-scheme="slate"] .md-header__button.md-logo img,
5484
[data-md-color-scheme="slate"] .md-header__button.md-logo svg {
5585
content: url('../../assets/logos/AWS_logo_RGB_REV.svg');

0 commit comments

Comments
 (0)