Skip to content

Commit 192fe96

Browse files
authored
Merge pull request #25 from keliphan/visualStretch
styling fixes
2 parents d4d97dd + 930b80f commit 192fe96

File tree

2 files changed

+36
-26
lines changed

2 files changed

+36
-26
lines changed

src/components/HomeQueue.vue

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@
55
<span class='list-title' v-else-if='this.activeComponent !==""'> Viewing Elements in '{{ this.activeComponent }}' </span>
66
<span class='list-title' v-else> Elements in Queue </span>
77
<hr>
8-
<draggable
8+
<div
99
v-model="renderList"
1010
group="people"
1111
class="list-group"
12-
ghost-class="ghost"
13-
@start="drag = true"
14-
@end="drag = false"
1512
>
16-
<div :class="activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'" @dblclick.self="setActiveElement(element)" v-for="(element) in renderList" :key="element[1] + Date.now()">
13+
14+
<div
15+
:class="activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'"
16+
@dblclick.self="setActiveElement(element)"
17+
v-for="(element) in renderList" :key="element[1] + Date.now()"
18+
>
1719
<!-- <i class="fas fa fa-angle-double-down fa-md" @click="setLayer({text: element[0], id: element[2]})"></i> -->
1820
<i v-if='activeComponent === "" ' class="fas fa fa-angle-double-down fa-md" id="unavailable"></i>
1921
<i v-else class="fas fa fa-angle-double-down fa-md" @click="setLayer({text: element[0], id: element[2]})"></i>
20-
<!-- <i class="fas fa fa-angle-double-down fa-md" @click="setLayer({text: element[0], id: element[2]})"></i> -->
2122
{{ element[0] }}
2223
<i class="fas fa fa-trash fa-md" @click.self="deleteElement([element[1],element[2]])"></i>
2324
</div>
24-
</draggable>
25+
26+
</div>
2527
</section>
2628
</template>
2729

@@ -90,7 +92,9 @@ export default {
9092
else this.$store.dispatch(deleteFromComponentHtmlList, id[1])
9193
},
9294
setActiveElement (element) {
93-
this.setActiveHTML(element)
95+
if (this.activeComponent !== '') {
96+
this.setActiveHTML(element)
97+
}
9498
},
9599
setLayer (element) {
96100
this.setActiveLayer(element)
@@ -110,15 +114,12 @@ export default {
110114
this.depth = newTitle
111115
},
112116
handleClick (event) {
113-
console.log(event.target)
117+
// console.log(event.target)
114118
if (event.target.className === 'home-queue') {
115119
if (!(this.activeHTML === '')) this.setActiveHTML([''])
116120
}
117121
}
118122
},
119-
components: {
120-
draggable
121-
},
122123
watch: {
123124
activeComponent: function () {
124125
// console.log('watching activeComponent in HomeQueue')
@@ -210,7 +211,7 @@ li {
210211
}
211212
212213
#unavailable {
213-
color: grey;
214+
color: #686868;
214215
cursor: default
215216
}
216217

src/css/app.styl

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,30 @@ main {
2727
// background: rgb(22,108,105);
2828
// background: linear-gradient(36deg, rgba(22,108,105,1) 0%, rgba(20,32,23,1) 100%);
2929
}
30-
// ::-webkit-scrollbar {
31-
// width: 2px;
32-
// }
3330

34-
::-webkit-scrollbar {
35-
width: 12px;
31+
::-webkit-scrollbar
32+
{
33+
width: 10px;
34+
background-color: $subsecondary;
3635
}
37-
38-
::-webkit-scrollbar-track {
39-
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
40-
border-radius: 10px;
36+
37+
::-webkit-scrollbar-track
38+
{
39+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
40+
border-radius: 10px;
41+
background-color: $subsecondary;
4142
}
42-
43-
::-webkit-scrollbar-thumb {
44-
border-radius: 10px;
45-
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
43+
44+
::-webkit-scrollbar-thumb
45+
{
46+
border-radius: 10px;
47+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
48+
background-color: #303030;
4649
}
4750

51+
::-webkit-scrollbar-thumb:hover
52+
{
53+
border-radius: 10px;
54+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
55+
background-color: #404040;
56+
}

0 commit comments

Comments
 (0)