Skip to content

Commit

Permalink
inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
devope committed Nov 5, 2024
1 parent d635f0d commit f51ae8d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,19 @@ To create your own theme just rewrite following variables in your CSS file:

- [x] code block
- [x] seprate font for headline
- [x] inline code
- [ ] card component
- [ ] dotted link
- [ ] sizes for buttons
- [ ] more demos
- [ ] checkboxes
- [ ] npm install support
- [ ] `npm install` support
- [ ] better docs page with code to copy

### v3

- [ ] match variable name with CSS properties and HTML tags
- [ ] `--clsls-color-link-hover`
- [ ] `--clsls-color-link-hover` `--clsls-color-a-hover`
- [ ] `--clsls-radius``--clsls-border-radius`
- [ ] `--clsls-line-thickness``--clsls-border-width`
- [ ] `--clsls-color-code``--clsls-color-code-background`
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ <h4><b>Horizontal</b></h4>
<h2><b>Code</b></h2>
<br>
<pre><code>console.log('hi')</code></pre>

<br />

<div>Use <code>var</code> keyword.</div>
<br />
<!-- <hr> -->
<!-- <br> -->
Expand Down
14 changes: 14 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,20 @@ pre:has(code) {
border-radius: var(--clsls-radius);
}

pre code {
background-color: transparent;
}

/*
code
*/

code {
background-color: var(--clsls-color-code);
padding: 5px 10px 8px 10px;
border-radius: var(--clsls-radius);
}

/*
muted text
*/
Expand Down

0 comments on commit f51ae8d

Please sign in to comment.