Add ─ Box-shadow effects with responsive sizes on grid-items in cubes, cubes-seven, squares and squares-solar | Add ─ Hover scale transform on grid-items | Edit ─ Refactor squares-lore.css with simplified grid layout and floated images | Edit ─ Replace cubes.css link with cubes-seven.css in v-one.html | Edit ─ Remove unnecessary margins and paddings on responsive breakpoints | Add ─ background-author.jpg image

This commit is contained in:
nocode committed 2026-05-07 16:19:33 +02:00
1 parent 7ebde16426
commit 8126745004
8 files changed
+133 -49

No files matched your search

+47 -42
View File
@@ -1,93 +1,82 @@
body #div-content {
height: 100rem;
position: relative;
background-color: #1B4056;
z-index: 2;
padding-bottom: 7rem;
padding: 5rem 0 7rem;
}
.grid {
position: absolute;
display: grid;
gap: 5rem;
grid-template-columns: repeat(1, 90rem);
justify-self: center;
grid-template-columns: 80%;
justify-content: center;
margin-top: 5rem;
border-radius: 0.5rem;
}
.grid-item {
height: 96rem;
align-self: center;
background-color: #235573;
padding: 1rem;
border-radius: 0.4rem;
overflow: hidden;
box-shadow: 1rem 1rem 0rem #000000;
}
.grid-item:hover {
transform: scale(1.01);
}
.grid-item img {
border-radius: 2rem;
max-width: 100%;
box-shadow: 1rem 1rem 0rem #000000;
max-width: 30%;
height: auto;
float: left;
margin: 0 1.5rem 1rem 0;
}
.grid-item img:hover {
box-shadow: 0.2rem 1rem 2rem #000000;
transform: scale(1.01);
box-shadow: 1rem 1rem 0rem #000000;
cursor: default;
}
.grid .one ,.three,.five {
background-color: #235573;
padding: 1rem;
border-radius: .40rem;
}
.grid .two ,.four, .six {
background-color: #235573;
padding: 1rem;
border-radius: .40rem;
}
.grid, .one img {
float: left;
}
.right-text {
margin-left: 20rem;
}
.grid-item p {
font-size: 20px;
text-align: justify;
}
@media screen and (max-width: 1280px) {
.grid {
grid-template-columns: 90%;
gap: 3rem;
}
.grid-item img {
max-width: 40%;
}
}
@media screen and (max-width: 1024px) {
.grid {
position: relative;
grid-template-columns: 90%;
gap: 2rem;
margin-top: 2rem;
}
.grid-item {
height: auto;
box-shadow: 0.6rem 0.6rem 0rem #000000;
}
.grid-item img {
float: none;
display: block;
margin: 0 auto 1rem;
max-width: 100%;
width: 100%;
box-shadow: 0.6rem 0.6rem 0rem #000000;
}
.grid .one img {
float: none;
}
.right-text {
margin-left: 0;
.grid-item img:hover {
box-shadow: 0.6rem 0.6rem 0rem #000000;
}
.grid-item p {
@@ -95,18 +84,34 @@ body #div-content {
}
body #div-content {
height: auto;
min-height: 30rem;
padding-bottom: 5rem;
padding: 3rem 0 5rem;
}
}
@media screen and (max-width: 480px) {
.grid {
grid-template-columns: 95%;
gap: 1.5rem;
}
.grid-item {
padding: 0.6rem;
box-shadow: 0.3rem 0.3rem 0rem #000000;
}
.grid-item img {
box-shadow: 0.3rem 0.3rem 0rem #000000;
}
.grid-item img:hover {
box-shadow: 0.3rem 0.3rem 0rem #000000;
}
.grid-item p {
font-size: 16px;
}
body #div-content {
padding: 2rem 0 4rem;
}
}