+
@@ -137,19 +137,21 @@ a {
border-color: var(--rt-c-border);
margin-top: 5px;;
- >>> a {
+ :deep(a) {
color: var(--rt-c-brand-1);
font-weight: 500;
text-decoration: none;
}
- >>> p {
+ :deep(p) {
margin: 1px 0 0 0;
-
.left & {
text-align: right;
}
}
+ .desc & :deep(p) {
+ margin-top: 8px;
+ }
/* } */
}
}
diff --git a/src/UserBadge.vue b/src/UserBadge.vue
index d44e142..25ef971 100644
--- a/src/UserBadge.vue
+++ b/src/UserBadge.vue
@@ -20,7 +20,7 @@ defineProps<{
display: inline-flex;
align-items: center;
width: fit-content;
- padding: 2px 4px 2px 3px;
+ padding: 2px 4px 2px 0px;
font-weight: 500;
font-size: .75rem;
line-height: 1rem;
diff --git a/vite.config-lib.ts b/vite.config-lib.ts
new file mode 100644
index 0000000..66361b5
--- /dev/null
+++ b/vite.config-lib.ts
@@ -0,0 +1,41 @@
+import path from "node:path";
+import { defineConfig } from "vite";
+import vue from "@vitejs/plugin-vue";
+import dts from "vite-plugin-dts";
+import postcssNesting from "postcss-nesting";
+
+const name = "index";
+
+export default defineConfig({
+ // base: "/release-timeline/",
+ plugins: [
+ vue(),
+ // dts({
+ // include: "src",
+ // }),
+ ],
+ publicDir: false,
+ build: {
+ lib: {
+ entry: path.resolve(__dirname, "src/index.ts"),
+ name,
+ fileName: format => `${name}.${format}.${format === "es" ? "m" : ""}js`,
+ },
+ rollupOptions: {
+ external: ["vue"],
+ output: {
+ globals: {
+ vue: "Vue",
+ },
+ },
+ },
+ },
+ css: {
+ postcss: {
+ plugins: [postcssNesting],
+ },
+ },
+ // define: {
+ // __DEV__: JSON.stringify(!process.env.prod),
+ // },
+});
diff --git a/vite.config.ts b/vite.config.ts
index 00bcae3..2843ca6 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,40 +1,21 @@
-import path from "node:path";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
-import dts from "vite-plugin-dts";
import postcssNesting from "postcss-nesting";
-const name = "index";
+// const name = "index";
export default defineConfig({
+ base: "/release-timeline/",
plugins: [
vue(),
- dts({
- include: "src",
- }),
],
// publicDir: false,
build: {
- lib: {
- entry: path.resolve(__dirname, "src/index.ts"),
- name,
- fileName: (format) => `${name}.${format}.${format === "es" ? "m" : ""}js`,
- },
- rollupOptions: {
- external: ["vue"],
- output: {
- globals: {
- vue: "Vue",
- },
- },
- },
+ target: "esnext",
},
css: {
postcss: {
plugins: [postcssNesting],
},
},
- define: {
- __DEV__: JSON.stringify(!process.env.prod),
- },
});