Skip to content

Commit c9e0970

Browse files
committed
Seahawk infographic and begin removing bulma column styling
1 parent 82d3fb6 commit c9e0970

File tree

7 files changed

+24
-25
lines changed

7 files changed

+24
-25
lines changed

_includes/project-gallery-card.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="project-gallery-card">
2-
<div class="columns is-centered is-multiline is-mobile">
2+
<div class="grid" id="project-grid">
33
{% for image in page.gallery %}
4-
<div class="column has-text-centered m-2 is-one-third-widescreen is-one-third-desktop is-one-fifth-fullhd is-one-third-tablet is-two-fifths-mobile is-three-quarters-touch">
4+
<div class="column" id="project-card">
55
<div class="card"
66
data-image="{{image.image}}"
77
data-text="{{ image.text }}"

_includes/robot-card.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
<div class="columns is-centered is-multiline is-mobile">
1+
<div class="grid" id="robot-grid">
22
{% for robot in site.data.robots %}
3-
<div class="column has-text-centered m-2 is-one-third-widescreen is-one-third-desktop is-one-fifth-fullhd is-one-third-tablet is-two-fifths-mobile is-three-quarters-touch"
4-
id="robot-card">
5-
<a href="{{site.url}}{{site.baseurl}}/{{robot.page}}" class="robot-link">
6-
<figure class="image is-5by4" style="background-image: url({{robot.image}});"></figure>
7-
<div class="overlay">
8-
<h2 class="has-text-weight-bold is-size-3">{{ robot.year }}</h2>
9-
<p class="has-text-white-ter has-text-weight-normal">{{ robot.name }}</p>
10-
</div>
11-
</a>
12-
</div>
3+
<div class="column" id="robot-card">
4+
<a href="{{site.url}}{{site.baseurl}}/{{robot.page}}" class="robot-link">
5+
<figure class="image is-5by4" style="background-image: url({{robot.image}});"></figure>
6+
<div class="overlay">
7+
<h2 class="has-text-weight-bold is-size-3">{{ robot.year }}</h2>
8+
<p class="has-text-white-ter has-text-weight-normal">{{ robot.name }}</p>
9+
</div>
10+
</a>
11+
</div>
1312
{% endfor %}
1413
</div>

_sass/main.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ hr {
7272
height: 1px;
7373
}
7474

75-
.column {
76-
margin: auto 0.5rem;
77-
padding: 0.5rem;
78-
}
79-
8075
.searchResult {
8176
a {
8277
.title {

_site/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_site/assets/css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_site/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

assets/css/style.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,10 @@ body { background-color: var(--background); }
163163
}
164164

165165
#project-gallery-card {
166-
margin-top: 20px;
167-
.columns .column {
168-
margin-bottom: 20px;
166+
#project-grid {
167+
display: grid;
168+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
169+
justify-content: center;
169170
}
170171

171172
.card {
@@ -451,9 +452,13 @@ body { background-color: var(--background); }
451452
}
452453
}
453454

454-
#robots {
455+
#robot-grid {
456+
display: grid;
457+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
455458
#robot-card {
456459
position: relative;
460+
display: flex;
461+
flex-direction: column;
457462
.image {
458463
position: relative;
459464
background-size: cover;

0 commit comments

Comments
 (0)