Skip to content

Commit a794ebd

Browse files
author
Farzin Seyfolahi
committed
RTL version of Widgets improved.
1 parent e043ae8 commit a794ebd

File tree

12 files changed

+99
-18
lines changed

12 files changed

+99
-18
lines changed

BlogEngine/BlogEngine.NET/App_Data/labels.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ categoryDeleted
9999
categoryUpdated
100100
center
101101
changePassword
102+
changeName
102103
cheked
103104
chooseFromExistingTags
104105
chooseOtherName

BlogEngine/BlogEngine.NET/App_GlobalResources/labels.designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/App_GlobalResources/labels.fa.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,4 +1993,7 @@
19931993
<data name="txtErrorTitle" xml:space="preserve">
19941994
<value>عنوان خطا</value>
19951995
</data>
1996+
<data name="changeName" xml:space="preserve">
1997+
<value>تغییر نام</value>
1998+
</data>
19961999
</root>

BlogEngine/BlogEngine.NET/App_GlobalResources/labels.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,4 +2591,7 @@
25912591
<data name="plugins" xml:space="preserve">
25922592
<value>Plugins</value>
25932593
</data>
2594+
<data name="changeName" xml:space="preserve">
2595+
<value>Change Name</value>
2596+
</data>
25942597
</root>

BlogEngine/BlogEngine.NET/admin/app/custom/widgets/widgetGallery.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ <h4 class="modal-title">{{package.Title}}</h4>
4646
</div>
4747
<div class="main-header clearfix">
4848
<h2 class="page-title pull-left">{{lbl.gallery}}</h2>
49-
<button type="button" class="btn btn-default btn-sm btn-hasicon pull-left" onclick="window.history.back()"><i class="fa fa-angle-left"></i>Back</button>
49+
<button type="button" class="btn btn-default btn-sm btn-hasicon pull-left" onclick="window.history.back()"><i class="fa fa-angle-left"></i>{{lbl.back}}</button>
5050
<button class="right-side-toggle pull-right"><span></span><span></span><span></span></button>
5151
<div class="right-side pull-right">
5252
<div class="search pull-right">
5353
<i class="fa fa-search"></i>
5454
<input type="text" ng-model="query" ng-change="search()" placeholder="{{lbl.search}}..." />
5555
</div>
5656
<div class="dropdown pull-right">
57-
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Most downloaded<i class="fa fa-angle-down"></i></button>
57+
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">{{lbl.mostDownloaded}}<i class="fa fa-angle-down"></i></button>
5858
<ul class="dropdown-menu dropdown-menu-filter">
59-
<li><a id="fltr-new" data-value="New" ng-click="sortBy('LastUpdated')">Latest</a></li>
60-
<li><a id="fltr-dwn" data-value="Downloads" ng-click="sortBy('DownloadCount')">Most downloaded</a></li>
61-
<li><a id="fltr-pop" data-value="Popular" ng-click="sortBy('Rating')">Highest rated</a></li>
59+
<li><a id="fltr-new" data-value="New" ng-click="sortBy('LastUpdated')">{{lbl.latest}}</a></li>
60+
<li><a id="fltr-dwn" data-value="Downloads" ng-click="sortBy('DownloadCount')">{{lbl.mostDownloaded}}</a></li>
61+
<li><a id="fltr-pop" data-value="Popular" ng-click="sortBy('Rating')">{{lbl.highestRated}}</a></li>
6262
</ul>
6363
</div>
6464
</div>
@@ -78,7 +78,7 @@ <h2 class="page-title pull-left">{{lbl.gallery}}</h2>
7878
<ul>
7979
<li>{{item.Title}}</li>
8080
<li>{{item.Authors}}</li>
81-
<li>{{item.DownloadCount}} Downloads</li>
81+
<li>{{item.DownloadCount}} {{lbl.download}}</li>
8282
<li>
8383
<span class="star-rating">
8484
<input disabled="disabled" type="radio" name="{{item.Id}}" value="1" ng-checked="checkStar(1, item.Rating)"><i></i>

BlogEngine/BlogEngine.NET/admin/app/custom/widgets/widgetView.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="input-group">
88
<input type="text" class="form-control" id="txtWidgetTitle" name="txtWidgetTitle" value="" />
99
<div class="input-group-btn">
10-
<button type="button" class="btn btn-success" ng-click="updateTitle()">Change Name</button>
10+
<button type="button" class="btn btn-success" ng-click="updateTitle()">{{lbl.changeName}}</button>
1111
</div>
1212
</div>
1313
</div>

BlogEngine/BlogEngine.NET/admin/themes/standard/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/admin/themes/standard/css/styles.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/admin/themes/standard/scss/pages/custom/_widgets.scss

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
display: none;
1313
}
1414

15+
.modal-header {
16+
border: none;
17+
}
18+
1519
.modal-body {
1620
display: none;
1721
}
@@ -94,6 +98,8 @@
9498
@include list-unstyled();
9599
margin-top: 20px;
96100
margin-bottom: 20px;
101+
position: relative;
102+
z-index: 11;
97103

98104
li {
99105
width: 100%;
@@ -102,19 +108,16 @@
102108
padding-left: 15px;
103109
line-height: 40px;
104110
border: 1px solid #ddd;
105-
-moz-box-shadow: 0 1px 0 #eee !important;
106-
-webkit-box-shadow: 0 1px 0 #eee !important;
107-
box-shadow: 0 1px 0 #eee !important;
108-
-moz-border-radius: 3px;
109-
-webkit-border-radius: 3px;
110-
border-radius: 3px;
111+
@include box-shadow(0 1px 0 #eee !important);
112+
@include border-radius(3px);
111113
font-weight: 400;
112114
font-size: 14px;
113115
height: 40px;
114116
padding-left: 10px;
115117
color: #444;
116118
position: relative;
117119
overflow: hidden;
120+
cursor: move;
118121

119122
&:last-child {
120123
margin-bottom: 0;
@@ -124,7 +127,7 @@
124127
position: absolute;
125128
right: 0;
126129
top: 0;
127-
z-index: 2;
130+
z-index: 0;
128131
width: 100px;
129132

130133
button {
@@ -165,6 +168,7 @@
165168
.widgets-list-active {
166169
border: 1px dashed #aaa;
167170
padding: 10px;
171+
z-index: 10;
168172
}
169173

170174
.ui-sortable-placeholder {
@@ -263,7 +267,7 @@
263267

264268

265269
// widget-edit
266-
// don't forget widget-edit is for body class.
270+
// don't forget widget-edit is for body class in the iframe setting of widgets.
267271
.widget-edit {
268272
padding: 15px;
269273
// blogrolll

BlogEngine/BlogEngine.NET/admin/themes/standard/scss/rtl/_rtl.bootstrap.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,18 @@
2727
float: right;
2828
}
2929
}
30+
31+
32+
.input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn-group:not(:last-child) > .btn, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
33+
border-top-right-radius: 3px;
34+
border-bottom-right-radius: 3px;
35+
border-top-left-radius: 0;
36+
border-bottom-left-radius: 0;
37+
}
38+
39+
.input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:first-child > .btn-group:not(:first-child) > .btn, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle {
40+
border-top-left-radius: 3px;
41+
border-bottom-left-radius: 3px;
42+
border-top-right-radius: 0;
43+
border-bottom-right-radius: 0;
44+
}

BlogEngine/BlogEngine.NET/admin/themes/standard/scss/rtl/_rtl.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
@import "rtl.settings";
2828
// custom section
2929
@import "rtl.plugins";
30+
@import "rtl.widgets";
3031
// about section
3132
@import "rtl.about";
3233

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.custom-widgets-view {
2+
// modal public styles
3+
.modal {
4+
.modal-header {
5+
padding-right: 20px;
6+
padding-left: 50px;
7+
8+
.close {
9+
left: 0;
10+
right: auto;
11+
}
12+
}
13+
}
14+
// content-inner
15+
.content-inner {
16+
h4 {
17+
direction: ltr;
18+
text-align: right;
19+
}
20+
21+
.widgets-list {
22+
li {
23+
padding-right: 15px;
24+
padding-left: 10px;
25+
26+
.item-buttons {
27+
left: 0;
28+
right: auto;
29+
30+
button {
31+
float: right;
32+
border-right: 1px solid #eee;
33+
border-left: none;
34+
}
35+
}
36+
}
37+
}
38+
39+
.widget-zone-wrapper {
40+
.widget-zone {
41+
float: right;
42+
}
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)