/
ontology.component.scss
165 lines (142 loc) · 3.01 KB
/
ontology.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
@import "~@angular/material/theming";
@import "../../../assets/style/config";
$width: 340px;
.app-toolbar-action {
&.select-form {
margin-top: -18px;
}
.form-content {
display: contents;
.select-ontology {
margin: 0 24px 0 0;
}
}
.create-data-model-btn {
margin: 0 0 16px;
min-width: 140px;
}
}
.ontology-editor {
width: 98vw;
max-width: 1280px;
min-height: calc(100vh - #{$header-height} - #{$tab-bar-margin} - 100px);
border: 1px dotted $primary_200;
background: $primary_200;
position: relative;
margin: 0 auto 60px auto;
}
.ontology-viewer {
width: 98vw;
max-width: 1280px;
min-height: calc(100vh - #{$header-height} - #{$tab-bar-margin} - 100px);
border: 1px dotted $primary_200;
position: relative;
margin: 0 auto 60px auto;
}
.ontology-editor-container {
.ontology-editor-subheader {
height: $sub-header-height;
}
.ontology-editor-canvas {
min-height: calc(100vh - #{$sub-header-height} - #{$header-height} - #{$tab-bar-margin} - 100px);
.ontology-editor-grid {
display: grid;
grid-template-rows: auto; // value would be "masonry" as soon it's implemented in all browsers
grid-template-columns: repeat(auto-fill, minmax($width, 1fr));
grid-gap: 6px;
}
}
}
.resource-class {
min-height: 120px;
height: auto;
position: relative;
@include mat-elevation-transition;
@include mat-elevation(2);
padding: 12px;
margin: 6px;
background-color: #fff;
.resource-class-header {
margin: -12px -12px 12px -12px;
width: calc(100% + 24px);
min-height: 48px !important;
height: 48px;
cursor: move;
}
.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);
}
}
.ontology-editor-header {
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
position: sticky !important;
top: 0;
.switch-view-label {
margin-right: 16px;
}
button.active {
background-color: $black-12-opacity;
}
}
/*
.ontology-container {
// display: flex;
// flex-direction: row;
width: 100%;
.ontology-editor {
overflow: hidden;
}
.ontology-default-elements {
width: 220px;
// TODO: fix height
height: 100vh;
position: fixed;
right: 0;
top: 0;
padding: 72px 6px 6px;
background: rgb(255, 255, 255);
.list-item {
border: 1px solid black;
padding: 6px;
margin: 6px;
}
ul {
padding-inline-start: 0;
li {
list-style-type: none;
}
}
}
}
*/
.add-resource-class {
position: absolute;
right: 12px;
top: 80px;
}
.mat-caption.space-reducer {
margin-top: 0;
margin-bottom: 6px;
}
.ontology-actions {
border-left: 1px solid $primary_200;
padding: 0 12px;
.mat-caption.space-reducer {
margin-top: -6px;
margin-bottom: 6px;
}
}
button.space-reducer {
// max-height: 32px;
margin: 0;
}