mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-08 13:22:47 +08:00
增加页面固定操作组件
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
title=页面固定操作
|
||||
padding=0
|
||||
margin=0
|
||||
gray=0
|
||||
mobile=1
|
||||
inner_margin=0
|
||||
@@ -0,0 +1,19 @@
|
||||
<div class="ul-element-fixed-option">
|
||||
<div class="item">
|
||||
<div class="icon">
|
||||
<i class="layui-icon layui-icon-login-wechat" style="font-size: 30px;color: rgb(7,193,96);"></i>
|
||||
</div>
|
||||
<div class="title">
|
||||
返回小程序
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="icon">
|
||||
<i class="layui-icon layui-icon-website" style="font-size: 30px;color: #1e9fff;"></i>
|
||||
</div>
|
||||
<div class="title">
|
||||
打开网站
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
@@ -0,0 +1,29 @@
|
||||
.ul-element-fixed-option {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 16px;
|
||||
|
||||
.item {
|
||||
text-align: center;
|
||||
margin-bottom: 16px;
|
||||
cursor: pointer;
|
||||
|
||||
.icon {
|
||||
|
||||
$iconSize: 30px;
|
||||
$pdddingSize: 6px;
|
||||
|
||||
padding: $pdddingSize;
|
||||
box-shadow: 0 0 3px #999;
|
||||
width: calc(#{$iconSize} + #{$pdddingSize});
|
||||
height: calc(#{$iconSize} + #{$pdddingSize});
|
||||
display: inline-block;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-top: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user