From 683fa2d8029ef6d8044f21e5ef43fcdf22d238a9 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 17 Jun 2024 12:28:17 -0500 Subject: [PATCH] feat(two-pointers): improve code snippet styling --- posts/two-pointers.html | 10 +++++----- styles/post.css | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/posts/two-pointers.html b/posts/two-pointers.html index 5a485e1..86192ba 100644 --- a/posts/two-pointers.html +++ b/posts/two-pointers.html @@ -40,7 +40,7 @@

-
+

technique overview

-

-def maxArea(height: list[int]) -> int:
+          
+
def maxArea(height: list[int]) -> int:
     area = 0
     l, r = 0, len(height) - 1
     while l < r:
@@ -82,8 +82,8 @@ def maxArea(height: list[int]) -> int:
             l += 1
         while l < r and height[r] <= min_height:
             r -= 1
-    return area
-          
+ return area
+ diff --git a/styles/post.css b/styles/post.css index 35ff6bd..7f0841e 100644 --- a/styles/post.css +++ b/styles/post.css @@ -62,21 +62,29 @@ header { left: -20px; } -article { +.post-article { font-size: 1.5em; line-height: 1.3em; padding-bottom: 50px; } -article h2 { +.post-article h2 { font-weight: normal; font-style: italic; } -article h3 { +.post-article h3 { font-weight: normal; } -article a { +.post-article a { text-decoration: underline; } + +.post-code { + display: flex; + justify-content: center; +} +.language-python { + font-size: 0.9em !important; +}