mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-05 11:52:49 +08:00
增加二维码卡片组件
This commit is contained in:
6
source/components/card/ul-card-qrcode/_index.env
Normal file
6
source/components/card/ul-card-qrcode/_index.env
Normal file
@@ -0,0 +1,6 @@
|
||||
title=二维码卡片
|
||||
padding=0
|
||||
margin=0
|
||||
gray=0
|
||||
mobile=0
|
||||
inner_margin=0
|
||||
25
source/components/card/ul-card-qrcode/_index.html
Normal file
25
source/components/card/ul-card-qrcode/_index.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<div class="ul-card-qrcode">
|
||||
<div class="ul-card-qrcode__main">
|
||||
<div class="header">
|
||||
<div class="ul-avatar-sidebar-list" >
|
||||
<div class="ul-avatar-sidebar-list-item" >
|
||||
<div class="ul-avatar-sidebar-list-item-img"></div>
|
||||
<div class="ul-avatar-sidebar-list-item-info">
|
||||
<div class="ul-avatar-sidebar-list-item-title">张三</div>
|
||||
<div class="ul-avatar-sidebar-list-item-intro">法外狂徒不寂寞</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<div class="ul-card-qrcode__point-left"></div>
|
||||
<div class="ul-card-qrcode__point-right"></div>
|
||||
<div class="ul-card-qrcode__line"></div>
|
||||
|
||||
<div class="main">
|
||||
<img class="img" src="/static/images/qrcode.jpg" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
0
source/components/card/ul-card-qrcode/_index.md
Normal file
0
source/components/card/ul-card-qrcode/_index.md
Normal file
62
source/components/card/ul-card-qrcode/_index.scss
Normal file
62
source/components/card/ul-card-qrcode/_index.scss
Normal file
@@ -0,0 +1,62 @@
|
||||
.ul-card-qrcode {
|
||||
|
||||
position: relative;
|
||||
min-width: 200px;
|
||||
min-height: 100px;
|
||||
display: inline-block;
|
||||
background-color: #E2DFDF;
|
||||
padding: 10px;
|
||||
|
||||
.header {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.body {
|
||||
position: relative;
|
||||
|
||||
.main {
|
||||
padding: 36px;
|
||||
|
||||
.img {
|
||||
width: 300px;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
&__main {
|
||||
background-color: #fff;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__point-left {
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 20px;
|
||||
background-color: #E2DFDF;
|
||||
left: -10px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&__point-right {
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 20px;
|
||||
background-color: #E2DFDF;
|
||||
right: -10px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&__line {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
border-bottom: 2px dashed #E2DFDF;
|
||||
top: 8px;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user