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.
273 lines
5.0 KiB
273 lines
5.0 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.message .icon{
|
|
background-image: url('../img/icon-msg_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%;
|
|
}
|
|
|
|
/* 留言板 */
|
|
.conponent_dialog{
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(3, 3, 2, .8);
|
|
z-index: 99999;
|
|
}
|
|
.conponent_dialog_box{
|
|
position: relative;
|
|
margin: 30vh auto 0;
|
|
padding: 10px 30px;
|
|
width: 40%;
|
|
border-radius: 8px;
|
|
background-color: #FFF;
|
|
}
|
|
|
|
.conponent_dialog_box .title{
|
|
padding: 15px 0;
|
|
display: block;
|
|
text-align: left;
|
|
font-size: 20px;
|
|
color: #333;
|
|
}
|
|
.conponent_dialog_box .context{
|
|
padding-bottom: 20px;
|
|
text-align: left;
|
|
color: #333;
|
|
}
|
|
.conponent_dialog_box .input{
|
|
margin-bottom: 12px;
|
|
padding: 8px 12px;
|
|
display: block;
|
|
width: 100%;
|
|
border: 1px solid #E5E5E5;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
}
|
|
.conponent_dialog_box .textarea{
|
|
padding: 12px;
|
|
display: block;
|
|
resize: none;
|
|
width: 100%;
|
|
height: 100px;
|
|
border: 1px solid #E5E5E5;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
}
|
|
.conponent_dialog_box .btn{
|
|
display: inline-block;
|
|
margin-top: 15px;
|
|
padding: 10px 40px;
|
|
background: #3454BE;
|
|
color: #FFF;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
}
|
|
.conponent_dialog_box .close{
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
width: 30px;
|
|
height: 30px;
|
|
background: url('../img/icon-close.png') no-repeat center center;
|
|
background-size: 80%;
|
|
}
|