Repository navigation
Expand file tree
/
Copy pathquiz_multi.css
More file actions
120 lines (106 loc) · 2.66 KB
/
Copy pathquiz_multi.css
File metadata and controls
120 lines (106 loc) · 2.66 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
/* クイズアイテムの塊 */
.quiz-item {
padding: 10px 0;
border-bottom: 1px solid #eee;
text-align: left;
display: flex;
flex-direction: column;
align-items: flex-start; /* 全て左寄せ */
}
/* 選択肢ボタンの基本スタイル */
.choice-btn {
display: block;
width: 100%;
max-width: 500px; /* 少し幅を広げると見やすいです */
margin: 8px 0;
padding: 12px 14px;
background-color: #ffffff;
border: 2px solid #e5e5e5;
border-radius: 12px;
text-align: left;
cursor: pointer;
transition: all 0.2s ease;
font-size: 1rem;
}
/* マウスを乗せた時 */
.choice-btn:hover {
background-color: #f8f9fa;
border-color: #007bff;
transform: translateY(-1px);
}
/* 【重要】選択された時の色(青系) */
.choice-btn.selected {
background-color: #e7f3ff;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
/* 回答確定後の表示 */
.choice-btn.reveal-correct {
background-color: #d4edda !important;
border-color: #28a745 !important;
color: #155724;
font-weight: bold;
}
.choice-btn.reveal-wrong {
background-color: #f8d7da !important;
border-color: #dc3545 !important;
color: #721c24;
text-decoration: line-through;
}
/* 確定ボタン(左寄せ・独自デザイン) */
.submit-btn {
display: inline-block; /* blockではなくinline-blockで左寄せを安定化 */
margin: 15px 0;
padding: 12px 32px;
background-color: #495057; /* 落ち着いたダークグレー */
color: white;
border: none;
border-radius: 6px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
appearance: none;
}
.submit-btn:hover {
background-color: #343a40;
}
.submit-btn:disabled {
background-color: #adb5bd;
cursor: not-allowed;
}
/* 選択肢のコンテナ */
.choices-container {
width: 100%;
margin-bottom: 5px;
}
/* 結果と解説 */
.result {
margin: 10px 0;
font-weight: bold;
font-size: 1.2rem;
}
.correct-text { color: #28a745; }
.wrong-text { color: #dc3545; }
.explanation {
width: 100%;
max-width: 600px;
text-align: left;
background-color: #f8f9fa;
padding: 15px;
border-left: 4px solid #007bff;
margin-top: 10px;
border-radius: 0 8px 8px 0;
}
/* ルビ設定 */
ruby { ruby-position: over; }
rt { font-size: 0.6em; color: #555; }
/* 印刷用設定 */
@media print {
#score, .submit-btn, .result, .explanation, #popup-container, .no-print, .choice-btn {
display: none !important;
}
/* 印刷時はボタンではなくテキストとして選択肢を出したい場合などはJS側で制御 */
body { color: #000; background: #fff; }
.quiz-item { page-break-inside: avoid; }
}