From 5fa8a11e69dbc7af5f08cfb186cf79a0efa4d445 Mon Sep 17 00:00:00 2001 From: Dor-sketch Date: Tue, 25 Jun 2024 05:41:30 +0300 Subject: [PATCH] Fixed layout issue on index.html --- docs/css/styles.css | 14 +++++++++----- docs/index.html | 16 +++++++++------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/docs/css/styles.css b/docs/css/styles.css index 785e536..3078ece 100644 --- a/docs/css/styles.css +++ b/docs/css/styles.css @@ -227,7 +227,7 @@ display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); - width: 90%; + width: 100%; /* Make the board fill the container width */ max-width: 600px; /* Optional: limit the maximum width */ @@ -298,11 +298,12 @@ .theme-toggle { right: 0; - width: 60px; + width: 80px; height: 30px; background-color: #ccc; border-radius: 15px; transform: translateX(-20%); + margin-left:2rem; } .toggle-inner { @@ -321,6 +322,7 @@ background-color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + } .toggle-on .toggle-inner { @@ -538,6 +540,7 @@ label { cursor: pointer; /* Changes cursor to pointer on hover */ transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; /* Adds smooth transition effects */ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */ + margin-right: 0.5rem; } .upload-btn:hover { @@ -557,19 +560,20 @@ label { .design-info { display: flex; flex-direction: column; + text-wrap: wrap; } .design-info p { margin-top: 1 rem; /* Removes default margin */ margin-bottom: 0; - padding-left: 1rem; /* Adds padding to the left */ + padding-left: 0.1rem; /* Adds padding to the left */ padding-top: 0.1rem; /* Adds padding to the top */ } .design-info a { color: var(--cell-focus-background-color); /* Sets the link color */ text-decoration: none; /* Removes underline */ - padding-left: 1rem; /* Adds padding to the left */ - padding-bottom: 1rem; /* Adds padding to the top */ + padding-left: 0.1rem; /* Adds padding to the left */ + padding-bottom: 0rem; /* Adds padding to the top */ } .solve-button { position: absolute; /* or 'fixed' depending on the layout context */ diff --git a/docs/index.html b/docs/index.html index 86ad8eb..6e29d2b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -87,20 +87,16 @@

Now with a WebAssembly frontend.

-

Designed By Dor ©

+

Designed By Dor

dorpascal.com +

©

-
-
-