mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-14 21:46:35 +00:00
fix: update top bar styles
This commit is contained in:
@@ -8,3 +8,4 @@ refs/public/apple-icon.png
|
|||||||
refs/public/placeholder-logo.svg
|
refs/public/placeholder-logo.svg
|
||||||
refs/public/placeholder-logo.png
|
refs/public/placeholder-logo.png
|
||||||
refs/public/placeholder.svg
|
refs/public/placeholder.svg
|
||||||
|
web/audit/cdp-audit*.txt
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"build": "pnpm --dir web build",
|
"build": "pnpm --dir web build",
|
||||||
"format": "pnpm --dir web format",
|
"format": "pnpm --dir web format",
|
||||||
"html": "pnpm --dir refs build && node scripts/extract-static.mjs refs/.next/server/app refs-html",
|
"html": "pnpm --dir refs build && node scripts/extract-static.mjs refs/.next/server/app refs-html",
|
||||||
"cdp-audit": "pnpm --dir web refs-cdp-audit:responsive"
|
"cdp-audit": "pnpm --dir web refs-cdp-audit:large"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Ku6epXBOCTuK",
|
"author": "Ku6epXBOCTuK",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@
|
|||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"refs-cdp-audit": "node scripts/audit-cdp.mjs",
|
"refs-cdp-audit": "node scripts/audit-cdp.mjs",
|
||||||
|
"refs-cdp-audit:large": "node scripts/audit-cdp.mjs --viewport 2560x1440",
|
||||||
"refs-cdp-audit:responsive": "node scripts/audit-cdp-responsive.mjs",
|
"refs-cdp-audit:responsive": "node scripts/audit-cdp-responsive.mjs",
|
||||||
"refs-css-audit": "node scripts/audit-css.mjs",
|
"refs-css-audit": "node scripts/audit-css.mjs",
|
||||||
"refs-dom-audit": "node scripts/audit-dom.mjs"
|
"refs-dom-audit": "node scripts/audit-dom.mjs"
|
||||||
|
|||||||
@@ -33,16 +33,15 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.icon-btn {
|
.icon-btn {
|
||||||
display: inline-flex;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
|
||||||
width: 2rem;
|
|
||||||
height: 2rem;
|
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-size: inherit;
|
||||||
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
.icon-btn:hover:not(:disabled) {
|
.icon-btn:hover:not(:disabled) {
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
@@ -59,8 +58,6 @@
|
|||||||
border-color: var(--cyan);
|
border-color: var(--cyan);
|
||||||
}
|
}
|
||||||
.icon-btn--bare {
|
.icon-btn--bare {
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|||||||
@@ -3,10 +3,9 @@
|
|||||||
<style>
|
<style>
|
||||||
.status-dot {
|
.status-dot {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 8px;
|
width: 6px;
|
||||||
height: 8px;
|
height: 6px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--success);
|
background: var(--success);
|
||||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 25%, transparent);
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { resolve } from "$app/paths";
|
||||||
|
import { CircleQuestionMark, Moon, Sun } from "@lucide/svelte";
|
||||||
import IconButton from "./IconButton.svelte";
|
import IconButton from "./IconButton.svelte";
|
||||||
import StatusDot from "./StatusDot.svelte";
|
import StatusDot from "./StatusDot.svelte";
|
||||||
import { resolve } from "$app/paths";
|
|
||||||
import { CircleHelp, Moon, Sun } from "@lucide/svelte";
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
theme: "light" | "dark";
|
theme: "light" | "dark";
|
||||||
@@ -16,22 +16,24 @@
|
|||||||
let lang = $state("RU");
|
let lang = $state("RU");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<header class="topbar">
|
<header class="topbar">
|
||||||
<a class="brand" href={resolve("/")}>
|
<a class="brand" href={resolve("/")}>
|
||||||
<span class="brand-mark">EP</span>
|
<span class="brand-mark">EP</span>
|
||||||
<span>easy-png-tools</span>
|
<span>easy-png-tools</span>
|
||||||
{#if crumb}<span class="version">{crumb}</span>{/if}
|
{#if crumb}<span class="version">{crumb}</span>{/if}
|
||||||
</a>
|
</a>
|
||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
<a href={resolve("/preview/demo")}>Workspace</a>
|
<a href={resolve("/preview/demo")}>Workspace</a>
|
||||||
<a href={resolve("/preview/list-tools")}>Catalog</a>
|
<a href={resolve("/preview/list-tools")}>Catalog</a>
|
||||||
<a href={resolve("/preview/tools/linear-gradient-png")}>Gradient</a>
|
<a href={resolve("/preview/tools/linear-gradient-png")}>Gradient</a>
|
||||||
<a href={resolve("/preview/tools/remove-background-png")}>Background remover</a>
|
<a href={resolve("/preview/tools/remove-background-png")}
|
||||||
</nav>
|
>Background remover</a
|
||||||
<div class="top-actions">
|
>
|
||||||
|
</nav>
|
||||||
|
<div class="top-actions">
|
||||||
<span class="status"><StatusDot /> {status}</span>
|
<span class="status"><StatusDot /> {status}</span>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={CircleHelp}
|
icon={CircleQuestionMark}
|
||||||
label="Help"
|
label="Help"
|
||||||
variant="bare"
|
variant="bare"
|
||||||
onclick={() => {}}
|
onclick={() => {}}
|
||||||
@@ -61,9 +63,6 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.topbar {
|
.topbar {
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 20;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -96,13 +95,13 @@
|
|||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 18px;
|
gap: 22px;
|
||||||
margin-left: 24px;
|
margin-right: 28px;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
.nav a {
|
.nav a {
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font: 12px var(--font-mono);
|
font: 12px var(--font-mono);
|
||||||
letter-spacing: 0.04em;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.nav a:hover {
|
.nav a:hover {
|
||||||
@@ -122,7 +121,8 @@
|
|||||||
letter-spacing: 0.08em;
|
letter-spacing: 0.08em;
|
||||||
}
|
}
|
||||||
.lang {
|
.lang {
|
||||||
display: inline-flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -132,17 +132,12 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font: 10px var(--font-mono);
|
font: 10px var(--font-mono);
|
||||||
letter-spacing: 0.06em;
|
|
||||||
padding: 6px 9px;
|
padding: 6px 9px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.lang-btn + .lang-btn {
|
|
||||||
border-left: 1px solid var(--line);
|
|
||||||
}
|
|
||||||
.lang-div {
|
.lang-div {
|
||||||
color: var(--muted);
|
color: var(--foreground);
|
||||||
font: 10px var(--font-mono);
|
font-family: var(--font-sans);
|
||||||
align-self: center;
|
|
||||||
}
|
}
|
||||||
.lang-btn.active {
|
.lang-btn.active {
|
||||||
background: var(--foreground);
|
background: var(--foreground);
|
||||||
|
|||||||
Reference in New Issue
Block a user