From 7eea479a89b4bce2b0988f9bbc348292332ba202 Mon Sep 17 00:00:00 2001 From: chest Date: Thu, 30 Jan 2025 23:45:57 +0300 Subject: [PATCH] fix: text center --- static/index.css | 17 +++++++++-------- templates/index.html | 4 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/static/index.css b/static/index.css index 157ff72..821aa10 100644 --- a/static/index.css +++ b/static/index.css @@ -39,9 +39,6 @@ text-align: center; line-height: 2; font-size: 1.1rem; - display: flex; - align-items: center; - justify-content: center; } .header { @@ -58,6 +55,8 @@ color: rgba(225, 225, 225, 0.6); } .translate-header { + width: 100%; + height: 100%; transition: 0.5s; } @@ -131,7 +130,7 @@ } .headerblock { - width: clamp(60rem, 65% , 80rem); + width: clamp(60rem, 65% , 140rem); height: clamp(10rem, 20%, 10rem); padding: 1rem; margin-left: 0rem; @@ -152,8 +151,8 @@ } .info1 { - width: 45%; - height: 50%; + width: clamp(40rem, 45%, 80rem); + height: clamp(30rem, 50%, 30rem); padding: 0.85rem; margin-top: 3.5rem; transition: 1s; @@ -164,8 +163,10 @@ } -.info1:hover { - background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(186, 65, 166, 0.3)); + +.small { + width: clamp(30rem, 35%, 40rem); + height: clamp(30rem, 20%, 30rem); } .navigation{ diff --git a/templates/index.html b/templates/index.html index 80fe97b..9ee69bf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,12 +5,14 @@ {% include '_header.html' %}
-