/*
PRACTICAS PARA LA WEB SENSIBLE
[1] cuadricula sensible
[2] imagenes y objetos flexibles
[3] son las mediaqueries -condicion dentro del css
*/
/* Reseteo universal */
* {
border: 0;
margin: 0;
padding: 0;
}
article, figcaption, figure, footer, header, hgroup, nav, section {
display: block;
}
/* estilos del sitio */
body {
background: #212121 url(../img/Fondo_1.jpg);
color: #FFF;
font-family: Helvetica, Verdana;
font-size: 1em;
}
a {
color: #57abb8;
font-weight: bold;
text-decoration: none; /* eliminar linea de la liga */
}
a:hover {
color: #F60;
}
figcaption {
font-size: 0.85em;
padding: 0.25em;
text-align: center;
}
img, video {
max-width: 100%; /* segunda buena practica para el web sensible */
}
header, section#contenido, footer {
background: #fff; /*url(../img/Fondo.jpg);*/
margin: 0 auto; /* arriba abajo de cero y centrado a lo ancho */
max-width: 90%;
text-align: center;
}
header h1, nav {
display: inline-block; /* para que convivan a la misma altura */
max-width: 100%; /* el 100% del objeto padre */
vertical-align: middle;
}
nav ul {
list-style: none;
}
nav li {
display: inline-block;
padding: 0.1em;
vertical-align: top;
}
nav a { /* enlaces dentro de NAVegación */
background: #fff;
border: 0.1em solid #57abb8;
border-radius: 0.25em;
color: #f60;
display: block;
font-family: Helvetica, Verdana;
font-size: 1.4em;
padding: 0.2em;
-ms-transition: all 0.5s ease-in; /* explorer */
-moz-transition: all 0.5s ease-in; /* firefox mozilla */
-o-transition: all 0.5s ease-in; /* opera */
-webkit-transition: all 0.5s ease-in; /* chrome y safari */
transition: all 0.5s ease-in; /* sobre que tipo(forma,etc) - tiempo - tipo de efecto */
}
nav a:hover {
background: #212121;
border: 0.1em dashed #f60;
border-radius: 0 0.5em 0 0.5em;
color: #fff;
-ms-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-iout;
-webkit-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
}
section#principal, aside {
background: #1e6381;
border-radius: 0.5em;
display: inline-block;
margin: 0 auto;
max-width: 100%;
padding: 0.25em;
vertical-align: top;
width: 65%;
}
article#galeria-inicio {
border-radius: 0.5em;
margin: 0.5em;
padding: 0.5em;
text-align: left;
width: 95%;
}
aside {
width: 30%;
}
aside img {
border-radius: 0.5em;
}
footer {
color: #000;
font-size: 0.85em;
padding: 0.75em 0;
}
.fade {
opacity: 1; /* de 0 a 1 */
filter: alpha(opacity=10); /* de 0 a 10 (para i.e. interprete opacity */
-ms-transition: all 0.5s ease-in;
-moz-transition: all 0.5s ease-in;
-o-transition: all 0.5s ease-in;
-webkit-transition: all 0.5s ease-in;
transition: all 0.5s ease-in;
}
.fade:hover {
opacity: 0.4;
filter: alpha(opacity=4);
-ms-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-iout;
-webkit-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
}
@media(min-width:1081px){
header h1 {
text-align: left;
width: 35%;
}
nav {
text-align: right;
width: 60%;
}
}
@media(max-width:1080px){
nav li {
font-size: 1.3em;
}
article#galeria-inicio {
width: 90%;
}
aside {
width: 20%;
}
}
@media (max-width: 800px) {
nav li {
font-size: 0.95em;
}
article#galeria-inicio {
width: 88%;
}
}
@media (max-width: 600px) { /* tablets o semejantes */
nav li {
display: inline-block;
margin: 0px;
width: 98%;
}
section#principal {
margin-bottom: 0.2em;
}
section#principal, aside {
display: block;
margin-bottom: 0.2em;
width: 95%;
}
}