Commit Graph

65 Commits

Author SHA1 Message Date
Sat Naing f7cb267854 refactor: update tailwind typography css overrides (#538)
* refactor: update tailwind typography css overrides

Update TailwindCSS typography overrides to use less
`important`; and update selectors to make them easier
to read.

* refactor: update focus styles to be consistent
2025-06-14 23:44:03 +07:00
Sat Naing 76e15b55e3 feat: add Shiki transformers for better syntax highlighting (#534)
* refactor: organize prose related styles inside nested prose

* feat: add Shiki transformers for better syntax highlighting

* chore: update blog posts using Shiki transformers

Closes #210
2025-06-13 23:08:18 +07:00
Sat Naing 5f72b93d92 refactor: extract redundant max-width into utility (#525)
* refactor: extract redundant max-width into utility

Extract redundant max-width into a universal tailwind
utility class. By doing so, the width of the layout
in different pages can be customized easily.

* docs: update docs for modifying `max-w-app` utility
2025-06-09 11:42:33 +07:00
Tanishq Manuja ae80e995a5 fix: add scroll offset for anchor targets (#506)
* fix: add scroll offset for anchor targets

* fix: update scroll-margin-block to 1rem

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2025-06-07 17:30:15 +07:00
Sat Naing 5cff7c50b9 feat: add global and per-post timezone support (#491)
* refactor: replace embedded svg with svg icon

* feat: add global and per-post timezone support

- add `SITE.timezone` in config to define a global default timezone.
- allow per-post timezone overrides via `timezone` in frontmatter.
- update date formatting logic to use the correct timezone when rendering timestamps.
- ensure that posts without a timezone fallback to `SITE.timezone`.
- improve consistency between local and deployed timezones.

* refactor: replace `LOCALE` constant with  `SITE.lang`

* docs: update guides

* fix: update code word-break inside markdown table

Closes #466
2025-03-22 17:21:21 +07:00
Sat Naing 48f200f444 fix: prevent overflow by adding line breaks in table codes (#485)
Horizontal overflow occurs when a code block in markdown 
table is too long. This is prevented by adding line breaks 
(`break-all`) in codes inside table.
2025-03-18 23:26:33 +07:00
satnaing 98bff0a876 fix: update blog table padding 2025-03-08 18:21:37 +07:00
satnaing 172e14b5f4 build!: upgrade to Tailwind CSS v4 2025-03-08 18:21:37 +07:00
Sat Naing be172efa17 refactor: update tailwind classes to v3 syntax (#345)
Updated background/border opacity to the new syntax:
- border-skin-fill border-opacity-40 => border-skin-fill/40
- selection:bg-skin-accent selection:bg-opacity-70 => selection:bg-skin-accent/70
2024-08-04 10:49:13 +07:00
Sat Naing 9de19c2c68 feat: support light/dark theme in code blocks (#327)
Update Astro and its related dependencies. Support
light/dark theme in code-blocks.
2024-07-21 16:18:22 +07:00
vrabe ece0682adc fix: resolve broken line break in inline code (#237) 2024-01-17 14:50:44 +06:30
David Legrand 1331795a49 fix: reduce margin-bottom on markdown images (#235)
* Disable margin bottom on image

The result is better on images with caption defined as: 
```
![alt text](/path/to/img)
*caption*
```

* refactor: combine mt and mb into my-2

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
2024-01-15 19:54:14 +06:30
satnaing e7c9a56722 refactor: enable scroll-smooth only in post detail page 2024-01-04 15:53:12 +06:30
satnaing c526157118 feat: implement back-to-top button in blog post page
Implement back-to-top button under tags in PostDetails page. Update html scroll-behavior to smooth.

Closes: #156
2023-12-15 14:21:17 +06:30
Haibo 64b3a286e6 fix: solve invisible text code block issue in light-mode (#163)
* fix: pre > code font color

Co-authored-by: Nomango <nomango@qq.com>
Co-authored-by: shuaixr <1025sxr@gmail.com>

* refactor: extend other css properties besides typography

Update theme extend to include other properties like textColor etc, to clarify confusion.

---------

Co-authored-by: shuaixr <1025sxr@gmail.com>
Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2023-12-12 14:57:49 +06:30
satnaing 79d569d053 fix(layout): use 100svh for min-height on body instead of 100vh
Address a mobile layout issue where using 100vh caused unexpected behavior. Switching to 100svh
resolves this problem by accounting for the mobile browser's UI components. This change ensures a
consistent and improved user experience on smaller screens.

resolves #127
2023-10-06 11:45:39 +06:30
tanishqmanuja d025c914d9 fix: anchor oveflow on small screen size 2023-10-03 14:17:50 +06:30
satnaing 5178f75631 chore: update dependencies and format code 2023-09-26 02:04:11 +06:30
Tanjim Hossain 0af32518b3 fix: resolve single-line code block wrapping issue (#121)
white-space should be pre-wrap - or else, a single long line of code block may break the layout of whole page on mobile devices

use word break for code and blockquote, white-space: pre for fenced code
2023-09-26 02:04:11 +06:30
satnaing 9eeb8fc76e fix: prevent white flash in dark mode when navigate 2023-09-26 02:04:11 +06:30
Tanishq Manuja 6c7d04fa12 feat: add view transitions for card on search page (#118)
* feat: use predictable slug for card transition

* feat: enable view transitions in search card

* refactor: use Card.tsx instead of Card.astro

* refactor: handle card styling in component

* refactor: remove unused class name

---------

Co-authored-by: Sat Naing <satnaingdev@gmail.com>
2023-09-26 02:04:11 +06:30
satnaing a060cb5c87 feat: add transition effect if light/dark changes 2023-09-26 02:04:11 +06:30
satnaing e486687610 feat: upgrade to astro v3
Upgrade to astro v3. Update dependencies. Fix codes and features due to migration.

BREAKING CHANGE: Astro v3

resolve #111
2023-09-26 02:04:11 +06:30
Mateus Abelli 0c92492959 fix(css): text wrap in code blocks 2023-08-09 14:11:22 +06:30
satnaing 8a99601e93 fix: update card bg color 2023-01-31 20:09:05 +06:30
satnaing cfd1072d9d refactor: change default dark theme 2023-01-31 20:04:08 +06:30
satnaing 1a427285f3 style: format styles with Tailwind Prettier plugin 2023-01-31 15:53:49 +06:30
satnaing 0eeed8e870 refactor: update toggle theme function for better structure and a11y
Move theme switch js codes in Layout.astro file to external js file (toggle-theme.js). Update
.prettierignore to exclude the new toggle-theme.js file.  Update base.css for new data-theme
attribute.
2022-11-26 23:43:27 +06:30
Sat Naing 4caf3bf60a Change back to Astro default light color scheme 2022-09-27 14:25:53 +06:30
Sat Naing 5c32023cb2 Update style for prose image margin and heading-3 2022-09-26 22:07:13 +06:30
Sat Naing 1fd1b9111b Remove unused prose details element style 2022-09-26 18:41:41 +06:30
Sat Naing f73aa66f47 Update collapsible section outline style on focus 2022-09-26 16:45:13 +06:30
Sat Naing 88b95df2e4 Update about layout prose style 2022-09-26 12:18:16 +06:30
Sat Naing eb47c8549c Update prose bullets, bockquote accent colors 2022-09-26 09:45:20 +06:30
Sat Naing 321651e79b Change light color scheme for a while 2022-09-26 02:30:11 +06:30
Sat Naing 5ebee52ccd Update prose styling 2022-09-26 02:28:54 +06:30
Sat Naing 19ec6c87aa Add styling for prose table and prose heading 2022-09-25 17:40:24 +06:30
Sat Naing 15cbfd9741 Add border in prose image 2022-09-23 21:35:06 +06:30
Sat Naing f367e05793 Remove duplicated accent colors 2022-09-22 20:04:54 +06:30
Sat Naing 2a464e8860 Add custom scrollbar 2022-09-19 23:16:02 +06:30
Sat Naing 24a25a313d Add global style for tabler icon 2022-09-19 12:46:11 +06:30
Sat Naing 4457670aed Fix bullet point not displaying problem 2022-09-17 15:32:53 +06:30
Sat Naing 14f23f2516 Add table of contents base style 2022-09-17 13:56:14 +06:30
Sat Naing 8239ee80f7 Add background & text selection colors 2022-09-13 23:39:54 +06:30
Sat Naing 4ef133506c Update prose image style to be center 2022-09-12 19:08:43 +06:30
Sat Naing dc35507d98 Update link color to accent on hover 2022-09-12 19:05:12 +06:30
Sat Naing c7c967534d Add focus-outline component class 2022-09-12 18:39:26 +06:30
Sat Naing 82ff70ed08 Add outline style on focus-visible 2022-09-12 18:18:45 +06:30
Sat Naing f07d47859f Update overflow of li to x-clip 2022-09-12 09:37:17 +06:30
Sat Naing efec1d3f07 Refactor body class codes to base.css 2022-09-11 15:25:14 +06:30