Skip to content

Commit 6508c64

Browse files
committed
iteration 3 of grid renderer
1 parent 6f7ed3b commit 6508c64

2 files changed

Lines changed: 62 additions & 24 deletions

File tree

src/_includes/grid.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<tr>
33
<th></th>
44
{% for asp in site.data.aspects | sort: AspectID %}
5-
<th colspan="2">
5+
<th>
66
<A href="./userdoc/aspects.html#{{ asp.ID}}">Aspect<BR>{{ asp.Name }}</A>
77
</th>
88
{% endfor %}
@@ -23,9 +23,8 @@
2323
<td>
2424
{% if asp_vp_bb.size > 0 %}
2525
<div class="blackbox">
26-
{% for vp in asp_vp_bb %}
27-
2826
{{ vp.Exposure }}
27+
{% for vp in asp_vp_bb %}
2928
<div class="tooltip">
3029
{% if vp.Domain == "SAF Development" -%}
3130
<A href="./devdoc/{{ vp.Domain }} Domain/{{ vp.Name }}.html">{{vp.VP_ID}}<span
@@ -41,8 +40,8 @@
4140

4241
{% if asp_vp_wb.size > 0 %}
4342
<div class="whitebox">
44-
{% for vp in asp_vp_wb %}
4543
{{ vp.Exposure }}
44+
{% for vp in asp_vp_wb %}
4645
<div class="tooltip">
4746
{% if vp.Domain == "SAF Development" -%}
4847
<A href="./devdoc/{{ vp.Domain }} Domain/{{ vp.Name }}.html">{{vp.VP_ID}}<span
@@ -59,7 +58,6 @@
5958
{% if asp_vp_bbwb.size > 0 or asp_vp_na.size > 0 %}
6059
<div class="na_or_both">
6160
{% for vp in asp_vp_bbwb %}
62-
{{ vp.Exposure }}
6361
<div class="tooltip">
6462
{% if vp.Domain == "SAF Development" -%}
6563
<A href="./devdoc/{{ vp.Domain }} Domain/{{ vp.Name }}.html">{{vp.VP_ID}}<span
@@ -71,7 +69,6 @@
7169
</div>
7270
{% endfor %}
7371
{% for vp in asp_vp_na %}
74-
{{ vp.Exposure }}
7572
<div class="tooltip">
7673
{% if vp.Domain == "SAF Development" -%}
7774
<A href="./devdoc/{{ vp.Domain }} Domain/{{ vp.Name }}.html">{{vp.VP_ID}}<span

src/_sass/custom/custom.scss

Lines changed: 59 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
}
2929
}
3030

31-
32-
33-
34-
35-
3631
.flex-container {
3732
display: flex;
3833
padding: 20px;
@@ -77,7 +72,8 @@
7772

7873
.tooltip {
7974
position: relative;
80-
display: inline-block;
75+
display: block;
76+
width: fit-content;
8177
}
8278

8379
.tooltip .tooltiptext {
@@ -92,15 +88,16 @@
9288
z-index: 1;
9389
bottom: 150%;
9490
left: 50%;
95-
margin-left: -60px;
91+
transform: translateX(-50%);
9692
}
9793

9894
.tooltip .tooltiptext::after {
9995
content: "";
10096
position: absolute;
10197
top: 100%;
10298
left: 50%;
103-
margin-left: -5px;
99+
transform: translateX(-50%);
100+
margin-left: 0;
104101
border-width: 5px;
105102
border-style: solid;
106103
border-color: black transparent transparent transparent;
@@ -123,8 +120,6 @@
123120
white-space: nowrap;
124121
}
125122

126-
127-
128123
tr th:nth-child(1) {
129124
width: fit-content;
130125
white-space: nowrap;
@@ -138,55 +133,76 @@ div.whitebox {
138133

139134
div.blackbox {
140135
border: 5px dashed #333333;
141-
color: #ffffff;
142136
padding: 20px;
143137
}
144138

139+
div.na_or_both {
140+
padding: 20px;
141+
}
142+
143+
div.blackbox,
144+
div.whitebox div.na_or_both {
145+
display: flex;
146+
flex-direction: column;
147+
align-items: flex-start;
148+
/* optional: keeps left alignment */
149+
}
145150

146151
.SAFGridTable {
147152
tr.SAF_Domain_C td {
148153
background-color: #A5A5A5;
149154
color: #000000;
155+
150156
A {
151157
color: #000000;
152158
text-decoration-color: #000000;
153159
}
154160
}
161+
155162
tr.SAF_Domain_F td {
156163
background-color: #00B0F0;
157164
color: #000000;
165+
158166
A {
159167
color: #000000;
160168
text-decoration-color: #000000;
161169
}
162170
}
171+
163172
tr.SAF_Domain_L td {
164173
background-color: #FFC000;
165174
color: #000000;
175+
166176
A {
167177
color: #000000;
168178
text-decoration-color: #000000;
169179
}
170180
}
181+
171182
tr.SAF_Domain_O td {
172183
background-color: #4472C4;
173184
color: #000000;
185+
174186
A {
175187
color: #000000;
176188
text-decoration-color: #000000;
177189
}
178190
}
191+
179192
tr.SAF_Domain_P td {
180193
background-color: #92D050;
181194
color: #000000;
195+
182196
A {
183197
color: #000000;
184198
text-decoration-color: #000000;
185199
}
186200
}
201+
187202
tr.SAF_Domain_D td {
188203
background-color: #C040C0;
189204
color: #000000;
205+
190206
A {
191207
color: #000000;
192208
text-decoration-color: #000000;
@@ -195,18 +211,43 @@ div.blackbox {
195211
}
196212

197213

198-
:root { --control-height: 36px; --control-padding: 6px 10px; --gap: 8px; }
199-
#gallery-controls { display: inline-flex; gap: var(--gap); align-items: center; }
200-
#gallery-controls button, #gallery-controls select {
214+
:root {
215+
--control-height: 36px;
216+
--control-padding: 6px 10px;
217+
--gap: 8px;
218+
}
219+
220+
#gallery-controls {
221+
display: inline-flex;
222+
gap: var(--gap);
223+
align-items: center;
224+
}
225+
226+
#gallery-controls button,
227+
#gallery-controls select {
201228
height: var(--control-height);
202229
padding: var(--control-padding);
203230
line-height: 1;
204231
box-sizing: border-box;
205232
font: inherit;
206233
}
207-
#gallery-controls button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
208-
#gallery-controls select { min-width: 120px; }
209-
#gallery-container img { max-width: 100%; height: auto; display: block; }
234+
235+
#gallery-controls button {
236+
display: inline-flex;
237+
align-items: center;
238+
justify-content: center;
239+
cursor: pointer;
240+
}
241+
242+
#gallery-controls select {
243+
min-width: 120px;
244+
}
245+
246+
#gallery-container img {
247+
max-width: 100%;
248+
height: auto;
249+
display: block;
250+
}
210251

211252

212253
#gallery-container {
@@ -240,4 +281,4 @@ div.blackbox {
240281
#prev-btn:focus,
241282
#next-btn:focus {
242283
outline: 2px solid #ffffff;
243-
}
284+
}

0 commit comments

Comments
 (0)