UNPKG

toxic-swamp

Version:

Monero/Aeon Webminer for After Dark

168 lines (167 loc) 5.74 kB
<style> :root { --control-focus: drop-shadow(0 0 3px #00b0ff) brightness(1.2) drop-shadow(0 0 15px #ff2e88) brightness(.7) drop-shadow(0 0 135px #00b0ff) brightness(2); } @keyframes reveal { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeUp { from { opacity: 0.6; } to { opacity: 1; } } @keyframes revealSlide { from { transform: translateX(1%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes glowing { 0% { filter: var(--control-focus); } 50% { filter: drop-shadow(0 0 2px #00b0ff) brightness(1) drop-shadow(0 0 1px #00b0ff) brightness(2); } 100% { filter: drop-shadow(0 0 35px #00b0ff) brightness(1.2) drop-shadow(0 0 8px #ff2e88) brightness(.7) drop-shadow(0 0 135px #00b0ff) brightness(2); } } .js-toolbar { position: fixed; bottom: 10px; right: 10px; background-color: #ff2e8800; border-radius: 4px; transition: all 0.25s ease; display: flex; margin-left: 20px; text-align: right; } .js-toolbar.-reveal { animation: reveal 0.3s both; animation-delay: 0.15s; } .js-toolbar.-disclosed { background-color: #ff2e8880; } .js-toolbar:not(.-disclosed) button:not(.-active) { animation: spin 0.3s 5s 1 linear; } .js-toolbar.-disclosed .help-block:not(.status) { animation: revealSlide ease-in both reverse; } .js-toolbar .help-block.status { opacity: 0; margin-left: 1rem; } .js-toolbar [name="throttle"] { opacity: 0.6; } @media screen and (max-width: 768px) { .js-toolbar { align-items: flex-end; } .js-toolbar .help-block.status { margin-bottom: -5rem; margin-right: 3rem; } } .js-toolbar .help-block:not(.status) { position: absolute; bottom: 8px; right: 0; padding: 8px; /* background-color: black; */ border-radius: 4px; margin-bottom: -8px; padding-right: 50px; width: 250px; } .js-toolbar.-disclosed .help-block { animation: revealSlide 0.3s 0.15s both; } .js-toolbar input[name="throttle"]:hover, .js-toolbar input[name="throttle"]:focus, .js-toolbar input[name="throttle"]:active { animation: fadeUp 0.3s both; } .js-toolbar .btn-controls { display: inline-block; overflow: visible; } .js-toolbar .btn-controls button[name="toggle"] { line-height: 0; padding: 0.5rem; border: none; } .js-toolbar .btn-controls button[name="toggle"]:focus::after { content: " " url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='24'%20height='24'%20fill='currentcolor'%20stroke='fuchsia'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%3E%20%20%20%20%20%3Cpath%20d='M18%2013%20L26%202%208%2013%2014%2019%206%2030%2024%2019%20Z'%20/%3E%20%3C/svg%3E"); } .js-toolbar .btn-controls button[name="toggle"]::after { content: " " url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='24'%20height='24'%20fill='currentcolor'%20stroke='lime'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%3E%20%20%20%20%20%3Cpath%20d='M18%2013%20L26%202%208%2013%2014%2019%206%2030%2024%2019%20Z'%20/%3E%20%3C/svg%3E"); } .js-toolbar .btn-controls button[name="toggle"].-active::after { content: " " url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='24'%20height='24'%20fill='fuchsia'%20stroke='lime'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%3E%20%20%20%20%20%3Cpath%20d='M18%2013%20L26%202%208%2013%2014%2019%206%2030%2024%2019%20Z'%20/%3E%20%3C/svg%3E"); animation: glowing 2s infinite paused; filter: var(--control-focus); transform-origin: 50% 50%; } .js-toolbar .btn-controls button[name="toggle"].-active.-mining::after { animation-play-state: running; } .js-toolbar .btn-controls button[name="toggle"].-active:focus::after { content: " " url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20width='24'%20height='24'%20fill='fuchsia'%20stroke='lime'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%3E%20%20%20%20%20%3Cpath%20d='M18%2013%20L26%202%208%2013%2014%2019%206%2030%2024%2019%20Z'%20/%3E%20%3C/svg%3E"); filter: drop-shadow(0 0 3px #00b0ff) brightness(1.2) drop-shadow(0 0 15px #ff2e88) brightness(.7) drop-shadow(0 0 135px #ff9800) brightness(2); } .js-toolbar input[name="throttle"] { cursor: pointer; -webkit-appearance: none; margin: 0; height: 2px; background: transparent; position: fixed; right: -38px; bottom: 125px; background-image: linear-gradient(90deg, aliceblue, fuchsia 40%, red); transform: rotate(270deg); /* until orient support */ outline: unset; border-radius: 5px; } input[name="throttle"]::-moz-range-track { background-image: linear-gradient(90deg, aliceblue, fuchsia 40%, red); } input[name="throttle"]:focus { filter: drop-shadow(0 0 3px #00b0ff) brightness(1.2) drop-shadow(0 0 15px #ff2e88) brightness(.7) drop-shadow(0 0 135px #00b0ff) brightness(2); } input[name="throttle"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; background-color: lime; border-radius: 2px; } input[name="throttle"]::-moz-range-thumb { border: none; height: 10px; width: 10px; background-color: lime; border-radius: 2px; } </style>