forked from rsatrioadi/cylpg-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
99 lines (87 loc) · 1.64 KB
/
styles.css
File metadata and controls
99 lines (87 loc) · 1.64 KB
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
/* General styles */
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100vh;
}
/* Header */
header {
background-color: #f8f9fa;
padding: 1rem;
text-align: center;
border-bottom: 1px solid #ddd;
}
#controls>h1 {
margin: 0;
}
/* Controls */
#controls {
display: flex;
justify-content: center;
align-items: center;
padding: 0.5rem;
gap: 0.5rem;
border-bottom: 1px solid #ddd;
background-color: #ffffff;
}
/* Main content area */
#main {
display: flex;
flex: 1;
height: 100%;
}
/* Cytoscape container */
#cy {
flex: 2;
border-right: 1px solid #ddd;
height: 100%;
}
/* Properties panel */
#properties {
flex: 1;
padding: 1rem;
overflow-y: auto;
background-color: #f5f5f5;
height: 100%;
box-sizing: border-box;
word-wrap: break-word;
}
/* General styles for table cells */
table td {
word-break: break-word;
/* Allow breaking long words */
hyphens: auto;
/* Enable hyphenation where supported */
white-space: normal;
/* Ensure wrapping occurs */
}
/* Sidebar tabs */
#properties .tabs {
display: flex;
border-bottom: 1px solid #ccc;
}
#properties .tab {
flex: 1;
padding: 0.5rem;
background: #e0e0e0;
border: none;
cursor: pointer;
font-weight: 500;
}
#properties .tab.active {
background: #fff;
border-bottom: 2px solid #007bff;
}
#properties .tab-content {
display: none;
padding-top: 1rem;
height: calc(100% - 2.5rem);
/* adjust for tab header height */
overflow-y: auto;
}
#properties .tab-content.active {
display: block;
}