Skip to content

Commit 6c600c6

Browse files
Merge pull request #6785 from christianbeeznest/storm-22901-2
Survey: Fix editing after end date and duplicate reporting table - refs BT#22901
2 parents 38dc3e0 + 0a849be commit 6c600c6

File tree

4 files changed

+592
-746
lines changed

4 files changed

+592
-746
lines changed

assets/css/scss/_survey.scss

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
.ch-survey-report {
2+
// ---- design tokens (tweak freely) ----
3+
$border: #e5e7eb;
4+
$bg-soft: #f9fafb;
5+
$bg-muted: #f3f4f6;
6+
$text: #111827;
7+
$shadow: 0 1px 2px rgba(0, 0, 0, .04);
8+
9+
// ---- card ----
10+
.sr-card {
11+
border: 1px solid $border;
12+
border-radius: 12px;
13+
box-shadow: $shadow;
14+
margin-bottom: 18px;
15+
16+
&__header {
17+
padding: 12px 16px;
18+
font-weight: 700;
19+
background: $bg-soft;
20+
border-bottom: 1px solid $border;
21+
}
22+
&__body {
23+
padding: 12px 16px;
24+
}
25+
}
26+
27+
// ---- compact table look used in the survey summary (#pdf_table) ----
28+
.sr-summary-table {
29+
margin: 0;
30+
border-radius: 10px;
31+
overflow: hidden;
32+
33+
th,
34+
td {
35+
border-color: $border;
36+
color: $text;
37+
background: #fff;
38+
}
39+
40+
th[scope="row"] {
41+
width: 260px;
42+
white-space: nowrap;
43+
background: $bg-muted; // subtle contrast for labels
44+
font-weight: 600;
45+
vertical-align: middle;
46+
}
47+
48+
tr + tr {
49+
th,
50+
td {
51+
border-top: 1px solid $border;
52+
}
53+
}
54+
}
55+
56+
// ---- generic “block” spacing helpers used in question sections ----
57+
.sr-block {
58+
margin-top: 10px;
59+
}
60+
61+
// ---- optional: progress bar style used inside the “Graphic” column ----
62+
.sr-progress {
63+
// outer track
64+
background: #eef2ff;
65+
border: 1px solid #c7d2fe;
66+
height: 10px;
67+
position: relative;
68+
border-radius: 4px;
69+
overflow: hidden;
70+
71+
// inner fill
72+
&__fill {
73+
height: 100%;
74+
width: 0; // set inline (e.g., style="width:66%")
75+
background: #93c5fd;
76+
}
77+
}
78+
79+
// ---- spacing for the number pagination row (if present) ----
80+
#question_report_questionnumbers {
81+
margin: 10px 0 16px;
82+
display: flex;
83+
gap: 6px;
84+
85+
li {
86+
list-style: none;
87+
88+
a {
89+
display: block;
90+
padding: 6px 10px;
91+
border: 1px solid $border;
92+
border-radius: 8px;
93+
background: #fff;
94+
color: $text;
95+
text-decoration: none;
96+
97+
&:hover { background: $bg-soft; }
98+
}
99+
100+
&.disabled a {
101+
opacity: .6;
102+
pointer-events: none;
103+
}
104+
}
105+
}
106+
}

assets/css/scss/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@
9999
@include meta.load-css("userreluser");
100100
@include meta.load-css('social');
101101
@include meta.load-css('skill');
102+
@include meta.load-css('survey');
102103

103104
@include meta.load-css("libs/mediaelementjs/styles");

0 commit comments

Comments
 (0)