From 2ceb6873bea5f1e02a80584421069cca1fcb4f80 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 24 Oct 2018 15:28:39 +0200 Subject: [PATCH] index & scss/blog: support article listing --- components/posts-list.php | 25 +++++++++++++++++++++++++ index.php | 3 ++- scss/_blog.scss | 36 ++++++++++++++++++++++++++++++++++++ style.css | 25 +++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 components/posts-list.php diff --git a/components/posts-list.php b/components/posts-list.php new file mode 100644 index 0000000..33245bc --- /dev/null +++ b/components/posts-list.php @@ -0,0 +1,25 @@ + +
+ + +
+

+ +
+
+
+ + + + + diff --git a/index.php b/index.php index 741a28b..cb58c05 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,7 @@
- +

Articles récents

+
diff --git a/scss/_blog.scss b/scss/_blog.scss index 690aca2..7a88570 100644 --- a/scss/_blog.scss +++ b/scss/_blog.scss @@ -153,3 +153,39 @@ margin-bottom:0.4em; display:block; } + +/* 2.1.1 - Article list */ + +.list-article { + display: flex; + flex-direction: row; + &-thumbnail { + display: block; + padding-top: 0.35em; + max-width: 200px; + img { + max-width: 100%; + height: auto; + } + } + + &-main { + padding-left:1em; + } + &-title { + font-family: Teko; + font-weight: 600; + margin-bottom: 0em; + a { + color: #444; + } + } + &-metadata { + display:flex; + justify-content: space-between; + } + + &-content { + font-style: italic; + } +} diff --git a/style.css b/style.css index dfa64cd..056e4b5 100644 --- a/style.css +++ b/style.css @@ -1307,3 +1307,28 @@ a.list-group-item:hover { .card-preview time { margin-bottom: 0.4em; display: block; } + +/* 2.1.1 - Article list */ +.list-article { + display: flex; + flex-direction: row; } + .list-article-thumbnail { + display: block; + padding-top: 0.35em; + max-width: 200px; } + .list-article-thumbnail img { + max-width: 100%; + height: auto; } + .list-article-main { + padding-left: 1em; } + .list-article-title { + font-family: Teko; + font-weight: 600; + margin-bottom: 0em; } + .list-article-title a { + color: #444; } + .list-article-metadata { + display: flex; + justify-content: space-between; } + .list-article-content { + font-style: italic; }