Skip to content

Commit 66a83d9

Browse files
committed
WIP #352 - Remove unwanted padding
Also remove the feature/scenario IDs which we don't really have space to render in responsive mode.
1 parent 552c927 commit 66a83d9

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

CSF.Screenplay.JsonToHtmlReport.Template/src/css/content.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
}
4747
main > section {
4848
font-size: 0.9em;
49+
padding: 0.5em 0;
4950
}
5051
}
5152
}

CSF.Screenplay.JsonToHtmlReport.Template/src/css/features.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
.scenarioList {
5353
clear: both;
5454
}
55+
#featureList > li > h3,
56+
.scenarioList > li > h4 {
57+
overflow-x: auto;
58+
width: 100%;
59+
text-wrap: nowrap;
60+
}
5561
.scenarioList > li > h4 {
5662
cursor: pointer;
5763
}
@@ -201,9 +207,9 @@
201207
top: 2em;
202208
right: 0;
203209
padding: 0.2em;
204-
background: #FFFFFF88;
210+
background: #FFFFFFCC;
205211
backdrop-filter: blur(3px);
206-
border: 1px solid #00000022;
212+
border: 1px solid #00000033;
207213
font-size: 0.8em;
208214
}
209215
.reportableList .performableType i::before {
@@ -271,16 +277,29 @@
271277
}
272278

273279
@media screen and (max-width: 900px) {
280+
#featureList {
281+
line-height: 1.25em;
282+
}
274283
#featureList > li {
275284
border: 0 solid #00000044;
276285
border-bottom-width: 1px;
277286
padding: 1em 0;
278287
list-style: none;
279288
}
280-
#featureList > li > h3,
281-
.scenarioList > li > h4 {
282-
overflow-x: auto;
283-
width: 100%;
289+
#featureList > li > h3::before,
290+
.scenarioList > li > h4::before {
291+
margin: 0 2px;
292+
}
293+
#featureList .featureIdentifier,
294+
#featureList .scenarioIdentifier {
295+
display: none;
296+
}
297+
.reportableList .type,
298+
.reportableList .phase {
299+
display: none;
300+
}
301+
.reportableList .type+.report {
302+
margin-left: 0;
284303
}
285304
}
286305
}

0 commit comments

Comments
 (0)