|
10 | 10 | --minor-font: 'Open Sans', sans-serif; |
11 | 11 | --heading-color: rgba(255, 255, 255, .9); |
12 | 12 | --main-color: rgba(50, 50, 60, 1); |
| 13 | + --emphasis-color: rgb(127,215,212); |
13 | 14 | } |
14 | 15 |
|
15 | 16 |
|
@@ -39,6 +40,43 @@ html { |
39 | 40 |
|
40 | 41 | /* LINKS & BUTTONS -------------------------------------------------------- */ |
41 | 42 |
|
| 43 | +.grad-btn:link, |
| 44 | +.grad-btn:visited { |
| 45 | + display: inline-block; |
| 46 | + font-family: var(--main-font); |
| 47 | + font-size: .75rem; |
| 48 | + font-style: normal; |
| 49 | + font-weight: 500; |
| 50 | + letter-spacing: .25em; |
| 51 | + text-decoration: none; |
| 52 | + text-transform: uppercase; |
| 53 | + color: #fff; |
| 54 | + border: solid 1px #fff; |
| 55 | + margin: 0 35px 35px 0; |
| 56 | + padding: 9px 40px; |
| 57 | + text-align: center; |
| 58 | +} |
| 59 | + |
| 60 | +.grad-btn:hover, |
| 61 | +.grad-btn:active { |
| 62 | + -moz-border-image: -moz-linear-gradient(to right, var(--emphasis-color), #7f6dd4); |
| 63 | + -webkit-border-image: -webkit-linear-gradient(to right, var(--emphasis-color), #7f6dd4); |
| 64 | + border-image: linear-gradient(to right, var(--emphasis-color), #7f6dd4); |
| 65 | + border-image-slice: 1; |
| 66 | + color: var(--emphasis-color); |
| 67 | +} |
| 68 | + |
| 69 | +@supports (background-clip: text) or (-webkit-background-clip: text) { |
| 70 | + .grad-btn:hover, |
| 71 | + .grad-btn:active { |
| 72 | + background-image: linear-gradient(to right, var(--emphasis-color), #7f6dd4); |
| 73 | + -webkit-background-clip: text; |
| 74 | + background-clip: text; |
| 75 | + color: transparent; |
| 76 | + } |
| 77 | +} |
| 78 | + |
| 79 | + |
42 | 80 | /* LAYOUT ----------------------------------------------------------------- */ |
43 | 81 |
|
44 | 82 | /* COMPONENTS ------------------------------------------------------------- */ |
@@ -198,29 +236,6 @@ html { |
198 | 236 | } |
199 | 237 |
|
200 | 238 |
|
201 | | -.percent-ring__container { |
202 | | - width: 55px; |
203 | | - height: 55px; |
204 | | - background: rgba(255, 255, 0, .2); |
205 | | -} |
206 | | - |
207 | | -.percent-ring { |
208 | | - display: block; |
209 | | -} |
210 | | - |
211 | | -.percent-ring__path { |
212 | | - stroke: rgb(106, 255, 161); |
213 | | - fill: none; |
214 | | - stroke-width: 2; |
215 | | - stroke-linecap: round; |
216 | | - animation: progress .5s ease-out forwards; |
217 | | -} |
218 | | - |
219 | | -@keyframes progress { |
220 | | - 0% { |
221 | | - stroke-dasharray: 0 100; |
222 | | - } |
223 | | -} |
224 | 239 |
|
225 | 240 |
|
226 | 241 | /* COSMETIC --------------------------------------------------------------- */ |
|
0 commit comments