From 748bb50f1e0025b7b4339a82157fe4bbe95cd85d Mon Sep 17 00:00:00 2001 From: changjun <52chinaweb@gmail.com> Date: Sun, 7 May 2023 23:28:05 +0800 Subject: [PATCH] feat: head style --- .eslintrc | 2 +- Elegant.nnwtheme/stylesheet.css | 16 +++++++++++++++- Elegant.nnwtheme/template.html | 17 ++++++++++++++++- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 4af236c..cd1c4fb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,3 @@ { - "extends": [ "@antfu", "@unocss"], + "extends": [ "@antfu", "@unocss"] } diff --git a/Elegant.nnwtheme/stylesheet.css b/Elegant.nnwtheme/stylesheet.css index e272d2b..5c74dd6 100644 --- a/Elegant.nnwtheme/stylesheet.css +++ b/Elegant.nnwtheme/stylesheet.css @@ -15,10 +15,24 @@ .xxLargeText{font-size:1.5rem;line-height:2rem;} /* layer: default */ .mx-auto{margin-left:auto;margin-right:auto;} +.mt-2{margin-top:0.5rem;} +.mt-4{margin-top:1rem;} +.mt-6{margin-top:1.5rem;} +.h-18{height:4.5rem;} .max-w-prose{max-width:80ch;} +.w-18{width:4.5rem;} +.flex{display:flex;} +.flex-col{flex-direction:column;} +@keyframes fade-in{from{opacity:0}to{opacity:1}} +.animate-fade-in{animation:fade-in 1s linear 1;} +.items-center{align-items:center;} +.space-x-2>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(0.5rem * calc(1 - var(--un-space-x-reverse)));margin-right:calc(0.5rem * var(--un-space-x-reverse));} +.rounded-md{border-radius:0.375rem;} .px-8{padding-left:2rem;padding-right:2rem;} -.py-10{padding-top:2.5rem;padding-bottom:2.5rem;} +.py-3{padding-top:0.75rem;padding-bottom:0.75rem;} .font-sans{font-family:ui-sans-serif,system-ui;} +.text-gray-300{--un-text-opacity:1;color:rgba(209,213,219,var(--un-text-opacity));} +.opacity-80{opacity:0.8;} /* layer: my-style */ /* my style */ diff --git a/Elegant.nnwtheme/template.html b/Elegant.nnwtheme/template.html index 3a829f5..c057f9a 100644 --- a/Elegant.nnwtheme/template.html +++ b/Elegant.nnwtheme/template.html @@ -30,7 +30,22 @@ body: The body of the article. --> -
+
+ + +
+ +

[[title]]

+

[[datetime_medium]]

[[body]]
+ +