Skip to content

Commit

Permalink
Minot style change for taglist
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Feb 8, 2024
1 parent 782d611 commit 0529c73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const config = {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
editUrl:
'https://github.com/risk-first/website/blon/master/',
'https://github.com/risk-first/website/blob/master/',
},
blog: false,
theme: {
Expand Down
4 changes: 2 additions & 2 deletions src/theme/TagList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function DocItemImage({ doc }) {
const imageLink = "/img/generated/single/" + pl + ".png"

return (
<Link to={doc.permalink}>
<Link key={doc.permalink} to={doc.permalink}>
<article className={styles.docItem}>
<div className={styles.columns}>
<div className={styles.left}>
Expand Down Expand Up @@ -44,7 +44,7 @@ export default function TagList(props) {
oneTag.sort((a, b) => a.order - b.order);

return (
<div key={props.tag} className={styles.tagList}>
<div className={styles.tagList}>
{
oneTag
.filter(d => d.permalink.indexOf(filter) > -1)
Expand Down
23 changes: 9 additions & 14 deletions src/theme/TagList/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,7 @@
.docItem {
border: 1px solid var(--docusaurus-tag-list-border);
transition: border var(--ifm-transition-fast);
margin-right: 0.2rem;
margin-bottom: .5rem;
padding: 1rem;
}

.tag:hover {
--docusaurus-tag-list-border: var(--ifm-link-color);
text-decoration: none;
}

.tagRegular {
border-radius: var(--ifm-global-radius);
padding: 0.2rem 0.5rem 0.3rem;
font-size: 90%;
}

.columns {
Expand All @@ -29,12 +16,20 @@
.left {
flex-basis: 15rem;
flex-shrink: 0;
flex-grow: 0;
padding: 0;
margin: 0;
}

.left img {
padding: 0;
}

.description {
color: grey;
}

.right {
flex-grow: 1;
flex-grow: .7;
padding: 1rem;
}

0 comments on commit 0529c73

Please sign in to comment.