style tiles

This commit is contained in:
hippoz 2021-10-27 01:32:50 +03:00
parent 91a23d89e9
commit 4702e1b279
No known key found for this signature in database
GPG key ID: 7C52899193467641
5 changed files with 28 additions and 8 deletions

View file

@ -8,7 +8,7 @@
--inchworm: #B9E769; --inchworm: #B9E769;
--corn: #EFEA5A; --corn: #EFEA5A;
--fuzzy-wuzzy: #C16E70; --fuzzy-wuzzy: #C16E70;
--old-rose: #C77B7D; --old-rose: #CE8D8F;
} }
html, body { html, body {

View file

@ -8,19 +8,26 @@
<style> <style>
.app-tile { .app-tile {
padding: 0.8em; padding: 0.5rem;
margin: 0.6em; margin: 2rem;
background-color: var(--fuzzy-wuzzy); background-color: var(--fuzzy-wuzzy);
border-radius: 1.5rem; border-radius: 2rem;
min-width: 2em; min-width: 5rem;
min-height: 2em; min-height: 5rem;
border: none; border: none;
font-size: 3em; font-size: 2.5em;
user-select: none; user-select: none;
box-sizing: border-box; box-sizing: border-box;
transition-duration: 0.256s;
} }
.app-tile:hover { .app-tile:hover {
background-color: var(--old-rose); background-color: var(--old-rose);
transform: scale(1.087);
}
.app-tile:active {
transform: scale(0.95);
transition-duration: 0.095s;
} }
</style> </style>

View file

@ -19,6 +19,8 @@
gap: 0px 0px; gap: 0px 0px;
grid-auto-flow: row dense; grid-auto-flow: row dense;
overflow-y: auto;
width: clamp(10%, 1000px, 90%); width: clamp(10%, 1000px, 90%);
height: 100%; height: 100%;
margin: auto; margin: auto;

View file

@ -4,9 +4,11 @@ const path = require('path');
const createWindow = () => { const createWindow = () => {
const mainWindow = new BrowserWindow({ const mainWindow = new BrowserWindow({
width: 800, width: 800,
height: 600, height: 600
}); });
mainWindow.setMenuBarVisibility(false);
mainWindow.loadFile(path.join(__dirname, '../public/index.html')); mainWindow.loadFile(path.join(__dirname, '../public/index.html'));
mainWindow.webContents.openDevTools(); mainWindow.webContents.openDevTools();
}; };

View file

@ -10,6 +10,15 @@ const app = new App({
{ {
name: "Ratly" name: "Ratly"
}, },
{
name: "deadmau5"
},
{
name: "deadmau5"
},
{
name: "deadmau5"
},
{ {
name: "deadmau5" name: "deadmau5"
} }