Commit e67e0112 by Manivasagam S

style changed

parent e99dbbf0
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
color: white;
font-family: "Open Sans", sans-serif;
}
body {
margin: 0 auto;
}
html {
font-size: 62.5%;
}
nav { nav {
position: fixed; position: sticky;
height: 50px !important; background-color: rgb(249, 249, 249);
padding: 8px 30px; height: 5rem !important;
padding: 0.8rem 1rem;
width: 100%;
top: 0;
} }
nav img { nav img {
height: 70%; height: 70%;
filter: brightness(0);
} }
.main { .main {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr;
max-width: 100vw; width: 100%;
min-height: 100vh; margin: 0 auto;
margin-inline: auto;
} }
.card { .card {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr;
/* max-height: 50vh; */
min-width:0 ;
padding: 2rem 1.7rem;
overflow: hidden;
align-items: center; align-items: center;
justify-items: center;
padding: 4rem;
text-align: center;
width: 100%;
height: 60vh;
max-height: 82rem;
gap: 3vh;
min-height: max-content;
} }
.card .about { .card .about {
text-align: left;
width: 100%; width: 100%;
margin-left: 9%; margin: 0 auto;
} }
.card .about h4, .card .about h5 {
.card .about hr { font-weight: 100;
font-size: 1.8rem; font-size: 1.5rem;
margin-block: 10px; text-transform: uppercase;
width: 70%; opacity: 60%;
text-wrap: wrap; }
font-weight: 400;
.card .about h4 {
font-size: 1.6rem;
text-transform: uppercase;
font-weight: 700;
margin-top: 15px;
} }
.card .about hr { .card .about hr {
height: 1px; height: 0.1rem;
background-color: white; background-color: white;
border: none; border: none;
border-radius: 1px; border-radius: 0.1rem;
width: 100%;
margin: 10px 0;
} }
.card .about .logo { .card .about .logo {
width: 6rem; width: 5rem;
margin-block: 7px;
} }
.card .about img { .card .about img {
width: 100%; width: 100%;
} }
.card > :nth-child(2) { .card .img-container {
width: auto; max-width: 25rem;
width: 100%;
}
.card .img-container img {
max-width: 22rem;
} }
.card > :nth-child(2) img { .card-1 .img-container img {
max-width: 25rem;
}
.card-6 .img-container img {
transform: scale(1.2);
margin-top: 10rem;
}
.card .img-container img {
width: 100%; width: 100%;
height: 300px; height: auto;
object-fit: contain; object-fit: contain;
} }
.card-6 .img-container {
max-height: 20rem;
}
.card-1 {
background: #41ca6e;
}
.card-2 {
background: #fab153;
}
.card-3 {
background: #7277d5;
}
.card-4 {
background: #f87d51;
}
.card-5 {
background: #ed5466;
}
.card-6 {
background: #4ec2e7;
}
/* -------------------- Media Queries -------------------- */
@media (min-width: 640px) {
.card {
grid-template-columns: 1fr 1fr;
text-align: left;
gap: 3rem;
min-height: 50vh;
height: auto;
}
.card .about,
.card .img-container {
max-width: 100%;
justify-self: center;
}
.card-6 .img-container {
transform: scale(1);
max-height: 30rem;
}
.card .img-container {
max-width: 18rem;
}
.card-1 .img-container {
max-width: 24rem;
}
.card .about h4 {
text-transform: none;
}
.card .about h5 {
text-transform: none;
opacity: 100%;
}
.card-1 .about .logo {
width: 5rem;
}
.card-2 .about .logo {
width: 6rem;
}
.card-3 .about .logo {
width: 8rem;
}
.card-4 .about .logo {
width: 9rem;
}
.card-5 .about .logo {
width: 8rem;
}
.card-6 .about .logo {
width: 6rem;
}
}
@media (min-width: 768px) {
nav {
background: transparent;
position: fixed;
top: 0;
}
nav img {
filter: brightness(5);
}
.main {
grid-template-columns: repeat(2, 1fr);
}
.card {
max-width: 100%;
}
.card .about h4 {
font-size: 1.6rem;
font-weight: 400;
}
.card .about h5 {
font-size: 1.4rem;
}
.card-1 .about {
margin-bottom: 3rem;
}
.card-1 .img-container {
max-width: 35rem;
}
.card-6 .img-container {
max-width: 75%;
}
.card-6 .img-container img {
margin-bottom: 7rem;
transform: scale(1.5);
}
}
@media (min-width: 1024px) {
body {
max-width: 2160px;
margin-inline: auto;
}
.main {
grid-template-columns: repeat(3, 1fr);
}
.card {
padding: 4rem;
min-height: 50vh;
}
.card .about h4 {
font-size: 1.5rem;
font-weight: 400;
}
.card .about h5 {
font-size: 1.4rem;
}
.card .about hr {
width: auto;
}
.card-6 .img-container {
transform: scale(1.2);
}
}
@media (min-width: 1536px) {
.card {
min-height: 48rem;
}
.card > .img-container img {
width: 100%;
}
.card .img-container {
width: 20rem;
display: flex;
}
.card-1 > .img-container img {
max-width: 20rem;
}
.card-1 .img-container {
margin-left: 9rem;
}
.card-6 .img-container img {
margin-left: 9rem;
}
.card-1 > :nth-child(1) {
margin-left: 3rem;
}
.card .about h4 {
font-size: 1.7rem !important;
font-weight: 400;
}
.card .about h5 {
font-size: 1.5rem !important;
}
.card-6 .img-container {
transform: scale(0.9);
margin-right: 9rem;
}
.card-1 .img-container {
transform: scale(1.1);
}
}
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