Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65a1231

Browse files
Update README.md
1 parent 73da49a commit 65a1231

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

docs/README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ window.$docsify = {
291291

292292
More on Docsify [theme color](https://docsify.js.org/#/configuration?id=themecolor).
293293

294-
295294
#### 6.2 CSS Themes
296295

297296
Find the style which is set in the `<head>` tag, which looks like this.
@@ -322,6 +321,41 @@ Note: The _Buble_ theme has sidebar headings which are not distinguished from th
322321
</style>
323322
```
324323

324+
### 6.3 More styling
325+
326+
327+
You can easily reuse the theme color set early:
328+
329+
```css
330+
.myButton {
331+
background-color: var(--theme-color);
332+
}
333+
```
334+
335+
Here is a some useful button styling I added to a site. The [Bess CSS Button Generator](https://www.bestcssbuttongenerator.com/) site was useful for discovering some attributes.
336+
337+
```css
338+
.myButton {
339+
background-color: var(--theme-color);
340+
color: white;
341+
/* Slightly larger */
342+
font-size: 1.0em;
343+
/* Round the edges */
344+
border-radius: 8px;
345+
padding: 6px 12px;
346+
/* Change cursor on hover */
347+
cursor: pointer;
348+
}
349+
.myButton:hover {
350+
filter: brightness(110%)
351+
}
352+
/* Shift the button down on click */
353+
.myButton:active {
354+
position:relative;
355+
top: 2px;
356+
}
357+
```
358+
325359
### 7. Advanced configuration
326360

327361
The configuration steps above already get you a prettier and more usable site in my opinion than the barebones one which the _Docsify_ `init` command or their _Quickstart_ guide gives you. This section covers advanced steps - you may skip these and jump straight to the [Github Pages](#setup-github-pages-site) section.

0 commit comments

Comments
 (0)