WikiLerni/front/public/themes/wikilerni/css/home-mobile.css

161 lines
2.7 KiB
CSS
Raw Normal View History

#home
{width: 80%;
margin: auto;
border-radius: 5px;
box-shadow: 0px 0px 5px black;
margin-top: -1.5em;
padding-top: 1.5em;
background-color: #FF8800;
border-bottom: 1px solid rgba(0, 0, 0, 0.75);}
#home h1,
#home h2
{text-align: center;}
#home p
{margin-left:1em;
margin-right: 1em;}
#home form
{border-top: 1px solid rgba(0, 0, 0, 0.5);
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.5);
width: 80%;
margin: auto;
padding-bottom: 1em;
display: block;
padding-top: 1em;
text-align: center;
margin-bottom: 1em;}
#home form input[type=text]
{width: calc(49% - 20px);
margin-right: 1%;}
#home form input[type=submit]
{width: 40%;}
#home form .line
{
margin-top: 1em;
width: 100%;
}
#logo
{width: 50%;
margin: auto;
display: block;}
#home .error, #home .info, #home .success
{
margin: 1em;
width: auto;
border-radius: 5px;
}
/* Sur tablette la troisième colonne vient se placer en dessous de la première ou de la deuxième (la plus courte des deux) */
#triple-column
{
width: 90%;
margin: auto;
margin-top: 1em;
}
.column-1, .column-3, .column-2
{
width: 48%;
float: left;
margin-left:1.5%;
}
.quiz
{
width: 100%;
margin-bottom: 1em;
background-color: #FF8800;
border-radius: 5px;
border-top: 1px solid rgba(255,255,255,0.66);
border-bottom: 1px solid rgba(0,0,0,0.66);
box-shadow: 0px 0px 5px black;
}
.quiz h3
{
text-align: center;
margin: 1em;
}
.quiz p
{
margin: 2em;
text-align: justify;
}
.quiz p:last-child
{
text-align: center;
}
.quiz-image-wrapper
{
width: 95%;
background-size: cover;
border-radius: 5px;
border-top: 1px solid rgba(0,0,0,0.66);
border-bottom: 1px solid rgba(255,255,255,0.66);
box-shadow: inset 0px 5px 5px rgba(0,0,0,0.33);
background-repeat: no-repeat;
margin: auto;
}
.quiz-image-wrapper img
{
opacity: 0;
width: 100%;
}
nav#pagination
{
clear:both;
display:flex;
flex-wrap: wrap;
margin:0.5em;
}
nav#pagination div
{
flex: 0 0 50%;
text-align:center;
}
nav#pagination a
{
background-image: url('../img/background-texture.png');
}
@media screen and (max-width: 520px)
{
/* Sur mobile, les colonnes se placent les unes sous les autres */
#triple-column
{
display: block;
width: 80%;
margin: auto;
margin-top: 1em;
}
.column-1, .column-2, .column-3
{
width: 98%;
float: left;
margin-right: 1%;
}
#home form
{
text-align: center;
}
#home form input[type=text]
{
width: calc(100% - 20px);
margin-right: 0%;
}
#home form input[type=submit]
{
width: 100%;
margin-top: 1em;
display: inline-block;
}
}