Skip to content

Commit 026bd27

Browse files
Changed grid display for cards
Math page completed
1 parent a1a504b commit 026bd27

4 files changed

Lines changed: 33 additions & 20 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Note: _The order of this list might not match the order these features will be a
5959

6060
_Release date: ???????????????????????_
6161

62-
_Work Time: 8h 40m_
62+
_Work Time: 9h 10m_
6363

6464
#### v1.2
6565

assets/db/equations.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"L : length",
77
"R<sub>m</sub> : braking/ultimate strength",
88
"R<sub>eH</sub> : yeld strength",
9-
"I : moment of inertia relative to horixontal axis",
9+
"I : moment of inertia on horiz. axis",
1010
"W : strength modulus on vertical load",
1111
"F<sub>max</sub> : max traction load"
1212
],
@@ -34,7 +34,7 @@
3434
"L : length",
3535
"R<sub>m</sub> : braking/ultimate strength",
3636
"R<sub>eH</sub> : yeld strength",
37-
"I : moment of inertia relative to horixontal axis",
37+
"I : moment of inertia on horiz. axis",
3838
"W : strength modulus on vertical load",
3939
"F<sub>max</sub> : max traction load"
4040
],
@@ -63,7 +63,7 @@
6363
"L : length",
6464
"R<sub>m</sub> : braking/ultimate strength",
6565
"R<sub>eH</sub> : yeld strength",
66-
"I : moment of inertia relative to horixontal axis",
66+
"I : moment of inertia on horiz. axis",
6767
"W : strength modulus on vertical load",
6868
"F<sub>max</sub> : max traction load"
6969
],
@@ -93,7 +93,7 @@
9393
"L : length",
9494
"R<sub>m</sub> : braking/ultimate strength",
9595
"R<sub>eH</sub> : yeld strength",
96-
"I : moment of inertia relative to horixontal axis",
96+
"I : moment of inertia on horiz. axis",
9797
"W : strength modulus on vertical load",
9898
"F<sub>max</sub> : max traction load"
9999
],
@@ -121,7 +121,7 @@
121121
"L : length",
122122
"R<sub>m</sub> : braking/ultimate strength",
123123
"R<sub>eH</sub> : yeld strength",
124-
"I : moment of inertia relative to horixontal axis",
124+
"I : moment of inertia on horiz. axis",
125125
"W : strength modulus on vertical load",
126126
"F<sub>max</sub> : max traction load"
127127
],
@@ -149,7 +149,7 @@
149149
"L : length",
150150
"R<sub>m</sub> : braking/ultimate strength",
151151
"R<sub>eH</sub> : yeld strength",
152-
"I : moment of inertia relative to horixontal axis",
152+
"I : moment of inertia on horiz. axis",
153153
"W : strength modulus on vertical load",
154154
"F<sub>max</sub> : max traction load"
155155
],
@@ -177,7 +177,7 @@
177177
"L : length",
178178
"R<sub>m</sub> : braking/ultimate strength",
179179
"R<sub>eH</sub> : yeld strength",
180-
"I : moment of inertia relative to horixontal axis",
180+
"I : moment of inertia on horiz. axis",
181181
"W : strength modulus on vertical load",
182182
"F<sub>max</sub> : max traction load"
183183
],
@@ -207,7 +207,7 @@
207207
"L : length",
208208
"R<sub>m</sub> : braking/ultimate strength",
209209
"R<sub>eH</sub> : yeld strength",
210-
"I : moment of inertia relative to horixontal axis",
210+
"I : moment of inertia on horiz. axis",
211211
"W : strength modulus on vertical load",
212212
"F<sub>max</sub> : max traction load"
213213
],
@@ -238,7 +238,7 @@
238238
"L : length",
239239
"R<sub>m</sub> : braking/ultimate strength",
240240
"R<sub>eH</sub> : yeld strength",
241-
"I : moment of inertia relative to horixontal axis",
241+
"I : moment of inertia on horiz. axis",
242242
"W : strength modulus on vertical load",
243243
"F<sub>max</sub> : max traction load"
244244
],
@@ -272,7 +272,7 @@
272272
"L : length",
273273
"R<sub>m</sub> : braking/ultimate strength",
274274
"R<sub>eH</sub> : yeld strength",
275-
"I : moment of inertia relative to horixontal axis",
275+
"I : moment of inertia on horiz. axis",
276276
"W : strength modulus on vertical load",
277277
"F<sub>max</sub> : max traction load"
278278
],
@@ -303,7 +303,7 @@
303303
"L : length",
304304
"R<sub>m</sub> : braking/ultimate strength",
305305
"R<sub>eH</sub> : yeld strength",
306-
"I : moment of inertia relative to horixontal axis",
306+
"I : moment of inertia on horiz. axis",
307307
"W : strength modulus on vertical load",
308308
"F<sub>max</sub> : max traction load"
309309
],
@@ -335,7 +335,7 @@
335335
"v<sub>1</sub> : barycenter height",
336336
"R<sub>m</sub> : braking/ultimate strength",
337337
"R<sub>eH</sub> : yeld strength",
338-
"I : moment of inertia relative to horixontal axis",
338+
"I : moment of inertia on horiz. axis",
339339
"W : strength modulus on vertical load",
340340
"F<sub>max</sub> : max traction load"
341341
],
@@ -368,7 +368,7 @@
368368
"v<sub>1</sub> : barycenter height",
369369
"R<sub>m</sub> : braking/ultimate strength",
370370
"R<sub>eH</sub> : yeld strength",
371-
"I : moment of inertia relative to horixontal axis",
371+
"I : moment of inertia on horiz. axis",
372372
"W : strength modulus on vertical load",
373373
"F<sub>max</sub> : max traction load"
374374
],

pages/equations.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ label:hover {
3232
input[name=select]:checked ~ label {
3333
background-color: var(--color-5);
3434
color: var(--main-bg);
35-
border-radius: 100vh;
35+
border-radius: 0.5em;
3636
}
3737

3838
input[name=select]:checked ~ label::before, input[name=select]:checked ~ label::after {
@@ -70,14 +70,14 @@ input[name=select] {
7070
background-color: white;
7171
border-radius: 1em;
7272
width: 100px;
73-
overflow: scroll;
73+
overflow: hidden;
7474
max-height: calc(100vh - 129px - 1em);
7575
}
7676

7777
.math {
7878
--marg: 2%;
7979
width: calc(100% - 2 * var(--marg));
80-
height: auto;
80+
height: calc(100% - 2 * var(--marg));
8181
margin: var(--marg);
8282
}
8383

@@ -88,7 +88,7 @@ input[name=select] {
8888

8989
.math > div {
9090
display: grid;
91-
grid-template: auto auto / 1fr 1fr;
91+
grid-template: auto 1fr / repeat(3, 1fr);
9292
gap: .5em;
9393
}
9494

@@ -102,6 +102,7 @@ input[name=select] {
102102
border-left: solid 1px var(--color-1);
103103
border-radius: 16px;
104104
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
105+
padding: 0.5em;
105106
}
106107

107108
.card:not(:first-of-type) > div {
@@ -114,7 +115,7 @@ h5 {
114115
color: black;
115116
text-align: center;
116117
font-size: 1em;
117-
margin-block-start: 0.5em;
118+
margin-block-start: 0;
118119
margin-block-end: 1em;
119120
}
120121

@@ -124,6 +125,7 @@ h5 {
124125
color: black;
125126
width: auto;
126127
margin: .15em;
128+
font-size: 80%;
127129
}
128130

129131
.card:first-of-type p {
@@ -147,6 +149,18 @@ h5 {
147149
width: max-content;
148150
}
149151

152+
.card:nth-child(2) { /*LEGEND*/
153+
grid-row: 2;
154+
}
155+
156+
.card:nth-child(3) { /*GEO*/
157+
grid-row: 1 / span 2;
158+
}
159+
160+
.card:nth-child(4) { /*PHI*/
161+
grid-row: 1 / span 2;
162+
}
163+
150164
mjx-container[jax="CHTML"][display="true"] {
151165
margin: .5em 0 !important;
152166
}

pages/equations.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ function setup() {
3333
label.append(link);
3434
div.append(btn, label, document.createElement('br'));
3535
list.append(div);
36-
//reverse highlighting labels on scroll////////////////////////////////////////////////////
3736
}
3837

3938
// content generation

0 commit comments

Comments
 (0)