Skip to content

Commit

Permalink
Added CSS Markdown classes for secondary buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Jan 16, 2024
1 parent 53786e5 commit 76eb6dd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,24 @@ For example, here is a [Docsify Open Course Site hosted within a Canvas course](
[Required Reading Quiz due Jun 4th](https://canvas.sfu.ca/courses/44038/quizzes/166553 ':class=button')
```

`button-secondary`

```markdown
[Required Reading Quiz due Jun 4th](https://canvas.sfu.ca/courses/44038/quizzes/166553 ':class=button-secondary')
```

`button-rounded`

```markdown
[Required Reading Quiz due Jun 4th](https://canvas.sfu.ca/courses/44038/quizzes/166553 ':class=button-rounded')
```

`button-rounded-secondary`

```markdown
[Required Reading Quiz due Jun 4th](https://canvas.sfu.ca/courses/44038/quizzes/166553 ':class=button-rounded-secondary')
```

`embedly-card` (for linked article previews, embedded slides/videos, etc.)

```markdown
Expand Down
41 changes: 40 additions & 1 deletion docs/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
color: var(--base-background-color);
height: auto;
display: inline-block;
margin-top: 4px;
padding: 10px;
font-family: -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
line-height: 1.2rem;
Expand All @@ -71,6 +70,26 @@
text-decoration: none !important;
}

.markdown-section .button-secondary {
cursor: pointer;
color: var(--link-color);
height: auto;
display: inline-block;
padding: 10px;
font-family: -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
line-height: 1.2rem;
background-color: transparent;
text-decoration: none;
border: 1px solid var(--link-color)!important;
border-radius: .25rem;
}

.markdown-section a.button-secondary {
cursor: pointer;
color: var(--link-color);
text-decoration: none !important;
}

.markdown-section .button-rounded {
cursor: pointer;
color: var(--base-background-color);
Expand All @@ -90,6 +109,26 @@
text-decoration: none !important;
}

.markdown-section .button-secondary-rounded {
cursor: pointer;
color: var(--link-color);
height: auto;
display: inline-block;
padding: 10px min(20px, 5%) 10px min(20px, 5%);
font-family: -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
line-height: 1.2rem;
background-color: transparent;
text-decoration: none;
border: 1px solid var(--link-color)!important;
border-radius: 1.4rem;
}

.markdown-section a.button-secondary-rounded {
cursor: pointer;
color: var(--link-color);
text-decoration: none !important;
}

.markdown-section .navpill {
cursor: pointer;
color: var(--base-color);
Expand Down

0 comments on commit 76eb6dd

Please sign in to comment.