-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
85 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a `static/custom.css` file right in your site root. | ||
|
||
All necessary class names are listed below. If you miss some classes for theming you are very welcome to fill an [Issue](https://github.com/xoxys/hugo-geekdoc/issues). For some inspiration you can have a look at [https://www.color-hex.com/color-palettes/](https://www.color-hex.com/). The following listing use the _HC-primary_ color palette as an example: | ||
|
||
{{< highlight CSS "linenos=table" >}} | ||
/* defaut link color */ | ||
a { color: #1c388e; } | ||
a:visited { color: #73bfb8 } | ||
|
||
/* site header */ | ||
.gdoc-header { background: #e66a4e; border-color: #404040; } | ||
.gdoc-header__link, .gdoc-header__link:visited { color: #ffffff; } | ||
|
||
/* page links */ | ||
.gdoc-page__footer a, .gdoc-page__footer a:visited { color: #1c388e; } | ||
.gdoc-page__header a, .gdoc-page__header a:visited { color: #1c388e; } | ||
|
||
/* site footer */ | ||
.gdoc-footer { background: #404040; color: #ffffff; } | ||
.gdoc-footer__link{ color: #fecf50; } | ||
.gdoc-footer__link:visited, .gdoc-footer__link:hover { color: #fecf50; } | ||
|
||
/* custom shortcodes */ | ||
/* button */ | ||
.gdoc-button { color: #495057; } | ||
.gdoc-button:hover { background-color: #eb8771; border-color: #e66a4e; color: #ffffff; } | ||
|
||
/* hint */ | ||
.gdoc-hint.info { background: #d1d7e8; border-color: #324b99; color: black; } | ||
.gdoc-hint.warning { background: #fef5dc; border-color: #e4ba48; color: black; } | ||
.gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; } | ||
{{< /highlight >}} | ||
|
||
And that is how the result will looks like. Happy theming! | ||
|
||
[![HC-primary Color Scheme](/media/color_scheme_example.png)](/media/color_scheme_example.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
## File-tree menu | ||
|
||
## Bundle menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* defaut link color */ | ||
a { color: #1c388e; } | ||
a:visited { color: #73bfb8 } | ||
|
||
/* site header */ | ||
.gdoc-header { background: #e66a4e; border-color: #404040; } | ||
.gdoc-header__link, .gdoc-header__link:visited { color: #ffffff; } | ||
|
||
/* page links */ | ||
.gdoc-page__footer a, .gdoc-page__footer a:visited, .gdoc-page__header a, .gdoc-page__header a:visited { color: #1c388e; } | ||
|
||
/* site footer */ | ||
.gdoc-footer { background: #404040; color: #ffffff; } | ||
.gdoc-footer__link{ color: #fecf50; } | ||
.gdoc-footer__link:visited, .gdoc-footer__link:hover { color: #fecf50; } | ||
|
||
|
||
/* button shortcode */ | ||
.gdoc-button { color: #495057; } | ||
.gdoc-button:hover { background-color: #eb8771; border-color: #e66a4e; color: #ffffff; } | ||
|
||
/* hint shortcode */ | ||
.gdoc-hint.info { background: #d1d7e8; border-color: #324b99; color: black; } | ||
.gdoc-hint.warning { background: #fef5dc; border-color: #e4ba48; color: black; } | ||
.gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; } |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<footer class="gdoc-footer"> | ||
<div class="container"> | ||
<div> | ||
<div class="container flex"> | ||
<span> | ||
Build with <a href="https://gohugo.io/" class="gdoc-footer__link">Hugo</a> and | ||
<svg class="icon heart"><use xlink:href="#heart"></use></svg> | ||
</div> | ||
</span> | ||
<span> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters