Skip to content

Commit d90045a

Browse files
authored
Merge pull request #16 from oslabs-beta/megan/editdeletemenu
Styling updates for Edit/DeleteMenu
2 parents 7684e6f + cad9dee commit d90045a

22 files changed

+264
-224
lines changed

src/components/ComponentDisplay.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ Description:
3939
<q-menu context-menu>
4040
<q-list color="black" class="menu">
4141
<q-item clickable v-ripple v-close-popup @click="handleExportComponent">
42-
<q-item-section style="color: white"
42+
<q-item-section style="color: menutext"
4343
>Export Component</q-item-section
4444
>
4545
<q-item-section avatar>
4646
<q-icon color="primary" name="upload" />
4747
</q-item-section>
4848
</q-item>
4949
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
50-
<q-item-section style="color: white"
50+
<q-item-section style="color: menutext"
5151
>Update Children</q-item-section
5252
>
5353
<q-item-section avatar>
5454
<q-icon color="primary" name="add" />
5555
</q-item-section>
5656
</q-item>
5757
<q-item clickable v-ripple v-close-popup>
58-
<q-item-section class="layer" style="color: white"
58+
<q-item-section class="layer" style="color: menutext"
5959
>Layer</q-item-section
6060
>
6161
<q-btn
@@ -65,7 +65,7 @@ Description:
6565
label="-"
6666
@click="(e) => handleLayer(e)"
6767
/>
68-
<p id="counter" style="color: white">{{ componentData.z }}</p>
68+
<p id="counter" style="color: menutext">{{ componentData.z }}</p>
6969
<q-btn
7070
class="btn"
7171
color="transparent"
@@ -404,7 +404,7 @@ export default {
404404
top: -18px;
405405
left: 2px;
406406
color: black;
407-
-webkit-text-stroke: 0.4px white;
407+
-webkit-text-stroke: 0.4px $menutext;
408408
font-weight: 800;
409409
line-height: 1.2;
410410
z-index: -1;
@@ -460,9 +460,9 @@ export default {
460460
margin-bottom: 0px !important;
461461
}
462462
.component-box {
463-
color: white;
464-
border: 1.2px dashed rgb(231, 203, 75);
465-
background-color: rgba(172, 83, 83, 0.42);
463+
color: $menutext;
464+
border: 1.2px dashed $darktext;
465+
background-color: rgba($darktext, .42);
466466
-webkit-transition: background-color 200ms linear;
467467
-ms-transition: background-color 200ms linear;
468468
transition: background-color 200ms linear;
@@ -482,7 +482,7 @@ export default {
482482
.btn:hover,
483483
.btn:focus,
484484
.btn:active {
485-
color: white;
485+
color: $menutext;
486486
background-color: transparent;
487487
}
488488
#counter {

src/components/dashboard_items/Dashboard.vue

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ Description:
1717
dense
1818
breakpoint="1050"
1919
>
20-
<q-tab
21-
name="detail"
22-
label="Component Details"
23-
id="label-text"
20+
<q-tab name="detail" label="Component Details" id="label-text"
2421
></q-tab>
2522
<q-tab name="tree" label="Project Tree" id="label-text"
2623
></q-tab>
@@ -145,18 +142,10 @@ i {
145142
padding: 5px;
146143
}
147144
148-
/* this class selector does not change anything */
149-
.q-tab__label {
150-
/* // font-size not changing */
151-
font-size: 10px !important;
152-
line-height: 1.718em;
153-
font-weight: 500;
154-
}
155-
156145
/* // changes the tab label styling */
157146
#label-text {
158147
font-size: 4px !important;
159-
text-transform: capitalize;
148+
text-transform: uppercase;
160149
}
161150
162151
.q-tab-panel {

src/components/dashboard_items/HTMLQueue.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ li {
142142
min-width: 175px;
143143
width: 30%;
144144
border-radius: 0.5cm;
145-
border: 2px solid white;
145+
border: 2px solid $menutext;
146146
background-color: $secondary;
147147
height: 35px;
148148
padding-top: 6px;
@@ -151,7 +151,7 @@ li {
151151
152152
.fa-trash:hover {
153153
cursor: pointer;
154-
color: red;
154+
color: $darktext;
155155
}
156156
157157
.fa-trash {
@@ -169,7 +169,7 @@ li {
169169
170170
.fa-angle-double-down:hover {
171171
cursor: pointer;
172-
color: #41B883;
172+
color: $darktext;
173173
}
174174
175175
.fa-chevron-up {

src/components/dashboard_items/RouteDisplay.vue

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,30 @@ Includes functionality to:
55
-->
66

77
<template>
8-
<div>
8+
<div class="route-display">
99
<q-input
1010
@keyup.enter="handleEnterKeyPress"
11-
standout="bg-secondary text-white"
11+
color="menutext"
12+
dark
13+
outlined
1214
bottom-slots
1315
v-model="newRoute"
14-
label="Enter new route"
16+
label="Add new route"
1517
dense
18+
no-error-icon
1619
class="input-add"
1720
@click="resetActiveComponent"
18-
></q-input>
19-
21+
reactive-rules
22+
:rules="[val => !Object.keys(this.componentMap).includes(val) || 'A component with this name already exists' ]"
23+
>
24+
<template v-slot:append>
25+
<q-btn
26+
flat
27+
icon="add"
28+
@click="handleEnterKeyPress"
29+
/>
30+
</template>
31+
</q-input>
2032
<Routes></Routes>
2133
</div>
2234
</template>
@@ -65,13 +77,8 @@ export default {
6577

6678
<style scoped>
6779
.route-display {
68-
border: 1px solid rgba(208, 208, 208, 0.694);
6980
overflow: auto;
70-
height: 60%;
71-
padding: 0;
72-
margin: 1rem;
73-
padding: 0.5rem;
74-
border-radius: 5px;
81+
padding: 1rem;
7582
}
7683
7784
i:hover {

src/components/dashboard_items/Routes.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Description:
55
-->
66

77
<template>
8-
<div class="home-sidebar">
8+
<div>
9+
<p>Click to view route</p>
910
<a
1011
:class="route === activeRoute ? 'panel-block is-active' : 'panel-block'"
1112
v-for="route in Object.keys(routes)"
@@ -47,9 +48,5 @@ export default {
4748
</script>
4849

4950
<style scoped>
50-
.route-view {
51-
margin: 1rem;
52-
display: flex;
53-
flex-direction: column;
54-
}
51+
5552
</style>

src/components/dashboard_items/Tree.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,24 +179,23 @@ export default {
179179
min-width: 80%;
180180
margin: 6px;
181181
min-height: 28px;
182-
color: #FFFFFF;
182+
color: $menutext;
183183
background-color: $secondary;
184184
text-align: center;
185185
line-height: 28px;
186-
border-radius: 3px;
186+
border-radius: 4px;
187187
word-wrap: break-word;
188188
}
189189
190190
.tree-node-active {
191191
background-color: $accent;
192-
color: #155158;
193-
border: 2px solid rgb(196, 154, 19);
192+
color: $darktext;
193+
border: 2px solid $menutext;
194194
}
195195
196196
.tree-node-activeRoute {
197-
background-color: $accent;
198-
color: #155158;
199-
border: 2px solid rgb(196, 154, 19);
197+
background-color: $darktext;
198+
border: 2px solid $menutext;
200199
}
201200
202201

src/components/dashboard_items/tutorial/AdvancedFunctions.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<!--Typescript option, mock image?, nested HTML elements, import component/limitations -->
3-
Advanced Functions Here!
4-
<q-btn
3+
<p>Advanced Functions Here!</p>
4+
<q-btn
55
id="tut-btn"
66
color="secondary"
77
label="Get Started with OverVue"

src/components/home_sidebar_items/ComponentTab/AddProps.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
<template>
22
<div>
33
<q-input
4-
@keyup.enter.native="createNewProp(textProps)"
5-
standout="bg-secondary text-white"
4+
@keyup.enter="createNewProp(textProps)"
5+
color="menutext"
6+
dark
7+
outlined
68
bottom-slots
79
v-model="textProps"
8-
label="Create Prop"
10+
label="Create new prop"
911
dense
1012
class="input-add"
1113
v-on:keyup.delete.stop
1214
>
1315
<template v-slot:append>
14-
<q-btn round dense flat icon="add" @click="createNewProp(textProps)" />
16+
<q-btn dense flat icon="add" @click="createNewProp(textProps)" />
1517
</template>
1618
</q-input>
1719

1820
<div id="props-select">
1921
<VueMultiselect
2022
v-model="selectProps"
2123
class="multiselect"
22-
placeholder="Select Props for Component"
24+
placeholder="Select from existing props"
2325
:multiple="true"
2426
:close-on-select="false"
2527
:max-height="180"
@@ -29,7 +31,7 @@
2931
:searchable="false"
3032
@search-change="stopDelete($event)"
3133
>
32-
<span slot="noResult">No props found.</span>
34+
<template v-slot:noResult>No props found.</template>
3335
</VueMultiselect>
3436
</div>
3537
<br />
@@ -94,3 +96,9 @@ export default {
9496
},
9597
};
9698
</script>
99+
100+
<style lang="scss" scoped>
101+
.q-field {
102+
margin: 30px 0 10px;
103+
}
104+
</style>

src/components/home_sidebar_items/ComponentTab/ComponentActions.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<template>
10-
<div>
10+
<div class="selection-container">
1111
<div id="action-select">
1212
<VueMultiselect
1313
v-model="selectAction"
@@ -98,7 +98,7 @@ export default {
9898
]),
9999
// Prevent Delete on changes to searchable multiselect
100100
stopDelete(e) {
101-
if (e.code === "Backspce") e.stopPropogation();
101+
if (e.code === "Backspace") e.stopPropogation();
102102
// console.log(e);
103103
},
104104
// adds an action to the currently selected component
@@ -112,3 +112,9 @@ export default {
112112
},
113113
};
114114
</script>
115+
116+
<style lang="scss" scoped>
117+
.selection-container {
118+
padding: 30px 0;
119+
}
120+
</style>

src/components/home_sidebar_items/ComponentTab/ComponentState.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
<template>
10-
<div>
10+
<div class="selection-container">
1111
<div id="state-select">
1212
<VueMultiselect
1313
v-model="selectState"
@@ -111,3 +111,9 @@ export default {
111111
},
112112
};
113113
</script>
114+
115+
<style lang="scss" scoped>
116+
.selection-container {
117+
padding: 30px 0;
118+
}
119+
</style>

0 commit comments

Comments
 (0)