-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplugin.css
More file actions
171 lines (147 loc) · 4.35 KB
/
plugin.css
File metadata and controls
171 lines (147 loc) · 4.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
.fb-form-submit-button {
margin-top: 2.5rem;
background-color: #059669;
font-weight: 600;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
font-size: 0.875rem;
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
transition: background-color 0.15s ease-in-out;
}
.fb-form-submit-button:hover {
background-color: #10b981;
}
.fb-form-user-container {
background-color: white;
padding: 4rem 2rem;
}
/* LMS Plugin Styles */
/* Centralized step material sizing */
.step-material-container {
height: 60vh;
max-width: calc(60vh * 16/9);
margin: 0 auto;
}
.step-material-container img,
.step-material-container iframe {
width: 100%;
height: 100%;
object-fit: contain;
}
/* Ensure PDFs and documents fit properly */
.step-material-container iframe[src*=".pdf"] {
min-height: 60vh;
}
/* SCORM / HTML5 interactive packages: use full content width */
.step-material-container--interactive {
width: 100%;
max-width: 100%;
margin: 0;
height: clamp(28rem, 80vh, 64rem);
min-height: 28rem;
}
.step-material-container--interactive iframe {
display: block;
width: 100%;
height: 100%;
border: 0;
}
/* Embedded player: hide Filament sidebar and use full width */
body.lms-embedded-player .fi-sidebar {
display: none !important;
}
body.lms-embedded-player .fi-main-ctn {
margin-inline-start: 0 !important;
}
body.lms-embedded-player .fi-main {
max-width: 100%;
}
/* Knowledge checks: card-style radio options (single-choice Select fields on LMS tests). */
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio {
counter-reset: lms-mcq-option;
display: flex;
flex-direction: column;
gap: 0.625rem;
width: 100%;
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label {
counter-increment: lms-mcq-option;
position: relative;
display: flex;
align-items: stretch;
gap: 0.75rem;
width: 100%;
margin: 0;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
border: 1px solid rgb(229 231 235);
background-color: rgb(249 250 251);
cursor: pointer;
transition:
background-color 0.15s ease,
border-color 0.15s ease,
box-shadow 0.15s ease;
}
.dark .lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label {
border-color: rgb(55 65 81);
background-color: rgb(31 41 55 / 0.45);
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label:has(.fi-radio-input:checked) {
border-color: rgb(251 146 60);
background-color: rgb(255 247 237);
box-shadow: 0 0 0 1px rgb(251 146 60 / 0.35);
}
.dark .lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label:has(.fi-radio-input:checked) {
border-color: rgb(251 146 60);
background-color: rgb(124 45 18 / 0.28);
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label:hover {
border-color: rgb(209 213 219);
}
.dark .lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label:hover {
border-color: rgb(75 85 99);
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label-text {
display: flex;
align-items: center;
flex: 1;
gap: 0.75rem;
min-width: 0;
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label-text::before {
content: counter(lms-mcq-option, upper-alpha);
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 700;
background-color: rgb(209 213 219);
color: rgb(255 255 255);
}
.dark .lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label-text::before {
background-color: rgb(75 85 99);
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label:has(.fi-radio-input:checked) .fi-fo-radio-label-text::before {
background-color: rgb(249 115 22);
color: rgb(255 255 255);
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-radio-input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.lms-test-form-wrapper .lms-knowledge-check-radio-field .fi-fo-radio-label-text p {
margin: 0;
font-size: 0.9375rem;
line-height: 1.45;
}