Style item links
This commit is contained in:
parent
7c68c36feb
commit
4063d48e2b
@ -275,6 +275,19 @@ html, body {
|
||||
box-shadow: 0 2px 8px rgba(12, 12, 13, 0.1);
|
||||
}
|
||||
|
||||
.itemLink {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.itemLink:hover {
|
||||
cursor: default;
|
||||
background-color: #d7d7db;
|
||||
}
|
||||
|
||||
.card.child {
|
||||
border-left: 4px solid #b1b1b3;
|
||||
}
|
||||
|
@ -63,7 +63,8 @@
|
||||
(defn item-link [id]
|
||||
(with-listener
|
||||
(dom/createDom "a"
|
||||
(clj->js {:href (str "https://news.ycombinator.com/item?id=" id)
|
||||
(clj->js {:class "itemLink"
|
||||
:href (str "https://news.ycombinator.com/item?id=" id)
|
||||
:target "_blank"})
|
||||
(dom/createDom "img"
|
||||
(clj->js {:src "icons/open-in-new-16.svg"
|
||||
|
Loading…
Reference in New Issue
Block a user