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; +}