Skip to content

Commit 36feb53

Browse files
authored
feat(RTL): support RTL mode (#4597)
* chore: 增加 rtl 样式库 * chore: 增加忽略文件 * doc: 代码格式化 * style: 代码块增加 ltr 样式 * style: 更新组件 margin 样式支持 rtl * style: 网站样式支持 rtl * refactor: 兼容 rtl 模式 * style: 表格样式兼容 rtl * chore: 增加 rtl 样式表 * style: 更新分页组件 rtl 样式 * chore: bump version 9.0.0-rc.2.11.2.0 * style: 更新样式
1 parent feda9f4 commit 36feb53

File tree

79 files changed

+12215
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+12215
-152
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,10 @@ src/**/wwwroot/**/uploader
374374
**/package-lock.json
375375

376376
# sass
377-
**/BootstrapBlazor/wwwroot/scss/theme/*.css
378-
**/BootstrapBlazor/wwwroot/scss/theme/*.css.map
379377
**/BootstrapBlazor/wwwroot/css/animate.min.css
380378
**/BootstrapBlazor/wwwroot/css/bootstrapblazor.min.css
381379
**/BootstrapBlazor/wwwroot/css/bootstrap.min.css
380+
**/BootstrapBlazor/wwwroot/css/bootstrap.rtl.min.css
382381
**/BootstrapBlazor/wwwroot/css/sweetalert2.css
383382
**/BootstrapBlazor/wwwroot/css/motronic.min.css
384383
**/BootstrapBlazor/wwwroot/css/nano.min.css

src/BootstrapBlazor.Server/Components/Components/BBLogo.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
border-radius: var(--bs-border-radius);
55
background-color: var(--bb-primary-color);
66
border: solid 1px #fff;
7-
margin-right: 1rem;
7+
margin-inline-end: 1rem;
88
}

src/BootstrapBlazor.Server/Components/Components/CalendarCrewDialogBody.razor.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
.actions > span:not(:last-child) {
24-
margin-right: .5rem;
24+
margin-inline-end: .5rem;
2525
}
2626

2727
.crew:not(:last-child) {
@@ -30,6 +30,6 @@
3030

3131
.crew > input {
3232
max-width: 2rem;
33-
margin-right: 1rem;
33+
margin-inline-end: 1rem;
3434
border: none;
3535
}

src/BootstrapBlazor.Server/Components/Components/ComponentCategory.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.coms-cate ::deep .badge {
1010
position: absolute;
1111
top: 0;
12-
margin-left: 1rem;
12+
margin-inline-start: 1rem;
1313
font-size: .65rem;
1414
}
1515

src/BootstrapBlazor.Server/Components/Components/DemoBlock.razor.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
}
88

99
.card:hover .card-footer-control i {
10-
margin-left: -1.5rem;
11-
margin-left: -72px;
10+
margin-inline-start: -72px;
1211
}
1312

1413
.card:hover .card-footer-control .card-text {
15-
margin-left: 1rem;
14+
margin-inline-start: 1rem;
1615
}
1716

1817
.card:hover .card-footer-control .card-text:before {
@@ -67,7 +66,7 @@
6766
}
6867

6968
.card-footer-control .card-text {
70-
margin-left: 1.5rem;
69+
margin-inline-start: 1.5rem;
7170
position: absolute;
7271
transition: all .3s linear;
7372
}

src/BootstrapBlazor.Server/Components/Components/GlobalSearch.razor.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
.search-dialog-menu {
112112
flex-basis: 240px;
113-
margin-left: 0.5rem;
113+
margin-inline-start: 0.5rem;
114114
padding: .5rem .25rem;
115115
border: var(--bs-border-width) solid var(--bs-border-color);
116116
border-radius: var(--bs-border-radius);
@@ -170,7 +170,7 @@
170170
--bs-badge-border-radius: 50%;
171171
position: absolute;
172172
top: 4px;
173-
margin-left: 4px;
173+
margin-inline-start: 4px;
174174
}
175175

176176
.search-dialog-list .search-dialog-item .search-dialog-item-sub {
@@ -222,7 +222,7 @@
222222
--bb-global-search-left: 20px;
223223
--bb-global-search-right: 20px;
224224
margin-bottom: 0;
225-
margin-right: .5rem;
225+
margin-inline-end: .5rem;
226226
}
227227

228228
.search-dialog {

src/BootstrapBlazor.Server/Components/Components/Header.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
display: flex;
1919
align-items: center;
2020
padding: 0;
21-
margin-right: 0;
21+
margin-inline-end: 0;
2222
}
2323

2424
::deep .btn-fs {

src/BootstrapBlazor.Server/Components/Components/Pre.razor.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
border: 1px solid var(--bs-border-color);
44
border-radius: var(--bs-border-radius);
55
overflow: hidden;
6+
direction: ltr;
67
}
78

89
.pre-code:not(:last-child) {

src/BootstrapBlazor.Server/Components/Layout/BaseLayout.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
::deep .btn-update img {
2828
width: 55%;
29-
margin-left: 2px;
29+
margin-inline-start: 2px;
3030
}
3131

3232
::deep .btn-chat {

src/BootstrapBlazor.Server/Components/Layout/ComponentLayout.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88

99
.bb-theme-label {
10-
margin-right: 1rem;
10+
margin-inline-end: 1rem;
1111
white-space: nowrap;
1212
}
1313

0 commit comments

Comments
 (0)