Skip to content

Commit 8e05d0f

Browse files
committed
make some slight change to keep things simple
1 parent f4dee58 commit 8e05d0f

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Features
88

99
* Fast (**under 3kb of CSS!**)
10-
* Light, dark, clean, retro color schemes and auto mode adapting to the browser/system
10+
* Light, dark and auto modes
1111
* Responsive
1212
* Content first (typography optimized for maximum readability)
1313
* RSS feed (using Hugo's embedded RSS template)

assets/css/main.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111
&:hover { text-decoration: underline; }
1212
}
1313

14+
details {
15+
border: thin solid $--primary-text-color;
16+
padding: 1rem;
17+
}
18+
1419
details summary {
15-
color: $--link-color;
20+
color: $--primary-text-color;
1621
text-decoration: none;
1722
}
1823

@@ -31,7 +36,7 @@
3136

3237
}
3338
.toc {
34-
border: thin solid $--link-color;
39+
border: thin solid $--primary-text-color;
3540
padding: 1rem;
3641
}
3742

@@ -47,14 +52,6 @@
4752
@include theme(#ffffff, #212121, #666666, #1e70bf, #921292, #FFFF00);
4853
}
4954

50-
@mixin clean-appearance {
51-
@include theme(#fbfbfb, #212121, #dfedff, #0066ff, #0066ff, #C3D3FF);
52-
}
53-
54-
@mixin retro-appearance {
55-
@include theme(#000a1a, #c4ffc6, #161616, #c0ff00, #c0ff00, #007A35);
56-
}
57-
5855
body[a="dark"] { @include dark-appearance; }
5956
body[a="light"] { @include light-appearance; }
6057
body[a="clean"] { @include clean-appearance; }

content/posts/test-toc-and-details.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ toc = true
66
tocBorder = true
77
+++
88

9-
109
## Table of Content
1110
### What it is?
1211
TOC is the box you see at the very top of this post. It may be framed (or not).
1312
### How to enable TOC?
1413
To enable it, all you need to do when creating a new post at the very top is to insert the code:
15-
```markdown
14+
```toml
1615
toc = true
1716
tocBorder = true
1817
```
@@ -22,7 +21,6 @@ You can of course find this post (../themes/nostyleplease/content/posts/test-toc
2221
### What it is?
2322
It's HTML standard sadly not supported native by markdown. But this theme support it anyway. So... sometimes you want to hide something.
2423
{{< details summary="Click me" >}}
25-
### You can hide something here
2624
A lot of text or something else.
2725
{{< /details >}}
2826
### How to use "Details"?
@@ -31,10 +29,9 @@ Well you need to inspect this post and see by yourself. It's very easy. Take loo
3129
## Styles
3230
Okey. So if you want to change color-theme you can:
3331
- go to ../themes/nostyleplease/config.toml and find:
34-
```markdown
35-
appearance = "clean"
32+
33+
```toml
34+
appearance = "auto"
3635
```
37-
you can change it to 4 predefined styles: **light**, **dark**, **clean** and **retro**. It can be also set to **auto** and the color scheme will match the user's system style.
36+
you can change it to 2 predefined styles: **light** and **dark**. It can be also set to **auto** and the color scheme will match the user's system style.
3837
- you can add new style or modify **auto** option, just edit CSS in ../themes/nostyleplease/assets/main.scss :-). It's easy, if you are able to operate Hugo - you can do it.
39-
40-
[^1]: Some parts are wroten by GPT-4. I'm not a programmer and AI helped me a lot, especially with the parts that using the FTP server.

0 commit comments

Comments
 (0)