mirror of
https://github.com/kmaasrud/awesome-obsidian.git
synced 2026-03-11 17:34:14 -05:00
Update "Image Cards"
This commit is contained in:
21
README.md
21
README.md
@@ -52,7 +52,7 @@ Most themes should be available through the Community Themes pane in Obsidian's
|
||||
[Behave dark](https://gitlab.com/chrismettal/obsidian-behave-dark) | A port of the eye friendly `Behave` theme by Christian Petersen, available for `VSCode`, `FreeCAD`, `KiCAD`, and now `Obsidian`! |  | [Chrismettal](https://gitlab.com/chrismettal)|
|
||||
|
||||
|
||||
# CSS Snippets
|
||||
# 🔗 CSS Snippets
|
||||
|
||||
Small tweaks to add to your `vault/.obsidian/snippets` folder.
|
||||
|
||||
@@ -628,22 +628,11 @@ Credits to Echo
|
||||
|
||||
---
|
||||
|
||||
### Image cards
|
||||
## [Image Cards](code/css-snippets/image-cards.css) by [@TClark1011](https://github.com/TClark1011)
|
||||
Give your images a shadow and rounded corners.
|
||||
|
||||
<details>
|
||||
<summary>CSS</summary>
|
||||
<pre lang="css"><code>
|
||||

|
||||
|
||||
img {
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||
background-color: var(--background-secondary); /* Background color so PNGs with transparent backgrounds don't look weird */
|
||||
}
|
||||
|
||||
</code></pre>
|
||||
|
||||
</details>
|
||||
|
||||
Credits to [TClark1011](https://github.com/TClark1011)
|
||||
[📁 image-cards.css](code/css-snippets/image-cards.css)
|
||||
|
||||
---
|
||||
|
||||
11
code/css-snippets/image-cards.css
Normal file
11
code/css-snippets/image-cards.css
Normal file
@@ -0,0 +1,11 @@
|
||||
/* get more snippets at https://github.com/kmaasrud/awesome-obsidian */
|
||||
/* author: https://github.com/TClark1011 */
|
||||
/* source: https://github.com/kmaasrud/awesome-obsidian */
|
||||
|
||||
img {
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||
background-color: var(
|
||||
--background-secondary
|
||||
); /* Background color so PNGs with transparent backgrounds don't look weird */
|
||||
}
|
||||
BIN
media/css-snippets/image-cards-1.png
Normal file
BIN
media/css-snippets/image-cards-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
Reference in New Issue
Block a user