Commit f0b5c42d authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

Enhance card display on small screens

parent 742b355d
...@@ -108,11 +108,7 @@ html { ...@@ -108,11 +108,7 @@ html {
-ms-transform: scale(0); -ms-transform: scale(0);
transform: scale(0); transform: scale(0);
font-weight: normal; font-weight: normal;
/*margin: 15px 0 0 0;
padding: 140px 60px 0px 60px;*/
margin: 10px; margin: 10px;
padding: 0px 15px;
} }
.hovereffect:hover a.info { .hovereffect:hover a.info {
...@@ -138,7 +134,7 @@ html { ...@@ -138,7 +134,7 @@ html {
.hoverimg { .hoverimg {
opacity: 0; opacity: 0;
margin: -15px; margin: -35px;
} }
.hoverbtn { .hoverbtn {
......
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
<div class="container"> <div class="container">
<div class="card-deck mb-3 text-center"> <div class="card-deck mb-3 text-center">
<div class="row"> <div class="row no-gutters">
<div class="col-sm-6">
<div class="card mb-4 shadow-sm"> <div class="card mb-4 shadow-sm">
<div class="card-header"> <div class="card-header">
<h4 class="my-0 font-weight-normal">R&iacute;o Grijalva</h4> <h4 class="my-0 font-weight-normal">R&iacute;o Grijalva</h4>
...@@ -56,16 +57,17 @@ ...@@ -56,16 +57,17 @@
<span class="photo-credit">Foto: Gabriela L&oacute;pez</span> <span class="photo-credit">Foto: Gabriela L&oacute;pez</span>
<div class="overlay"> <div class="overlay">
<a class="info" href="grijalva/"> <a class="info" href="grijalva/">
<img class="hoverimg mx-auto d-block" src="img/cuenca.png" width="325px"> <img class="hoverimg mx-auto d-block" src="img/cuenca.png" width="100%">
<span class="btn btn-primary hoverbtn" href="grijalva/" role="button">Visitar <span class="btn btn-primary hoverbtn" href="grijalva/" role="button">Visitar sitio</span>
sitio</span>
<br><br> <br><br>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="col-sm-6">
<div class="card mb-4 shadow-sm"> <div class="card mb-4 shadow-sm">
<span class="github-fork-ribbon left-bottom" data-ribbon="En construcción" title="En construcción">En construcción</span> <span class="github-fork-ribbon left-bottom" data-ribbon="En construcción" title="En construcción">En construcción</span>
<div class="card-header"> <div class="card-header">
...@@ -77,20 +79,19 @@ ...@@ -77,20 +79,19 @@
<span class="photo-credit">Foto: Felinto C&oacute;rdoba</span> <span class="photo-credit">Foto: Felinto C&oacute;rdoba</span>
<div class="overlay"> <div class="overlay">
<a class="info" href="riesgos/"> <a class="info" href="riesgos/">
<img class="hoverimg mx-auto d-block" src="img/cuenca.png" width="325px"> <img class="hoverimg mx-auto d-block" src="img/cuenca.png" width="100%">
<span class="btn btn-primary hoverbtn" href="grijalva/" role="button">Visitar <span class="btn btn-primary hoverbtn" href="grijalva/" role="button">Visitar sitio</span>
sitio</span>
<br><br> <br><br>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
<div class="row justify-content-md-center"> <div class="row no-gutters justify-content-md-center">
<div class="col-6"> <div class="col-sm-6">
<div class="card mb-4 shadow-sm"> <div class="card mb-4 shadow-sm">
<span class="github-fork-ribbon left-bottom" data-ribbon="En construcción" title="En construcción">En construcción</span> <span class="github-fork-ribbon left-bottom" data-ribbon="En construcción" title="En construcción">En construcción</span>
<div class="card-header"> <div class="card-header">
...@@ -102,16 +103,14 @@ ...@@ -102,16 +103,14 @@
<span class="photo-credit">Foto: Lucy Nieto</span> <span class="photo-credit">Foto: Lucy Nieto</span>
<div class="overlay"> <div class="overlay">
<a class="info" href="centropais/"> <a class="info" href="centropais/">
<img class="hoverimg mx-auto d-block" src="img/cmcp.png" width="325px"> <img class="hoverimg mx-auto d-block" src="img/cmcp.png" width="100%">
<span class="btn btn-primary hoverbtn" href="centropais/" role="button">Visitar <span class="btn btn-primary hoverbtn" href="centropais/" role="button">Visitar sitio</span>
sitio</span>
<br><br> <br><br>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment