Fix ─ Responsive UI
This commit is contained in:
8 files changed
+762
-497
No files matched your search
+80
-3
@@ -12,8 +12,6 @@ body #div-content {
|
||||
background-color: #1B4056;
|
||||
z-index: 2;
|
||||
padding-bottom: 7rem;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.grid {
|
||||
@@ -33,6 +31,8 @@ body #div-content {
|
||||
|
||||
.grid-item img {
|
||||
border-radius: 2rem;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.grid .one {
|
||||
@@ -61,7 +61,7 @@ body #div-content {
|
||||
label, input, textarea{
|
||||
display: block;
|
||||
margin: 2rem;
|
||||
padding-top: 0.1rem;
|
||||
padding-top: 0.1rem;
|
||||
}
|
||||
input, textarea{
|
||||
background-color: #1B4056;
|
||||
@@ -75,3 +75,80 @@ body #div-content {
|
||||
.contact:hover{
|
||||
transform: scale(1.01);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1280px) {
|
||||
.grid {
|
||||
grid-template-columns: 90%;
|
||||
}
|
||||
|
||||
.right-text {
|
||||
margin-left: 45%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
.grid {
|
||||
position: relative;
|
||||
grid-template-columns: 90%;
|
||||
grid-template-rows: auto;
|
||||
gap: 2rem;
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.grid-item img {
|
||||
float: none;
|
||||
display: block;
|
||||
margin: 0 auto 1rem;
|
||||
width: 100%;
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
.one img {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.right-text {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.contact {
|
||||
width: 100%;
|
||||
max-width: 30rem;
|
||||
margin: 0 auto;
|
||||
label, input, textarea {
|
||||
margin: 1rem;
|
||||
}
|
||||
textarea {
|
||||
width: calc(100% - 2rem);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
input {
|
||||
width: calc(100% - 2rem);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
body #div-content {
|
||||
height: auto;
|
||||
min-height: 30rem;
|
||||
padding-bottom: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.grid {
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.grid .one {
|
||||
padding: 0.6rem;
|
||||
}
|
||||
|
||||
.contact {
|
||||
box-shadow: 0.5rem 0.5rem 0rem #000000;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user