japanese-conjugation-drill/conjugation/drill.css
2017-12-26 17:34:46 +00:00

389 lines
5.7 KiB
CSS

body {
margin: 0;
}
body, input {
font-family: 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;
}
#explanation {
width: 960px;
margin-left: auto;
margin-right: auto;
}
#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;
}
table.word td {
font-size: 36px;
color: black;
text-align: center;
}
table.word td div:first-child {
margin: 0;
color: #aaa;
font-size: 18px;
font-weight: bold;
}
table.chart span.change,
table.word span.change {
color: #f06060;
}
.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;
margin-bottom: 12px;
}
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;
}
[tooltip]:hover:before {
/* needed - do not touch */
opacity: 1;
/* customizable */
margin-top: -12px;
}
[tooltip]:not([tooltip-persistent]):before {
pointer-events: none;
}
/* Custom positions for furigana */
.tooltip-w1[tooltip]:before { font-size: 8px; margin-left: 4px; }
.tooltip-w2[tooltip]:before { font-size: 8px; margin-left: 0px; }
.tooltip-w3[tooltip]:before { font-size: 8px; margin-left: -4px; }
.tooltip-w1[tooltip]:hover:before,
.tooltip-w2[tooltip]:hover:before,
.tooltip-w3[tooltip]:hover:before { margin-top: -10px; }
#question .tooltip-w1[tooltip]:before { font-size: 12px; margin-left: 14px; }
#question .tooltip-w2[tooltip]:before { font-size: 12px; margin-left: 8px; }
#question .tooltip-w3[tooltip]:before { font-size: 12px; margin-left: 2px; }
#question .tooltip-w1[tooltip]:hover:before,
#question .tooltip-w2[tooltip]:hover:before,
#question .tooltip-w3[tooltip]:hover:before { margin-top: -12px; }
div#explanation p span {
}
.highlight {
font-style: italic;
}
.horizontal-transform {
text-align: center;
}
.horizontal-transform > * {
display: inline-block;
vertical-align: middle;
}
.transform-arrow {
font-size: 32px;
color: #888;
margin: 16px;
}
div.conjugation-chart {
border: 2px solid gray;
border-radius: 32px;
padding: 24px;
background: #fff8f0;
margin-left: auto;
margin-right: auto;
display: table;
}
div.conjugation-chart h2 {
font-size: 28px;
}
div.conjugation-chart > * {
text-align: center;
}
table.chart + table.chart {
margin-left: 32px;
}
table.chart {
border-collapse: collapse;
}
table.chart td {
border: 1px solid gray;
padding-left: 16px;
padding-right: 16px;
background: white;
text-align: left;
}
table.chart td.break {
height: 1em;
border: 0;
background: inherit;
}
table.chart th {
border: 1px solid gray;
background: gray;
color: white;
}
table.chart td.title {
border: 0;
background: inherit;
font-size: 22px;
text-align: center;
}
div.horiz > * {
display: inline-block;
vertical-align: top;
}
.rules table.word td {
font-size: 24px;
color: black;
text-align: center;
}
.rules table.word td div:first-child {
margin: 0;
color: #aaa;
font-size: 12px;
}
.rules table.chart span.change {
color: black;
}
.rules table.word span.change {
color: #f06060;
}
.rules .transform-arrow {
font-size: 16px;
color: #888;
margin: 16px;
}
.brace {
fill: none;
fill-rule: evenodd;
stroke: #ccc;
stroke-width: 0.5px;
stroke-linecap: butt;
stroke-linejoin: miter;
stroke-opacity: 1;
}
.arrow {
margin-left: 16px;
margin-right: 16px;
}
.tag {
display: inline-block;
border-radius: 3px;
background: orange;
padding-left: 6px;
padding-right: 6px;
padding-top: 2px;
padding-bottom: 2px;
}
.options li {
height: 24px;
}
.specials {
font-weight: bold;
margin-top: 10px;
margin-bottom: 10px;
}
.explain-answer-as-list li {
list-style-type: none;
}
.explain-answer-as-list {
padding-left: 24px;
}
.centre {
display: table;
margin: 0 auto;
}