summaryrefslogtreecommitdiff
path: root/assets/css/post-entry.css
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-07-21 14:20:35 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-07-21 14:20:35 +0530
commit15d7a4aabdf71ac85d88dd08eda27e5306d853fe (patch)
treef5332cb21ba6d16819419bee298361be110f3bf0 /assets/css/post-entry.css
parenta0720675754dc8e786871440317090677f2e2dfa (diff)
assets: separate style.css into parts
Diffstat (limited to 'assets/css/post-entry.css')
-rw-r--r--assets/css/post-entry.css79
1 files changed, 79 insertions, 0 deletions
diff --git a/assets/css/post-entry.css b/assets/css/post-entry.css
new file mode 100644
index 0000000..9645382
--- /dev/null
+++ b/assets/css/post-entry.css
@@ -0,0 +1,79 @@
+/* Post entry
+-------------------------------------------------- */
+.first-entry {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ height: 320px;
+ margin-bottom: var(--header-height);
+}
+
+.first-entry .entry-header {
+ overflow: hidden;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 3;
+}
+
+.first-entry .entry-header h2 {
+ font-size: 40px;
+}
+
+.first-entry .entry-content {
+ margin-top: 14px;
+ margin-bottom: 14px;
+ font-size: 16px;
+ -webkit-line-clamp: 3;
+}
+
+.first-entry .entry-footer {
+ font-size: 14px;
+}
+
+.post-entry {
+ position: relative;
+ margin-bottom: var(--gap);
+ padding: var(--gap);
+ background: var(--entry);
+ border-radius: var(--radius);
+ transition: transform 0.1s;
+}
+
+.post-entry:active {
+ transform: scale(0.96);
+}
+
+.tag-entry .entry-content,
+.tag-entry .entry-footer {
+ display: none;
+}
+
+.entry-header h2 {
+ font-size: 24px;
+}
+
+.entry-content {
+ margin-top: 8px;
+ margin-bottom: 8px;
+ color: var(--secondary);
+ font-size: 14px;
+ line-height: 1.6;
+ overflow: hidden;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+}
+
+.entry-footer {
+ color: var(--secondary);
+ font-size: 13px;
+}
+
+.entry-link {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+} \ No newline at end of file