#e8e8e8
1.code-button { 2 display: inline-block; 3 font-family: "Menlo", "Bitstream Vera Sans Mono", "DejaVu Sans Mono", "Monaco", "Consolas", monospace; 4 margin: 1em; 5 border-radius: 3px; 6 background: #434d5a; 7 border: none; 8 padding: 1em 0; 9 color: white; 10 text-align: center; 11 text-decoration: none; 12 width: 9em; 13 transition: all 0.2s ease, background-color 0.2s ease-in 0.15s, box-shadow 0.2s ease-in 0.15s, color 0s ease; 14} 15 16.code-button__bracket, .code-button__text, .code-button__code { 17 display: inline-block; 18 margin-right: -3px; 19 text-align: center; 20 width: 0.5em; 21 transition: all 0.2s ease, color 0s ease; 22} 23 24.code-button__bracket { 25 font-weight: normal; 26} 27 28.code-button__text { 29 opacity: 0; 30 position: absolute; 31 transition: all 0s ease; 32} 33 34.code-button:hover { 35 padding: 1em 0; 36 transition: all 0.2s ease, background-color 0.2s ease-in 0.05s, box-shadow 0.2s ease-in 0.05s, color 0s ease; 37} 38 39.code-button:hover .code-button__code, .code-button:hover .code-button__text { 40 width: 2em; 41} 42 43.code-button:hover .code-button__code, .code-button:hover .code-button__text, .code-button:hover .code-button__bracket { 44 transition: all 0.2s ease, color 0s ease; 45} 46 47.code-button:hover .code-button__code { 48 opacity: 0; 49 position: absolute; 50} 51 52.code-button:hover .code-button__text { 53 opacity: 1; 54 position: static; 55} 56 57.code-button--color:hover { 58 color: #434d5a; 59} 60 61.code-button--color:hover.code-button--css { 62 background-color: #aaffa9; 63 box-shadow: inset 15px 5px 70px -10px #aaffa9, inset -15px -5px 70px -10px #11ffbd; 64} 65 66.code-button--color:hover.code-button--html { 67 background-color: #fc8f71; 68 box-shadow: inset 15px 15px 90px -20px #fc8f71, inset -15px -5px 80px -10px #fcdcab; 69} 70 71.code-button--color:hover.code-button--js { 72 background-color: #87e1ed; 73 box-shadow: inset 15px 15px 90px -20px #7996d1, inset -15px -5px 80px -10px #87e1ed; 74} 75
291 views
291 views
Comments
MIT License