Skip to content

Commit afb4f48

Browse files
authored
Merge pull request #51 from drewngyen/master
fixed footer styling, and added lodash to latest version
2 parents 7d96cea + 3c67c56 commit afb4f48

File tree

2 files changed

+43
-25
lines changed

2 files changed

+43
-25
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@quasar/extras": "^1.0.0",
15+
"lodash": ">=4.17.13",
1516
"fs-extra": "^8.1.0",
1617
"localforage": "^1.7.3",
1718
"mousetrap": "^1.6.3",

src/components/Footer.vue

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<q-footer reveal class="gradient text-white" :style="{ height: `${height}vh` }">
33
<q-toolbar class="toolbar-background">
44
<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>
66
</q-btn>
7-
<q-toolbar-title >Dashboard</q-toolbar-title>
7+
<q-toolbar-title>Dashboard</q-toolbar-title>
88
</q-toolbar>
9-
<q-card>
9+
<q-card id="footer-cards">
1010
<q-tabs
1111
v-model="tab"
1212
dense
@@ -15,10 +15,10 @@
1515
indicator-color="secondary"
1616
align="left"
1717
>
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" />
2222
</q-tabs>
2323

2424
<q-tab-panels v-model="tab" animated class="bg-primary text-white full-footer">
@@ -27,8 +27,7 @@
2727
</q-tab-panel>
2828

2929
<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
3231
</q-tab-panel>
3332

3433
<q-tab-panel name="tree">
@@ -44,46 +43,49 @@
4443
</template>
4544

4645
<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";
5049
5150
export default {
5251
components: {
5352
Tree,
5453
HomeQueue,
5554
CodeSnippet
5655
},
57-
data () {
56+
data() {
5857
return {
59-
tab: 'code',
58+
tab: "code",
6059
open: true,
6160
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+
};
6564
},
6665
methods: {
67-
openBottomDrawer () {
66+
openBottomDrawer() {
6867
// 15in mb pro - 1027 px 3.75
6968
// 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);
7373
}
7474
}
75-
}
75+
};
7676
</script>
7777

7878
<style lang="stylus" scoped>
7979
i {
8080
font-size: 11px;
8181
}
82+
8283
.q-btn {
8384
// background: $secondary;
8485
font-size: 8px;
8586
margin: 5px;
8687
}
88+
8789
// styling for the entire footer
8890
.q-footer {
8991
// height: 35vh;
@@ -92,48 +94,63 @@ i {
9294
// background: #313131;
9395
background: #272822;
9496
}
97+
9598
// changes the footer toolbar height
9699
.q-toolbar {
97100
min-height: 25px !important;
98101
padding: 0 6px !important;
99102
}
103+
100104
.q-toolbar__title {
101-
font-size 14px;
105+
font-size: 14px;
102106
text-transform: uppercase;
103107
// font-weight: 700;
104108
padding: 5px;
105109
}
110+
106111
// this class selector does not change anything
107112
.q-tab__label {
108113
// font-size not changing
109114
font-size: 10px !important;
110115
line-height: 1.718em;
111116
font-weight: 500;
112117
}
118+
113119
// changes the tab label styling
114120
#label-text {
115121
font-size: 4px !important;
116122
text-transform: capitalize;
117123
}
124+
118125
.q-tab-panel {
119126
// matchs the code editor bg
120-
background: #272822
127+
background: #272822;
121128
// background: rgb(69,77,102);
122129
// background: linear-gradient(180deg, rgba(69,77,102,1) 0%, rgba(54,60,78,1) 100%);
123130
}
131+
124132
// changes the length of the tab panels
125133
.q-tab-panels {
126-
height: 31vh;
134+
height: 90%;
127135
padding: 0px !important;
128136
}
137+
129138
.q-tabs {
130139
background: #11120F;
131140
}
141+
132142
.toolbar-background {
133143
background: black;
134144
}
145+
135146
.full-footer {
136147
// height: 100vh;
137148
padding-bottom: 0px;
138149
}
150+
151+
#footer-cards {
152+
height: 100%;
153+
border-radius: 0px;
154+
background: #737578;
155+
}
139156
</style>

0 commit comments

Comments
 (0)