update command style
This commit is contained in:
+40
-32
@@ -9,7 +9,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--color-background: #111;
|
--color-background: #111;
|
||||||
--color-text-subtle: #999;
|
--color-text-subtle: #999;
|
||||||
--color-text: #eee;
|
--color-text: #fff;
|
||||||
--font-family: -apple-system, Helvetica, sans-serif;
|
--font-family: -apple-system, Helvetica, sans-serif;
|
||||||
--font-size-1: 1rem;
|
--font-size-1: 1rem;
|
||||||
--font-size-2: 3rem;
|
--font-size-2: 3rem;
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--color-background: #eee;
|
--color-background: #eee;
|
||||||
--color-text-subtle: #777;
|
--color-text-subtle: #777;
|
||||||
--color-text: #111;
|
--color-text: #000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -42,24 +42,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const COMMANDS = new Map([
|
const COMMANDS = new Map([
|
||||||
['a', { name: 'chat', url: 'https://chat.openai.com' }],
|
['a', { name: 'Chat', url: 'https://chat.openai.com' }],
|
||||||
['b', { name: 'drbl', url: 'https://dribbble.com/shots/recent' }],
|
['b', { name: 'Dribbble', url: 'https://dribbble.com/shots/recent' }],
|
||||||
['c', { name: 'date', url: 'https://calendar.google.com' }],
|
['c', { name: 'Calendar', url: 'https://calendar.google.com' }],
|
||||||
['d', { name: 'driv', url: 'https://drive.google.com' }],
|
['d', { name: 'Drive', url: 'https://drive.google.com' }],
|
||||||
['f', { name: 'fgma', url: 'https://www.figma.com' }],
|
['f', { name: 'Figma', url: 'https://www.figma.com' }],
|
||||||
['g', { name: 'code', url: 'https://github.com' }],
|
['g', { name: 'GitHub', url: 'https://github.com' }],
|
||||||
['k', { name: 'keep', url: 'https://keep.google.com' }],
|
['k', { name: 'Keep', url: 'https://keep.google.com' }],
|
||||||
['m', { name: 'mail', url: 'https://mail.proton.me/u/0/inbox' }],
|
['m', { name: 'Mail', url: 'https://mail.proton.me/u/0/inbox' }],
|
||||||
['n', { name: 'note', url: 'https://www.notion.so' }],
|
['n', { name: 'Notion', url: 'https://www.notion.so' }],
|
||||||
['p', { name: 'pomo', url: 'https://pomodoro.xvvvyz.xyz/' }],
|
['p', { name: 'Pomodoro', url: 'https://pomodoro.xvvvyz.xyz/' }],
|
||||||
['r', { name: 'rddt', url: 'https://reddit.com' }],
|
['r', { name: 'Reddit', url: 'https://reddit.com' }],
|
||||||
['s', { name: 'supa', url: 'https://supabase.com/dashboard/projects' }],
|
['s', { name: 'Supabase', url: 'https://supabase.com/dashboard/projects' }],
|
||||||
['t', { name: 'deep', url: 'https://www.deepl.com/translator' }],
|
['t', { name: 'Translate', url: 'https://www.deepl.com/translator' }],
|
||||||
['v', { name: 'vrcl', url: 'https://vercel.com/dashboard' }],
|
['v', { name: 'Vercel', url: 'https://vercel.com/dashboard' }],
|
||||||
[
|
[
|
||||||
'y',
|
'y',
|
||||||
{
|
{
|
||||||
name: 'tube',
|
name: 'YouTube',
|
||||||
searchTemplate: '/results?search_query={}',
|
searchTemplate: '/results?search_query={}',
|
||||||
url: 'https://youtube.com/feed/subscriptions',
|
url: 'https://youtube.com/feed/subscriptions',
|
||||||
},
|
},
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
[
|
[
|
||||||
'0',
|
'0',
|
||||||
{
|
{
|
||||||
name: 'host',
|
name: 'localhost',
|
||||||
searchTemplate: ':{}',
|
searchTemplate: ':{}',
|
||||||
suggestions: ['0 54323', '0 54324'],
|
suggestions: ['0 54323', '0 54324'],
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@@ -79,11 +79,12 @@
|
|||||||
<template id="commands-template">
|
<template id="commands-template">
|
||||||
<style>
|
<style>
|
||||||
.commands {
|
.commands {
|
||||||
|
column-gap: 0;
|
||||||
columns: 1;
|
columns: 1;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 7rem;
|
max-width: 10rem;
|
||||||
padding: 0 0 0 var(--space-1);
|
padding: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,10 +92,24 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--space-2);
|
gap: var(--space-2);
|
||||||
outline: 0;
|
outline: 0;
|
||||||
padding: var(--space-1);
|
padding: var(--space-2);
|
||||||
|
position: relative;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.command::after {
|
||||||
|
background: var(--color-text-subtle);
|
||||||
|
content: ' ';
|
||||||
|
inset: 1px;
|
||||||
|
opacity: 0.05;
|
||||||
|
position: absolute;
|
||||||
|
transition: opacity var(--transition-speed);
|
||||||
|
}
|
||||||
|
|
||||||
|
.command:where(:focus, :hover)::after {
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
.key {
|
.key {
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -111,24 +126,17 @@
|
|||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 400px) {
|
@media (min-width: 500px) {
|
||||||
.commands {
|
.commands {
|
||||||
columns: 2;
|
columns: 2;
|
||||||
max-width: 15rem;
|
max-width: 25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 800px) {
|
@media (min-width: 900px) {
|
||||||
.commands {
|
.commands {
|
||||||
columns: 4;
|
columns: 4;
|
||||||
max-width: 30rem;
|
max-width: 45rem;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1400px) {
|
|
||||||
.commands {
|
|
||||||
columns: 8;
|
|
||||||
max-width: 60rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user