Skip to content

Commit

Permalink
Merge pull request #214 from AmirMehrabi/master
Browse files Browse the repository at this point in the history
Added RTL style to the panel.
  • Loading branch information
AlirezaAlgo committed May 7, 2016
2 parents a32769b + efa3e09 commit e37ba47
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 12 deletions.
31 changes: 31 additions & 0 deletions public/css/rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.powered-by {
left: 20px;
right: inherit;
}

.sidebar ul li.active{
border-left: none;
border-right: 7px solid #f26101;
}

.top-icon-bar {
text-align: left;
}

.sidebar ul li {
text-align: right;
}

#side-menu .badge {
left: 0px !IMPORTANT;
}


@media (min-width: 768px) {
.sidebar {
right: 0px;
}
#page-wrapper {
margin: 0px 210px 0px 0px;
}
}
23 changes: 11 additions & 12 deletions src/views/mainTemplate.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top " role="navigation" style="margin-bottom: 0">

<!-- /.navbar-header -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed btn-resp-sidebar" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
Expand All @@ -29,10 +29,10 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

</div>


<!-- /.navbar-top-links -->

<div class="navbar-default sidebar " role="navigation">
Expand All @@ -54,7 +54,7 @@
<i class="fa fa-edit fa-fw"></i>
{{{$linkItem['title']}}}
</a>
<span class="badge pull-right">{!!$linkItem['count']!!}</span>
<span class="badge {{App::getLocale() == 'fa' ? 'pull-left' : 'pull-right'}}">{!!$linkItem['count']!!}</span>
<div class="items-bar">
<a href="{{ url($linkItem['addUrl']) }}" class="ic-plus" title="Add" ></a>
<a title="List" class="ic-lines" href="{{ url($linkItem['showListUrl']) }}" ></a>
Expand All @@ -66,22 +66,22 @@
</li>
</ul>
</div>


</div>
<!-- /.navbar-static-side -->
</nav>
<div class="powered-by"><a href="http://laravelpanel.com">Thank you for using LaravelPanel.</a></div>
<div class="powered-by"><a href="http://laravelpanel.com">Thank you for using LaravelPanel.</a></div>
<div id="page-wrapper">


<!-- Menu Bar -->
<div class="row">
<div class="col-xs-12 text-a top-icon-bar">
<div class="btn-group" role="group" aria-label="...">
<div class="btn-group" role="group">
<a type="button" class="btn btn-default dropdown-toggle main-link" data-toggle="dropdown" aria-expanded="false">
{{ Lang::get('panel::fields.settings') }}
{{ Lang::get('panel::fields.settings') }}
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
Expand All @@ -93,13 +93,12 @@
</div>
</div>
</div>

@yield('page-wrapper')

</div>
</div>
<!-- /#page-wrapper -->

</div>
@stop

1 change: 1 addition & 0 deletions src/views/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
@if (App::getLocale() == 'fa')
<link href="{{URL::asset('css/fonts/fonts.css')}}" rel="stylesheet">
<link href="{{URL::asset('css/fa-fonts.css')}}" rel="stylesheet">
<link href="{{URL::asset('css/rtl.css')}}" rel="stylesheet">
@endif

<!-- jQuery Version 1.11.0 -->
Expand Down

0 comments on commit e37ba47

Please sign in to comment.