munchboka-edutools 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- munchboka_edutools/__init__.py +182 -0
- munchboka_edutools/_plotmath_shim.py +126 -0
- munchboka_edutools/_version.py +2 -0
- munchboka_edutools/directives/__init__.py +1 -0
- munchboka_edutools/directives/admonitions.py +356 -0
- munchboka_edutools/directives/cas_popup.py +272 -0
- munchboka_edutools/directives/dialogue.py +137 -0
- munchboka_edutools/directives/escape_room.py +296 -0
- munchboka_edutools/directives/factor_tree.py +549 -0
- munchboka_edutools/directives/ggb.py +209 -0
- munchboka_edutools/directives/ggb_icon.py +62 -0
- munchboka_edutools/directives/ggb_popup.py +165 -0
- munchboka_edutools/directives/horner.py +324 -0
- munchboka_edutools/directives/interactive_code.py +75 -0
- munchboka_edutools/directives/jeopardy.py +252 -0
- munchboka_edutools/directives/multi_plot.py +1126 -0
- munchboka_edutools/directives/pair_puzzle.py +191 -0
- munchboka_edutools/directives/parsons.py +109 -0
- munchboka_edutools/directives/plot.py +3012 -0
- munchboka_edutools/directives/poly_icon.py +91 -0
- munchboka_edutools/directives/polydiv.py +344 -0
- munchboka_edutools/directives/quiz.py +291 -0
- munchboka_edutools/directives/signchart.py +474 -0
- munchboka_edutools/directives/timed_quiz.py +436 -0
- munchboka_edutools/directives/turtle.py +157 -0
- munchboka_edutools/static/css/admonitions.css +2012 -0
- munchboka_edutools/static/css/cas_popup.css +242 -0
- munchboka_edutools/static/css/code_mirror_themes/github_dark_cm.css +112 -0
- munchboka_edutools/static/css/code_mirror_themes/github_dark_default_cm.css +40 -0
- munchboka_edutools/static/css/code_mirror_themes/github_dark_high_contrast_cm.css +141 -0
- munchboka_edutools/static/css/code_mirror_themes/github_light_cm.css +120 -0
- munchboka_edutools/static/css/code_mirror_themes/github_light_default_cm.css +108 -0
- munchboka_edutools/static/css/code_mirror_themes/one_dark_cm.css +121 -0
- munchboka_edutools/static/css/dialogue.css +92 -0
- munchboka_edutools/static/css/escapeRoom/escape-room.css +223 -0
- munchboka_edutools/static/css/figures.css +274 -0
- munchboka_edutools/static/css/general_style.css +74 -0
- munchboka_edutools/static/css/github-dark-high-contrast.css +141 -0
- munchboka_edutools/static/css/github-dark.css +112 -0
- munchboka_edutools/static/css/github-light.css +120 -0
- munchboka_edutools/static/css/interactive_code/style.css +575 -0
- munchboka_edutools/static/css/interactive_code.css +582 -0
- munchboka_edutools/static/css/jeopardy.css +476 -0
- munchboka_edutools/static/css/pairPuzzle/style.css +177 -0
- munchboka_edutools/static/css/parsons/parsonsPuzzle.css +331 -0
- munchboka_edutools/static/css/quiz.css +312 -0
- munchboka_edutools/static/css/timedQuiz.css +375 -0
- munchboka_edutools/static/icons/ggb/mode_evaluate.svg +1 -0
- munchboka_edutools/static/icons/ggb/mode_extremum.svg +1 -0
- munchboka_edutools/static/icons/ggb/mode_intersect.svg +1 -0
- munchboka_edutools/static/icons/ggb/mode_nsolve.svg +1 -0
- munchboka_edutools/static/icons/ggb/mode_numeric.svg +1 -0
- munchboka_edutools/static/icons/ggb/mode_point.svg +1 -0
- munchboka_edutools/static/icons/ggb/mode_solve.svg +1 -0
- munchboka_edutools/static/icons/misc/windows-logo.svg +1 -0
- munchboka_edutools/static/icons/outline/dark_mode/academic.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/backward.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/book.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/chat_bubble.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/check.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/cmd_line.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/file.svg +1 -0
- munchboka_edutools/static/icons/outline/dark_mode/fire.svg +4 -0
- munchboka_edutools/static/icons/outline/dark_mode/key.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/magnifying.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/pencil_square.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/play.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/question.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/square_check.svg +1 -0
- munchboka_edutools/static/icons/outline/dark_mode/stop.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/summary.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/undo.svg +3 -0
- munchboka_edutools/static/icons/outline/dark_mode/unlock.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/academic.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/backward.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/book.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/chat_bubble.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/check.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/cmd_line.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/file.svg +1 -0
- munchboka_edutools/static/icons/outline/light_mode/fire.svg +4 -0
- munchboka_edutools/static/icons/outline/light_mode/key.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/magnifying.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/pencil_square.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/play.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/question.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/square_check.svg +1 -0
- munchboka_edutools/static/icons/outline/light_mode/stop.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/summary.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/undo.svg +3 -0
- munchboka_edutools/static/icons/outline/light_mode/unlock.svg +3 -0
- munchboka_edutools/static/icons/polyicons/cubicdown.svg +3 -0
- munchboka_edutools/static/icons/polyicons/cubicup.svg +3 -0
- munchboka_edutools/static/icons/polyicons/frown.svg +3 -0
- munchboka_edutools/static/icons/polyicons/smile.svg +3 -0
- munchboka_edutools/static/icons/solid/dark_mode/academic.svg +5 -0
- munchboka_edutools/static/icons/solid/dark_mode/backward.svg +3 -0
- munchboka_edutools/static/icons/solid/dark_mode/book.svg +3 -0
- munchboka_edutools/static/icons/solid/dark_mode/brain.svg +1 -0
- munchboka_edutools/static/icons/solid/dark_mode/file.svg +1 -0
- munchboka_edutools/static/icons/solid/dark_mode/fire.svg +3 -0
- munchboka_edutools/static/icons/solid/dark_mode/key.svg +3 -0
- munchboka_edutools/static/icons/solid/dark_mode/pencil_square.svg +4 -0
- munchboka_edutools/static/icons/solid/dark_mode/play.svg +3 -0
- munchboka_edutools/static/icons/solid/dark_mode/python.svg +1 -0
- munchboka_edutools/static/icons/solid/dark_mode/scroll.svg +1 -0
- munchboka_edutools/static/icons/solid/dark_mode/stop.svg +3 -0
- munchboka_edutools/static/icons/solid/light_mode/academic.svg +5 -0
- munchboka_edutools/static/icons/solid/light_mode/backward.svg +3 -0
- munchboka_edutools/static/icons/solid/light_mode/book.svg +3 -0
- munchboka_edutools/static/icons/solid/light_mode/brain.svg +1 -0
- munchboka_edutools/static/icons/solid/light_mode/file.svg +1 -0
- munchboka_edutools/static/icons/solid/light_mode/fire.svg +3 -0
- munchboka_edutools/static/icons/solid/light_mode/key.svg +3 -0
- munchboka_edutools/static/icons/solid/light_mode/pencil_square.svg +4 -0
- munchboka_edutools/static/icons/solid/light_mode/play.svg +3 -0
- munchboka_edutools/static/icons/solid/light_mode/python.svg +1 -0
- munchboka_edutools/static/icons/solid/light_mode/scroll.svg +1 -0
- munchboka_edutools/static/icons/solid/light_mode/stop.svg +3 -0
- munchboka_edutools/static/icons/stickers/edit.svg +1 -0
- munchboka_edutools/static/icons/stickers/pencil_square.svg +3 -0
- munchboka_edutools/static/js/casThemeManager.js +99 -0
- munchboka_edutools/static/js/escapeRoom/escape-room.js +219 -0
- munchboka_edutools/static/js/geogebra-setup.js +6 -0
- munchboka_edutools/static/js/highlight-init.js +6 -0
- munchboka_edutools/static/js/interactiveCode/codeEditor.js +632 -0
- munchboka_edutools/static/js/interactiveCode/interactiveCodeSetup.js +348 -0
- munchboka_edutools/static/js/interactiveCode/pythonRunner.js +336 -0
- munchboka_edutools/static/js/interactiveCode/turtleCode.js +203 -0
- munchboka_edutools/static/js/interactiveCode/workerManager.js +353 -0
- munchboka_edutools/static/js/interactive_code/codeEditor.js +662 -0
- munchboka_edutools/static/js/interactive_code/interactiveCodeSetup.js +252 -0
- munchboka_edutools/static/js/interactive_code/pythonRunner.js +145 -0
- munchboka_edutools/static/js/interactive_code/turtleCode.js +56 -0
- munchboka_edutools/static/js/interactive_code/workerManager.js +204 -0
- munchboka_edutools/static/js/jeopardy.js +457 -0
- munchboka_edutools/static/js/pairPuzzle/draggableItem.js +64 -0
- munchboka_edutools/static/js/pairPuzzle/dropZone.js +119 -0
- munchboka_edutools/static/js/pairPuzzle/game.js +160 -0
- munchboka_edutools/static/js/parsons/parsonsPuzzle.js +641 -0
- munchboka_edutools/static/js/quiz.js +422 -0
- munchboka_edutools/static/js/skulpt/skulpt.js +35721 -0
- munchboka_edutools/static/js/timedQuiz/multipleChoiceQuestion.js +184 -0
- munchboka_edutools/static/js/timedQuiz/timedMultipleChoiceQuiz.js +244 -0
- munchboka_edutools/static/js/timedQuiz/utils.js +6 -0
- munchboka_edutools/static/js/utils.js +3 -0
- munchboka_edutools-0.1.0.dist-info/METADATA +107 -0
- munchboka_edutools-0.1.0.dist-info/RECORD +150 -0
- munchboka_edutools-0.1.0.dist-info/WHEEL +4 -0
- munchboka_edutools-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
/* Replacing with legacy Jeopardy CSS for faithful styling */
|
|
2
|
+
/* Jeopardy board styles with light/dark mode (Material-aligned) */
|
|
3
|
+
|
|
4
|
+
/* Color system */
|
|
5
|
+
:root {
|
|
6
|
+
color-scheme: light dark;
|
|
7
|
+
/* Light mode tokens */
|
|
8
|
+
--jp-bg: #FAFAFA; /* background */
|
|
9
|
+
--jp-surface: #FFFFFF; /* surfaces/cards */
|
|
10
|
+
--jp-text: #1F1F1F; /* primary text */
|
|
11
|
+
--jp-subtle-text: #5F6368; /* secondary text */
|
|
12
|
+
--jp-outline: #E0E3EB; /* outlines/dividers */
|
|
13
|
+
--jp-primary: #1A73E8; /* Google Blue 600 */
|
|
14
|
+
--jp-primary-strong: #0B57D0; /* header/nav */
|
|
15
|
+
--jp-on-primary: #FFFFFF; /* text on primary */
|
|
16
|
+
--jp-secondary: #E8F0FE; /* subtle surface tint */
|
|
17
|
+
--jp-danger: #D93025; /* Google Red 600 */
|
|
18
|
+
--jp-success: #188038; /* Google Green 700 */
|
|
19
|
+
--jp-success-border: #0F6E31; /* darker green for outline */
|
|
20
|
+
--jp-accent: #F29900; /* Orange for reset */
|
|
21
|
+
--jp-accent-border: #C47D00; /* Darker orange border */
|
|
22
|
+
--jp-shadow: 0 2px 6px rgba(0,0,0,0.12);
|
|
23
|
+
--jp-shadow-lg: 0 8px 30px rgba(0,0,0,0.22);
|
|
24
|
+
/* Components */
|
|
25
|
+
--jp-header-bg: var(--jp-primary-strong);
|
|
26
|
+
--jp-header-fg: var(--jp-on-primary);
|
|
27
|
+
--jp-team-bg: var(--jp-primary-strong);
|
|
28
|
+
--jp-team-fg: var(--jp-on-primary);
|
|
29
|
+
--jp-team-border: rgba(255,255,255,0.28);
|
|
30
|
+
--jp-tile-bg: var(--jp-primary);
|
|
31
|
+
--jp-tile-fg: #FFFFFF; /* readable contrast */
|
|
32
|
+
--jp-modal-bg: var(--jp-surface);
|
|
33
|
+
--jp-modal-fg: var(--jp-text);
|
|
34
|
+
/* Make modal footer match page/surface in light mode */
|
|
35
|
+
--jp-modal-footer: #FFFFFF;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (prefers-color-scheme: dark) {
|
|
39
|
+
:root {
|
|
40
|
+
/* Dark mode tokens */
|
|
41
|
+
--jp-bg: #121212;
|
|
42
|
+
--jp-surface: #1E1E1E;
|
|
43
|
+
--jp-text: #E8EAED;
|
|
44
|
+
--jp-subtle-text: #9AA0A6;
|
|
45
|
+
--jp-outline: #2A2E34;
|
|
46
|
+
--jp-primary: #1B66C9; /* darker blue for tiles */
|
|
47
|
+
--jp-primary-strong: #1C3B70; /* deep header/nav */
|
|
48
|
+
--jp-on-primary: #FFFFFF;
|
|
49
|
+
--jp-secondary: #171A21; /* modal footer tint */
|
|
50
|
+
--jp-danger: #EA4335; /* Google Red 500 */
|
|
51
|
+
--jp-success: #1E8E3E; /* Material green for dark */
|
|
52
|
+
--jp-success-border: #167C35; /* darker variant for outline */
|
|
53
|
+
--jp-accent: #F6A400; /* Slightly lighter orange for dark */
|
|
54
|
+
--jp-accent-border: #DB8E00; /* Darker orange border */
|
|
55
|
+
--jp-shadow: 0 2px 6px rgba(0,0,0,0.4);
|
|
56
|
+
--jp-shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
|
|
57
|
+
/* Components */
|
|
58
|
+
--jp-header-bg: var(--jp-primary-strong);
|
|
59
|
+
--jp-header-fg: var(--jp-on-primary);
|
|
60
|
+
--jp-team-bg: var(--jp-primary-strong);
|
|
61
|
+
--jp-team-fg: var(--jp-on-primary);
|
|
62
|
+
--jp-team-border: rgba(255,255,255,0.22);
|
|
63
|
+
--jp-tile-bg: var(--jp-primary);
|
|
64
|
+
--jp-tile-fg: #FFFFFF;
|
|
65
|
+
--jp-modal-bg: var(--jp-surface);
|
|
66
|
+
--jp-modal-fg: var(--jp-text);
|
|
67
|
+
--jp-modal-footer: #161A20;
|
|
68
|
+
}
|
|
69
|
+
/* In dark mode, keep container on the dark surface token */
|
|
70
|
+
.jeopardy-container { background: var(--jp-bg); }
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Explicit dark tokens when user selects dark mode (override system light) */
|
|
74
|
+
html.dark-mode,
|
|
75
|
+
body.dark-mode,
|
|
76
|
+
html[data-theme='dark'],
|
|
77
|
+
body[data-theme='dark'],
|
|
78
|
+
html[data-mode='dark'] {
|
|
79
|
+
--jp-bg: #121212;
|
|
80
|
+
--jp-surface: #1E1E1E;
|
|
81
|
+
--jp-text: #E8EAED;
|
|
82
|
+
--jp-subtle-text: #9AA0A6;
|
|
83
|
+
--jp-outline: #2A2E34;
|
|
84
|
+
--jp-primary: #1B66C9;
|
|
85
|
+
--jp-primary-strong: #1C3B70;
|
|
86
|
+
--jp-on-primary: #FFFFFF;
|
|
87
|
+
--jp-secondary: #171A21;
|
|
88
|
+
--jp-danger: #EA4335;
|
|
89
|
+
--jp-success: #1E8E3E;
|
|
90
|
+
--jp-success-border: #167C35;
|
|
91
|
+
--jp-accent: #F6A400;
|
|
92
|
+
--jp-accent-border: #DB8E00;
|
|
93
|
+
--jp-shadow: 0 2px 6px rgba(0,0,0,0.4);
|
|
94
|
+
--jp-shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
|
|
95
|
+
--jp-header-bg: var(--jp-primary-strong);
|
|
96
|
+
--jp-header-fg: var(--jp-on-primary);
|
|
97
|
+
--jp-team-bg: var(--jp-primary-strong);
|
|
98
|
+
--jp-team-fg: var(--jp-on-primary);
|
|
99
|
+
--jp-team-border: rgba(255,255,255,0.22);
|
|
100
|
+
--jp-tile-bg: var(--jp-primary);
|
|
101
|
+
--jp-tile-fg: #FFFFFF;
|
|
102
|
+
--jp-modal-bg: var(--jp-surface);
|
|
103
|
+
--jp-modal-fg: var(--jp-text);
|
|
104
|
+
--jp-modal-footer: #161A20;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.jeopardy-container {
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
width: 100%;
|
|
110
|
+
margin: 1rem auto;
|
|
111
|
+
padding: 0.5rem;
|
|
112
|
+
/* In light mode, let the page background show through */
|
|
113
|
+
background: transparent !important;
|
|
114
|
+
color: var(--jp-text);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* When embedded inside admonitions, add extra right padding so content doesn't touch the border */
|
|
118
|
+
.admonition .jeopardy-container {
|
|
119
|
+
padding-right: 2.5rem;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Prevent horizontal overflow inside admonitions and tighten spacing on small widths */
|
|
123
|
+
.admonition .jeopardy-container { overflow-x: hidden; }
|
|
124
|
+
@media (max-width: 900px) {
|
|
125
|
+
.jeopardy-grid { border-spacing: 6px; }
|
|
126
|
+
.jeopardy-grid thead th { padding: 0.6rem; }
|
|
127
|
+
.jeopardy-tile { padding: 0.8rem 0.4rem; }
|
|
128
|
+
}
|
|
129
|
+
@media (max-width: 600px) {
|
|
130
|
+
.jeopardy-grid { border-spacing: 4px; }
|
|
131
|
+
.jeopardy-grid thead th { padding: 0.5rem; }
|
|
132
|
+
.jeopardy-tile { padding: 0.6rem 0.35rem; }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.jeopardy-scorebar {
|
|
136
|
+
display: flex;
|
|
137
|
+
gap: 1rem;
|
|
138
|
+
flex-wrap: wrap;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
margin-bottom: 1rem;
|
|
141
|
+
}
|
|
142
|
+
.jeopardy-topbar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
|
|
143
|
+
.jeopardy-scorebar-wrap { flex: 1 1 auto; display: flex; justify-content: center; }
|
|
144
|
+
.jeopardy-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
|
|
145
|
+
.jeopardy-reset-button { white-space: nowrap; }
|
|
146
|
+
.jeopardy-turn-indicator {
|
|
147
|
+
text-align: center;
|
|
148
|
+
margin: -0.5rem 0 0.5rem 0; /* tuck closer to the scorebar */
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
color: var(--jp-text);
|
|
151
|
+
background: var(--jp-surface);
|
|
152
|
+
border: 1px solid var(--jp-outline);
|
|
153
|
+
display: inline-block;
|
|
154
|
+
padding: 0.35rem 0.75rem;
|
|
155
|
+
border-radius: 999px; /* pill */
|
|
156
|
+
box-shadow: var(--jp-shadow);
|
|
157
|
+
}
|
|
158
|
+
.jeopardy-team {
|
|
159
|
+
background: var(--jp-team-bg);
|
|
160
|
+
color: var(--jp-team-fg);
|
|
161
|
+
border-radius: 8px;
|
|
162
|
+
padding: 0.5rem 0.75rem;
|
|
163
|
+
min-width: 180px;
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
box-shadow: var(--jp-shadow);
|
|
168
|
+
}
|
|
169
|
+
.jeopardy-team input.team-name {
|
|
170
|
+
background: transparent;
|
|
171
|
+
color: var(--jp-team-fg);
|
|
172
|
+
border: 1px solid var(--jp-team-border);
|
|
173
|
+
border-radius: 4px;
|
|
174
|
+
padding: 0.25rem 0.5rem;
|
|
175
|
+
margin-right: 0.5rem;
|
|
176
|
+
min-width: 80px;
|
|
177
|
+
}
|
|
178
|
+
.jeopardy-team input.team-name::placeholder { color: rgba(255,255,255,0.7); }
|
|
179
|
+
.jeopardy-team .score { font-weight: 700; margin: 0 0.5rem; }
|
|
180
|
+
|
|
181
|
+
/* Active team highlight for turn-based mode */
|
|
182
|
+
.jeopardy-team.active {
|
|
183
|
+
outline: 2px solid var(--jp-outline);
|
|
184
|
+
box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.35);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.jeopardy-grid {
|
|
188
|
+
width: 100%;
|
|
189
|
+
max-width: 100%;
|
|
190
|
+
table-layout: fixed; /* force columns to fit container width */
|
|
191
|
+
border-collapse: separate;
|
|
192
|
+
border-spacing: 8px;
|
|
193
|
+
}
|
|
194
|
+
.jeopardy-grid thead th {
|
|
195
|
+
background: var(--jp-header-bg);
|
|
196
|
+
color: var(--jp-header-fg);
|
|
197
|
+
text-align: center;
|
|
198
|
+
padding: 0.75rem;
|
|
199
|
+
border-radius: 8px;
|
|
200
|
+
font-weight: 700;
|
|
201
|
+
/* allow long category names to wrap and avoid overflow */
|
|
202
|
+
white-space: normal;
|
|
203
|
+
/* prefer hyphenation on word breaks */
|
|
204
|
+
hyphens: auto;
|
|
205
|
+
-webkit-hyphens: auto;
|
|
206
|
+
-ms-hyphens: auto;
|
|
207
|
+
word-break: normal;
|
|
208
|
+
overflow-wrap: break-word;
|
|
209
|
+
/* scale header font for narrow containers */
|
|
210
|
+
font-size: clamp(0.85rem, 1.8vw, 1rem);
|
|
211
|
+
}
|
|
212
|
+
.jeopardy-grid tbody td { text-align: center; }
|
|
213
|
+
|
|
214
|
+
.jeopardy-tile {
|
|
215
|
+
width: 100%;
|
|
216
|
+
background: var(--jp-tile-bg);
|
|
217
|
+
color: var(--jp-tile-fg);
|
|
218
|
+
border: 1px solid rgba(255,255,255,0.1);
|
|
219
|
+
border-radius: 8px;
|
|
220
|
+
padding: 1rem 0.5rem;
|
|
221
|
+
/* responsive font that shrinks on tight layouts */
|
|
222
|
+
font-size: clamp(0.9rem, 2.2vw, 1.25rem);
|
|
223
|
+
font-weight: 800;
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
box-shadow: var(--jp-shadow);
|
|
226
|
+
transition: transform 0.06s ease, opacity 0.2s ease, box-shadow 0.2s ease;
|
|
227
|
+
/* allow tile text to wrap when needed */
|
|
228
|
+
white-space: normal;
|
|
229
|
+
/* prefer hyphenation on word breaks */
|
|
230
|
+
hyphens: auto;
|
|
231
|
+
-webkit-hyphens: auto;
|
|
232
|
+
-ms-hyphens: auto;
|
|
233
|
+
word-break: normal;
|
|
234
|
+
overflow-wrap: break-word;
|
|
235
|
+
}
|
|
236
|
+
.jeopardy-tile:hover { transform: translateY(-2px); box-shadow: var(--jp-shadow-lg); }
|
|
237
|
+
.jeopardy-tile:focus { outline: 2px solid var(--jp-outline); outline-offset: 2px; }
|
|
238
|
+
.jeopardy-tile.used { opacity: 0.35; cursor: default; }
|
|
239
|
+
|
|
240
|
+
/* Modal */
|
|
241
|
+
.jeopardy-modal-backdrop {
|
|
242
|
+
position: fixed; inset: 0; background: rgba(0,0,0,0.65);
|
|
243
|
+
display: none; align-items: center; justify-content: center;
|
|
244
|
+
z-index: 9999;
|
|
245
|
+
}
|
|
246
|
+
.jeopardy-modal {
|
|
247
|
+
background: var(--jp-modal-bg); color: var(--jp-modal-fg);
|
|
248
|
+
width: min(900px, 92vw);
|
|
249
|
+
border-radius: 10px;
|
|
250
|
+
box-shadow: var(--jp-shadow-lg);
|
|
251
|
+
/* Enable internal scroll when content is tall */
|
|
252
|
+
max-height: 92vh;
|
|
253
|
+
display: flex;
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
}
|
|
257
|
+
.jeopardy-modal-header {
|
|
258
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
259
|
+
padding: 0.75rem 1rem; background: var(--jp-header-bg); color: var(--jp-header-fg);
|
|
260
|
+
}
|
|
261
|
+
.jeopardy-timer { font-weight: 700; padding: 0 0.5rem; }
|
|
262
|
+
.jeopardy-modal-body {
|
|
263
|
+
padding: 1rem; background: inherit;
|
|
264
|
+
/* Scroll only the body; keep header/footer visible */
|
|
265
|
+
flex: 1 1 auto;
|
|
266
|
+
overflow: auto;
|
|
267
|
+
overscroll-behavior: contain;
|
|
268
|
+
-webkit-overflow-scrolling: touch; /* smooth on iOS */
|
|
269
|
+
}
|
|
270
|
+
.jeopardy-modal-footer {
|
|
271
|
+
padding: 0.75rem 1rem;
|
|
272
|
+
background: var(--jp-modal-footer);
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
gap: 0.5rem;
|
|
276
|
+
}
|
|
277
|
+
.jeopardy-modal-footer .jeopardy-team-actions { margin-top: 0; }
|
|
278
|
+
.jeopardy-footer-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
|
|
279
|
+
|
|
280
|
+
/* Auto theme (OS/browser preference) */
|
|
281
|
+
@media (prefers-color-scheme: light) {
|
|
282
|
+
.jeopardy-modal-body { background: #FFFFFF; color: #000000; }
|
|
283
|
+
/* Ensure auto mode adopts the same light overrides explicitly */
|
|
284
|
+
[data-mode='auto'] .jeopardy-modal-body { background: #FFFFFF; color: #000000; }
|
|
285
|
+
[data-mode='auto'] .jeopardy-setup { background: #E8F0FE; color: #000000; }
|
|
286
|
+
[data-mode='auto'] .jeopardy-setup .jp-field label { color: #000000; }
|
|
287
|
+
[data-mode='auto'] .jeopardy-setup input,
|
|
288
|
+
[data-mode='auto'] .jeopardy-setup select { background: #FFFFFF; color: #000000; border-color: var(--jp-outline); }
|
|
289
|
+
[data-mode='auto'] .jeopardy-resume-prompt { background: #E8F0FE; color: #000000; border-color: var(--jp-outline); }
|
|
290
|
+
/* In auto+light, keep container transparent so the page background shows */
|
|
291
|
+
[data-mode='auto'] .jeopardy-container { background: transparent !important; color: var(--jp-text); }
|
|
292
|
+
}
|
|
293
|
+
@media (prefers-color-scheme: dark) {
|
|
294
|
+
.jeopardy-modal-body { background: inherit; }
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* Explicit theme overrides if site provides toggles */
|
|
298
|
+
html.light-mode .jeopardy-modal-body,
|
|
299
|
+
body.light-mode .jeopardy-modal-body,
|
|
300
|
+
html[data-theme='light'] .jeopardy-modal-body,
|
|
301
|
+
body[data-theme='light'] .jeopardy-modal-body,
|
|
302
|
+
[data-mode='light'] .jeopardy-modal-body { background: #FFFFFF !important; color: #000000 !important; }
|
|
303
|
+
|
|
304
|
+
html.dark-mode .jeopardy-modal-body,
|
|
305
|
+
body.dark-mode .jeopardy-modal-body,
|
|
306
|
+
html[data-theme='dark'] .jeopardy-modal-body,
|
|
307
|
+
body[data-theme='dark'] .jeopardy-modal-body,
|
|
308
|
+
[data-mode='dark'] .jeopardy-modal-body { background: var(--jp-modal-bg) !important; color: var(--jp-modal-fg) !important; }
|
|
309
|
+
|
|
310
|
+
.jeopardy-q { font-size: 1.05rem; margin-bottom: 1rem; background: inherit !important; }
|
|
311
|
+
.jeopardy-a { display: none; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--jp-outline); }
|
|
312
|
+
|
|
313
|
+
/* Improve wrapping with hyphens inside modal content */
|
|
314
|
+
.jeopardy-modal-body, .jeopardy-q, .jeopardy-a {
|
|
315
|
+
hyphens: auto;
|
|
316
|
+
-webkit-hyphens: auto;
|
|
317
|
+
-ms-hyphens: auto;
|
|
318
|
+
word-break: normal;
|
|
319
|
+
overflow-wrap: break-word;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.jeopardy-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
|
323
|
+
.j-btn { padding: 0.5rem 0.75rem; border: none; border-radius: 6px; cursor: pointer; }
|
|
324
|
+
.j-btn.primary { background: var(--jp-primary); color: var(--jp-on-primary); }
|
|
325
|
+
.j-btn.primary:hover { filter: brightness(1.05); }
|
|
326
|
+
.j-btn.secondary { background: var(--jp-secondary); color: var(--jp-text); }
|
|
327
|
+
.j-btn.warn { background: var(--jp-danger); color: #fff; }
|
|
328
|
+
.j-btn.warn:hover { filter: brightness(1.05); }
|
|
329
|
+
.j-btn.success {
|
|
330
|
+
background: var(--jp-success);
|
|
331
|
+
color: #fff;
|
|
332
|
+
border: 2px solid var(--jp-success-border);
|
|
333
|
+
}
|
|
334
|
+
.j-btn.success:hover { filter: brightness(1.05); }
|
|
335
|
+
.j-btn.accent {
|
|
336
|
+
background: var(--jp-accent);
|
|
337
|
+
color: #fff;
|
|
338
|
+
border: 2px solid var(--jp-accent-border);
|
|
339
|
+
}
|
|
340
|
+
.j-btn.accent:hover { filter: brightness(1.05); }
|
|
341
|
+
.j-btn:focus { outline: 2px solid var(--jp-outline); outline-offset: 2px; }
|
|
342
|
+
|
|
343
|
+
.jeopardy-team-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
|
|
344
|
+
.jeopardy-team-actions .j-btn { font-size: 0.9rem; }
|
|
345
|
+
|
|
346
|
+
/* Images inside content */
|
|
347
|
+
.jeopardy-image-container {
|
|
348
|
+
text-align: center;
|
|
349
|
+
margin: 0.5rem 0;
|
|
350
|
+
/* Robust centering regardless of global img display rules */
|
|
351
|
+
display: flex;
|
|
352
|
+
justify-content: center;
|
|
353
|
+
}
|
|
354
|
+
.jeopardy-image-container img {
|
|
355
|
+
max-width: 100%;
|
|
356
|
+
height: auto;
|
|
357
|
+
border-radius: 6px;
|
|
358
|
+
/* If themes force block images, keep them centered */
|
|
359
|
+
display: block;
|
|
360
|
+
margin-left: auto;
|
|
361
|
+
margin-right: auto;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* Pre-game setup panel */
|
|
365
|
+
.jeopardy-setup {
|
|
366
|
+
background: var(--jp-modal-bg);
|
|
367
|
+
color: var(--jp-modal-fg);
|
|
368
|
+
border: 1px solid var(--jp-outline);
|
|
369
|
+
border-radius: 8px;
|
|
370
|
+
padding: 0.75rem;
|
|
371
|
+
margin-bottom: 0.75rem;
|
|
372
|
+
box-shadow: var(--jp-shadow);
|
|
373
|
+
}
|
|
374
|
+
.jeopardy-setup .jp-field { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
|
|
375
|
+
.jeopardy-setup .jp-field label { min-width: 7rem; font-weight: 600; }
|
|
376
|
+
.jeopardy-setup .jp-names { display: grid; grid-template-columns: 1fr; gap: 0.35rem; margin-bottom: 0.5rem; }
|
|
377
|
+
.jeopardy-setup .jp-name-row { display: flex; align-items: center; gap: 0.5rem; }
|
|
378
|
+
.jeopardy-setup input, .jeopardy-setup select { padding: 0.35rem 0.5rem; border: 1px solid var(--jp-outline); border-radius: 6px; background: var(--jp-surface); color: var(--jp-text); }
|
|
379
|
+
|
|
380
|
+
/* Light mode: make setup panel light blue with black text for clarity */
|
|
381
|
+
@media (prefers-color-scheme: light) {
|
|
382
|
+
.jeopardy-setup { background: #E8F0FE; color: #000000; }
|
|
383
|
+
.jeopardy-setup .jp-field label { color: #000000; }
|
|
384
|
+
.jeopardy-setup input, .jeopardy-setup select { background: #FFFFFF; color: #000000; border-color: var(--jp-outline); }
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* Explicit light theme overrides (site theme toggles) */
|
|
388
|
+
html.light-mode .jeopardy-setup,
|
|
389
|
+
body.light-mode .jeopardy-setup,
|
|
390
|
+
html[data-theme='light'] .jeopardy-setup,
|
|
391
|
+
body[data-theme='light'] .jeopardy-setup,
|
|
392
|
+
[data-mode='light'] .jeopardy-setup { background: #E8F0FE !important; color: #000000 !important; }
|
|
393
|
+
html.light-mode .jeopardy-setup .jp-field label,
|
|
394
|
+
body.light-mode .jeopardy-setup .jp-field label,
|
|
395
|
+
html[data-theme='light'] .jeopardy-setup .jp-field label,
|
|
396
|
+
body[data-theme='light'] .jeopardy-setup .jp-field label,
|
|
397
|
+
[data-mode='light'] .jeopardy-setup .jp-field label { color: #000000 !important; }
|
|
398
|
+
html.light-mode .jeopardy-setup input,
|
|
399
|
+
body.light-mode .jeopardy-setup input,
|
|
400
|
+
html[data-theme='light'] .jeopardy-setup input,
|
|
401
|
+
body[data-theme='light'] .jeopardy-setup input,
|
|
402
|
+
html.light-mode .jeopardy-setup select,
|
|
403
|
+
body.light-mode .jeopardy-setup select,
|
|
404
|
+
html[data-theme='light'] .jeopardy-setup select,
|
|
405
|
+
body[data-theme='light'] .jeopardy-setup select,
|
|
406
|
+
[data-mode='light'] .jeopardy-setup input,
|
|
407
|
+
[data-mode='light'] .jeopardy-setup select { background: #FFFFFF !important; color: #000000 !important; border-color: var(--jp-outline) !important; }
|
|
408
|
+
|
|
409
|
+
/* Resume prompt above setup */
|
|
410
|
+
.jeopardy-resume-prompt {
|
|
411
|
+
display: flex;
|
|
412
|
+
justify-content: space-between;
|
|
413
|
+
align-items: center;
|
|
414
|
+
gap: 0.75rem;
|
|
415
|
+
padding: 0.5rem 0.75rem;
|
|
416
|
+
border: 1px solid var(--jp-outline);
|
|
417
|
+
border-radius: 8px;
|
|
418
|
+
background: var(--jp-surface);
|
|
419
|
+
box-shadow: var(--jp-shadow);
|
|
420
|
+
margin: 0.5rem 0 0.75rem;
|
|
421
|
+
}
|
|
422
|
+
.jeopardy-resume-actions { display: flex; gap: 0.5rem; }
|
|
423
|
+
|
|
424
|
+
/* Light mode: make resume prompt light blue for consistency */
|
|
425
|
+
@media (prefers-color-scheme: light) {
|
|
426
|
+
.jeopardy-resume-prompt { background: #E8F0FE; color: #000000; border-color: var(--jp-outline); }
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* Explicit light theme overrides */
|
|
430
|
+
html.light-mode .jeopardy-resume-prompt,
|
|
431
|
+
body.light-mode .jeopardy-resume-prompt,
|
|
432
|
+
html[data-theme='light'] .jeopardy-resume-prompt,
|
|
433
|
+
body[data-theme='light'] .jeopardy-resume-prompt,
|
|
434
|
+
[data-mode='light'] .jeopardy-resume-prompt { background: #E8F0FE !important; color: #000000 !important; border-color: var(--jp-outline) !important; }
|
|
435
|
+
|
|
436
|
+
/* Explicit dark theme overrides (site theme toggles and data-mode) */
|
|
437
|
+
html.dark-mode .jeopardy-setup,
|
|
438
|
+
body.dark-mode .jeopardy-setup,
|
|
439
|
+
html[data-theme='dark'] .jeopardy-setup,
|
|
440
|
+
body[data-theme='dark'] .jeopardy-setup,
|
|
441
|
+
[data-mode='dark'] .jeopardy-setup { background: var(--jp-modal-bg) !important; color: var(--jp-modal-fg) !important; }
|
|
442
|
+
html.dark-mode .jeopardy-setup .jp-field label,
|
|
443
|
+
body.dark-mode .jeopardy-setup .jp-field label,
|
|
444
|
+
html[data-theme='dark'] .jeopardy-setup .jp-field label,
|
|
445
|
+
body[data-theme='dark'] .jeopardy-setup .jp-field label,
|
|
446
|
+
[data-mode='dark'] .jeopardy-setup .jp-field label { color: var(--jp-text) !important; }
|
|
447
|
+
html.dark-mode .jeopardy-setup input,
|
|
448
|
+
body.dark-mode .jeopardy-setup input,
|
|
449
|
+
html[data-theme='dark'] .jeopardy-setup input,
|
|
450
|
+
body[data-theme='dark'] .jeopardy-setup input,
|
|
451
|
+
html.dark-mode .jeopardy-setup select,
|
|
452
|
+
body.dark-mode .jeopardy-setup select,
|
|
453
|
+
html[data-theme='dark'] .jeopardy-setup select,
|
|
454
|
+
body[data-theme='dark'] .jeopardy-setup select,
|
|
455
|
+
[data-mode='dark'] .jeopardy-setup input,
|
|
456
|
+
[data-mode='dark'] .jeopardy-setup select { background: var(--jp-surface) !important; color: var(--jp-text) !important; border-color: var(--jp-outline) !important; }
|
|
457
|
+
|
|
458
|
+
html.dark-mode .jeopardy-resume-prompt,
|
|
459
|
+
body.dark-mode .jeopardy-resume-prompt,
|
|
460
|
+
html[data-theme='dark'] .jeopardy-resume-prompt,
|
|
461
|
+
body[data-theme='dark'] .jeopardy-resume-prompt,
|
|
462
|
+
[data-mode='dark'] .jeopardy-resume-prompt { background: var(--jp-modal-bg) !important; color: var(--jp-modal-fg) !important; border-color: var(--jp-outline) !important; }
|
|
463
|
+
|
|
464
|
+
/* Container in explicit dark should use dark page tokens even if system prefers light */
|
|
465
|
+
html.dark-mode .jeopardy-container,
|
|
466
|
+
body.dark-mode .jeopardy-container,
|
|
467
|
+
html[data-theme='dark'] .jeopardy-container,
|
|
468
|
+
body[data-theme='dark'] .jeopardy-container,
|
|
469
|
+
[data-mode='dark'] .jeopardy-container { background: var(--jp-bg) !important; color: var(--jp-text) !important; }
|
|
470
|
+
|
|
471
|
+
[data-mode='dark'] .jeopardy-team { background: var(--jp-team-bg) !important; color: var(--jp-team-fg) !important; }
|
|
472
|
+
[data-mode='dark'] .jeopardy-turn-indicator { background: var(--jp-surface) !important; color: var(--jp-text) !important; }
|
|
473
|
+
[data-mode='dark'] .jeopardy-tile { background: var(--jp-tile-bg) !important; color: var(--jp-tile-fg) !important; }
|
|
474
|
+
[data-mode='dark'] .jeopardy-modal-footer { background: var(--jp-secondary) !important; }
|
|
475
|
+
[data-mode='dark'] .jeopardy-modal-header { background: var(--jp-header-bg) !important; color: var(--jp-header-fg) !important; }
|
|
476
|
+
[data-mode='dark'] .jeopardy-modal { background: var(--jp-modal-bg) !important; color: var(--jp-modal-fg) !important; }
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/* -----------------------------------------------------------------------------
|
|
2
|
+
Scoped, namespaced CSS variables: all vars prefixed with “--pp-”
|
|
3
|
+
and living only inside the .pairing-puzzle-container.
|
|
4
|
+
This avoids any clash with global or other modules’ variables.
|
|
5
|
+
-----------------------------------------------------------------------------*/
|
|
6
|
+
.pairing-puzzle-container {
|
|
7
|
+
/* light‐mode defaults */
|
|
8
|
+
--pp-background-color: #f9f9f9;
|
|
9
|
+
--pp-border-color: #ccc;
|
|
10
|
+
--pp-draggable-bg-color: #ffffff;
|
|
11
|
+
--pp-container-bg-color: #eeeeee84;
|
|
12
|
+
--pp-text-color: #24292f;
|
|
13
|
+
--pp-primary-color: #007bff;
|
|
14
|
+
--pp-hover-bg-color: #e9ecef;
|
|
15
|
+
--pp-hover-border-color: #0056b3;
|
|
16
|
+
--pp-placeholder-bg-color: #bcbbbb;
|
|
17
|
+
--pp-placeholder-border-color:#999;
|
|
18
|
+
--pp-button-text-color: black;
|
|
19
|
+
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: 20px;
|
|
24
|
+
border: 1px solid var(--pp-border-color);
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
background-color: var(--pp-background-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Dark Mode overrides, scoped to the container */
|
|
30
|
+
[data-mode="dark"] .pairing-puzzle-container {
|
|
31
|
+
--pp-background-color: #181818;
|
|
32
|
+
--pp-border-color: #ccc;
|
|
33
|
+
--pp-draggable-bg-color: #252d40;
|
|
34
|
+
--pp-container-bg-color: #0f131b;
|
|
35
|
+
--pp-text-color: #ffffff;
|
|
36
|
+
--pp-primary-color: #007bff;
|
|
37
|
+
--pp-hover-bg-color: #333333;
|
|
38
|
+
--pp-hover-border-color: #0056b3;
|
|
39
|
+
--pp-placeholder-bg-color: #000000;
|
|
40
|
+
--pp-placeholder-border-color:#999;
|
|
41
|
+
--pp-button-text-color: black;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Auto Mode: light system theme */
|
|
45
|
+
@media (prefers-color-scheme: light) {
|
|
46
|
+
[data-mode="auto"] .pairing-puzzle-container {
|
|
47
|
+
--pp-background-color: #f9f9f9;
|
|
48
|
+
--pp-border-color: #ccc;
|
|
49
|
+
--pp-draggable-bg-color: #ffffff;
|
|
50
|
+
--pp-container-bg-color: #d5d5d5;
|
|
51
|
+
--pp-text-color: #24292f;
|
|
52
|
+
--pp-primary-color: #007bff;
|
|
53
|
+
--pp-hover-bg-color: #e9ecef;
|
|
54
|
+
--pp-hover-border-color: #0056b3;
|
|
55
|
+
--pp-placeholder-bg-color: #bcbbbb;
|
|
56
|
+
--pp-placeholder-border-color:#999;
|
|
57
|
+
--pp-button-text-color: black;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Auto Mode: dark system theme */
|
|
62
|
+
@media (prefers-color-scheme: dark) {
|
|
63
|
+
[data-mode="auto"] .pairing-puzzle-container {
|
|
64
|
+
--pp-background-color: #181818;
|
|
65
|
+
--pp-border-color: #ccc;
|
|
66
|
+
--pp-draggable-bg-color: #252d40;
|
|
67
|
+
--pp-container-bg-color: #0f131b;
|
|
68
|
+
--pp-text-color: #ffffff;
|
|
69
|
+
--pp-primary-color: #007bff;
|
|
70
|
+
--pp-hover-bg-color: #333333;
|
|
71
|
+
--pp-hover-border-color: #0056b3;
|
|
72
|
+
--pp-placeholder-bg-color: #000000;
|
|
73
|
+
--pp-placeholder-border-color:#999;
|
|
74
|
+
--pp-button-text-color: black;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* -----------------------------------------------------------------------------
|
|
79
|
+
Component styles consuming the namespaced vars
|
|
80
|
+
-----------------------------------------------------------------------------*/
|
|
81
|
+
.pairing-puzzle-container .draggable-item {
|
|
82
|
+
background-color: var(--pp-draggable-bg-color);
|
|
83
|
+
color: var(--pp-text-color);
|
|
84
|
+
border: 2px solid var(--pp-primary-color);
|
|
85
|
+
padding: 5px;
|
|
86
|
+
margin-bottom: 10px;
|
|
87
|
+
border-radius: 5px;
|
|
88
|
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
89
|
+
cursor: grab;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
transition: all 0.2s ease;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.pairing-puzzle-container .draggable-container {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-wrap: wrap;
|
|
99
|
+
gap: 10px;
|
|
100
|
+
justify-content: flex-start;
|
|
101
|
+
align-items: flex-start;
|
|
102
|
+
width: 100%;
|
|
103
|
+
padding: 10px 15px;
|
|
104
|
+
background-color: var(--pp-container-bg-color);
|
|
105
|
+
border: 2px solid var(--pp-primary-color);
|
|
106
|
+
border-radius: 5px;
|
|
107
|
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.pairing-puzzle-container .drop-zone {
|
|
111
|
+
background-color: var(--pp-draggable-bg-color);
|
|
112
|
+
border: 2px dashed var(--pp-primary-color);
|
|
113
|
+
padding: 10px;
|
|
114
|
+
border-radius: 8px;
|
|
115
|
+
display: flex !important;
|
|
116
|
+
flex-wrap: wrap;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: 10px;
|
|
120
|
+
min-width: 120px;
|
|
121
|
+
flex: 0 1 auto;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
margin-top: 10px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.pairing-puzzle-container .drop-zone.dragover {
|
|
127
|
+
background-color: var(--pp-hover-bg-color);
|
|
128
|
+
border-color: var(--pp-hover-border-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.pairing-puzzle-container .placeholder {
|
|
132
|
+
height: 50px;
|
|
133
|
+
margin-bottom: 5px;
|
|
134
|
+
background-color: var(--pp-placeholder-bg-color);
|
|
135
|
+
border: 1px dashed var(--pp-placeholder-border-color);
|
|
136
|
+
width: 100%;
|
|
137
|
+
padding: 5px;
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
text-align: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.pairing-puzzle-container .button-container {
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
gap: 10px;
|
|
146
|
+
margin-top: 20px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* .pairing-puzzle-container .button {
|
|
150
|
+
padding: 10px 20px;
|
|
151
|
+
border-radius: 5px;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
color: var(--pp-button-text-color);
|
|
154
|
+
background: var(--pp-primary-color);
|
|
155
|
+
border: none;
|
|
156
|
+
} */
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
/* optional: code blocks inside draggable items */
|
|
160
|
+
.pairing-puzzle-container .draggable-item pre,
|
|
161
|
+
.pairing-puzzle-container .draggable-item code {
|
|
162
|
+
padding: 4px;
|
|
163
|
+
margin: 0;
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
line-height: 1.4;
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
.drop-zone-container {
|
|
171
|
+
width: 100%;
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-wrap: wrap;
|
|
174
|
+
gap: 10px;
|
|
175
|
+
justify-content: flex-start;
|
|
176
|
+
align-items: stretch;
|
|
177
|
+
}
|