|
1 | 1 | <template>
|
2 |
| - <q-footer reveal elevated class="gradient text-white" :style="{ height: `${height}vh` }"> |
| 2 | + <q-footer reveal class="gradient text-white" :style="{ height: `${height}vh` }"> |
3 | 3 | <q-toolbar>
|
4 |
| - <q-btn flat color="subaccentbtn" round @click="openBottomDrawer"> |
5 |
| - <i :class="[open ? down : up]"></i> |
| 4 | + <q-btn flat color="subaccent" round @click="openBottomDrawer"> |
| 5 | + <i :class="[open ? down : up]" id="btn" ></i> |
6 | 6 | </q-btn>
|
7 | 7 | <q-toolbar-title>Dashboard</q-toolbar-title>
|
8 | 8 | </q-toolbar>
|
|
15 | 15 | indicator-color="secondary"
|
16 | 16 | align="left"
|
17 | 17 | >
|
18 |
| - <q-tab name="code" label="Code" /> |
19 |
| - <q-tab name="tree" label="Tree" /> |
20 |
| - <q-tab name="html" label="HTML Elements" /> |
| 18 | + <q-tab name="code" label="Code" id="label-text"/> |
| 19 | + <q-tab name="detail" label="Component Details" id="label-text"/> |
| 20 | + <q-tab name="tree" label="Tree" id="label-text"/> |
| 21 | + <q-tab name="html" label="HTML Elements" id="label-text"/> |
21 | 22 | </q-tabs>
|
22 | 23 |
|
23 | 24 | <q-tab-panels v-model="tab" animated class="bg-primary text-white">
|
24 | 25 | <q-tab-panel name="code">
|
25 | 26 | </q-tab-panel>
|
26 | 27 |
|
| 28 | + <q-tab-panel name="detail"> |
| 29 | + </q-tab-panel> |
| 30 | + |
27 | 31 | <q-tab-panel name="tree">
|
28 | 32 | <Tree />
|
29 | 33 | </q-tab-panel>
|
@@ -56,27 +60,60 @@ export default {
|
56 | 60 | },
|
57 | 61 | methods: {
|
58 | 62 | openBottomDrawer () {
|
59 |
| - this.height === 35 ? (this.height = 6.5) : (this.height = 35) |
| 63 | + let minHeight = (window.outerHeight < 900) ? 4.5 : 2.5 |
| 64 | + this.height === 35 ? (this.height = minHeight) : (this.height = 35) |
60 | 65 | this.open === true ? this.open = false : this.open = true
|
61 | 66 | }
|
62 | 67 | }
|
63 | 68 | }
|
64 | 69 | </script>
|
65 | 70 |
|
66 |
| -<style lang="stylus"> |
| 71 | +<style lang="stylus" scoped> |
| 72 | +i { |
| 73 | + font-size: 11px; |
| 74 | +} |
| 75 | +.q-btn { |
| 76 | + background: $secondary; |
| 77 | + font-size: 8px; |
| 78 | + margin: 5px; |
| 79 | +} |
| 80 | +// styling for the entire footer |
67 | 81 | .q-footer {
|
68 | 82 | // height: 35vh;
|
69 | 83 | transition-timing-function: ease-in;
|
70 | 84 | transition: 0.2s;
|
| 85 | + background: #313131; |
| 86 | +} |
| 87 | +// changes the footer toolbar height |
| 88 | +.q-toolbar { |
| 89 | + min-height: 25px !important; |
| 90 | + padding: 0 6px !important; |
| 91 | +} |
| 92 | +.q-toolbar__title { |
| 93 | + font-size 14px; |
| 94 | + text-transform: uppercase; |
| 95 | + // font-weight: 700; |
| 96 | + padding: 5px; |
| 97 | +} |
| 98 | +// this class selector does not change anything |
| 99 | +.q-tab__label { |
| 100 | + // font-size not changing |
| 101 | + font-size: 10px !important; |
| 102 | + line-height: 1.718em; |
| 103 | + font-weight: 500; |
| 104 | +} |
| 105 | +// changes the tab label styling |
| 106 | +#label-text { |
| 107 | + font-size: 4px !important; |
| 108 | + text-transform: capitalize; |
71 | 109 | }
|
72 |
| -
|
73 | 110 | .q-tab-panel {
|
74 | 111 | background: rgb(69,77,102);
|
75 | 112 | background: linear-gradient(180deg, rgba(69,77,102,1) 0%, rgba(54,60,78,1) 100%);
|
76 | 113 | }
|
77 |
| -
|
| 114 | +// changes the length of the tab panels |
78 | 115 | .q-tab-panels {
|
79 |
| - height: 24vh; |
| 116 | + height: 31vh; |
80 | 117 | }
|
81 | 118 |
|
82 | 119 | .q-tabs {
|
|
0 commit comments