From 8b32ccb5ef50e7f9648645b32053ca071f9d9127 Mon Sep 17 00:00:00 2001 From: Bjorn Linder Date: Fri, 24 Nov 2023 12:07:07 +0800 Subject: [PATCH] responsive css for 3 col to 1 in `best solution for you` section --- assets/css/stylesheet.css | 20 ++++++++++++++------ index.html | 10 +++++----- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/assets/css/stylesheet.css b/assets/css/stylesheet.css index 4257003..9fc94aa 100644 --- a/assets/css/stylesheet.css +++ b/assets/css/stylesheet.css @@ -344,10 +344,13 @@ ul.pNav li:hover::after, ul.pNav li.active::after { display: inline-block; } +.col-3-sm-1 { + width: 33%; +} + .row-type { margin-left: auto; float: left; - width: 20%; padding: 0 30px; text-align: center; transition: all .2s ease-in-out; @@ -359,11 +362,20 @@ ul.pNav li:hover::after, ul.pNav li.active::after { border: 2px solid #fff; border-radius: 8px; box-shadow: 0 15px 30px rgba(102, 113, 228, 0.13); - height: 470px; + height: 510px; margin: 20px 0; transition: all .2s ease-in-out; } +@media (max-width: 782px) { + .col-3-sm-1 { + width: 100%; + } + .col-type { + height: 250px; + } +} + .col-type:hover { transform: scale(1.1); } @@ -395,7 +407,6 @@ ul.pNav li:hover::after, ul.pNav li.active::after { @media (max-width: 1600px) { .row-type { padding: 0 10px; - width: 24%; } } @@ -411,15 +422,12 @@ ul.pNav li:hover::after, ul.pNav li.active::after { } .row-type { padding: 0 10px; - width: 100%; } .col-type { width: 80%; margin: 20px auto; - height: 200px; } .col-type p { - line-height: normal; padding: 0 10px; } .steps { diff --git a/index.html b/index.html index 5a239eb..274fb9c 100644 --- a/index.html +++ b/index.html @@ -38,26 +38,26 @@

Industry Experience

The Best Solution For You

-
+
Websites
-

WEB

+

WEB DEVELOPMENT

Custom web applications designed for the best user experience. We'll design and build static webpages, custom applications, or help with your existing site.

-
+
Web Portal
-

Game Dev

+

GAME DEVELOPMENT

We'll work on games with Unity, Godot, and JavaScript. We're currently in the early stages of 4x and reverse TD games.

-
+
Design