using grid for layout

mic_level
Matt Huntington 3 years ago
parent d6ca7de7df
commit 12e75c34c3

@ -5,10 +5,6 @@ td,th {
th {
background:lightgrey;
}
h2 {
display:inline;
}
tbody tr:nth-child(even) td{
background:#eeeeee;
}

@ -7,9 +7,6 @@
</script>
<template>
<header>
<h1>Practice Tracker</h1>
</header>
<main>
<section>
<MinsLeftToPracticeToday/>
@ -17,6 +14,8 @@
</section>
<section>
<Summary/>
</section>
<section>
<ShowCategory/>
<Songs/>
</section>
@ -24,11 +23,12 @@
</template>
<style scoped>
section {
float:left;
width:25%;
main {
display:grid;
grid-template-columns: repeat(3, minmax(10px, 1fr));
grid-template-rows: minmax(10px, 100vh);
}
section:nth-child(2) {
width:75%;
section {
overflow:scroll;
}
</style>

@ -23,8 +23,7 @@
</script>
<template>
<details>
<summary><h2>Show Category</h2></summary>
<h2>Show Category</h2>
<select @change="change">
<option v-for="category in categories" v-bind:value="category.id">
{{category.id}}.
@ -59,7 +58,6 @@
</tr>
</tbody>
</table>
</details>
</template>
<style scoped>

@ -16,8 +16,7 @@
</script>
<template>
<details>
<summary><h2>Songs</h2></summary>
<h2>Songs</h2>
<table>
<thead>
<tr>
@ -34,7 +33,6 @@
</tr>
</tbody>
</table>
</details>
</template>
<style scoped>

@ -23,8 +23,7 @@
</script>
<template>
<details>
<summary><h2 @click="refresh">Summary</h2></summary>
<h2 @click="refresh">Summary</h2>
<table>
<thead>
<tr>
@ -45,7 +44,6 @@
</tr>
</tbody>
</table>
</details>
</template>
<style scoped>

@ -92,8 +92,7 @@
</script>
<template>
<details :class="{running:running}">
<summary><h2>Timer</h2></summary>
<h2>Timer</h2>
<em>
{{formatTime(totalSeconds)}}
</em>
@ -122,7 +121,6 @@
<input type="Submit"/>
</form>
</details>
</template>
<style scoped>

Loading…
Cancel
Save