|
| 1 | +@import url('https://use.fontawesome.com/releases/v5.7.1/css/all.css'); |
| 2 | +@import url('https://fonts.bunny.net/css?family=dosis:500|inconsolata:200|roboto:400,500,700|roboto-mono:400|source-sans-pro:300,400,600'); |
| 3 | + |
| 4 | +body { |
| 5 | + font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; |
| 6 | +} |
| 7 | + |
| 8 | +.navbar .site-name { |
| 9 | + font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; |
| 10 | + font-weight: normal !important; |
| 11 | + |
| 12 | + &.can-hide { |
| 13 | + display: inline-block !important; |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +.navbar .home-link:hover { |
| 18 | + .logo { |
| 19 | + animation: spin 0.5s ease-in-out 1 !important; |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | +.navbar .logo { |
| 24 | + margin-right: 0.4rem !important; |
| 25 | +} |
| 26 | + |
| 27 | +@keyframes spin { |
| 28 | + 50% { |
| 29 | + transform: rotate(180deg) scale(1.2); |
| 30 | + } |
| 31 | + |
| 32 | + to { |
| 33 | + transform: rotate(180deg) scale(1); |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +h2 { |
| 38 | + padding-bottom: 1rem; |
| 39 | + border-bottom: none; |
| 40 | +} |
| 41 | + |
| 42 | +// Twitter |
| 43 | +nav > div:nth-child(3) > a { |
| 44 | + background-image: url(/assets/img/twitter-black.svg); |
| 45 | + background-repeat: no-repeat; |
| 46 | + height: 20px; |
| 47 | + display: flex; |
| 48 | + align-items: center; |
| 49 | + padding-left: 30px; /* width of the image plus a little extra padding */ |
| 50 | +} |
| 51 | + |
| 52 | +.dark nav > div:nth-child(3) > a { |
| 53 | + background-image: url(/assets/img/twitter-white.svg); |
| 54 | +} |
| 55 | + |
| 56 | +// Github |
| 57 | +nav > div:nth-child(4) > a { |
| 58 | + background-image: url(/assets/img/github-black.svg); |
| 59 | + background-repeat: no-repeat; |
| 60 | + height: 20px; |
| 61 | + display: flex; |
| 62 | + fill: #ffffff; |
| 63 | + align-items: center; |
| 64 | + padding-left: 30px; /* width of the image plus a little extra padding */ |
| 65 | +} |
| 66 | + |
| 67 | +.dark nav > div:nth-child(4) > a { |
| 68 | + background-image: url(/assets/img/github-white.svg); |
| 69 | +} |
0 commit comments