@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-top: 5px; padding: 5px; width: 40px; height: 40px; text-align: center; background: #FFF; cursor: pointer; color: #AAA; border-radius: 4px; 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{ 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 .text { position: absolute; top: 0; left: 0; padding: 4px 0; width: inherit; height: inherit; 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; top: 0; right: 50px; 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; } .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'); } @keyframes fadeIn { 0% { opacity: 0; right: -110px; } 100% { opacity: 1; right: 50px; } }