diff --git a/innovedus_cms/home/static/css/home.css b/innovedus_cms/home/static/css/home.css index e92c9f7..6f9eea4 100644 --- a/innovedus_cms/home/static/css/home.css +++ b/innovedus_cms/home/static/css/home.css @@ -71,4 +71,30 @@ .more-link { text-decoration: none; font-size: 16px; -} \ No newline at end of file +} + +.section-b .list-title { + color: #00abf5; +} + +.section-b .list-title .category_title { + background-color: #00abf5; + color: #ffffff; +} + +.section-b .list-title a{ + color: #00abf5; +} + +.section-o .list-title { + color: #f4a41c; +} + +.section-o .list-title .category_title { + background-color: #f4a41c; + color: #ffffff; +} + +.section-o .list-title a{ + color: #f4a41c; +} diff --git a/innovedus_cms/home/static/css/horizontal_list.css b/innovedus_cms/home/static/css/horizontal_list.css index b548f5e..a34f326 100644 --- a/innovedus_cms/home/static/css/horizontal_list.css +++ b/innovedus_cms/home/static/css/horizontal_list.css @@ -73,11 +73,39 @@ text-decoration: none; } +.horizontal-list-thumb { + position: relative; + width: 194px; + height: 133px; + border-radius: 10px; + overflow: hidden; +} + +.horizontal-list-thumb::after { + content: ""; + position: absolute; + left: 0px; + right: 0px; + bottom: 0px; + height: 25px; + pointer-events: none; +} + +.section-b .horizontal-list-thumb::after { + background: url("../img/picfrm_b194.png") no-repeat left bottom / cover; + background-size: 194px 25px; +} + +.section-o .horizontal-list-thumb::after { + background: url("../img/picfrm_o194.png") no-repeat left bottom / cover; + background-size: 194px 25px; +} + .horizontal-list li img { - width: 100%; - height: 200px; display: block; - margin: 0 3px; + width: 100%; + height: 100%; + object-fit: cover; } .horizontal-list li a:hover, @@ -90,7 +118,6 @@ -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; - font-size: 20px; } .horizontal-list .article-title { @@ -101,6 +128,11 @@ font-size: 16px; } +.horizontal-list .article-date { + color: #0e1b4266; + font-size: 16px; +} + .horizontal-list .empty { flex: 1 0 auto; text-align: center; diff --git a/innovedus_cms/home/templates/home/home_page.html b/innovedus_cms/home/templates/home/home_page.html index 6af0092..a7edee0 100644 --- a/innovedus_cms/home/templates/home/home_page.html +++ b/innovedus_cms/home/templates/home/home_page.html @@ -23,7 +23,8 @@