You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -291,7 +291,6 @@ window.$docsify = {
291
291
292
292
More on Docsify [theme color](https://docsify.js.org/#/configuration?id=themecolor).
293
293
294
-
295
294
#### 6.2 CSS Themes
296
295
297
296
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
322
321
</style>
323
322
```
324
323
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: 6px12px;
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
+
325
359
### 7. Advanced configuration
326
360
327
361
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