Skip to content

Commit c1eb8db

Browse files
committed
responsiveness, style and layout updates
1 parent 6b62de1 commit c1eb8db

11 files changed

Lines changed: 180 additions & 61 deletions

File tree

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="navbar">
22
<div class="logos">
3-
<a href="https://www.workersdecide.tech/" target="_blank" rel="noopener">
3+
<a href="{{ site.url }}{{ site.baseurl}}/" target="_blank" rel="noopener">
44
<img class="nav-logo" src="/assets/hammer-logo.png" alt="WorkersDecide.tech Logo" />
55
</a>
66
</div>

_layouts/default.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
<html lang="en">
33

44
{% include head.html %}
5-
<script src="{{ site.baseurl }}/assets/js/bingo.js"></script>
65
<body>
7-
<div class="container">
8-
{% include navbar.html %}
9-
<div class="page-title">
10-
{{page.title}}
6+
<div class="wrapper">
7+
<div class="container">
8+
{% include navbar.html %}
9+
<div class="page-title">
10+
{{page.title}}
11+
</div>
12+
<div class="content">
13+
{{ content }}
14+
</div>
15+
{% include footer.html %}
1116
</div>
12-
<div class="content">
13-
{{ content }}
14-
</div>
15-
{% include footer.html %}
1617
</div>
17-
</body>
18+
</body>

_layouts/homepage.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
{% include head.html %}
55

66
<body>
7-
<div class="container">
8-
{% include navbar.html %}
9-
<div class="page-title">
10-
{{page.subtitle}}
11-
</div>
12-
{% include highlighted-post.html %}
13-
{{ content }}
14-
{% include footer.html %}
7+
<div class="wrapper">
8+
<div class="container">
9+
{% include navbar.html %}
10+
<div class="page-title">
11+
{{page.subtitle}}
12+
</div>
13+
{% include highlighted-post.html %}
14+
{{ content }}
15+
{% include footer.html %}
16+
</div>
1517
</div>
16-
</body>
18+
</body>

_resources/2025-09-18-bingo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ the tool, but the organizing around it, and how it helps you to bring
2323
people together and have discussions to build resolve, solidarity and
2424
confidence.
2525

26-
[Choose your card style and print some out!](/bingo)
26+
<b>[Choose your card style and print some out!](/bingo)</b>
2727

2828
Then check out the various play styles below.
2929

css/bingo.scss

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
---
33

44
/* Bingo Card Generator Styles */
@@ -32,6 +32,7 @@
3232
.bingo-card.full-bg {
3333
background: url('/assets/bingo-assets/bingo-bg.svg') center/cover;
3434
}
35+
3536
.hide-bg .bingo-card.full-bg {
3637
background: white !important;
3738
}
@@ -70,6 +71,7 @@
7071
}
7172

7273
}
74+
7375
.blackWhite .bingo-letters-container {
7476
#bingo-letters-bg-svg {
7577
fill: white;
@@ -82,6 +84,7 @@
8284
stroke: black;
8385
stroke-width: 1px;
8486
}
87+
8588
#bingo-letters-bg-svg {
8689
fill: none;
8790
}
@@ -140,13 +143,15 @@
140143
body {
141144
background: #fff !important;
142145
}
146+
143147
.bingo-cards-container,
144148
.bingo-card,
145149
.print-cards-container,
146150
.print-page,
147151
.bingo-card {
148152
page-break-inside: avoid;
149153
}
154+
150155
.print-page {
151156
page-break-after: always;
152157
}
@@ -158,10 +163,12 @@
158163
margin: 0;
159164
padding: 0;
160165
}
166+
161167
.print-cards-container {
162168
width: 100vw;
163169
min-height: 100vh;
164170
}
171+
165172
.print-page {
166173
display: flex;
167174
flex-direction: column;
@@ -170,10 +177,17 @@
170177
padding: 0;
171178
page-break-after: always;
172179
gap: 16pt;
180+
181+
&:not(:first-child) {
182+
margin-top: 116pt;
183+
}
173184
}
185+
174186
.print-card-rotator {
175-
width: 468pt; /* 6.5in * 72pt/in */
176-
height: 324pt; /* 4.5in * 72pt/in */
187+
width: 468pt;
188+
/* 6.5in * 72pt/in */
189+
height: 324pt;
190+
/* 4.5in * 72pt/in */
177191
position: relative;
178192
display: flex;
179193
justify-content: center;
@@ -182,8 +196,10 @@
182196
}
183197

184198
.bingo-card {
185-
width: 324pt !important; /* 4.5in */
186-
height: 468pt !important; /* 6.5in */
199+
width: 324pt !important;
200+
/* 4.5in */
201+
height: 468pt !important;
202+
/* 6.5in */
187203
box-sizing: border-box;
188204
border: 2pt solid #222;
189205
border-radius: 0 !important;
@@ -200,29 +216,34 @@
200216
transform: rotate(90deg) translateY(-468pt);
201217
transform-origin: left top;
202218
}
219+
203220
.print-card-rotator:nth-child(even) {
204221
margin-top: -100pt;
205222

206223
.bingo-card {
207-
transform: rotate(90deg) translateY(-468pt) translateX(100pt);
224+
transform: rotate(90deg) translateY(-468pt) translateX(100pt);
208225
}
209226
}
227+
210228
.bingo-title {
211229
margin: 12pt 0 3pt 0 !important;
212230
width: 95% !important;
213231
font-size: 28pt !important;
214232
text-align: center;
215233
}
234+
216235
.bingo-letters-container {
217236
width: 100% !important;
218237
height: 48pt !important;
219238
margin: 0 !important;
220239
padding: 0 !important;
221240
}
241+
222242
.bingo-letters-bg,
223243
.bingo-letters-bg-color {
224244
height: 48pt !important;
225245
}
246+
226247
.bingo-footer {
227248
width: 100% !important;
228249
height: 18pt !important;
@@ -231,9 +252,11 @@
231252
left: 0;
232253
z-index: 6;
233254
}
255+
234256
.bingo-grid {
235257
margin: 8pt 8pt 0 !important;
236258
}
259+
237260
.bingo-square {
238261
width: 20% !important;
239262
height: 68.6pt !important;
@@ -246,11 +269,13 @@
246269
width: 110%;
247270
margin: 0 0 0 -5%;
248271
}
272+
249273
.bingo-card.full-bg {
250274
background: url('/assets/bingo-assets/bingo-bg.svg') center/cover !important;
251275
-webkit-print-color-adjust: exact;
252276
print-color-adjust: exact;
253277
}
278+
254279
.hide-bg .bingo-card.full-bg {
255280
background: #fff !important;
256281
}

css/html-defaults.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ a:hover {
2020
}
2121

2222
hr {
23-
margin: 5px;
23+
margin: 5px 0;
2424
border-top: 1px solid rgba(0, 0, 0, 0.1);
2525
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
2626
}

css/main.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$accent: #4BAEA0;
66

7-
$max-width: 1100px;
7+
$max-width: 1130px;
88
$med-width: 600px;
99
$small-width: 480px;
1010

@@ -17,7 +17,9 @@ $small-width: 480px;
1717
.float-right {
1818
float: right;
1919
}
20-
20+
.wrapper {
21+
margin: 0 30px;
22+
}
2123
.container {
2224
max-width: $max-width;
2325
margin: auto;
@@ -197,6 +199,12 @@ $small-width: 480px;
197199
}
198200
}
199201

202+
.space-between {
203+
display: flex;
204+
justify-content: space-between;
205+
align-items: center;
206+
}
207+
200208
.lt650, .lt800 {
201209
display: none;
202210
}
@@ -205,6 +213,13 @@ $small-width: 480px;
205213
}
206214

207215
@media (max-width: 1100px) {
216+
.wrapper {
217+
margin: 0;
218+
}
219+
.container {
220+
max-width: 95%;
221+
}
222+
208223
.column {
209224
padding: 10px 20px;
210225
}
@@ -222,7 +237,6 @@ $small-width: 480px;
222237
/* Tablet */
223238
@media (max-width: 800px) {
224239
.container {
225-
max-width: $med-width;
226240
transition: 0.3s ease all;
227241
}
228242
.navbar {

css/posts.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ $accent: #4BAEA0;
2727
position: relative;
2828
border: 1px solid $accent;
2929
border-radius: 6px;
30-
padding: 1rem 25px;
31-
margin: 10px 5px 0;
30+
padding: 1rem 20px;
31+
margin: 10px 0 0;
3232
max-height: 300px;
3333
overflow: hidden;
3434

@@ -82,6 +82,10 @@ $accent: #4BAEA0;
8282
}
8383
}
8484

85+
.see-all h6 {
86+
margin: 0;
87+
}
88+
8589
/* Media queries for tablet and mobile */
8690
@media (max-width: 1200px) {
8791

@@ -124,6 +128,7 @@ $accent: #4BAEA0;
124128

125129
.highlighted-post {
126130
max-height: 400px;
131+
margin: 10px 0px 0;
127132

128133
.column:first-child, .column:last-child {
129134
width: 100%;

css/tags.scss

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,61 @@
33

44
$accent: #4BAEA0;
55

6+
#show-all-tags {
7+
margin-bottom: 20px;
8+
transform: translateX(-30px);
9+
opacity: 0;
10+
position: relative;
11+
will-change: opacity, transform;
12+
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
13+
pointer-events: none;
14+
display: none;
15+
16+
&.visible {
17+
opacity: 1;
18+
transform: translateX(0);
19+
pointer-events: auto;
20+
display: block;
21+
}
22+
23+
div {
24+
background-color: #4BAEA011;
25+
border: 1px solid $accent;
26+
border-radius: 6px;
27+
position: absolute;
28+
display: block;
29+
padding: 8px 12px;
30+
right: 0;
31+
}
32+
}
33+
634
.tags-list {
735
list-style-type: none;
836
padding: 0;
937
margin: 0;
1038
display: flex;
1139
flex-wrap: wrap;
1240
gap: 30px;
13-
}
14-
/* Media queries for tablet and mobile */
15-
@media (max-width: 1200px) {
1641

17-
}
42+
li {
43+
display: none;
1844

19-
@media (max-width: 800px) {
45+
&.visible {
46+
display: block;
47+
}
2048

49+
h2 {
50+
margin-block-start: 0;
51+
margin-block-end: 1em;
52+
}
53+
}
2154
}
2255

23-
@media (max-width: 700px) {
56+
/* Media queries for tablet and mobile */
57+
@media (max-width: 1200px) {}
2458

25-
}
59+
@media (max-width: 800px) {}
2660

27-
@media (max-width: 650px) {
61+
@media (max-width: 700px) {}
2862

29-
}
63+
@media (max-width: 650px) {}

0 commit comments

Comments
 (0)