mirror of
https://github.com/ZetaKebab/japanese-conjugation-drill.git
synced 2025-01-14 22:08:44 +00:00
190 lines
2.5 KiB
CSS
190 lines
2.5 KiB
CSS
body {
|
|
margin: 0;
|
|
}
|
|
|
|
body, input {
|
|
font-family: Yu Gothic, Amaranth, sans-serif;
|
|
}
|
|
|
|
#proceed svg {
|
|
display: inline-block;
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
#proceed button {
|
|
border: none;
|
|
padding: 12px;
|
|
background: none;
|
|
}
|
|
|
|
.questionOuter {
|
|
background: #a0c0a0;
|
|
width: 100%;
|
|
}
|
|
|
|
#question {
|
|
padding-top: 40px;
|
|
font-size: 40px;
|
|
text-shadow: 2px 2px 4px #808080;
|
|
padding-bottom: 40px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: table;
|
|
}
|
|
|
|
#input {
|
|
background: #eee;
|
|
width: 100%;
|
|
}
|
|
|
|
#answer {
|
|
width: 100%;
|
|
height: 34px;
|
|
background: #eee;
|
|
border: 0;
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
font-size: 30px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: table;
|
|
text-align: center;
|
|
}
|
|
|
|
#response {
|
|
width: 100%;
|
|
font-size: 30px;
|
|
height: 34px;
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
#message {
|
|
width: 100%;
|
|
}
|
|
|
|
#message > div {
|
|
padding-top: 4px;
|
|
padding-bottom: 4px;
|
|
text-align: center;
|
|
}
|
|
|
|
.correct,
|
|
.incorrect {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
font-size: 30px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.correct {
|
|
background: #8f8;
|
|
}
|
|
|
|
.incorrect {
|
|
background: #f88;
|
|
}
|
|
|
|
div#history,
|
|
div#explanation {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: table;
|
|
}
|
|
|
|
table.syllabary {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
table.syllabary td {
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
color: gray;
|
|
border: 1px solid gray;
|
|
text-align: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
table.syllabary td div:first-child {
|
|
color: black;
|
|
font-size: 24px;
|
|
}
|
|
|
|
table.syllabary td.empty {
|
|
background: #eee;
|
|
}
|
|
|
|
.answer-correct {
|
|
color: red;
|
|
}
|
|
|
|
.answer-wrong {
|
|
color: blue;
|
|
}
|
|
|
|
div#history table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
div#history table th,
|
|
div#history table td {
|
|
padding: 8px;
|
|
border: 1px solid gray;
|
|
}:
|
|
|
|
div#history table th {
|
|
text-align: left;
|
|
}
|
|
|
|
div.options > * {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
margin: 20px;
|
|
}
|
|
|
|
div#splash > * {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: table;
|
|
}
|
|
|
|
input#numQuestions {
|
|
width: 60px;
|
|
}
|
|
|
|
div.options ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding-left: 16px;
|
|
}
|
|
|
|
/* Tooltip from http://jsfiddle.net/AndreaLigios/jtLbpy62/ */
|
|
|
|
[tooltip]:before {
|
|
/* needed - do not touch */
|
|
content: attr(tooltip);
|
|
position: absolute;
|
|
opacity: 0;
|
|
|
|
/* customizable */
|
|
transition: all 0.15s ease;
|
|
color: #333;
|
|
font-size: 12px;
|
|
background: yellow;
|
|
}
|
|
|
|
[tooltip]:hover:before {
|
|
/* needed - do not touch */
|
|
opacity: 1;
|
|
|
|
/* customizable */
|
|
margin-top: -20px;
|
|
}
|
|
|
|
[tooltip]:not([tooltip-persistent]):before {
|
|
pointer-events: none;
|
|
}
|