chowa
Version:
UI component library based on React
97 lines (82 loc) • 2.19 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-tooltip {
position: absolute;
margin: 0;
padding: 0;
box-sizing: border-box; }
.cw-tooltip-top {
transform-origin: bottom; }
.cw-tooltip-bottom {
transform-origin: top; }
.cw-tooltip-left {
transform-origin: right; }
.cw-tooltip-right {
transform-origin: left; }
.cw-tooltip-with-arrow:before {
content: '';
margin: 0;
padding: 0;
box-sizing: border-box;
border: 5px solid transparent;
display: inline-block;
position: absolute; }
.cw-tooltip-with-arrow.cw-tooltip-top {
padding-bottom: 5px; }
.cw-tooltip-with-arrow.cw-tooltip-top:before {
bottom: -5px;
left: 50%;
margin-left: -5px;
border-top-color: rgba(0, 0, 0, 0.65); }
.cw-tooltip-with-arrow.cw-tooltip-bottom {
padding-top: 5px; }
.cw-tooltip-with-arrow.cw-tooltip-bottom:before {
top: -5px;
left: 50%;
margin-left: -5px;
border-bottom-color: rgba(0, 0, 0, 0.65); }
.cw-tooltip-with-arrow.cw-tooltip-left {
padding-right: 5px; }
.cw-tooltip-with-arrow.cw-tooltip-left:before {
right: -5px;
top: 50%;
margin-top: -5px;
border-left-color: rgba(0, 0, 0, 0.65); }
.cw-tooltip-with-arrow.cw-tooltip-right {
padding-left: 5px; }
.cw-tooltip-with-arrow.cw-tooltip-right:before {
left: -5px;
top: 50%;
margin-top: -5px;
border-right-color: rgba(0, 0, 0, 0.65); }
.cw-tooltip-inner {
font-size: 14px;
color: #fff;
border-radius: 3px;
margin: 0;
word-break: break-all;
box-sizing: border-box;
line-height: 1.5;
max-width: 220px;
padding: 5px 7px;
background-color: rgba(0, 0, 0, 0.65); }