Skip to content

Commit a3692dc

Browse files
committed
added grid and changed component box styling
1 parent d91eb75 commit a3692dc

File tree

1 file changed

+29
-77
lines changed

1 file changed

+29
-77
lines changed

src/components/ComponentDisplay.vue

Lines changed: 29 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -87,88 +87,40 @@ export default {
8787

8888
<style scoped>
8989
.component-display {
90-
border: 2px dotted rgb(14, 14, 14);
91-
background-color: rgba(242, 234, 228, 0.61);
92-
height: 500px;
93-
width: 500px;
94-
/* height: 70vh; */
95-
/* width: 70vw; */
90+
/* border: 3px dashed rgb(159, 122, 122); */
91+
/* height: 500px; */
92+
/* width: 500px; */
93+
height: 70vh;
94+
width: 70vw;
9695
position: relative;
96+
background-color: rgba(124, 126, 145, 0.44);
97+
/* background-color: #269; */
98+
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
99+
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
100+
background-image: -webkit-linear-gradient(white 2px, transparent 2px),
101+
-webkit-linear-gradient(0, white 2px, transparent 2px),
102+
-webkit-linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
103+
-webkit-linear-gradient(0, rgba(255,255,255,.3) 1px, transparent 1px);
104+
background-image: -moz-linear-gradient(white 2px, transparent 2px),
105+
-moz-linear-gradient(0, white 2px, transparent 2px),
106+
-moz-linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
107+
-moz-linear-gradient(0, rgba(255,255,255,.3) 1px, transparent 1px);
108+
background-image: linear-gradient(white 2px, transparent 2px),
109+
linear-gradient(90deg, white 2px, transparent 2px),
110+
linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
111+
linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
112+
-pie-background: linear-gradient(white 2px, transparent 2px) -2px -2px / 100px,
113+
linear-gradient(90deg, white 2px, transparent 2px) -2px -2px / 100px,
114+
linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px) -1px -1px / 20px,
115+
linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px) -1px -1px / 20px,
116+
#269;
117+
behavior: url(/pie/PIE.htc);
97118
}
98119
99120
.component-box {
100121
color: white;
101-
border: 1px solid salmon;
102-
}
103-
.my-handle-class {
104-
position: absolute;
105-
background-color: pink;
106-
border: 1px solid black;
107-
border-radius: 50%;
108-
height: 14px;
109-
width: 14px;
110-
-webkit-transition: all 300ms linear;
111-
-ms-transition: all 300ms linear;
112-
transition: all 300ms linear;
113-
}
114-
115-
.my-handle-class-tl {
116-
top: -14px;
117-
left: -14px;
118-
cursor: nw-resize;
119-
}
120-
121-
.my-handle-class-tm {
122-
top: -14px;
123-
left: 50%;
124-
margin-left: -7px;
125-
cursor: n-resize;
126-
}
127-
128-
.my-handle-class-tr {
129-
top: -14px;
130-
right: -14px;
131-
cursor: ne-resize;
132-
}
133-
134-
.my-handle-class-ml {
135-
top: 50%;
136-
margin-top: -7px;
137-
left: -14px;
138-
cursor: w-resize;
122+
border: 3px dashed rgb(227, 203, 71);
123+
background-color: rgba(186, 99, 99, 0.529);
139124
}
140125
141-
.my-handle-class-mr {
142-
top: 50%;
143-
margin-top: -7px;
144-
right: -14px;
145-
cursor: e-resize;
146-
}
147-
148-
.my-handle-class-bl {
149-
bottom: -14px;
150-
left: -14px;
151-
cursor: sw-resize;
152-
}
153-
154-
.my-handle-class-bm {
155-
bottom: -14px;
156-
left: 50%;
157-
margin-left: -7px;
158-
cursor: s-resize;
159-
}
160-
161-
.my-handle-class-br {
162-
bottom: -14px;
163-
right: -14px;
164-
cursor: se-resize;
165-
}
166-
167-
.my-handle-class-tl:hover,
168-
.my-handle-class-tr:hover,
169-
.my-handle-class-bl:hover,
170-
.my-handle-class-br:hover {
171-
background-color: red;
172-
transform: scale(1.4);
173-
}
174126
</style>

0 commit comments

Comments
 (0)