Spaces:
Sleeping
Sleeping
File size: 2,565 Bytes
f34a8a6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | * {
box-sizing: border-box;
}
body {
margin: 0;
width: 100%;
background-color: var(--blanco-pagina);
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.main-div {
display: flex;
align-items: center;
padding: 20px;
text-align: center;
flex-direction: column;
flex: 1;
width: 100vw;
padding: 0;
}
.main-div h1 {
color: var(--verde-500);
font-size: 400%;
text-shadow: -2px -2px 0 var(--verde-900), -2px 2px 0 var(--verde-900), 2px -2px 0 var(--verde-900),
2px 2px 0 var(--verde-900);
}
.main-div span {
border-top: 2px solid black;
border-bottom: 2px solid black;
width: 90vw;
padding: 5px 0px 5px 0px;
font-weight: bold;
}
.main-div section {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1280px) {
.main-div section {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 970px) {
.main-div section {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 650px) {
.main-div section {
grid-template-columns: 1fr;
}
}
.main-div section article {
position: relative;
padding: 5px;
margin: 10px;
aspect-ratio: 1/1;
align-content: center;
max-height: 300px;
border-radius: 2px;
transition: transform 0.3s ease;
background-size: cover;
background-repeat: no-repeat;
overflow: hidden;
border: 0;
}
.main-div section article:hover {
transform: translateX(8px) translateY(-6px);
}
.main-div section article:hover .overlay {
opacity: 0.3;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--overlay-intensidad);
opacity: 1;
transition: opacity 0.3s ease;
border-radius: 2px;
z-index: 1;
}
.main-div section article a {
position: relative;
font-weight: bold;
font-size: 200%;
color: white;
overflow-wrap: break-word;
text-decoration: none;
z-index: 2;
}
/* MODO OSCURO */
body.dark-mode {
background-color: var(--dark-blue);
color: white;
}
body.dark-mode .main-div h1 {
text-shadow: -2px -2px 0 var(--verde-900), -2px 2px 0 var(--verde-900), 2px -2px 0 var(--verde-900),
2px 2px 0 var(--verde-900);
}
body.dark-mode .main-div span {
border-top: 2px solid #e2e2e2;
border-bottom: 2px solid #e2e2e2;
}
body.dark-mode .main-div section article {
border: 1px outset rgb(165, 165, 165);
}
|