react-cqtoolbox
Version:
[![Travis][build-badge]][build] [![npm package][npm-badge]][npm] [![Coveralls][coveralls-badge]][coveralls]
260 lines (255 loc) • 6.31 kB
CSS
@-webkit-keyframes ani-ZoomBigIn {
0% {
opacity: 0;
-webkit-transform: scale(.8);
transform: scale(.8);
}
to {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
}
@keyframes ani-ZoomBigIn {
0% {
opacity: 0;
-webkit-transform: scale(.8);
transform: scale(.8);
}
to {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
}
@-webkit-keyframes ani-ZoomBigOut {
0% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
to {
opacity: 0;
-webkit-transform: scale(.8);
transform: scale(.8);
}
}
@keyframes ani-ZoomBigOut {
0% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
to {
opacity: 0;
-webkit-transform: scale(.8);
transform: scale(.8);
}
}
.menu,
.popupMenu {
display: block;
margin: 0;
padding: 0;
list-style: none;
white-space: nowrap;
color: rgba(0, 0, 0, .65);
outline: none;
box-sizing: border-box;
font-family: Microsoft Yahei,Helvetica Neue,\\5B8B\4F53,Helvetica,Arial,sans-serif;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
}
.menu *,
.menu *::after,
.menu *::before,
.popupMenu *,
.popupMenu *::after,
.popupMenu *::before {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
-webkit-touch-callout: none;
}
.menu {
background: rgb(33, 75, 104)
}
.menu:not(.inline) .popupMenu {
position: absolute;
z-index: 999;
border: 1px solid hsla(0, 100%, 99%, .07);
border-radius: 4px;
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),
0 1px 10px 0 rgba(0, 0, 0, .12),
0 2px 4px -1px rgba(0, 0, 0, .2);
}
.menu:not(.inline) .menuItem {
padding: 0 30px;
}
.inline .arrow.open {
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.inline .popupMenu {
overflow: hidden;
border-radius: 0;
box-shadow: none;
}
.vertical .popupMenu {
top: 0;
left: 100%;
margin-left: 4px;
-webkit-transform-origin: top left;
-ms-transform-origin: top left;
transform-origin: top left;
}
.vertical .menuItem {
color: rgb(255, 255, 255);
}
.vertical .menuItem:first-child {
border-radius: 4px 4px 0 0;
}
.vertical .menuItem:last-child {
border-radius: 0 0 4px 4px;
}
.horizontal > .menuItem,
.horizontal .submenu {
float: left;
}
.horizontal .popupMenu {
top: 100%;
-webkit-transform-origin: top center;
-ms-transform-origin: top center;
transform-origin: top center;
}
.horizontal .popupMenu.left {
left: 0;
}
.horizontal .popupMenu.middle {
left: -50%;
}
.horizontal .popupMenu.right {
right: 0;
}
.horizontal > .menuItem,
.horizontal .subMenuItem {
line-height: 56px;
height: 56px;
padding: 0 10px;
color: rgb(255, 255, 255);
}
.horizontal .menuItem {
color: rgb(255, 255, 255);
}
.horizontal .arrow {
position: static;
-webkit-transform: scale(.7, .5);
-ms-transform: scale(.7, .5);
transform: scale(.7, .5);
}
.horizontal:before {
content: "";
display: table;
}
.horizontal:after {
content: "";
display: table;
clear: both;
}
.popupMenu {
background: rgba(33, 75, 104, .9);
}
.submenu {
position: relative;
}
.menuItem,
.subMenuItem {
font-size: 14px;
line-height: 42px;
position: relative;
overflow: hidden;
height: 42px;
padding: 0 16px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: rgb(175, 200, 215)
}
.menuItem:not(.disabled):hover, .subMenuItem:not(.disabled):hover {
cursor: pointer;
background-color: rgba(0, 0, 0, .0980392);
}
.menuItem.disabled, .subMenuItem.disabled {
pointer-events: none;
opacity: 0.5;
}
.menuItem.selected, .subMenuItem.selected {
color: rgb(255, 255, 255);
background-color: rgba(0, 188, 212, 0.1);
}
.menuItem .icon, .subMenuItem .icon {
font-size: 16px;
margin-right: 16px;
-webkit-transition: all 0.35s cubic-bezier(0, 0, 0.2, 1);
transition: all 0.35s cubic-bezier(0, 0, 0.2, 1);
}
.arrow {
position: absolute;
top: 50%;
right: 10px;
margin-top: -.5em;
-webkit-transition: -webkit-transform 0.2s ease;
transition: -webkit-transform 0.2s ease;
transition: transform 0.2s ease;
transition: transform 0.2s ease, -webkit-transform 0.2s ease;
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
.caption {
font-size: 14px;
}
.inlineAnim {
-webkit-transition: height 0.2s cubic-bezier(.215,.61,.355,1);
transition: height 0.2s cubic-bezier(.215,.61,.355,1);
}
.verticalAnimEnter,
.verticalAnimLeave {
-webkit-animation-duration: 0.2s;
animation-duration: 0.2s;
-webkit-animation-play-state: paused;
animation-play-state: paused;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.verticalAnimEnter {
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
-webkit-animation-timing-function: cubic-bezier(.08,.82,.17,1);
animation-timing-function: cubic-bezier(.08,.82,.17,1);
}
.verticalAnimEnterActive {
-webkit-animation-name: ani-ZoomBigIn;
animation-name: ani-ZoomBigIn;
-webkit-animation-play-state: running;
animation-play-state: running;
}
.verticalAnimLeave {
-webkit-animation-timing-function: cubic-bezier(.78,.14,.15,.86);
animation-timing-function: cubic-bezier(.78,.14,.15,.86);
}
.verticalAnimLeaveActive {
-webkit-animation-name: ani-ZoomBigOut;
animation-name: ani-ZoomBigOut;
-webkit-animation-play-state: running;
animation-play-state: running;
}