diff --git a/README.md b/README.md index 3dd25e4f..4722ab1b 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ # Blowfish Personal Website & Blog Theme for Hugo + +git submodule add -b main https://github.com/nunocoracao/blowfish.git themes/blowfish \ No newline at end of file diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 9fedb261..b420b234 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1698,10 +1698,6 @@ select { flex: 1 1 0%; } -.flex-shrink-0 { - flex-shrink: 0; -} - .grow { flex-grow: 1; } @@ -2899,6 +2895,28 @@ body:has(#menu-controller:checked) { box-shadow: 10px 10px 30px 2px rgba(0, 0, 0, 0.6); } +@media (min-width: 640px) { + .thumbnail { + min-width: 100%; + height: 180px; + } + + .article { + flex-wrap: wrap; + } +} + +@media (min-width: 853px) { + .thumbnail { + min-width: 300px; + height: 180px; + } + + .article { + flex-wrap: nowrap; + } +} + .first\:mt-8:first-child { margin-top: 2rem; } @@ -3382,7 +3400,7 @@ body:has(#menu-controller:checked) { } } -@media (min-width: 768px) { +@media (min-width: 853px) { .md\:mb-0 { margin-bottom: 0px; } diff --git a/assets/css/main.css b/assets/css/main.css index bf171557..bd4b00aa 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -338,6 +338,7 @@ body:has(#menu-controller:checked) { } /* */ + .thumbnail { min-width: 300px; height: 180px; @@ -345,4 +346,24 @@ body:has(#menu-controller:checked) { background-size:cover; background-position:center; box-shadow: 10px 10px 30px 2px rgba(0, 0, 0, 0.6); +} + +@screen sm { + .thumbnail { + min-width: 100%; + height: 180px; + } + .article { + flex-wrap: wrap; + } +} + +@screen md { + .thumbnail { + min-width: 300px; + height: 180px; + } + .article { + flex-wrap: nowrap; + } } \ No newline at end of file diff --git a/layouts/partials/article-link.html b/layouts/partials/article-link.html index 4d473d74..3c1053fc 100644 --- a/layouts/partials/article-link.html +++ b/layouts/partials/article-link.html @@ -1,7 +1,7 @@ {{ with .Params.externalUrl }} - + {{ else }} - + {{ end }} {{- with $.Params.images -}} @@ -13,8 +13,7 @@ {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} - -
{{ end }} -
- - \ No newline at end of file + \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 22e2b313..5fe2f018 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,6 +7,13 @@ module.exports = { ], darkMode: "class", theme: { + screens: { + 'sm': '640px', + 'md': '853px', + 'lg': '1024px', + 'xl': '1280px', + '2xl': '1536px', + }, colors: { transparent: "transparent", neutral: {