sri-yantra 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/core.css ADDED
@@ -0,0 +1,124 @@
1
+ .config-pickers {
2
+ /* position: absolute;
3
+ right: 20px;
4
+ top: 20px; */
5
+ > div {
6
+ padding: 6px 0;
7
+ }
8
+ }
9
+ h1 {
10
+ overflow: hidden;
11
+ text-overflow: ellipsis;
12
+ white-space: nowrap;
13
+ }
14
+ .big-v-space {
15
+ display: block;
16
+ width: 200px;
17
+ height: 0;
18
+ margin-top: 90vh;
19
+ }
20
+ #omg-header,
21
+ #omg-nav {
22
+ display: block;
23
+ position: sticky;
24
+ /* background: #0288d1 url("spirals.png"); */
25
+ background-color: inherit;
26
+ z-index: 100;
27
+ }
28
+
29
+ #omg-header {
30
+ /* position: relative; */
31
+ top: 0;
32
+ }
33
+ #omg-nav {
34
+ /* position: relative; */
35
+ top: 50px;
36
+ padding: 5px;
37
+ > a {
38
+ display: inline-block;
39
+ margin-right: 20px;
40
+ }
41
+ }
42
+
43
+ #config-pickers {
44
+ background-color: inherit;
45
+ /* position: fixed; */
46
+ top: 5px;
47
+ background-color: inherit;
48
+ > div {
49
+ display: inline-block;
50
+ }
51
+ }
52
+ #omg-theme-picker {
53
+ position: absolute;
54
+ /* position: sticky;
55
+ top: 45px;
56
+ right: 100px; */
57
+ top: 5px;
58
+ right: 5px;
59
+ /* background: inherit; */
60
+ z-index: 200;
61
+ > a {
62
+ display: inline-block;
63
+ height: 20px;
64
+ width: 20px;
65
+ border-radius: 50%;
66
+ border: 1px solid silver;
67
+ margin-right: 10px;
68
+ /* &.selected {
69
+ border-radius: 4px;
70
+ } */
71
+ }
72
+ }
73
+
74
+ #omg-density-picker {
75
+ /* position: sticky;
76
+ top: 5px;
77
+ right: 100px; */
78
+ background-color: inherit;
79
+ z-index: 200;
80
+ > a {
81
+ margin-right: 20px;
82
+ /* &.selected {
83
+ text-decoration: underline;
84
+ } */
85
+ }
86
+ }
87
+
88
+ .cab {
89
+ position: absolute;
90
+ transform: translateX(-600px);
91
+ z-index: 1001;
92
+ animation: cab-ride 10s infinite linear;
93
+ }
94
+ @keyframes cab-ride {
95
+ 0%,
96
+ 10% {
97
+ transform: translateX(-600px);
98
+ }
99
+ 80%,
100
+ 100% {
101
+ transform: translateX(calc(100vw + 600px));
102
+ }
103
+ }
104
+
105
+ .omg-table {
106
+ border-collapse: collapse;
107
+ width: 100%;
108
+ tr {
109
+ align-items: top;
110
+ border-top: solid 2px silver;
111
+ border-bottom: solid 2px silver;
112
+ }
113
+ th,
114
+ td {
115
+ padding: 5px 10px;
116
+ text-align: left;
117
+ }
118
+ th {
119
+ position: sticky;
120
+ top: 100px;
121
+ font-weight: bold;
122
+ z-index: 50;
123
+ }
124
+ }
@@ -0,0 +1,46 @@
1
+ html {
2
+ margin: 0;
3
+ padding: 0 0 0 20px;
4
+ }
5
+ body {
6
+ &.huge {
7
+ padding: 10px 20px;
8
+ font-size: 36px;
9
+ #omg-nav {
10
+ top: 70px;
11
+ padding: 20px;
12
+ }
13
+ }
14
+ &.big {
15
+ padding: 10px 20px;
16
+ font-size: 24px;
17
+ #omg-nav {
18
+ top: 50px;
19
+ padding: 20px;
20
+ }
21
+ }
22
+ &.medium {
23
+ padding: 10px 20px;
24
+ font-size: 18px;
25
+ #omg-nav {
26
+ top: 40px;
27
+ padding: 20px;
28
+ }
29
+ }
30
+ &.small {
31
+ padding: 10px 20px;
32
+ font-size: 16px;
33
+ #omg-nav {
34
+ top: 32px;
35
+ padding: 14px;
36
+ }
37
+ }
38
+ &.tiny {
39
+ padding: 6px 10px;
40
+ font-size: 12px;
41
+ #omg-nav {
42
+ top: 30px;
43
+ padding: 10px;
44
+ }
45
+ }
46
+ }
Binary file
@@ -0,0 +1,279 @@
1
+ :root {
2
+ --card-bg: #2d3848;
3
+ --card-border: #3c4a5f;
4
+ --card-foot: #b7c4d6;
5
+ --card-strong: white;
6
+ --input-bg: #2d3848;
7
+ --input-text: #e6ecf5;
8
+ --input-border: #3c4a5f;
9
+ }
10
+
11
+ /*
12
+ https://evoluteur.github.io/
13
+ (c) 2024 Olivier Giulieri
14
+ */
15
+
16
+ html {
17
+ scroll-behavior: smooth;
18
+ background-color: #1a212d;
19
+ background-image: url(bg0.png);
20
+ background-repeat: repeat-y;
21
+ }
22
+ body {
23
+ font-family: "Overpass", serif;
24
+ /* font-family: monospace; */
25
+ font-weight: 300;
26
+ color: white;
27
+ }
28
+ .pane {
29
+ padding: 0 20px;
30
+ }
31
+ .orange-pane,
32
+ .purple-pane,
33
+ .blue-pane {
34
+ padding: 20px 30px 30px !important;
35
+ }
36
+
37
+ #omg-header,
38
+ #omg-nav {
39
+ background-color: #1a212d;
40
+ }
41
+
42
+ h2 {
43
+ background: linear-gradient(white, #ffa500);
44
+ }
45
+ /* .col1 {
46
+ border-left: 5px solid #ffa500;
47
+ > h2 {
48
+ background: linear-gradient(white, #ffa500);
49
+ }
50
+ }
51
+ .col2 {
52
+ border-left: 5px solid #51eaff;
53
+ > h2 {
54
+ background: linear-gradient(white, #51eaff);
55
+ }
56
+ } */
57
+ #response {
58
+ border-left: 5px solid #d16eff;
59
+ padding: 10px 20px;
60
+ margin: 20px 0;
61
+ > h2 {
62
+ background: linear-gradient(white, #d16eff);
63
+ }
64
+ > div {
65
+ padding-left: 25px;
66
+ }
67
+ }
68
+ .pane,
69
+ #response {
70
+ border-radius: 10px;
71
+ background-color: #2d3848;
72
+ }
73
+ button {
74
+ padding: 8px 16px;
75
+ border-radius: 10px;
76
+ margin: 20px 5px 0;
77
+ cursor: pointer;
78
+ color: white;
79
+ background-color: #3182ce;
80
+ border: none;
81
+ &:hover,
82
+ &:focus {
83
+ background-color: #2b6cb0;
84
+ }
85
+ &:active {
86
+ background-color: #2c5282;
87
+ }
88
+ }
89
+ h1 {
90
+ /* font-size: 3rem; */
91
+ background: linear-gradient(white, #70ade6);
92
+ -webkit-background-clip: text;
93
+ background-clip: text !important;
94
+ -webkit-text-fill-color: transparent;
95
+ }
96
+ h2 {
97
+ margin-bottom: 30px;
98
+ font-weight: 300;
99
+ -webkit-background-clip: text;
100
+ background-clip: text !important;
101
+ -webkit-text-fill-color: transparent;
102
+ }
103
+ .tagline {
104
+ font-size: 17px;
105
+ margin: 0 0 40px 20px;
106
+ }
107
+ .error,
108
+ .prompt {
109
+ color: red;
110
+ }
111
+ a,
112
+ a:visited {
113
+ color: #ffb74d;
114
+ text-decoration: none;
115
+ }
116
+ a:active,
117
+ a:hover {
118
+ color: #ffcc80;
119
+ text-decoration: underline;
120
+ }
121
+ li {
122
+ margin: 15px 0;
123
+ }
124
+
125
+ .r-form {
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ gap: 20px;
129
+ > div {
130
+ flex-grow: 1;
131
+ padding-bottom: 10px;
132
+ > table {
133
+ margin-left: 20px;
134
+ td {
135
+ vertical-align: top;
136
+ padding: 5px 0;
137
+ }
138
+ .checkb1 {
139
+ padding-top: 10px;
140
+ }
141
+ }
142
+ > div {
143
+ display: block;
144
+ padding: 5px 0 5px 20px;
145
+ }
146
+ label:not(.no-col) {
147
+ display: block;
148
+ margin-top: 5px;
149
+ &::after {
150
+ content: ":";
151
+ margin: 0 5px 0 2px;
152
+ }
153
+ }
154
+ .no-col {
155
+ display: inline;
156
+ font-size: 0.8em;
157
+ }
158
+ }
159
+ }
160
+ input,
161
+ select {
162
+ font-family: inherit;
163
+ font-size: 16px;
164
+ padding: 5px 10px;
165
+ color: var(--input-text);
166
+ background-color: var(--input-bg);
167
+ border: 1px solid var(--input-border);
168
+ border-radius: 4px;
169
+ }
170
+ #age,
171
+ #height1,
172
+ #height2 {
173
+ width: 3em;
174
+ }
175
+ #height1 {
176
+ display: inline-block;
177
+ }
178
+ #weight {
179
+ width: 4em;
180
+ }
181
+ #bwOnly,
182
+ #video {
183
+ transform: scale(1.4);
184
+ margin-right: 3px;
185
+ }
186
+ #btns2 {
187
+ display: none;
188
+ }
189
+ .video {
190
+ position: relative;
191
+ top: 5px;
192
+ display: inline-block;
193
+ margin-left: 6px;
194
+ }
195
+ .e-video {
196
+ display: flex;
197
+ justify-content: center;
198
+ width: 95vw;
199
+ width: calc(100vw - 10px);
200
+ overflow-y: hidden;
201
+ margin: 10px -40px 0 -80px;
202
+ > iframe {
203
+ display: none;
204
+ border-width: 0;
205
+ }
206
+ }
207
+ svg {
208
+ height: 22px;
209
+ width: 22px;
210
+ cursor: pointer;
211
+ fill: #f1d9ac;
212
+ &:hover {
213
+ fill: orange;
214
+ }
215
+ }
216
+ td svg {
217
+ position: relative;
218
+ top: 4px;
219
+ }
220
+ #focus2-row {
221
+ display: none;
222
+ margin-top: 5px;
223
+ }
224
+ .inst {
225
+ margin-top: 10px;
226
+ }
227
+ .footer {
228
+ margin-top: 50px;
229
+ color: grey;
230
+ font-size: 0.8em;
231
+ }
232
+
233
+ @media only screen and (min-width: 700px) {
234
+ body,
235
+ button,
236
+ input,
237
+ select {
238
+ font-size: 18px;
239
+ }
240
+ }
241
+ @media only screen and (max-width: 700px) {
242
+ body {
243
+ padding: 20px 5px;
244
+ }
245
+ .e-video {
246
+ margin: 10px -25px 0 -65px;
247
+ }
248
+ #response {
249
+ > div {
250
+ padding-left: 0;
251
+ }
252
+ }
253
+ .r-form > div > table {
254
+ margin-left: 5px;
255
+ }
256
+ }
257
+ @media print {
258
+ body {
259
+ color: #1a1a1a !important;
260
+ }
261
+ body > table {
262
+ page-break-before: always;
263
+ }
264
+ h2 {
265
+ background: none !important;
266
+ background-clip: inherit;
267
+ -webkit-text-fill-color: black;
268
+ }
269
+ @page {
270
+ margin: 1cm 1cm;
271
+ }
272
+ }
273
+
274
+ .omg-table {
275
+ th {
276
+ background-color: #2d3848;
277
+ /* // #1a212d; */
278
+ }
279
+ }
@@ -0,0 +1,113 @@
1
+ :root {
2
+ --card-bg: #5594f4;
3
+ --card-border: #0288d1;
4
+ --card-foot: #dbe9ff;
5
+ --card-strong: white;
6
+ --input-bg: white;
7
+ --input-text: #1a1a1a;
8
+ --input-border: #0288d1;
9
+ }
10
+
11
+ html {
12
+ color: white;
13
+ background: #0288d1 url("spirals.png");
14
+ }
15
+ body {
16
+ position: relative;
17
+ font-family: "Overpass", serif;
18
+ scroll-behavior: smooth;
19
+ font-size: 1.2rem;
20
+ }
21
+ a,
22
+ a:visited {
23
+ color: #ffb74d;
24
+ text-decoration: none;
25
+ }
26
+ a:hover {
27
+ color: #ffcc80;
28
+ text-decoration: underline;
29
+ }
30
+
31
+ #omg-header,
32
+ #omg-nav {
33
+ display: block;
34
+ background: #0288d1 url("spirals.png");
35
+ }
36
+ #omg-nav {
37
+ top: 50px;
38
+ }
39
+ /*
40
+ #omg-header {
41
+ position: relative;
42
+ top: 0;
43
+ }
44
+ #omg-nav {
45
+ position: relative;
46
+ top: 50px;
47
+ padding: 5px;
48
+ > a {
49
+ display: inline-block;
50
+ margin-right: 20px;
51
+ }
52
+ } */
53
+ #omg-footer {
54
+ /* top: 0; */
55
+ }
56
+
57
+ .omg-table {
58
+ th {
59
+ background: #0288d1 url("spirals.png");
60
+ }
61
+ }
62
+
63
+ .card-detail {
64
+ background: #0288d1 url("spirals.png");
65
+ }
66
+
67
+ /* title gradient, same effect as the dark theme but keeping this
68
+ theme's own accent color (like react-morph-charts' omg theme) */
69
+ h1,
70
+ h2,
71
+ h3 {
72
+ background: linear-gradient(white, #e08a00);
73
+ -webkit-background-clip: text;
74
+ background-clip: text;
75
+ -webkit-text-fill-color: transparent;
76
+ }
77
+
78
+ button {
79
+ padding: 8px 16px;
80
+ border-radius: 10px;
81
+ margin: 20px 5px 0;
82
+ cursor: pointer;
83
+ color: #0277bd;
84
+ background-color: #ffb74d;
85
+ border: none;
86
+ &:hover,
87
+ &:focus {
88
+ background-color: #ffcc80;
89
+ }
90
+ &:active {
91
+ background-color: #e08a00;
92
+ color: white;
93
+ }
94
+ }
95
+ input,
96
+ select {
97
+ font-family: inherit;
98
+ font-size: 16px;
99
+ padding: 5px 10px;
100
+ color: var(--input-text);
101
+ background-color: var(--input-bg);
102
+ border: 1px solid var(--input-border);
103
+ border-radius: 4px;
104
+ }
105
+
106
+ @media only screen and (min-width: 700px) {
107
+ body,
108
+ button,
109
+ input,
110
+ select {
111
+ font-size: 18px;
112
+ }
113
+ }
Binary file
Binary file
@@ -0,0 +1,94 @@
1
+ :root {
2
+ --card-bg: white;
3
+ --card-border: #d0d7de;
4
+ --card-foot: #52617a;
5
+ --card-strong: #1a212d;
6
+ --input-bg: white;
7
+ --input-text: #1a212d;
8
+ --input-border: #d0d7de;
9
+ }
10
+
11
+ html {
12
+ color: #1a212d;
13
+ background-color: #fdfdff;
14
+ /* // test left bar */
15
+ background-image: url(bg0.png);
16
+ background-repeat: repeat-y;
17
+ }
18
+ body {
19
+ background-color: #fdfdff;
20
+ /* padding: 10px 20px; */
21
+ font-family: "Overpass", serif;
22
+ /* font-size: 20px; */
23
+ scroll-behavior: smooth;
24
+ }
25
+ a,
26
+ a:visited {
27
+ color: navy;
28
+ text-decoration: none;
29
+ }
30
+ a:hover {
31
+ color: black;
32
+ text-decoration: underline;
33
+ }
34
+
35
+ #omg-header {
36
+ top: 0;
37
+ }
38
+ #omg-nav {
39
+ top: 45px;
40
+ padding: 5px;
41
+ > a {
42
+ display: inline-block;
43
+ margin-right: 20px;
44
+ }
45
+ }
46
+ #omg-footer {
47
+ /* top: 0; */
48
+ }
49
+
50
+ .omg-table {
51
+ th {
52
+ background-color: #fbfbfb;
53
+ }
54
+ }
55
+
56
+ .card-detail {
57
+ background-color: #fbfbfb;
58
+ }
59
+
60
+ button {
61
+ padding: 8px 16px;
62
+ border-radius: 10px;
63
+ margin: 20px 5px 0;
64
+ cursor: pointer;
65
+ color: white;
66
+ background-color: #3182ce;
67
+ border: none;
68
+ &:hover,
69
+ &:focus {
70
+ background-color: #2b6cb0;
71
+ }
72
+ &:active {
73
+ background-color: #2c5282;
74
+ }
75
+ }
76
+ input,
77
+ select {
78
+ font-family: inherit;
79
+ font-size: 16px;
80
+ padding: 5px 10px;
81
+ color: var(--input-text);
82
+ background-color: var(--input-bg);
83
+ border: 1px solid var(--input-border);
84
+ border-radius: 4px;
85
+ }
86
+
87
+ @media only screen and (min-width: 700px) {
88
+ body,
89
+ button,
90
+ input,
91
+ select {
92
+ font-size: 18px;
93
+ }
94
+ }
package/css/yantra.css ADDED
@@ -0,0 +1,40 @@
1
+ .canvas-box {
2
+ background-color: var(--card-bg);
3
+ border: 3px solid var(--card-border);
4
+ border-radius: 10px;
5
+ overflow: hidden;
6
+ line-height: 0;
7
+ }
8
+ .canvas-box svg {
9
+ display: block;
10
+ width: 100%;
11
+ height: auto;
12
+ }
13
+ .canvas-box svg:hover {
14
+ fill: none;
15
+ }
16
+ .stage > .note {
17
+ margin: 10px 2px 0;
18
+ }
19
+ .layout.info {
20
+ margin-top: 0;
21
+ }
22
+ .side.wide {
23
+ flex: 1 1 340px;
24
+ max-width: 560px;
25
+ }
26
+ .enclosures {
27
+ margin: 0;
28
+ padding-left: 22px;
29
+ font-size: 0.9em;
30
+ line-height: 1.5;
31
+ }
32
+ .enclosures li {
33
+ margin-bottom: 4px;
34
+ }
35
+ .enclosures .sa {
36
+ color: var(--card-strong);
37
+ }
38
+ .enclosures .en {
39
+ opacity: 0.8;
40
+ }
package/favicon.png ADDED
Binary file
package/icon-192.png ADDED
Binary file
package/icon-512.png ADDED
Binary file