Skip to content

Commit c4fbe91

Browse files
authored
Merge pull request #12 from oslabs-beta/keyla/dragAndDrop
Keyla/drag and drop
2 parents 45811d5 + bf124c5 commit c4fbe91

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/components/left-sidebar/ComponentTab/CreateMenuHTMLQueue.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,12 @@ li {
169169
height: 35px;
170170
padding-top: 6px;
171171
text-align: center;
172+
cursor: move;
172173
}
173174
174175
.list-group-item-selected {
175176
display: inline-block;
176-
margin: 2px 1.5%;
177+
margin: 4px 1.5%;
177178
min-width: 175px;
178179
width: 30%;
179180
border-radius: 0.5cm;
@@ -182,6 +183,7 @@ li {
182183
height: 35px;
183184
padding-top: 6px;
184185
text-align: center;
186+
cursor: move;
185187
}
186188
187189
.fa-trash:hover {
@@ -224,4 +226,12 @@ li {
224226
hr {
225227
border: 1px solid grey
226228
}
229+
230+
.currentlyDragging {
231+
opacity: .5;
232+
}
233+
234+
.ignoreByDragover {
235+
pointer-events: none;
236+
}
227237
</style>

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default {
7474
// Creates beginner boilerplate
7575
createTemplate(componentName) {
7676
let templateTagStr = this.writeTemplateTag(componentName);
77-
77+
7878
//if/else statement to determine if there are class and id attributes present in the html element
7979
if (this.activeComponentObj.htmlAttributes.class !== "" && this.activeComponentObj.htmlAttributes.id !== "") {
8080
return `<template>\n <div id = "${this.activeComponentObj.htmlAttributes.id}" class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ hr {
331331
}
332332
333333
334-
335-
336334
.AttributeBox {
337335
background-color: $subsecondary;
338336
color: $menutext;

0 commit comments

Comments
 (0)