UNPKG

react-ui-components

Version:
123 lines (104 loc) 2.3 kB
.hide { display: none; } .d-menu-wrap { display: inline-block; text-align: center; vertical-align: top; margin: 10px; } .unactive .menu-wrap { height: 0; overflow: hidden; } .d-menu-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; } .d-menu-wrap .menu-wrap { position: relative; z-index: 1; margin-top: 11px; } .d-menu-wrap .menu-wrap:before, .d-menu-wrap .menu-wrap:after { display: block; content: " "; position: absolute; left: 50%; width: 0; height: 0; border-style: solid; border-color: transparent; border-top: 0; margin-left: -10px; } .d-menu-wrap .menu-wrap:before { top: -10px; border-width: 10px; border-bottom-color: rgba(0, 0, 0, 0.239216); } .d-menu-wrap .menu-wrap:after { top: -9px; border-width: 10px; border-bottom-color: #fff; } .menu-wrap { display: inline-block; box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.239216) 0px 1px 4px; border-radius: 2px; } .menu-item { padding: 2px 12px; } .menu-item-selected { background: #ccc; } .btn { outline: none; background: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; padding: 0; border-radius: 2px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24); background: #e6e6e6; line-height: 30px; margin: 16px; font-size: 17px; } .btn-inner:hover, btn[disabled] { background-color: rgba(255, 255, 255, 0.4); } .btn-label { padding: 0 8px; } .icon-btn-wrap { position: relative; display: inline-block; margin: 10px; } .tooltip { position: absolute; left: -22px; bottom: -28px; white-space: nowrap; box-shadow: 0px 2px 8px #ccc; padding: 4px; } .link-btn { width: 100%; height: 100%; } /**************upload-btn******************/ .upload-btn { position: relative; } .upload-btn input[type="file"] { position: absolute; width: 100%; height: 100%; left: 0; top: 0; opacity: 0; } body { margin: 0; } header { text-align: center; font-size: 24px; line-height: 32px; margin-bottom: 24px; } #main { text-align: center; } .icon-btn-wrap { margin: 20px; color: #888; } .icon-btn-wrap.hovered { color: #000; }