From 3280af7183e77dae4fc6f7214876855552354292 Mon Sep 17 00:00:00 2001 From: gitfromwildan <> Date: Thu, 29 May 2025 02:20:36 +0700 Subject: [PATCH] remove editor.css --- .vscode/card.code-snippets | 66 +++++++++++++++++++++++++++++-------- .vscode/extensions.json | 3 -- .vscode/table.code-snippets | 28 ++++++---------- styles/editor.css | 57 -------------------------------- styles/globals.css | 17 ---------- tailwind.config.ts | 1 - 6 files changed, 62 insertions(+), 110 deletions(-) delete mode 100644 .vscode/extensions.json delete mode 100644 styles/editor.css diff --git a/.vscode/card.code-snippets b/.vscode/card.code-snippets index 02af419..67473b7 100644 --- a/.vscode/card.code-snippets +++ b/.vscode/card.code-snippets @@ -1,16 +1,54 @@ { - "DocuCards": { - "prefix": "card", - "body": [ - "", - "", - " This is an example of card content with columns.", - "", - "", - " This is an example of card content with columns.", - "", - "" - ], - "description": "Create a DocuCards component on markdown." - } + "Docu Card Group": { + "prefix": "card-group", + "body": [ + "", + " ", + " ${4:Card content goes here. You can add **markdown** content.}", + " ", + " ", + " ${7:More content here.}", + " ", + "" + ], + "description": "Create a group of cards in a responsive grid" + }, + "Docu Card": { + "prefix": "card", + "body": [ + "", + " ${5:Card content goes here. You can add **markdown** content.}", + "" + ], + "description": "Create a single card component" + }, + "Docu Horizontal Card": { + "prefix": "card-horizontal", + "body": [ + "", + " ${4:Content appears next to the icon in a horizontal layout.}", + "" + ], + "description": "Create a horizontal card layout" + }, + "Docu Card With Link": { + "prefix": "card-link", + "body": [ + "", + " ${4:This card is clickable and links to an external URL.}", + "" + ], + "description": "Create a clickable card that links to a URL" } +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 4ef01b0..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": [] -} diff --git a/.vscode/table.code-snippets b/.vscode/table.code-snippets index 202f150..10b6e3a 100644 --- a/.vscode/table.code-snippets +++ b/.vscode/table.code-snippets @@ -1,20 +1,12 @@ { - "DocuTable": { - "prefix": "table", - "body": [ - "| **${1:Feature}** | **${2:Description}** |", - "| ------------------------------- | ----------------------------------------------------- |", - "| ${3:MDX Support} | ${4:Write interactive documentation with MDX.} |", - "| Nested Pages | Organize content in a nested, hierarchical structure. |", - "| Blog Section | Include a dedicated blog section. |", - "| Pagination | Split content across multiple pages. |", - "| Syntax Highlighting | Highlight code for better readability. |", - "| Code Line Highlighting & Titles | Highlight specific lines with descriptive titles. |", - "| Interactive Code Blocks | Language-specific and interactive code display. |", - "| Custom Markdown Components | Embed custom, reusable components in your docs. |", - "| Static Site Generation | Generate a static, high-performance site. |", - "| SEO-Optimized | Structured for optimal search engine indexing. |" - ], - "description": "Create a DocuTable component on markdown." - } + "DocuTable": { + "prefix": "table", + "body": [ + "| **${1:Header 1}** | **${2:Header 2}** |", + "| ---------------- | ---------------- |", + "| ${3:Row 1, Col 1} | ${4:Row 1, Col 2} |", + "| ${5:Row 2, Col 1} | ${6:Row 2, Col 2} |" + ], + "description": "Create a simple 2x2 markdown table" } +} diff --git a/styles/editor.css b/styles/editor.css deleted file mode 100644 index e499b96..0000000 --- a/styles/editor.css +++ /dev/null @@ -1,57 +0,0 @@ -/* GitHub-style editor customizations */ -.editor-container { - @apply relative font-mono text-sm leading-relaxed; - height: 100%; - min-height: 600px; -} - -.editor-textarea { - @apply w-full h-full min-h-[600px] p-4 pl-14 bg-background resize-none focus:outline-none; - line-height: 1.5rem; - tab-size: 2; - counter-reset: line; -} - -/* Line numbers */ -.editor-line-numbers { - @apply absolute left-0 top-0 bottom-0 w-10 bg-muted/30 border-r select-none; - padding: 1rem 0; - overflow: hidden; -} - -.editor-line-numbers-content { - @apply text-right pr-2 text-muted-foreground/70; - font-size: 13px; - line-height: 1.5rem; -} - -.editor-line-numbers-content > div { - height: 1.5rem; -} - -.editor-line-numbers-content > div::before { - content: attr(data-line-number); - display: block; -} - -/* Selection styling */ -.editor-textarea::selection { - @apply bg-primary/20; -} - -.dark .editor-textarea::selection { - @apply bg-primary/30; -} - -/* Scrollbar styling */ -.editor-textarea::-webkit-scrollbar { - @apply w-2; -} - -.editor-textarea::-webkit-scrollbar-track { - @apply bg-transparent; -} - -.editor-textarea::-webkit-scrollbar-thumb { - @apply bg-muted-foreground/20 rounded-full hover:bg-muted-foreground/30; -} \ No newline at end of file diff --git a/styles/globals.css b/styles/globals.css index abe6c09..3ba076c 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -3,7 +3,6 @@ @tailwind utilities; @import url("../styles/syntax.css"); -@import url("../styles/editor.css"); /* ocean */ @layer base { @@ -119,22 +118,6 @@ pre>code { background-color: transparent !important; } -.line-clamp-3 { - display: -webkit-box; - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; - overflow: hidden; - text-overflow: ellipsis; -} - -.line-clamp-2 { - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - overflow: hidden; - text-overflow: ellipsis; -} - @layer utilities { .animate-shine { --animate-shine: shine var(--duration) infinite linear; diff --git a/tailwind.config.ts b/tailwind.config.ts index 7949b4c..56783f3 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -9,7 +9,6 @@ const config = { "./src/**/*.{ts,tsx}", ], prefix: "", - safelist: ["line-clamp-3","line-clam-2"], theme: { container: { center: true,