diff --git a/css/details.css b/css/details.css index 5cd5c7b..4af7b39 100644 --- a/css/details.css +++ b/css/details.css @@ -17,8 +17,7 @@ limitations under the License. main { width: 60rem; max-width: 90%; - max-height: 60rem; - margin: 2rem auto 5rem auto; + margin: 2rem auto 3rem auto; display: flex; flex-direction: column; @@ -35,15 +34,18 @@ header { flex-direction: row; justify-content: flex-start; align-items: stretch; + align-content: stretch; flex-wrap: wrap; column-gap: 1em; } header div { + flex-grow: 1; padding: 2rem 1rem 1rem 1rem; } header div.go-back { + flex-grow: 1; padding-left: 2rem; padding-top: 1rem; min-width: 15rem; @@ -56,6 +58,13 @@ header div.go-back { align-items: center; column-gap: 1rem; } +@media (max-width: 600px) { + header div.go-back { + max-width: 100%; + width: 100%; + border-radius: 1.1rem 1.1rem 0 0; + } +} header div.go-back img { transition: all 250ms ease; @@ -69,6 +78,19 @@ header div.go-back:hover img { transform: translateX(-0.5rem); } +header div.details-title { + padding-right: 2rem; +} +@media (max-width: 600px) { + header div.details-title { + width: 100%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } +} + header h1 { color: #36cf9b; } @@ -84,34 +106,128 @@ header img { main > nav { flex-grow: 0; padding: 1rem 2rem; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + align-items: flex-start; } main > div { + height: 42rem; display: flex; flex-direction: row; + flex-wrap: nowrap; justify-content: space-between; align-items: stretch; overflow: hidden; } +@media (max-width: 670px) { + main > div { + height: auto; + flex-direction: column; + justify-content: flex-start; + align-items: stretch; + } +} + +/* claimed loan offers sidebar styles */ + main > div aside { - flex-grow: 1; - max-width: 20rem; - max-height: 60rem; + height: 100%; + min-width: 18rem; + flex: 1 1 auto; + border-radius: 0 0 0 1.1rem; overflow-y: auto; + overscroll-behavior-y: contain; +} + +@media (max-width: 670px) { + main > div aside { + max-height: 20rem; + } +} + +.offer-selected, .offer-selected > * { + background-color: #1d2345 !important; + color: #ffffff; +} +.offer-selected .offer-loan-info { + color: #3ee3ac !important; } +/* loan offer detail display styling */ + main > div section { - flex-grow: 2; - border-radius: 0 0 1.1rem 0; - padding: 1rem; - max-width: 75%; + flex: 10 5 auto; min-height: 30rem; - /* overflow-y: auto; */ + border-radius: 0 0 1.1rem 0; + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: flex-start; + row-gap: 2rem; } -main > div section div { - word-wrap: anywhere; - max-height: 100%; +@media (max-width: 670px) { + main > div section { + border-radius: 0 0 1.1rem 1.1rem; + } +} + +section div.loan-offer-details { + padding: 2rem; + border-radius: 0 0 1.1rem 0; overflow-y: auto; + overscroll-behavior-y: contain; + display: flex; + flex-direction: column; + row-gap: 2rem; +} + +section div.loan-offer-details h4 { + font-weight: 500; + color: #faa500; +} + +div.loan-offer-details div.car-hero { + width: 100%; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + height: 15rem; +} + +div.loan-offer-details div.car-hero img { + height: 100%; + width: auto; + border-radius: 1rem; +} + +div.loan-offer-details ul { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + align-items: flex-start; + column-gap: 2rem; + row-gap: 1rem; +} + +div.loan-offer-details ul li span { + font-weight: 500; + font-size: 1.2rem; +} + +main > div section div.loan-offer-details input { + border-color: #ffffff; + margin: 0.5rem 0.5rem 0.5rem 0; +} + +main > div section div.loan-offer-details button { + height: 2.4rem; + padding: 0.25em 1.5em; + border-radius: 1.2rem; } diff --git a/css/index.css b/css/index.css index e366aaf..47b9b7f 100644 --- a/css/index.css +++ b/css/index.css @@ -147,6 +147,7 @@ section.sec-claimed-offers header img { section.sec-claimed-offers ul.loan-offers { max-height: 18rem; overflow-y: auto; + overscroll-behavior-y: contain; } section.sec-claimed-offers a.round-empty-pill { diff --git a/css/main.css b/css/main.css index 779e8a1..4d7fa28 100644 --- a/css/main.css +++ b/css/main.css @@ -72,6 +72,8 @@ button { border: none; display: inline-flex; justify-content: center; + align-items: center; + transition: all 250ms ease; } button:hover { diff --git a/details.html b/details.html index 3dba2f9..dfc8317 100644 --- a/details.html +++ b/details.html @@ -29,8 +29,9 @@ - + +