themes/hugo-coder/assets/scss/_float.scss
4ad3667dd39474e1e08d41fc9daa98981053c9d5
· 674 B · 38 lines
raw
| 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 | } |