UNPKG

interactive-tutorial

Version:
100 lines (84 loc) 1.98 kB
.interactive-tutorial-no-transitions { -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; -ms-transition: none !important; transition: none !important; } .interactive-tutorial-text { background-color: #fff; padding: 10px; border-radius: 5px; box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2); } .interactive-tutorial-element-overlay { animation: pulse-orange 1s; } @keyframes pulse-orange { 0% { background-color: rgba(255, 255, 255, 0.5); } 100% { background-color: rgba(255, 255, 255, 0); } } .interactive-tutorial-text::after { color: #fff; position: absolute; font-size: 1rem; } .interactive-tutorial-text-bottom::after { top: -1rem; left: 10%; content: "▲"; } .interactive-tutorial-text-top::after { bottom: -1rem; left: 10%; content: "▼"; } /** If the textbox is too far to the right, assume that the left part of the textbox is outside of the element it's decorating. */ .interactive-tutorial-text-bottom-right::after, .interactive-tutorial-text-top-right::after { left: 80%; } .interactive-tutorial-text-right::after { left: -0.75rem; content: "◄"; } .interactive-tutorial-text-left::after { right: -0.75rem; content: "►"; } .interactive-tutorial-element-overlay { box-shadow: inset 0 0 1rem 0.1rem rgba(0, 0, 0, 0.75); } .enlargable-area { height: 75px; transition: 1s; } .enlargable-area.enlarged { height: 200px; } .interactive-tutorial-cloaking-rectangle, .interactive-tutorial-full-page-content { background-color: rgba(0, 0, 0, 0.5); } /** Full page content**/ .interactive-tutorial-full-page-content { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; font-size: 2rem; }