
Untitled
By: a guest on
Sep 22nd, 2012 | syntax:
CSS | size: 2.90 KB | views:
132 | expires: Never
/* --- Overall card layout --- */
.card
{
position: fixed;
background-color: #8c8c95;
height: 100%;
margin: 0;
padding: 0;
}
#tableContainer
{
display: table;
height: 100%;
width: 100%;
margin: auto;
background-size:cover;
background-repeat:no-repeat;
background-position: 50% 50%;
}
#cardContainer
{
font-size: 1em;
display: table-cell;
vertical-align: middle;
}
#contentContainer
{
margin-left: 6%;
margin-right: 6%;
text-align: center;
padding: 1em .4em 1em .4em;
border-radius: .4em;
background-color: rgba(0, 0, 0, .65);
}
@media screen and (orientation:landscape)
{
.mobile #contentContainer
{
margin-left: 2%;
margin-right: 2%;
}
}
@media screen and (orientation:portrait)
{
.mobile #contentContainer
{
margin-left: 0%;
margin-right: 0%;
padding: .7em 0;
}
}
/* --- --- ---*/
/* --- Outer question box --- */
#expression
{
font-size: 2em;
color: #ed9;
font-family: VL PGothic;
}
/* Remove bold style and use a colour instead */
#expression b
{
font-weight: normal;
color: #f0b570;
}
/* Inlined English in cloze */
.englishTranslateCard #expression b
{
font-size:.9em;
}
#sentenceEnglish
{
display: inline-block;
font-size: 1.1em;
margin-top: 10px;
margin-top: .4em;
color: #dfb;
}
.question #sentenceEnglish
{
color: #000;
background-color: #000;
}
/* English sentence hint on hover for English Translate cards */
.englishTranslateCard #sentenceEnglish:hover,
.englishTranslateCard.answer #sentenceEnglish
{
color: #dfb;
background-color: #000;
}
/*Things to hide in the question. */
.question #vocabContainer, /* no answer box */
.question ruby rt, /* no furigana */
.readingCard.question #sentenceEnglish /* no answer! */
{
visibility: hidden;
}
/* --- --- --- */
/* --- Inner answer box --- */
#vocabContainer
{
position: relative;
border-radius: .4em;
background-color: rgba(0, 0, 0, .35);
padding: .4em;
top: .4em;
margin-left: 15%;
margin-right: 15%;
}
#vocabFurigana
{
font-stretch: wider;
font-size: 2.2em;
color: #f90;
font-family: VL PGothic;
}
.englishTranslateCard #vocabFurigana
{
font-size:2.6em;
}
#vocabEnglish
{
color: #ed9;
font-size: 1.1em;
}
/* --- --- --- */
/* --- Audio images for ankidroid --- */
#sentenceAudio
{
position: absolute;
bottom: 0.2em;
left: -3em;
}
#sentenceAudio img
{
width: 50%;
}
#vocabAudio
{
position: absolute;
bottom: 0.2em;
right: -3em;
}
#vocabAudio img
{
width: 50%;
}
/* --- --- --- */