Compare commits

...

2 Commits

Author SHA1 Message Date
supisara fa7a4d1bf5 workbook 2 years ago
supisara 5045a7124a workbook
Co-authored-by: FL <lzzfnc@users.noreply.github.com>
2 years ago

@ -0,0 +1,168 @@
* {
box-sizing: border-box;
}
html, body {
font-family: sans-serif;
}
a {
color: currentColor;
text-decoration: none;
}
a:hover {
opacity: 0.5;
}
header {
width: 100%;
display: flex;
justify-content: space-between;
padding: 8px;
font-size: 32px;
}
header > * {
flex-shrink: 0;
}
header .title {
margin: 0;
margin-right: 32px;
font-size: 32px;
font-weight: normal;
}
.path-slash {
margin: 0 4px;
}
.parent {
/* color: rgb(147, 149, 161); */
}
.search {
position: relative;
display: inline-block;
height: 32px;
margin-left: auto;
overflow: hidden;
flex: 0 0 32px;
transition: flex 0.3s ease-in;
}
.search:hover{
transition: flex 0.6s ease-out;
flex: 1 0 auto;
}
.search svg {
width: 32px;
height: 32px;
padding: 4px;
margin: 0;
}
.search input {
border: none;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 32px;
outline: none;
border-bottom: 1px solid currentColor;
font-size: 32px;
padding: 0;
padding-left: 4px;
background: none;
}
main {
padding: 0 8px;
}
.list {
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 16px;
}
.card {
/* transform: skew(14deg); */
aspect-ratio: 1;
border: 1px solid currentColor;
padding: 32px;
font-stretch: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 32px;
text-align: center;
}
.card:hover {
background-color: grey;
}
.card > * {
/* transform: skew(-28deg); */
}
.card svg {
width: 32px;
height: 32px;
}
@media (max-width: 767px){
header {
display: block;
font-size: 28px;
}
header .title {
display: inline;
font-size: 28px;
}
.search {
margin-top: 16px;
display: block;
}
.search input {
font-size: 28px;
}
}

@ -0,0 +1,4 @@
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="25" y1="4.37114e-08" x2="25" y2="48" stroke="currentColor" stroke-width="2"/>
<line x1="48" y1="25" x2="-8.74228e-08" y2="25" stroke="currentColor" stroke-width="2"/>
</svg>

After

Width:  |  Height:  |  Size: 280 B

@ -0,0 +1,4 @@
<svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="20.0607" y1="22.9393" x2="29.0607" y2="31.9393" stroke="currentColor" stroke-width="3"/>
<circle cx="13" cy="13" r="11.5" stroke="currentColor" stroke-width="3"/>
</svg>

After

Width:  |  Height:  |  Size: 284 B

@ -0,0 +1,4 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<line y1="-1" x2="32" y2="-1" transform="matrix(-1 0 0 1 32 19)" stroke="currentColor" stroke-width="2"/>
<line y1="-1" x2="32" y2="-1" transform="matrix(0.611839 0.790982 0.790982 -0.611839 6.42188 3.34473)" stroke="currentColor" stroke-width="2"/>
</svg>

After

Width:  |  Height:  |  Size: 353 B

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>workbook - instruments</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<div class="topnav">
<!-- <a class="active" href="#instruments">Instruments</a> -->
<a href="./index.html">Home</a>
<a href="./sessions.html">Sessions</a>
<a href="/.about.html">About</a>
</div>
<h1>Instruments</h1>
<ul>
<li><a href="./instruments-add.html">Add</a></li>
<li><a href="./instruments-view.html">View</a></li>
<li><a href="./instruments-search.html">Search</a></li>
</ul>
</body>
<script type="text/javascript" src="js/main.js"></script>
</html>

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>workbook</title>
<link rel="stylesheet" href="assets/css/global.css">
<link rel="stylesheet" href="assets/css/workbook.css" />
<script type="text/javascript" src="js/main.js" defer></script>
</head>
<body>
<header>
<a href="index.html" class="parent">Home</a>
<span class="path-slash">
/
</span>
<h2 class="title">Workbook</h2>
<div class="search">
<svg class="icon" width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="20.0607" y1="22.9393" x2="29.0607" y2="31.9393" stroke="currentColor" stroke-width="3"/>
<circle cx="13" cy="13" r="11.5" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="text" name="search" id="search" />
</div>
</header>
<main>
<ul class="instruments list">
<li class="card"><a href="new-instrument.html">
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="25" y1="4.37114e-08" x2="25" y2="48" stroke="currentColor" stroke-width="3"/>
<line x1="48" y1="25" x2="-8.74228e-08" y2="25" stroke="currentColor" stroke-width="3"/>
</svg>
</a>
</li>
<li class="card"><a href="patches.html">All</a></li>
<li class="card"><a href="patches.html">Bastl Drum</a></li>
<li class="card"><a href="patches.html">Bastl Kastle</a></li>
<li class="card"><a href="patches.html">Bastl Microgranny 2</a></li>
<li class="card"><a href="patches.html">Vellman Signal Generator</a></li>
<li class="card"><a href="patches.html">Microkorg</a></li>
<li class="card"><a href="patches.html">Breadboard synth</a></li>
<li class="card"><a href="patches.html">Coil</a></li>
<li class="card"><a href="patches.html">Jian</a></li>
</ul>
</main>
</body>
</html>
Loading…
Cancel
Save