33
33
:onResizeStart =" recordInitialSize"
34
34
>
35
35
<div class =" component-title" >
36
- <p style = " color : black " >{{ componentData.componentName }}</p >
36
+ <p >{{ componentData.componentName }}</p >
37
37
</div >
38
38
<q-icon v-if =" this.componentMap[componentData.componentName]?.noteList?.length > 0"
39
- color =" red"
40
39
size =" 30px"
41
40
z-layer =" 0"
42
41
name =" edit_note"
43
42
class =" compNoteLogo"
44
43
@click =" handleAddNotes" />
45
44
<q-icon v-else
46
- color =" white"
47
45
size =" 30px"
48
46
z-layer =" 0"
49
47
name =" edit_note"
50
- class =" compNoteLogo "
48
+ class =" compNoteLogoEmpty "
51
49
@click =" handleAddNotes" />
52
50
<q-menu context-menu >
53
51
<q-list color =" black" class =" menu" >
54
- <q-item clickable v-ripple v-close-popup @click =" handleExportComponent" >
55
- <q-item-section style =" color : menutext "
56
- >Export Component</q-item-section
57
- >
58
- <q-item-section avatar >
59
- <q-icon color =" primary" name =" upload" />
60
- </q-item-section >
61
- </q-item >
62
52
<q-item clickable v-ripple v-close-popup @click =" handleAddNotes" >
63
- <q-item-section style =" color : white "
64
- >Component Notes</q-item-section
65
- >
53
+ <q-item-section >Component Notes</q-item-section >
66
54
<q-item-section avatar >
67
- <q-icon color =" primary" name =" edit_note" />
68
- </q-item-section >
55
+ <q-icon color =" primary" name =" edit_note" />
56
+ </q-item-section >
69
57
</q-item >
70
58
<q-item clickable v-ripple v-close-popup @click =" handleAddChild" >
71
- <q-item-section style =" color : menutext "
72
- >Update Children</q-item-section
73
- >
59
+ <q-item-section >Update Children</q-item-section >
74
60
<q-item-section avatar >
75
61
<q-icon color =" primary" name =" add" />
76
62
</q-item-section >
77
63
</q-item >
78
- <q-item clickable v-ripple v-close-popup >
79
- <q-item-section class =" layer" style = " color : menutext "
64
+ <q-item clickable v-ripple v-close-popup id = " layer-item " >
65
+ <q-item-section class =" layer"
80
66
>Layer</q-item-section
81
67
>
82
68
<q-btn
83
- class =" btn "
69
+ class =" minorAction "
84
70
color =" transparent"
85
71
text-color =" primary"
86
- label =" - "
72
+ label =" & ndash ; "
87
73
@click =" (e) => handleLayer(e)"
88
74
/>
89
- <p id =" counter" style = " color : menutext " >{{ componentData.z }}</p >
75
+ <p id =" counter" >{{ componentData.z }}</p >
90
76
<q-btn
91
- class =" btn "
77
+ class =" minorAction "
92
78
color =" transparent"
93
79
text-color =" primary"
94
80
label =" +"
95
81
@click =" (e) => handleLayer(e)"
96
82
/>
97
83
</q-item >
84
+ <q-item clickable v-ripple v-close-popup @click =" handleExportComponent" >
85
+ <q-item-section >Export Component</q-item-section >
86
+ <q-item-section avatar >
87
+ <q-icon color =" primary" name =" upload" />
88
+ </q-item-section >
89
+ </q-item >
98
90
</q-list >
99
91
</q-menu >
100
92
131
123
label =" Add your note here"
132
124
filled
133
125
dark
134
- max-height =15%
126
+ max-height =" 15%"
135
127
autofocus true
136
128
></q-input >
137
129
<q-btn
@@ -553,7 +545,7 @@ li:hover{
553
545
font- size: 16px ;
554
546
top: - 18px ;
555
547
left: 2px ;
556
- color: black ;
548
+ color: $subprimary ;
557
549
- webkit- text- stroke: 0 .4px $menutext;
558
550
font- weight: 800 ;
559
551
line- height: 1.2 ;
@@ -611,15 +603,30 @@ li:hover{
611
603
}
612
604
613
605
.compNoteLogo {
614
- background: $subprimary;
615
- opacity: 90 % ;
606
+ background: rgba ($subprimary, .9 );
607
+ color: $secondary;
608
+ border- radius: 4px ;
609
+ position: absolute;
610
+ top: 4px ;
611
+ left: 4px ;
612
+ }
613
+
614
+ .compNoteLogoEmpty {
615
+ background: rgba ($subprimary, .9 );
616
+ color: rgba ($primary, 1 );
616
617
border- radius: 4px ;
617
618
position: absolute;
618
619
top: 4px ;
619
620
left: 4px ;
620
621
}
621
622
.compNoteLogo : hover{
622
- background: $primary;
623
+ background: rgba ($subprimary, .6 );
624
+ color: rgba ($secondary, .8 );
625
+ }
626
+
627
+ .compNoteLogoEmpty : hover{
628
+ background: rgba ($subprimary, .6 );
629
+ color: rgba ($menutext, .4 );
623
630
}
624
631
625
632
.component - box {
@@ -635,11 +642,10 @@ li:hover{
635
642
background- color: $accent;
636
643
border: 1px dashed $accent;
637
644
}
638
- .btn {
639
- font- size: 25px ;
640
- padding: 0 20px ;
645
+ .minorAction {
646
+ font- weight: bolder ! important;
641
647
width: 10px ;
642
- height: 10px ;
648
+ height: 30px ! important ;
643
649
transition: none;
644
650
}
645
651
.btn : hover,
@@ -648,8 +654,14 @@ li:hover{
648
654
color: $menutext;
649
655
background- color: transparent;
650
656
}
657
+
658
+ #layer- item {
659
+ align- items: center;
660
+ }
661
+
651
662
#counter {
652
- margin- top: 20px ;
663
+ margin: 0 10px 0 ;
664
+ color: $menutext;
653
665
}
654
666
.title {
655
667
font- size: 20px ;
0 commit comments