width: 4rem;
height: 4rem;
right: 0.4rem;
+ border-radius: 20px;
background-image: url('../images/menu.png');
background-color: transparent; /* Cuando usamos background-image se pone el background-color en blanco por default por eso le indicamos que sea transparente para que se pueda ver la imagen. */
border: none;
cursor: pointer;
+ user-select: none;
+}
- transition: background-image ease 0.2s;
-
+nav button:hover{
+ background-color: var(--bgColorMidDark);
}
nav button[data-visible="true"] {
main div {
display: flex;
flex-flow: row wrap;
- align-items: flex-start;
+ align-items: center;
justify-content: space-between;
+ color: var(--bgColorLight);
}
main div > article {
margin: 1rem;
border-radius: 0.5rem;
- max-height: 20rem;
- min-height: 20rem;
+ max-height: 25rem;
+ min-height: 25rem;
+ min-width: 20rem;
background-color: var(--bgColorLightDark);
box-shadow: 0 4px 1px 0.2px var(--bgColorDark);
}
main div > article img {
- width: 100%;
+ display: block;
+ margin: 1rem auto;
min-height: 12rem;
max-height: 12rem;
- background-color: var(--bgColorLight);
}
main div > article span {
padding: 0 1rem;
- word-break: break-all;
+ word-break: normal;
+ overflow-wrap: break-word;
display: block;
}
margin: 0 auto;
}
-@media screen and (min-width: 780px) {
+@media screen and (max-width: 480px) {
+ body {
+ min-width: 25rem;
+ }
+ main div > article {
+ min-width: calc(100% - 2rem);
+ }
+}
+
+@media screen and (min-width: 840px) {
:root {
--globalScale: 1.5;
}
nav button, aside li a {
display: none;
}
+
+ main div {
+ justify-content: space-evenly;
+ }
+
+ main div > article {
+ max-width: 30rem;
+ }
}
:root {
--globalScale: 2;
}
+
+ main div > article img {
+ min-height: 5rem;
+ max-height: 5rem;
+ }
+
+
+ main div article {
+ width: calc(30% - 2rem);
+
+ max-height: 15rem;
+ min-height: 15rem;
+ min-width: 10rem;
+
+ }
+
+ main div article p, a{
+ font-size: 1rem;
+ }
}
hamButton.addEventListener("click", (e)=>{
if(e.target.attributes[0].nodeValue === 'true'){
e.target.attributes[0].nodeValue = false;
- aside.setAttribute("style", "display: none");
+ aside.setAttribute("style", "display: none;");
} else {
e.target.attributes[0].nodeValue = true;
- aside.setAttribute("style", "display: flex");
+ aside.setAttribute("style", "display: flex;");
}
});