docs: hub page responsive fixed
This commit is contained in:
parent
cb3c70025f
commit
89133fb629
@ -7,25 +7,33 @@
|
|||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
justify-content: center; /* Center align the cards */
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
|
||||||
.cards {
|
|
||||||
gap: 2rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: #ECECEF;
|
background-color: #ECECEF;
|
||||||
width: 30%;
|
width: calc(33.33% - 2rem); /* Adjust width for responsiveness */
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
margin-bottom: 2rem; /* Add margin between cards */
|
||||||
|
padding: 1rem; /* Add padding to cards */
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
.card {
|
||||||
|
width: calc(50% - 2rem); /* Adjust width for smaller screens */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 576px) {
|
||||||
|
.card {
|
||||||
|
width: calc(100% - 2rem); /* Adjust width for mobile screens */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardContent {
|
.cardContent {
|
||||||
@ -76,4 +84,4 @@
|
|||||||
|
|
||||||
.card a:hover {
|
.card a:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user