Skip to content

Commit 471fb82

Browse files
committed
Text left align on mobile
1 parent 8607ca5 commit 471fb82

File tree

3 files changed

+23
-37
lines changed

3 files changed

+23
-37
lines changed

_includes/comp-awards-card.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<img src="{{ award.graphic }}" alt="Award graphic">
77
</div>
88
<div class="card-content">
9-
<h2 class="name has-text-white-ter has-text-weight-bold is-size-6">{{ award.name }}</h2>
10-
<p class="roles has-text-weight-normal">{{ award.year }}</p>
9+
<h2 class="award has-text-white-ter has-text-weight-bold is-size-6">{{ award.name }}</h2>
10+
<p class="year has-text-weight-normal">{{ award.year }}</p>
1111
</div>
1212
</div>
1313
</div>

_includes/seahawk-II-rov-features.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h2 class="title has-text-left has-text-white-ter is-size-2 has-text-weight-bold mgb-medium">
44
ROV Features
55
</h2>
6-
<div class="features has-text-justified">
6+
<div class="features">
77
<div class="column">
88
<ul>
99
<li><span class="feature">1</span> The propulsion system consists of eight strategically positioned Blue Robotics T200 thrusters encased in custom 3D-printed housings. The thrusters are arranged to enable six degrees of freedom. Input from the control system allows variable thrust to optimize precision. This design enables the robot to navigate complex environments with agility, crucial for delicate tasks like ecosystem restoration.</li>

assets/css/style.scss

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,23 @@
3131
}
3232

3333
// Global settings
34-
p { color: var(--text); font-size: var(--paragraph-size); }
3534
.title { color: var(--header); }
3635
body { background-color: var(--background); }
3736
br { margin-bottom: 20px; }
3837

38+
p {
39+
color: var(--text);
40+
font-size: var(--paragraph-size);
41+
text-align: justify;
42+
}
43+
44+
@media (max-width: 768px){
45+
p {
46+
text-align: left;
47+
}
48+
}
49+
50+
3951
#navbar {
4052
// semi transparent
4153
background-color: rgba(3, 3, 3, 0.9);
@@ -208,7 +220,7 @@ br { margin-bottom: 20px; }
208220
}
209221
}
210222

211-
@media (max-width: 750px){
223+
@media (max-width: 768px){
212224
height: 50vh;
213225
.overlay {
214226
align-items: flex-end;
@@ -312,9 +324,6 @@ br { margin-bottom: 20px; }
312324
#project-summary {
313325
padding-top: 100px;
314326
position: relative;
315-
.description {
316-
text-align: justify;
317-
}
318327
.hydrozoa .button {
319328
background-color: var(--hydrozoa-bkg);
320329
border-color: var(--hydrozoa);
@@ -356,12 +365,14 @@ br { margin-bottom: 20px; }
356365
}
357366

358367
#seahawk-II-rov-features {
368+
display: grid;
359369
.features {
360370
display: flex;
361371
flex-wrap: wrap;
362372
gap: 1rem;
363373
color: var(--text);
364374
font-size: var(--paragraph-size);
375+
text-align: justify;
365376
}
366377

367378
.column {
@@ -400,10 +411,6 @@ br { margin-bottom: 20px; }
400411
left: 0;
401412
transform: translateY(-50%);
402413
}
403-
404-
@media (max-width: 768px){
405-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
406-
}
407414
}
408415

409416
#seahawk-II-info-graphic {
@@ -526,7 +533,6 @@ br { margin-bottom: 20px; }
526533
border-radius: 0px 0px 10px 10px;
527534
}
528535
.feature-description {
529-
text-align: justify;
530536
margin-top: 10px;
531537
}
532538
}
@@ -675,9 +681,6 @@ br { margin-bottom: 20px; }
675681
}
676682

677683
#updates {
678-
.description {
679-
text-align: justify;
680-
}
681684
.header {
682685
margin-bottom: 10vh;
683686
margin-top: 5vh;
@@ -808,15 +811,13 @@ br { margin-bottom: 20px; }
808811
}
809812

810813
#team {
811-
.description {
812-
text-align: justify;
813-
}
814814
.contents {
815815
margin-bottom: 10vh;
816816
margin-top: 5vh;
817817
}
818818

819819
.roles {
820+
text-align: center;
820821
height: 40px;
821822
font-size: 12px;
822823
}
@@ -1201,10 +1202,6 @@ br { margin-bottom: 20px; }
12011202
}
12021203

12031204
#support-us-how-to-donate {
1204-
.description {
1205-
color: var(--text);
1206-
text-align: justify;
1207-
}
12081205
.button {
12091206
min-width: 35%;
12101207
min-height: 60px;
@@ -1352,7 +1349,6 @@ br { margin-bottom: 20px; }
13521349
align-items: center;
13531350
text-align: left;
13541351
margin-bottom: 20px;
1355-
text-align: justify;
13561352
}
13571353

13581354
.quick-label {
@@ -1370,10 +1366,6 @@ br { margin-bottom: 20px; }
13701366
}
13711367

13721368
#post-content {
1373-
p {
1374-
text-align: justify;
1375-
color: var(--text);
1376-
}
13771369
a {
13781370
color: var(--primary);
13791371
}
@@ -1467,12 +1459,12 @@ br { margin-bottom: 20px; }
14671459
br {
14681460
margin-bottom: 1px;
14691461
}
1462+
.year {
1463+
text-align: center;
1464+
}
14701465
}
14711466

14721467
#comp-awards {
1473-
.description {
1474-
text-align: justify;
1475-
}
14761468
a {
14771469
color: var(--primary);
14781470
}
@@ -1496,9 +1488,6 @@ br { margin-bottom: 20px; }
14961488
.sponsor-card:hover {
14971489
transform: scale(1.01);
14981490
}
1499-
.description {
1500-
text-align: justify;
1501-
}
15021491
.contents {
15031492
margin-bottom: 10vh;
15041493
margin-top: 5vh;
@@ -1617,9 +1606,6 @@ br { margin-bottom: 20px; }
16171606

16181607

16191608
#projects-intro {
1620-
.description {
1621-
text-align: justify;
1622-
}
16231609
.header {
16241610
margin-bottom: 10vh;
16251611
margin-top: 5vh;

0 commit comments

Comments
 (0)