summaryrefslogtreecommitdiff
path: root/assets/css/post-card.css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/post-card.css')
-rw-r--r--assets/css/post-card.css71
1 files changed, 71 insertions, 0 deletions
diff --git a/assets/css/post-card.css b/assets/css/post-card.css
new file mode 100644
index 0000000..c8afb42
--- /dev/null
+++ b/assets/css/post-card.css
@@ -0,0 +1,71 @@
+/* POST CARD */
+.post-card {
+ border: 3px solid var(--bg-special);
+ border-radius: var(--border-radius-default);
+ margin: 0 auto 1.5rem;
+ padding: 0 var(--gap-default);
+ width: 90%;
+
+ & .post-card__title {
+ font-size: var(--font-size-default);
+ margin-top: var(--gap-default);
+ }
+
+ & .post-card__meta {
+ display: flex;
+ align-items: center;
+ gap: var(--gap-small);
+ }
+
+ & .post-card__meta,
+ .post-card__summary {
+ font-size: var(--font-size-small);
+ }
+
+ & .post-card__meta-info {
+ margin-bottom: 0;
+ }
+
+ @media (max-width: 768px) {
+ padding: 0 var(--gap-small);
+ }
+}
+
+.post-card__header {
+ display: flex;
+ flex-direction: column;
+ align-items: start;
+ justify-content: center;
+ gap: 0.5rem;
+ margin: var(--margin-padding-Y-small);
+}
+
+.post-card__tags-list {
+ display: flex;
+ align-items: center;
+ justify-content: start;
+ gap: var(--gap-default);
+ margin: var(--margin-padding-Y-default) !important;
+
+ @media (max-width: 768px) {
+ flex-direction: column;
+ align-items: start;
+ }
+}
+
+.post-card__tags-item {
+ background-color: var(--bg-special);
+ border-radius: var(--border-radius-max);
+ color: var(--text-color);
+ font-size: var(--font-size-small);
+ padding: 0.1rem 0.4rem;
+}
+
+.post-card__section-badge {
+ border-radius: var(--border-radius-max);
+ color: var(--link-color);
+ font-size: var(--font-size-small);
+ font-weight: bold;
+ padding: 0.1rem 0.4rem;
+}
+