You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

200 lines
3.6 KiB

@charset "utf-8";
/**
* stylesheet file
* 组件库样式文件
* @author: Dai Zhen
* @scene:
* @copyright: null
*/
/* ================================================================================= */
/* 右下角悬浮组件 */
/* ================================================================================= */
.conponent_fixed{
position: fixed;
right: 30px;
bottom: 50px;
width: 50px;
}
.conponent_fixed_item{
position: relative;
margin-bottom: 5px;
padding: 5px;
width: 50px;
height: 50px;
text-align: center;
background: #FFF;
cursor: pointer;
color: #AAA;
border-radius: 4px;
box-sizing: border-box;
box-shadow: 0px 0px 2px rgba(33, 33, 33, .1);
}
.conponent_fixed_item .item {
position: inherit;
width: 100%;
height: 100%;
z-index: 99;
}
/* 图标 */
.conponent_fixed_item .icon,
.conponent_fixed_item .icon_hover{
display: block;
width: 100%;
height: 100%;
background: url('../img/icon-top_1.png') no-repeat center center;
background-size: 75% 75%;
transition: all 0.3s;
}
.conponent_fixed_item:hover .icon{
opacity: 0;
}
.conponent_fixed_item .icon_hover{
position: absolute;
top: 0;
left: 0;
width: inherit;
height: inherit;
opacity: 0;
}
.conponent_fixed_item:hover .icon_hover{
opacity: 1;
}
/* 文字 */
.conponent_fixed_item .text {
position: absolute;
top: 0;
left: 0;
padding: 2px 0;
width: inherit;
height: inherit;
font-size: 12px;
line-height: 18px;
opacity: 0;
transition: all 0.3s;
box-sizing: border-box;
}
.conponent_fixed_item .text.word_2{
line-height: 36px;
}
.conponent_fixed_item:hover .text{
opacity: 1;
}
/* 浮窗: 文字或者图片 */
.conponent_fixed_item .pop{
display: none;
padding-right: 6px;
position: absolute;
right: 50px;
bottom: 0;
z-index: 9;
}
.conponent_fixed_item .pop .msg{
padding: 5px 15px;
color: #444;
font-size: 18px;
line-height: 40px;
white-space: nowrap;
border-radius: 4px;
background: #FFF;
box-shadow: 0px 0px 2px rgba(33, 33, 33, .1);
}
.conponent_fixed_item:hover .pop{
display: block;
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
0% {
opacity: 0;
right: 80px;
}
100% {
opacity: 1;
right: 50px;
}
}
.conponent_fixed_item .pop .img{
padding: 12px;
font-size: 12px;
background-color: #FFF;
border-radius: 4px;
box-shadow: 0px 0px 2px rgba(33, 33, 33, .1);
}
.conponent_fixed_item .pop .img p{
padding-bottom: 5px;
color: #444;
line-height: 1.3;
}
.conponent_fixed_item .pop .img img {
display: block;
width: 128px;
}
.conponent_fixed_item.feedback .icon{
background-image: url('../img/icon-feedback_1.png');
}
.conponent_fixed_item.qrcode .icon{
background-image: url('../img/icon-vx_1.png');
}
.conponent_fixed_item.qrcode .icon_hover{
background-image: url('../img/icon-vx_1.1.png');
/* background-image: url('../img/icon-qrcode_1.png'); */
}
.conponent_fixed_item.phone .icon{
background-image: url('../img/icon-phone_1.png');
}
.conponent_fixed_item.totop .icon{
background-image: url('../img/icon-top_1.png');
}
.conponent_fixed_item.totop{
margin-bottom: unset;
}
.conponent_fixed_item.totop._hide{
max-height: 0;
padding: 0;
animation: topFadeOut 0.3s;
}
@keyframes topFadeOut {
0% {
max-height: 50px;
padding: 5px 0;
}
100% {
max-height: 0;
padding: 0;
opacity: 0;
}
}
.conponent_fixed_item.totop._show{
max-height: 50px;
padding: 5px 0;
animation: topFadeIn 0.3s;
}
@keyframes topFadeIn {
0% {
max-height: 0;
opacity: 0;
}
100% {
max-height: 50px;
opacity: 1;
}
}
/* 组件风格设置 */
.conponent_fixed.circle .conponent_fixed_item{
margin-top: 8px;
border-radius: 50%;
}