chowa
Version:
UI component library based on React
135 lines (115 loc) • 4.03 kB
CSS
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.cw-zoom-appear {
animation-timing-function: ease-in-out;
animation-duration: 0.2s; }
@keyframes cw-zoom-center {
0% {
transform: scale(0); }
100% {
transform: scale(1); } }
.cw-zoom-center-enter {
transform-origin: center;
animation-name: cw-zoom-center; }
.cw-zoom-center-leave {
animation-name: cw-zoom-center;
animation-direction: reverse; }
.cw-popover {
position: absolute;
margin: 0;
padding: 0;
box-sizing: border-box; }
.cw-popover:before {
content: '';
width: 8px;
height: 8px;
margin: 0;
padding: 0;
background: #fff;
transform: rotate(45deg);
display: inline-block;
position: absolute; }
.cw-popover-top,
.cw-popover-top-left,
.cw-popover-top-right {
transform-origin: bottom; }
.cw-popover-bottom,
.cw-popover-bottom-left,
.cw-popover-bottom-right {
transform-origin: top; }
.cw-popover-left,
.cw-popover-left-bottom,
.cw-popover-left-top {
transform-origin: right; }
.cw-popover-right,
.cw-popover-right-bottom,
.cw-popover-right-top {
transform-origin: left; }
.cw-popover-with-arrow.cw-popover-top, .cw-popover-with-arrow.cw-popover-top-left, .cw-popover-with-arrow.cw-popover-top-right {
padding-bottom: 5px; }
.cw-popover-with-arrow.cw-popover-top:before, .cw-popover-with-arrow.cw-popover-top-left:before, .cw-popover-with-arrow.cw-popover-top-right:before {
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
bottom: 1px;
left: 50%;
margin-left: -5px; }
.cw-popover-with-arrow.cw-popover-bottom, .cw-popover-with-arrow.cw-popover-bottom-left, .cw-popover-with-arrow.cw-popover-bottom-right {
padding-top: 5px; }
.cw-popover-with-arrow.cw-popover-bottom:before, .cw-popover-with-arrow.cw-popover-bottom-left:before, .cw-popover-with-arrow.cw-popover-bottom-right:before {
box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
top: 1px;
left: 50%;
margin-left: -4px; }
.cw-popover-with-arrow.cw-popover-left, .cw-popover-with-arrow.cw-popover-left-bottom, .cw-popover-with-arrow.cw-popover-left-top {
padding-right: 5px; }
.cw-popover-with-arrow.cw-popover-left:before, .cw-popover-with-arrow.cw-popover-left-bottom:before, .cw-popover-with-arrow.cw-popover-left-top:before {
box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
right: 1px;
top: 50%;
margin-top: -4px; }
.cw-popover-with-arrow.cw-popover-right, .cw-popover-with-arrow.cw-popover-right-bottom, .cw-popover-with-arrow.cw-popover-right-top {
padding-left: 5px; }
.cw-popover-with-arrow.cw-popover-right:before, .cw-popover-with-arrow.cw-popover-right-bottom:before, .cw-popover-with-arrow.cw-popover-right-top:before {
box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
left: 1px;
top: 50%;
margin-top: -4px; }
.cw-popover-with-arrow.cw-popover-bottom-left:before, .cw-popover-with-arrow.cw-popover-top-left:before {
left: 15%; }
.cw-popover-with-arrow.cw-popover-bottom-right:before, .cw-popover-with-arrow.cw-popover-top-right:before {
left: 85%; }
.cw-popover-with-arrow.cw-popover-left-top:before, .cw-popover-with-arrow.cw-popover-right-top:before {
top: 15%; }
.cw-popover-with-arrow.cw-popover-left-bottom:before, .cw-popover-with-arrow.cw-popover-right-bottom:before {
top: 85%; }
.cw-popover-body {
border-radius: 3px;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 14px;
min-width: 190px;
max-width: 420px;
max-height: 310px;
overflow-x: hidden;
overflow-y: auto; }
.cw-popover-title {
border-bottom: 1px solid #e6ecf5;
color: #414a63;
margin: 0;
padding: 0 12px;
box-sizing: border-box;
line-height: 36px;
height: 36px; }
.cw-popover-content {
color: #616a6e;
margin: 0;
padding: 8px 12px;
box-sizing: border-box; }