using grid for layout

mic_level
Matt Huntington 3 years ago
parent d6ca7de7df
commit 12e75c34c3

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

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

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

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

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

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

Loading…
Cancel
Save