|
2 | 2 | <q-footer reveal class="gradient text-white" :style="{ height: `${height}vh` }">
|
3 | 3 | <q-toolbar class="toolbar-background">
|
4 | 4 | <q-btn flat color="subaccent" round @click="openBottomDrawer">
|
5 |
| - <i :class="[open ? down : up]" id="btn" ></i> |
| 5 | + <i :class="[open ? down : up]" id="btn"></i> |
6 | 6 | </q-btn>
|
7 |
| - <q-toolbar-title >Dashboard</q-toolbar-title> |
| 7 | + <q-toolbar-title>Dashboard</q-toolbar-title> |
8 | 8 | </q-toolbar>
|
9 |
| - <q-card> |
| 9 | + <q-card id="footer-cards"> |
10 | 10 | <q-tabs
|
11 | 11 | v-model="tab"
|
12 | 12 | dense
|
|
15 | 15 | indicator-color="secondary"
|
16 | 16 | align="left"
|
17 | 17 | >
|
18 |
| - <q-tab name="code" label="Code Snippet" id="label-text"/> |
19 |
| - <q-tab name="detail" label="Component Details" id="label-text"/> |
20 |
| - <q-tab name="tree" label="Project Tree" id="label-text"/> |
21 |
| - <q-tab name="html" label="HTML Elements" id="label-text"/> |
| 18 | + <q-tab name="code" label="Code Snippet" id="label-text" /> |
| 19 | + <q-tab name="detail" label="Component Details" id="label-text" /> |
| 20 | + <q-tab name="tree" label="Project Tree" id="label-text" /> |
| 21 | + <q-tab name="html" label="HTML Elements" id="label-text" /> |
22 | 22 | </q-tabs>
|
23 | 23 |
|
24 | 24 | <q-tab-panels v-model="tab" animated class="bg-primary text-white full-footer">
|
|
27 | 27 | </q-tab-panel>
|
28 | 28 |
|
29 | 29 | <q-tab-panel name="detail">
|
30 |
| - <div class="text-h6">Vuex</div> |
31 |
| - Component Info Here |
| 30 | + <div class="text-h6">Vuex</div>Component Info Here |
32 | 31 | </q-tab-panel>
|
33 | 32 |
|
34 | 33 | <q-tab-panel name="tree">
|
|
44 | 43 | </template>
|
45 | 44 |
|
46 | 45 | <script>
|
47 |
| -import Tree from './Tree' |
48 |
| -import HomeQueue from './HomeQueue' |
49 |
| -import CodeSnippet from './CodeSnippet' |
| 46 | +import Tree from "./Tree"; |
| 47 | +import HomeQueue from "./HomeQueue"; |
| 48 | +import CodeSnippet from "./CodeSnippet"; |
50 | 49 |
|
51 | 50 | export default {
|
52 | 51 | components: {
|
53 | 52 | Tree,
|
54 | 53 | HomeQueue,
|
55 | 54 | CodeSnippet
|
56 | 55 | },
|
57 |
| - data () { |
| 56 | + data() { |
58 | 57 | return {
|
59 |
| - tab: 'code', |
| 58 | + tab: "code", |
60 | 59 | open: true,
|
61 | 60 | height: 40,
|
62 |
| - up: 'fas fa-chevron-up', |
63 |
| - down: 'fas fa-chevron-down' |
64 |
| - } |
| 61 | + up: "fas fa-chevron-up", |
| 62 | + down: "fas fa-chevron-down" |
| 63 | + }; |
65 | 64 | },
|
66 | 65 | methods: {
|
67 |
| - openBottomDrawer () { |
| 66 | + openBottomDrawer() { |
68 | 67 | // 15in mb pro - 1027 px 3.75
|
69 | 68 | // big ass screens 2.5
|
70 |
| - let minHeight = (window.outerHeight < 900) ? 4.5 : (window.outerHeight < 1035) ? 3.75 : 2.5 |
71 |
| - this.height === 40 ? (this.height = minHeight) : (this.height = 40) |
72 |
| - this.open === true ? this.open = false : this.open = true |
| 69 | + let minHeight = |
| 70 | + window.outerHeight < 900 ? 4.5 : window.outerHeight < 1035 ? 3.75 : 2.5; |
| 71 | + this.height === 40 ? (this.height = minHeight) : (this.height = 40); |
| 72 | + this.open === true ? (this.open = false) : (this.open = true); |
73 | 73 | }
|
74 | 74 | }
|
75 |
| -} |
| 75 | +}; |
76 | 76 | </script>
|
77 | 77 |
|
78 | 78 | <style lang="stylus" scoped>
|
79 | 79 | i {
|
80 | 80 | font-size: 11px;
|
81 | 81 | }
|
| 82 | +
|
82 | 83 | .q-btn {
|
83 | 84 | // background: $secondary;
|
84 | 85 | font-size: 8px;
|
85 | 86 | margin: 5px;
|
86 | 87 | }
|
| 88 | +
|
87 | 89 | // styling for the entire footer
|
88 | 90 | .q-footer {
|
89 | 91 | // height: 35vh;
|
|
92 | 94 | // background: #313131;
|
93 | 95 | background: #272822;
|
94 | 96 | }
|
| 97 | +
|
95 | 98 | // changes the footer toolbar height
|
96 | 99 | .q-toolbar {
|
97 | 100 | min-height: 25px !important;
|
98 | 101 | padding: 0 6px !important;
|
99 | 102 | }
|
| 103 | +
|
100 | 104 | .q-toolbar__title {
|
101 |
| - font-size 14px; |
| 105 | + font-size: 14px; |
102 | 106 | text-transform: uppercase;
|
103 | 107 | // font-weight: 700;
|
104 | 108 | padding: 5px;
|
105 | 109 | }
|
| 110 | +
|
106 | 111 | // this class selector does not change anything
|
107 | 112 | .q-tab__label {
|
108 | 113 | // font-size not changing
|
109 | 114 | font-size: 10px !important;
|
110 | 115 | line-height: 1.718em;
|
111 | 116 | font-weight: 500;
|
112 | 117 | }
|
| 118 | +
|
113 | 119 | // changes the tab label styling
|
114 | 120 | #label-text {
|
115 | 121 | font-size: 4px !important;
|
116 | 122 | text-transform: capitalize;
|
117 | 123 | }
|
| 124 | +
|
118 | 125 | .q-tab-panel {
|
119 | 126 | // matchs the code editor bg
|
120 |
| - background: #272822 |
| 127 | + background: #272822; |
121 | 128 | // background: rgb(69,77,102);
|
122 | 129 | // background: linear-gradient(180deg, rgba(69,77,102,1) 0%, rgba(54,60,78,1) 100%);
|
123 | 130 | }
|
| 131 | +
|
124 | 132 | // changes the length of the tab panels
|
125 | 133 | .q-tab-panels {
|
126 |
| - height: 31vh; |
| 134 | + height: 90%; |
127 | 135 | padding: 0px !important;
|
128 | 136 | }
|
| 137 | +
|
129 | 138 | .q-tabs {
|
130 | 139 | background: #11120F;
|
131 | 140 | }
|
| 141 | +
|
132 | 142 | .toolbar-background {
|
133 | 143 | background: black;
|
134 | 144 | }
|
| 145 | +
|
135 | 146 | .full-footer {
|
136 | 147 | // height: 100vh;
|
137 | 148 | padding-bottom: 0px;
|
138 | 149 | }
|
| 150 | +
|
| 151 | +#footer-cards { |
| 152 | + height: 100%; |
| 153 | + border-radius: 0px; |
| 154 | + background: #737578; |
| 155 | +} |
139 | 156 | </style>
|
0 commit comments