Skip to content

Commit

Permalink
If there is a link, no card underline
Browse files Browse the repository at this point in the history
  • Loading branch information
breezyfasano committed Sep 18, 2023
1 parent 3aa7df3 commit ba060eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/src/components/card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Card({ title, body, link, icon }) {
let imgClass = styles[icon] || ''

return (
<div className={styles.cardWrapper}>
<div className={`${styles.cardWrapper} ${link && 'card--no-underline'}`}>
{link ? <Link
to={useBaseUrl(link)}>
<article className={styles.card}>
Expand Down
4 changes: 1 addition & 3 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ html[data-theme="dark"] {
/* Darkmode Links */
html[data-theme="dark"] {
--ifm-link-color: var(--color-white);
--ifm-link-decoration: var(underline)
}

/* Underline only for links in text body */
html[data-theme="dark"] main a:not(article a) {
html[data-theme="dark"] main a:not(.card--no-underline a) {
text-decoration: underline;
--ifm-link-decoration: var(underline)
}

/* For /dbt-cloud/api REDOC Page */
Expand Down

0 comments on commit ba060eb

Please sign in to comment.