/
resource-class-info.component.scss
105 lines (90 loc) · 1.73 KB
/
resource-class-info.component.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@import "~@angular/material/theming";
@import "../../../../assets/style/config";
@import "../../../../assets/style/mixins";
.resource-class {
min-height: 60px;
height: auto;
position: relative;
@include mat-elevation-transition;
@include mat-elevation(2);
padding: 12px;
margin: 6px;
background-color: #fff;
.resource-class-header {
cursor: move;
margin-left: -12px;
.resource-class-header-action {
position: absolute;
right: 0;
top: 0;
}
}
.resource-class-footer {
position: absolute;
bottom: 14px;
right: 14px;
}
.resource-class-properties {
li.property-info {
list-style-type: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-left: -24px;
list-style-position: inside;
}
}
&:active {
@include mat-elevation(8);
}
}
.drag-n-drop-placeholder {
background: #ccc;
border: dotted 3px #999;
min-height: 54px;
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
.drag-n-drop-property {
&:hover,
&:active,
&:focus {
background-color: $black-12-opacity;
.gui-order {
.display-on-hover {
display: block;
}
.hide-on-hover {
display: none;
}
}
}
.gui-order {
font-size: 16px;
color: $primary_700;
margin-left: -16px;
.display-on-hover {
display: none;
}
.drag-n-drop-handle {
cursor: move;
}
}
}
.cdk-drag-preview {
background-color: rgba(254, 254, 254, 1);
@include box-shadow();
cursor: move;
.gui-order {
.display-on-hover {
display: block;
}
.hide-on-hover {
display: none;
}
}
.property-info {
position: fixed;
left: 32px;
top: 4px;
}
}