Skip to content

Commit 404bd9b

Browse files
author
Xing Han Lu
authored
Merge pull request #600 from plotly/add-skrf-viewer
Add Scikit-RF Viewer (#minor) Former-commit-id: 01ecdd8
2 parents ea55e27 + a1eaedb commit 404bd9b

21 files changed

Lines changed: 9917 additions & 0 deletions

apps/dash-skrf-viewer/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cache

apps/dash-skrf-viewer/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn viewer:server

apps/dash-skrf-viewer/app.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"scripts": {
3+
"dokku": {
4+
"predeploy": "bash predeploy.sh"
5+
}
6+
}
7+
}
Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
/* original style sheet */
2+
3+
body {
4+
width: 100%;
5+
height: 100%;
6+
margin: 0;
7+
padding: 0;
8+
background-color: #fafafa;
9+
font-size: 1.1rem;
10+
line-height: 1.3;
11+
}
12+
* {
13+
box-sizing: border-box;
14+
-moz-box-sizing: border-box;
15+
}
16+
.page {
17+
position: relative;
18+
width: 210mm;
19+
min-height: 300mm;
20+
padding: 0mm;
21+
margin: 10mm auto;
22+
/* border: 1px #D3D3D3 solid; */
23+
border-radius: 5px;
24+
background: white;
25+
/* box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); */
26+
}
27+
.subpage {
28+
padding: 1cm;
29+
border: 5px #ccc solid;
30+
height: 257mm;
31+
outline: 2cm whitesmoke solid;
32+
}
33+
34+
@page {
35+
size: A4;
36+
margin: 0;
37+
}
38+
@media print {
39+
html,
40+
body {
41+
width: 210mm;
42+
height: 297mm;
43+
}
44+
.page {
45+
margin: 0;
46+
border: initial;
47+
border-radius: initial;
48+
width: initial;
49+
min-height: initial;
50+
box-shadow: initial;
51+
background: initial;
52+
page-break-after: always;
53+
}
54+
.no-print,
55+
.no-print * {
56+
display: none !important;
57+
}
58+
}
59+
60+
p {
61+
margin-bottom: 1rem;
62+
}
63+
64+
.iframe {
65+
border: none;
66+
}
67+
68+
.gs-header {
69+
color: white !important;
70+
-webkit-print-color-adjust: exact;
71+
}
72+
73+
.gs-text-header {
74+
background: #c41230 !important;
75+
-webkit-print-color-adjust: exact;
76+
}
77+
78+
.gs-table-header {
79+
background: #c41230 !important;
80+
-webkit-print-color-adjust: exact;
81+
}
82+
83+
.gs-accent-header {
84+
background: #65201f !important;
85+
-webkit-print-color-adjust: exact;
86+
}
87+
88+
div.padded {
89+
padding: 10px;
90+
}
91+
92+
h6.padded,
93+
p.padded {
94+
padding: 2px 5px;
95+
margin-top: 10px;
96+
margin-bottom: 2px;
97+
}
98+
99+
.blue-text {
100+
color: #8496b8;
101+
}
102+
103+
table {
104+
width: 100%;
105+
}
106+
107+
td {
108+
padding: 2px 0px;
109+
}
110+
111+
tr:nth-child(even) {
112+
background-color: #d7dbe1;
113+
-webkit-print-color-adjust: exact;
114+
}
115+
116+
table.reversed tr:nth-child(odd) {
117+
background-color: #d7dbe1;
118+
-webkit-print-color-adjust: exact;
119+
}
120+
table.reversed tr:nth-child(even) {
121+
background-color: white;
122+
}
123+
124+
table {
125+
font-size: 0.95rem;
126+
border-spacing: 0;
127+
border-collapse: collapse;
128+
}
129+
130+
table.tiny-header tr:first-child {
131+
font-size: 8px;
132+
}
133+
134+
/* .columns{ margin-left: 0 !important; } */
135+
136+
/* .row > .columns:not(:first-child){
137+
padding-left: 20px;
138+
} */
139+
140+
td,
141+
th {
142+
border: 0;
143+
}
144+
145+
h1,
146+
h5,
147+
h6 {
148+
margin: 0;
149+
}
150+
151+
h6 {
152+
font-size: 1.425rem;
153+
}
154+
155+
h6.tiny-header {
156+
font-size: 10px;
157+
}
158+
159+
li {
160+
padding-left: 10px;
161+
}
162+
163+
a {
164+
color: black;
165+
cursor: pointer;
166+
}
167+
168+
.page-view {
169+
text-align: left;
170+
padding-top: 40px;
171+
}
172+
173+
.middle-aligned {
174+
padding: 50px 20px 0 0;
175+
text-align: left;
176+
vertical-align: middle;
177+
}
178+
179+
.right-aligned {
180+
text-align: right;
181+
}
182+
183+
.no-page {
184+
text-align: center;
185+
margin-top: 100px;
186+
font-size: 22px;
187+
font-weight: bold;
188+
}
189+
190+
.tab {
191+
border-style: solid;
192+
border-color: rgba(0, 0, 0, 0.2);
193+
border-bottom-style: none;
194+
border-top-style: none;
195+
border-right-style: none;
196+
color: black;
197+
padding: 10px 14px;
198+
text-align: center;
199+
text-decoration: none;
200+
display: inline-block;
201+
}
202+
203+
.tab.first {
204+
border-left-style: none;
205+
}
206+
207+
/* .tab:focus {
208+
border-style: solid;
209+
border-color: rgba(0,0,0,1);
210+
border-bottom-style: none;
211+
border-top-style: none;
212+
color: black;
213+
padding: 10px 14px;
214+
text-align: center;
215+
text-decoration: none;
216+
display: inline-block;
217+
} */
218+
219+
#page-content > div:nth-child(n + 2) > a {
220+
visibility: hidden;
221+
}

0 commit comments

Comments
 (0)