polishing

This commit is contained in:
Abhimanyu Rana committed 2023-05-13 16:33:16 +05:30
1 parent e96796cab6
commit 01063999d7
6 files changed
+37 -45

No files matched your search

+1 -3
View File
@@ -39,7 +39,5 @@ const { href, title, body } = Astro.props;
background-position: 0;
border: 1px solid var(--border);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent));
}
.link-card:is(:hover, :focus-within) h6 {}
</style>
+21 -27
View File
@@ -29,7 +29,7 @@ const { title } = Astro.props;
<body>
<button class="theme-toggle" id="theme-toggle" title="Toggles light & dark" aria-label="auto" aria-live="polite">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="var(--icon-secondary)" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="1.5" d="M8.57 17.93A5.98 5.98 0 0 1 6 13c0-3.31 2.69-6 6-6s6 2.69 6 6c0 2.05-1.03 3.86-2.6 4.94M12 4V2M3 13H1m22 0h-2m-1.222-7.778-1.414 1.414m-12.728 0L4.222 5.222M4 18h16M8 21h8"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="var(--icon-secondary)" fill-opacity=".20" d="M8.57 17.93A5.98 5.98 0 0 1 6 13c0-3.31 2.69-6 6-6s6 2.69 6 6c0 2.05-1.03 3.86-2.6 4.94"/><path stroke="var(--icon-secondary)" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.5" d="M12 4V2M3 13H1m22 0h-2m-1.222-7.778-1.414 1.414m-12.728 0L4.222 5.222M4 18h16M8 21h8m-7.43-3.07A5.98 5.98 0 0 1 6 13c0-3.31 2.69-6 6-6s6 2.69 6 6c0 2.05-1.03 3.86-2.6 4.94l-6.83-.01Z"/></svg>
</button>
<slot />
@@ -40,46 +40,40 @@ const { title } = Astro.props;
:root {
--system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--accent: var(--support-info);
--system-code: Menlo, Consolas, "Ubuntu Mono", "Roboto Mono", "DejaVu Sans Mono", Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
}
html {
font-family: var(--system-ui);
background-color: var(--background);
}
body { margin: 0; padding: 0;}
code {
font-family: Menlo, Consolas, "Ubuntu Mono", "Roboto Mono", "DejaVu Sans Mono", Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
}
main { margin: auto var(--spacing-10);}
h1.title { margin-bottom: var(--spacing-10); color: var(--text-primary); margin-top: var(--spacing-12); }
section { margin-bottom: var(--spacing-10);}
p { margin-top: var(--spacing-1);}
p { margin-top: var(--spacing-00);}
.nu-u-link--subtle { color: var(--text-secondary) !important;}
/* theme toggle */
.theme-toggle {
--size: 2rem;
--icon-fill: var(--icon-secondary);
--icon-fill-hover: var(--icon-secondary);
background: none;
border: none;
padding: 0;
color: var(--icon-secondary);
inline-size: var(--size);
block-size: var(--size);
aspect-ratio: 1;
border-radius: 50%;
cursor: pointer;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
position: fixed;
top: var(--spacing-05);
right: var(--spacing-05);
outline-offset: 5px;
--icon-fill: var(--icon-secondary);
--icon-fill-hover: var(--icon-secondary);
width: var(--spacing-09);
height: var(--spacing-09);
background: none;
border: none;
padding: var(--spacing-00);
color: var(--icon-secondary);
cursor: pointer;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
position: fixed;
top: var(--spacing-07);
right: var(--spacing-07);
display: flex;
justify-content: center;
align-items: center;
border: 1px solid var(--border-muted);
@nest [data-theme="dark"] & {
--icon-fill: var(--icon-secondary);
+1 -1
View File
@@ -631,6 +631,6 @@ import "@new-ui/spacings";
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: var(--spacing-02);
padding: 0;
padding: var(--spacing-00);
}
</style>