From ab0ed7c99e28f4c6e91755c182d81ed71cb40b5b Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 16 Nov 2024 00:39:47 -0500 Subject: Update formatting --- css/website.css | 15 ++++++++------- templates/error.html.twig | 2 +- templates/grid.html.twig | 12 +++++------- templates/home.html.twig | 4 ++-- templates/page.html.twig | 2 +- 5 files changed, 17 insertions(+), 18 deletions(-) diff --git a/css/website.css b/css/website.css index 69a6b49..453596b 100644 --- a/css/website.css +++ b/css/website.css @@ -57,7 +57,7 @@ a.white:hover { } li { - padding: 2px 0px; + padding: 2px 0; } /* Table */ @@ -107,10 +107,9 @@ body { display: flex; min-width: 100%; min-height: 100%; - font-family: 'Inter'; + font-family: 'Inter', sans-serif; line-height: 1.7; margin: 0; - display: flex; flex-direction: column; } @@ -241,7 +240,7 @@ body { /* home page only */ .h1t { font-size: 500%; - margin: 0px; + margin: 0; } .h2t { @@ -249,9 +248,8 @@ body { } hr { - border-color: white; border: 1px solid #ffffff1f; - margin: 60px 0px; + margin: 60px 0; } .grid { @@ -265,7 +263,9 @@ hr { /*border-width: 1px;*/ /*border-style: solid;*/ /*border-radius: 10px;*/ + box-sizing: border-box; padding: 10px; + max-width: 100%; } a:hover .proj-thumb { @@ -273,8 +273,9 @@ a:hover .proj-thumb { } .grid .proj-thumb { - height: 400px; width: 400px; + max-width: 100%; + aspect-ratio: 1/1; background-color: #222; } diff --git a/templates/error.html.twig b/templates/error.html.twig index ca93074..6bac338 100644 --- a/templates/error.html.twig +++ b/templates/error.html.twig @@ -1,6 +1,6 @@ {% do assets.addCss('theme://css/website.css', 100) %} - + diff --git a/templates/grid.html.twig b/templates/grid.html.twig index 8935ec2..c23e98d 100644 --- a/templates/grid.html.twig +++ b/templates/grid.html.twig @@ -17,13 +17,11 @@ {{ page.content|raw }}
{% for current_page in page.children %} - -
-
- {{ current_page.media.images|first|raw }} -
- {{ current_page.title|e }} -
+
+
+ {{ current_page.media.images|first|raw }} +
+ {{ current_page.title|e }}
{% endfor %}
diff --git a/templates/home.html.twig b/templates/home.html.twig index 5c7d0b7..b7a40e1 100644 --- a/templates/home.html.twig +++ b/templates/home.html.twig @@ -1,6 +1,6 @@ -{% do assets.addCss('theme://css/website.css', 100) %} - +{% do assets.addCss('theme://css/website.css', 100) %} + diff --git a/templates/page.html.twig b/templates/page.html.twig index 41733c9..e9330fc 100644 --- a/templates/page.html.twig +++ b/templates/page.html.twig @@ -1,6 +1,6 @@ {% do assets.addCss('theme://css/website.css', 100) %} - + -- cgit v1.2.3