Skip to content

Commit a9d18e2

Browse files
committed
Add color bg for string questions
1 parent 97c2908 commit a9d18e2

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

jupyterquiz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
All files in the package are distributed under the MIT License
1212
'''
1313

14-
__version__ = '2.9.6.1'
14+
__version__ = '2.9.6.2'
1515
from .dynamic import display_quiz, capture_responses

jupyterquiz/dynamic/display.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def display_quiz(ref, num=1_000_000, shuffle_questions=False,
4141
'--jq-numeric-input-bg': '#c0c0c0',
4242
'--jq-numeric-input-label': '#101010',
4343
'--jq-numeric-input-shadow': '#999999',
44+
'--jq-string-bg': '#4c1a57',
4445
'--jq-incorrect-color': '#c80202',
4546
'--jq-correct-color': '#009113',
4647
'--jq-text-color': '#fafafa'
@@ -56,6 +57,7 @@ def display_quiz(ref, num=1_000_000, shuffle_questions=False,
5657
'--jq-numeric-input-bg': '#c0c0c0',
5758
'--jq-numeric-input-label': '#101010',
5859
'--jq-numeric-input-shadow': '#999999',
60+
'--jq-string-bg': '#861657',
5961
'--jq-incorrect-color': '#666666',
6062
'--jq-correct-color': '#87a878',
6163
'--jq-text-color': '#fafafa'

jupyterquiz/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@
141141
color: inherit;
142142
}
143143

144+
.StringQn {
145+
background: var(--jq-string-bg);
146+
border-radius: inherit;
147+
color: var(--jq-text-color);
148+
padding: 10px;
149+
}
150+
151+
.StringQn p {
152+
color: inherit;
153+
}
154+
155+
144156
.InpLabel {
145157
color: var(--jq-numeric-input-label);
146158
float: left;

0 commit comments

Comments
 (0)