diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-08-27 14:13:52 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-08-27 14:13:52 +0200 |
| commit | 0f1dc65be85e5f539933e2fdeacab2e31a617ca6 (patch) | |
| tree | d356ac453fc1e62a5f5f2be423ba6b030d22a2d7 /themes/simple/layouts/partials | |
| parent | 9f5454bda6299db43a4e9de5b3716471388b81d9 (diff) | |
| download | mitjafelicijan.com-0f1dc65be85e5f539933e2fdeacab2e31a617ca6.tar.gz | |
Added better mobile support
Diffstat (limited to 'themes/simple/layouts/partials')
| -rw-r--r-- | themes/simple/layouts/partials/footer.html | 2 | ||||
| -rw-r--r-- | themes/simple/layouts/partials/head.html | 8 | ||||
| -rw-r--r-- | themes/simple/layouts/partials/header.html | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/themes/simple/layouts/partials/footer.html b/themes/simple/layouts/partials/footer.html index 6e7ec9c..3d1e481 100644 --- a/themes/simple/layouts/partials/footer.html +++ b/themes/simple/layouts/partials/footer.html | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | <footer class="container-blog text-gray-400 text-sm mb-12"> | 1 | <footer class="container-blog px-6 md:p-0 text-gray-400 text-sm mb-12"> |
| 2 | This website does not track you. | 2 | This website does not track you. |
| 3 | Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer" class="underline hover:text-gray-800">CC BY 4.0 license</a> unless specified otherwise. | 3 | Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer" class="underline hover:text-gray-800">CC BY 4.0 license</a> unless specified otherwise. |
| 4 | Blog feed is available as <a href="/index.xml" target="_blank" class="underline hover:text-gray-800">RSS</a> feed. | 4 | Blog feed is available as <a href="/index.xml" target="_blank" class="underline hover:text-gray-800">RSS</a> feed. |
diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html index 716b1f0..293bb85 100644 --- a/themes/simple/layouts/partials/head.html +++ b/themes/simple/layouts/partials/head.html | |||
| @@ -172,4 +172,12 @@ | |||
| 172 | margin-block-start: 40px; | 172 | margin-block-start: 40px; |
| 173 | margin-block-end: 40px; | 173 | margin-block-end: 40px; |
| 174 | } | 174 | } |
| 175 | |||
| 176 | @media only screen and (max-width: 600px) { | ||
| 177 | article img { | ||
| 178 | max-width: 100%; | ||
| 179 | position: initial; | ||
| 180 | margin: 20px auto; | ||
| 181 | } | ||
| 182 | } | ||
| 175 | </style> | 183 | </style> |
diff --git a/themes/simple/layouts/partials/header.html b/themes/simple/layouts/partials/header.html index e234615..4fefa0d 100644 --- a/themes/simple/layouts/partials/header.html +++ b/themes/simple/layouts/partials/header.html | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | <div class="container-blog"> | 1 | <div class="container-blog px-6 md:p-0"> |
| 2 | <header class="flex py-4 mt-4 mb-6"> | 2 | <header class="flex py-4 mt-4 mb-6"> |
| 3 | <h3 class="flex-grow"> | 3 | <h3 class="flex-grow"> |
| 4 | <a href="/" itemprop="url" class="text-xl font-bold hover:bg-yellow-200">Mitja Felicijan</a> | 4 | <a href="/" itemprop="url" class="text-xl font-bold hover:bg-yellow-200">Mitja Felicijan</a> |
| @@ -12,7 +12,7 @@ | |||
| 12 | <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-200">CV</a> | 12 | <a href="/curriculum-vitae.html" class="font-medium px-2 hover:bg-yellow-200">CV</a> |
| 13 | <a href="/books.html" class="font-medium px-2 hover:bg-yellow-200">Books</a> | 13 | <a href="/books.html" class="font-medium px-2 hover:bg-yellow-200">Books</a> |
| 14 | 14 | ||
| 15 | <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-200">RSS</a> | 15 | <a href="/index.xml" itemprop="url" class="font-medium px-2 hover:bg-yellow-200 hidden md:block">RSS</a> |
| 16 | </nav> | 16 | </nav> |
| 17 | </header> | 17 | </header> |
| 18 | </div> | 18 | </div> |
