From d14c155e23676ad2e329ce5ce6dfbed85be6fc8f Mon Sep 17 00:00:00 2001 From: augushong Date: Tue, 22 Jun 2021 16:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=BE=E7=A8=8B=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/list.html | 52 ++++++++++++++++++++++++++++++++- public/cdn/layui-ul.css | 64 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 114 insertions(+), 2 deletions(-) diff --git a/demo/list.html b/demo/list.html index 57653f6..1819940 100644 --- a/demo/list.html +++ b/demo/list.html @@ -92,8 +92,26 @@ + +
+ 侧边头像列表 +
+
+
+
+
+
+ 张三 +
+
+ 法外狂徒不寂寞 +
+
+
+
+
@@ -232,7 +250,7 @@
-
+
福牛迎春
@@ -283,4 +301,36 @@
+
+
+ 课程侧边列表 +
\ No newline at end of file diff --git a/public/cdn/layui-ul.css b/public/cdn/layui-ul.css index 2265d37..a9157d1 100644 --- a/public/cdn/layui-ul.css +++ b/public/cdn/layui-ul.css @@ -1155,4 +1155,66 @@ .ul-course-item-poster-container { overflow: hidden; -} \ No newline at end of file +} + +.ul-avatar-sidebar-list-item{ + display: flex; + align-items: center; + justify-content: flex-start; + margin-bottom: 12px; +} + +.ul-avatar-sidebar-list-item-img{ + width: 58px; + height: 58px; + border-radius: 58px; + background-image: url("/static/images/avatar.png"); + background-size: cover; + background-position: center; + +} + +.ul-avatar-sidebar-list-item-info{ + margin-left: 10px; +} + +.ul-avatar-sidebar-list-item-intro{ + font-size: 12px; + color: #999; + line-height: 2; +} + +.ul-course-sidebar-item{ + display: flex; + padding: 8px 0; + align-items: center; + justify-content: flex-start; +} +.ul-course-sidebar-item:not(:last-child){ + border-bottom: 1px dotted #999; +} + +.ul-course-sidebar-item-poster{ + height: 50px; + width: 80px; + background-size: cover; + background-position: center; + +} + +.ul-course-sidebar-item-option-item{ + display: inline-block; + font-size: 12px; + color: #999; +} + +.ul-course-sidebar-item-info{ + margin-left: 8px; +} + +.ul-course-sidebar-item-title{ + line-height: 2; + text-overflow: ellipsis; + white-space : nowrap; + overflow : hidden; +}