Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TRANSLATORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ This file contains the translation contributors who are willing to help translat
## Tamil

- [@sathishs4r](https://github.com/sathishs4r)

## Bangla/Bengali

- [@forhadakhan](https://github.com/forhadakhan)
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ languages:
ro: Română
da: Dansk
el: Ελληνικά
bn: বাংলা
versions:
- 2.0.0
- 2.0.0-rc.2
Expand Down
54 changes: 54 additions & 0 deletions css/lang/bn.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* Load from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;700&display=swap');

/* CSS variables for easy adjustment */
:root {
--bn-sans: 'Noto Sans Bengali', 'Noto Sans', system-ui, -apple-system, "Segoe UI",
Roboto, "Helvetica Neue", Arial, sans-serif;
--bn-base-size: 16px;
--bn-line-height: 1.45;
}

/* Global defaults — set the default font family and basic typographic rules */
html, body {
font-family: var(--bn-sans) !important;
font-size: var(--bn-base-size);
line-height: var(--bn-line-height);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
color: inherit;
}

/* Headings, paragraphs, lists — inherit the Bengali UI font */
h1, h2, h3, h4, h5, h6,
p, blockquote, ul, ol, li, dl, dt, dd {
margin: 0;
font-family: var(--bn-sans) !important;
}

/* Slightly increased line-height for headings for Bengali readability */
h1, h2, h3, h4, h5, h6 {
line-height: 1.25;
}

/* Utility: apply font specifically for elements marked as Bengali content
(useful when a page is multilingual). Prefer this to global override if possible. */
:lang(bn),
[lang="bn"],
[data-lang="bn"] {
font-family: var(--bn-sans) !important;
}

/* Form controls — ensure Bengali font is applied */
input, textarea, select, button, optgroup, option {
font-family: var(--bn-sans) !important;
font-size: 1rem;
line-height: var(--bn-line-height);
}

/* Code and monospace elements — keep standard monospace fonts */
code, pre, kbd, samp {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
"Courier New", monospace;
}
Loading