* add option to center center vertically, this makes it possible to show full screen dialogs which centered elements. i.e. for an exit dialog * improve dynamic line and update themes
123 lines
2.4 KiB
CSS
123 lines
2.4 KiB
CSS
:root {
|
|
--bg-blur: rgba(33, 33, 33, 0.6);
|
|
--entry-hover: rgba(255, 255, 255, 0.08);
|
|
--entry-selected: rgba(214, 174, 0, 0.2);
|
|
--search-bg: rgba(32, 32, 32, 0.6);
|
|
--search-border: rgba(214, 174, 0, 1);
|
|
--text-color: #f2f2f2;
|
|
--font: 'DejaVu Sans', 'Segoe UI', sans-serif;
|
|
--transition: 0.2s ease;
|
|
}
|
|
|
|
/* General Reset */
|
|
* {
|
|
font-family: var(--font);
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
}
|
|
|
|
#background {
|
|
background-color: rgba(33, 33, 33, 0.1);
|
|
backdrop-filter: blur(12px);
|
|
width: 100vw;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
padding: 4rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
#window {
|
|
all: unset;
|
|
background-color: transparent;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 2em 15em 5em;
|
|
}
|
|
|
|
/* Outer-box is the app container grid */
|
|
#outer-box {
|
|
border-radius: 60px;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
gap: 2rem;
|
|
padding: 1rem;
|
|
justify-items: center;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Search input styling */
|
|
#input {
|
|
background-color: var(--search-bg);
|
|
color: var(--text-color);
|
|
border-bottom: 2px solid var(--search-border);
|
|
padding: 0.8rem 1rem;
|
|
font-size: 1rem;
|
|
border-radius: 6px;
|
|
text-align: center;
|
|
outline: none;
|
|
margin: 2em 25em 5em;
|
|
}
|
|
|
|
#input:focus,
|
|
#input:focus-visible,
|
|
#input:active {
|
|
all: unset;
|
|
background-color: var(--search-bg);
|
|
color: var(--text-color);
|
|
border-bottom: 2px solid rgba(214, 174, 2, 1);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Entry styling */
|
|
#scroll #inner-box #entry {
|
|
color: #fff;
|
|
background-color: rgba(32, 32, 32, 0);
|
|
padding: 1rem;
|
|
margin: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
transition: background-color var(--transition), transform var(--transition);
|
|
}
|
|
|
|
#entry:hover {
|
|
background-color: rgba(255, 255, 255, 1);
|
|
transform: scale(1.3);
|
|
}
|
|
|
|
#entry:selected {
|
|
color: #fff;
|
|
background-color: var(--entry-selected);
|
|
border-bottom: 3px solid var(--search-border);
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
/* Icon inside entry */
|
|
#img {
|
|
margin-right: 0.5rem;
|
|
width: 64px;
|
|
height: 64px;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Text below icon */
|
|
#text {
|
|
margin-top: 1rem;
|
|
margin-bottom: 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Avoid hover highlight on rows outside entries */
|
|
#row:hover {
|
|
background-color: transparent;
|
|
outline: inherit;
|
|
border-width: 0;
|
|
}
|