Add image tricks
This commit is contained in:
parent
056b3c37f8
commit
e205eedc2e
1 changed files with 12 additions and 0 deletions
|
@ -11,4 +11,16 @@ To hide the title on a page (like on the [:octicons-arrow-right-16: Home page](.
|
|||
display: none;
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
## Images
|
||||
### Logo Size
|
||||
When embedding a site logo in a page (like on the [:octicons-arrow-right-16: Home page](../../support/index.md)), the sweet spot seems to be `300px` for the image width so that it doesn't look "off".
|
||||
|
||||
### Different images for dark/light mode
|
||||
You can use `#only-dark` to only show an image in dark mode, and `#only-light` to only show an image in light mode. For example:
|
||||
|
||||
``` md linenums="1"
|
||||

|
||||

|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue