From 687b9d035c6ef62a9cf4a4b1d7e70b2bc9831329 Mon Sep 17 00:00:00 2001 From: Adam Iannazzone <46025473+jiannazzone@users.noreply.github.com> Date: Tue, 24 Sep 2024 19:16:37 -0400 Subject: [PATCH] Style adjustments to features --- css/style.css | 40 ++++++----- index.html | 164 +++++++++++++++----------------------------- scripts/features.js | 43 +++++++----- 3 files changed, 103 insertions(+), 144 deletions(-) diff --git a/css/style.css b/css/style.css index ee62168..a593187 100644 --- a/css/style.css +++ b/css/style.css @@ -44,10 +44,6 @@ nav i.bi { } nav .nav-link:hover, nav .nav-link.show { - /* background: var(--rd-purple); - border: white solid 1px; - border-radius: 5px; - margin: -1px; */ color: white; } @@ -103,32 +99,44 @@ footer { border-bottom: var(--rd-purple) 5px solid; } -#feature-card-row, #screenshot-row { +#feature-row { flex-wrap: nowrap; scrollbar-width: none; scroll-behavior: smooth; } -.screenshot { +.feature-container { + transition: 0.5s; + cursor: pointer; scale: 80%; + scroll-margin-top: 20px; + max-height: fit-content; +} + +.feature-container#active-feature { + transition: 0.5s; + scale: 100%; +} + +.empty-feature-container { + visibility: hidden; +} + +img.screenshot { + border: white 2px solid; + border-radius: 5px; + margin: auto; + width: 150%; } .feature-card { background: var(--rd-blue); border: white 2px solid; border-radius: 5px; - cursor: pointer; - scale: 80%; + transition: 0.5s; + width: 75%; } -.feature-card#active-feature-card, .screenshot#active-screenshot { - scale: 100%; - transition: 0.25s; -} - -.feature-card#empty-feature, .screenshot#empty-screenshot { - visibility: hidden; -} .feature-card h3 { color: white; font-family: var(--pixel-font); diff --git a/index.html b/index.html index 5d2d164..1e3e785 100644 --- a/index.html +++ b/index.html @@ -223,121 +223,65 @@ -
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit + sodales + mattis. Praesent eget lacinia risus, ut bibendum est.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit + sodales + mattis. Praesent eget lacinia risus, ut bibendum est.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit + sodales + mattis. Praesent eget lacinia risus, ut bibendum est.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit + sodales + mattis. Praesent eget lacinia risus, ut bibendum est.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit + sodales + mattis. Praesent eget lacinia risus, ut bibendum est.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit sodales - mattis. Praesent eget lacinia risus, ut bibendum est.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit - sodales mattis. Praesent eget lacinia risus, ut bibendum est.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit sodales - mattis. Praesent eget lacinia risus, ut bibendum est.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit sodales - mattis. Praesent eget lacinia risus, ut bibendum est.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit sodales - mattis. Praesent eget lacinia risus, ut bibendum est.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lacinia elit sagittis elit sodales - mattis. Praesent eget lacinia risus, ut bibendum est.
-