mirror of
https://github.com/kmaasrud/awesome-obsidian.git
synced 2026-04-28 17:28:00 -05:00
Tag Pills
This commit is contained in:
44
README.md
44
README.md
@@ -63,6 +63,7 @@ Small tweaks to add to your `obsidian.css` file
|
||||
- [Stylish Block Quotes](#stylish-block-quotes)
|
||||
- [Bigger Link Popup Preview](#bigger-link-popup-preview)
|
||||
- [Custom icons differing files and folders](#custom-icons-differing-files-and-folders)
|
||||
- [Tag Pills](#tag-pills)
|
||||
|
||||
### Andy Matuschak mode
|
||||
|
||||
@@ -407,4 +408,47 @@ Credits to [Cannibalox](https://github.com/cannibalox)
|
||||
|
||||
Credits to [deathau](https://github.com/deathau)
|
||||
|
||||
---
|
||||
|
||||
### Tag Pills
|
||||
|
||||
<details>
|
||||
<summary>CSS</summary>
|
||||
<pre lang="css"><code>
|
||||
/* ====== Tag Pills ======== */
|
||||
.tag:not(.token) {
|
||||
background-color: var(--text-accent);
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 11px;
|
||||
padding: 1px 8px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
margin: 0px 0px;
|
||||
cursor: pointer;
|
||||
border-radius: 14px;
|
||||
}
|
||||
.tag:not(.token):hover {
|
||||
color: white;
|
||||
background-color: var(--text-accent-hover);
|
||||
}
|
||||
.tag[href^="#obsidian"] {
|
||||
background-color: #4d3ca6;
|
||||
}
|
||||
.tag[href^="#important"] {
|
||||
background-color: red;
|
||||
}
|
||||
.tag[href^="#complete"] {
|
||||
background-color: green;
|
||||
}
|
||||
.tag[href^="#inprogress"] {
|
||||
background-color: orange;
|
||||
}
|
||||
</code></pre>
|
||||
</details>
|
||||
|
||||
|
||||
Credits to uzerper
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user