summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-02-10 10:50:07 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-02-10 10:50:07 +0300
commit1d34ee20ff01d7ebdcd2c3cf6e0af7556a7ddc84 (patch)
tree616c5d7f2868b38a933e64ec007f957326d583db /src
parent57e830e7157c1de8aff67cc83a2dcefb36111352 (diff)
reduce size in svg
Diffstat (limited to 'src')
-rw-r--r--src/lib/components/ThemeToggle.svelte12
-rw-r--r--src/lib/styles/global.pruned.css165
2 files changed, 3 insertions, 174 deletions
diff --git a/src/lib/components/ThemeToggle.svelte b/src/lib/components/ThemeToggle.svelte
index 1f09e06..60ac78f 100644
--- a/src/lib/components/ThemeToggle.svelte
+++ b/src/lib/components/ThemeToggle.svelte
@@ -32,14 +32,8 @@
stroke-linejoin="round"
aria-hidden="true"
>
- <circle cx="12" cy="12" r="5"></circle>
- <line x1="12" y1="1" x2="12" y2="3"></line>
- <line x1="12" y1="21" x2="12" y2="23"></line>
- <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
- <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
- <line x1="1" y1="12" x2="3" y2="12"></line>
- <line x1="21" y1="12" x2="23" y2="12"></line>
- <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
- <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
+ <path
+ d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0z"
+ ></path>
</svg>
</button>
diff --git a/src/lib/styles/global.pruned.css b/src/lib/styles/global.pruned.css
deleted file mode 100644
index 4c6c3a3..0000000
--- a/src/lib/styles/global.pruned.css
+++ /dev/null
@@ -1,165 +0,0 @@
-*,
-*::before,
-*::after {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
-}
-
-:root {
- --bg: #fff;
- --text: #333;
- --muted: #666;
- --link: #888;
- --link-hover: #000;
- --border: #eee;
- --font:
- Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
- "Helvetica Neue", Arial, sans-serif;
-}
-
-[data-theme="dark"] {
- --bg: #1a1a1a;
- --text: #e0e0e0;
- --muted: #999;
- --link-hover: #fff;
- --border: #333;
-}
-
-html {
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-body {
- font: 18px/1.4 var(--font);
- color: var(--text);
- background: var(--bg);
-}
-
-h1,
-h2,
-h3 {
- margin-bottom: 2rem;
-}
-
-.container {
- max-width: 900px;
- margin: 0 auto;
- padding: 0 2rem;
-}
-
-p {
- margin-bottom: 1rem;
-}
-
-a {
- color: var(--link);
- text-decoration: none;
-}
-
-a:hover {
- color: var(--link-hover);
-}
-
-hr {
- border: none;
- border-top: 1px solid var(--border);
- margin: 2rem 0;
-}
-
-small,
-time {
- font-size: 15px;
- color: var(--muted);
-}
-
-/* Layout */
-.wrapper-masthead {
- margin: 0 2rem 3rem;
-}
-
-.masthead {
- padding: 1.25rem 0;
- border-bottom: 1px solid var(--border);
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-
-.site-info {
- display: flex;
- flex-direction: column;
- margin-left: 2rem;
-}
-
-.site-info h1 {
- margin: 0;
- font-size: 1.75rem;
- font-weight: 300;
- letter-spacing: 1px;
-}
-
-.site-description {
- margin: -0.25rem 0 0 0;
- color: var(--muted);
- font-size: 1rem;
-}
-
-header nav {
- display: flex;
- align-items: center;
- gap: 1.25rem;
-}
-
-footer {
- margin-top: 4rem;
- text-align: center;
-}
-
-article {
- margin-bottom: 2rem;
-}
-
-.theme-toggle {
- background: transparent;
- border: none;
- padding: 0.5rem;
- cursor: pointer;
- color: var(--muted);
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.theme-icon-sun {
- display: none;
-}
-
-[data-theme="dark"] .theme-icon-moon {
- display: none;
-}
-
-[data-theme="dark"] .theme-icon-sun {
- display: block;
-}
-
-.theme-toggle:hover {
- color: var(--link-hover);
-}
-
-.giscus-container {
- margin-top: 3rem;
-}
-
-@media (max-width: 640px) {
- .masthead {
- flex-direction: column;
- text-align: center;
- gap: 1rem;
- }
-
- header nav {
- gap: 0.75rem;
- }
-}