Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
222 lines (191 loc) · 4.34 KB
/
Copy pathstyle.css
File metadata and controls
222 lines (191 loc) · 4.34 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
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/* 基本的なリセットとフォント設定 */
body {
margin: 0;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f7f6;
color: #333;
line-height: 1.6;
}
h1 {
text-align: center;
color: #2c3e50;
padding: 20px 0;
background-color: #ecf0f1;
border-bottom: 2px solid #bdc3c7;
margin-top: 0;
}
/* ローディングメッセージ */
.loading {
text-align: center;
padding: 20px;
font-size: 1.1em;
color: #555;
background-color: #e0f2f7;
border-radius: 8px;
margin: 20px auto;
width: 80%;
max-width: 600px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* コントロール部分 */
#control {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
padding: 20px;
background-color: #ffffff;
border-bottom: 1px solid #ddd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btns {
display: flex;
gap: 10px;
}
.btns button {
padding: 10px 20px;
font-size: 1em;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
background-color: #3498db;
color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btns button:hover {
background-color: #2980b9;
transform: translateY(-2px);
}
.btns button:active {
transform: translateY(0);
}
.slct {
display: flex;
align-items: center;
gap: 10px;
}
.slct label {
font-weight: bold;
color: #555;
}
.slct select {
padding: 8px 12px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f9f9f9;
cursor: pointer;
min-width: 250px; /* ドロップダウンの幅を確保 */
}
/* 情報表示エリア */
.infoview {
display: flex;
flex-wrap: wrap; /* 小さい画面で折り返す */
justify-content: center;
gap: 30px;
padding: 30px;
max-width: 1200px;
margin: 20px auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
/* ネットワークグラフ */
#network {
flex: 2; /* グラフがより多くのスペースを占めるように */
min-width: 400px; /* 最小幅を設定 */
height: 500px; /* グラフの高さを固定 */
border: 1px solid #ddd;
border-radius: 8px;
background-color: #fdfdfd;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
/* 情報テーブル */
.table-container {
flex: 1; /* テーブルが残りのスペースを占めるように */
min-width: 300px; /* 最小幅を設定 */
background-color: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 8px;
overflow: hidden; /* 角丸を維持 */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.table-container table {
width: 100%;
border-collapse: collapse;
}
.table-container th,
.table-container td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #eee;
}
.table-container th {
background-color: #f2f2f2;
color: #333;
font-weight: 600;
width: 35%; /* 見出しの幅を調整 */
}
.table-container tr:last-child td {
border-bottom: none;
}
.table-container tr:nth-child(even) {
background-color: #f9f9f9;
}
.table-container td {
color: #555;
}
/* レスポンシブデザイン */
@media (max-width: 900px) {
.infoview {
flex-direction: column; /* 縦並びに変更 */
align-items: center;
}
#network,
.table-container {
width: 100%; /* 全幅を使用 */
max-width: 600px; /* 最大幅を設定して中央に寄せる */
}
#network {
height: 400px; /* 縦並びのときに少し高さを調整 */
}
#control {
flex-direction: column;
gap: 15px;
}
.slct {
flex-direction: column;
align-items: flex-start;
}
.slct select {
width: 100%;
min-width: unset;
}
}
@media (max-width: 500px) {
h1 {
font-size: 1.5em;
padding: 15px 0;
}
.btns {
flex-direction: column;
width: 80%;
}
.btns button {
width: 100%;
}
.slct {
width: 80%;
}
.loading {
font-size: 1em;
padding: 15px;
}
.table-container th,
.table-container td {
padding: 10px 12px;
font-size: 0.9em;
}
}