diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 | 
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 | 
| commit | 98a21b966410c127e74b16e7a2817882ee16560f (patch) | |
| tree | ee646c86e3d3f0fa1cd952294d49feeeb700d60f /themes/hugo-coder/assets/scss/_float.scss | |
| parent | e6eec31b71ab728f6610f4e764b2e206fb95f940 (diff) | |
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/assets/scss/_float.scss')
| m--------- | themes/hugo-coder | 0 | ||||
| -rw-r--r-- | themes/hugo-coder/assets/scss/_float.scss | 38 | 
2 files changed, 38 insertions, 0 deletions
| diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
| Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
| diff --git a/themes/hugo-coder/assets/scss/_float.scss b/themes/hugo-coder/assets/scss/_float.scss new file mode 100644 index 0000000..d45ff8f --- /dev/null +++ b/themes/hugo-coder/assets/scss/_float.scss | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | .float-container { | ||
| 2 | bottom: 2rem; | ||
| 3 | right: 2rem; | ||
| 4 | z-index: 100; | ||
| 5 | position: fixed; | ||
| 6 | font-size: 1.6em; | ||
| 7 | |||
| 8 | a { | ||
| 9 | position: relative; | ||
| 10 | display: inline-block; | ||
| 11 | width: 3rem; | ||
| 12 | height: 3rem; | ||
| 13 | font-size: 2rem; | ||
| 14 | color: $alt-fg-color; | ||
| 15 | background-color: $alt-bg-color; | ||
| 16 | border-radius: 0.2rem; | ||
| 17 | opacity: 50%; | ||
| 18 | transition: all 0.25s ease-in; | ||
| 19 | |||
| 20 | &:hover, | ||
| 21 | &:focus { | ||
| 22 | color: $link-color; | ||
| 23 | opacity: 100%; | ||
| 24 | |||
| 25 | @media only screen and (max-width: 768px) { | ||
| 26 | color: $alt-fg-color; | ||
| 27 | opacity: 50%; | ||
| 28 | } | ||
| 29 | } | ||
| 30 | |||
| 31 | i { | ||
| 32 | position: absolute; | ||
| 33 | top: 50%; | ||
| 34 | left: 50%; | ||
| 35 | transform: translate(-50%, -50%); | ||
| 36 | } | ||
| 37 | } | ||
| 38 | } | ||
