UNPKG

@ohu-mobile/core

Version:
201 lines 4.58 kB
.ohu-fab { position: fixed; z-index: 2; } .ohu-fab.is-shadow > button.is-primary { box-shadow: 0 2Px 8Px 0 #7aadff; } .ohu-fab.is-shadow .ohu-fab-action > button.is-primary { box-shadow: 0 2Px 8Px 0 #7aadff; } .ohu-fab.is-left-top, .ohu-fab.is-left-center, .ohu-fab.is-left-bottom { left: 32px; } .ohu-fab.is-right-top, .ohu-fab.is-right-center, .ohu-fab.is-right-bottom { right: 32px; } .ohu-fab.is-center-top, .ohu-fab.is-center-bottom { left: 50%; transform: translateX(-50%); } .ohu-fab.is-left-top, .ohu-fab.is-right-top, .ohu-fab.is-center-top { top: 40px; } .ohu-fab.is-left-bottom, .ohu-fab.is-right-bottom, .ohu-fab.is-center-bottom { bottom: 40px; } .ohu-fab.is-left-center, .ohu-fab.is-right-center { top: 50%; transform: translateY(-50%); } .ohu-fab.is-center-center { left: 50%; top: 50%; transform: translate(-50%, -50%); } .ohu-fab__mask { position: fixed; z-index: -1; background: rgba(255, 255, 255, 0.9); will-change: transform; transform: scale3d(1, 1, 1); width: 0; height: 0; visibility: hidden; } .ohu-fab__icon { position: relative; width: 1em; height: 100%; } .ohu-fab__icon .ohu-icon { position: absolute; left: 0; top: 50%; margin-top: -0.5em; } .ohu-fab__actions { position: absolute; visibility: hidden; pointer-events: none; display: flex; } .ohu-fab__actions .ohu-fab-action { transform: translate3d(0, 8Px, 0) scale(0.3); } .ohu-fab__label { box-sizing: border-box; padding: 6px 18px; position: absolute; top: 50%; display: inline-block; font-size: 28px; line-height: 1.375em; border-radius: 2Px; color: #333; background: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ohu-fab-action { position: relative; transition: all 300ms ease; opacity: 0; will-change: auto; } .ohu-fab-action:nth-child(2) { transition-delay: 50ms; } .ohu-fab-action:nth-child(3) { transition-delay: 100ms; } .ohu-fab-action:nth-child(4) { transition-delay: 150ms; } .ohu-fab-action:nth-child(5) { transition-delay: 200ms; } .ohu-fab-action:nth-child(6) { transition-delay: 250ms; } .ohu-fab-action:nth-child(7) { transition-delay: 300ms; } .ohu-fab-action:nth-child(8) { transition-delay: 350ms; } .ohu-fab-action__label { box-sizing: border-box; padding: 6px 18px; position: absolute; top: 50%; display: inline-block; font-size: 28px; line-height: 1.375em; border-radius: 2Px; color: #333; background: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ohu-fab.is-left .ohu-fab__actions, .ohu-fab.is-right .ohu-fab__actions { top: 50%; transform: translateY(-50%); } .ohu-fab.is-up .ohu-fab__actions, .ohu-fab.is-down .ohu-fab__actions { left: 50%; transform: translateX(-50%); } .ohu-fab.is-left .ohu-fab__actions { margin-right: 22px; right: 100%; flex-flow: row-reverse nowrap; } .ohu-fab.is-left .ohu-fab-action { margin-left: 22px; transform-origin: right center; } .ohu-fab.is-right .ohu-fab__actions { margin-left: 22px; left: 100%; flex-flow: row nowrap; } .ohu-fab.is-right .ohu-fab-action { margin-right: 22px; transform-origin: left center; } .ohu-fab.is-up .ohu-fab__actions { margin-bottom: 22px; bottom: 100%; flex-flow: column-reverse; } .ohu-fab.is-up .ohu-fab-action { margin-top: 22px; transform-origin: center bottom; } .ohu-fab.is-down .ohu-fab__actions { margin-top: 22px; top: 100%; flex-flow: column; } .ohu-fab.is-down .ohu-fab-action { margin-bottom: 22px; transform-origin: center top; } .ohu-fab.is-label-right .ohu-fab-action__label, .ohu-fab.is-label-right .ohu-fab__label { margin-left: 12px; transform: translate(100%, -50%); text-align: left; } .ohu-fab.is-label-left .ohu-fab-action__label, .ohu-fab.is-label-left .ohu-fab__label { margin-left: -12px; transform: translate(-100%, -50%); text-align: right; } .ohu-fab.is-label-bottom .ohu-fab-action__label, .ohu-fab.is-label-bottom .ohu-fab__label { margin-top: 12px; transform: translate(-50%, 100%); text-align: center; left: 50%; } .ohu-fab.is-label-top .ohu-fab-action__label, .ohu-fab.is-label-top .ohu-fab__label { margin-top: -12px; transform: translate(-50%, -100%); text-align: center; top: 0; left: 50%; } .ohu-fab.is-expand .ohu-fab__actions { visibility: visible; pointer-events: auto; will-change: contents; } .ohu-fab.is-expand .ohu-fab__actions .ohu-fab-action { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } .ohu-fab.is-expand .ohu-fab_mask { visibility: visible; }