add scss for rtl and normal direction

This commit is contained in:
Deepak Singh Gusain 2022-01-18 18:34:44 +05:30
commit 1cbd3524cc
5 changed files with 22 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
"/js/admin.js": "/js/admin.js?id=16e7709105034d93361f",
"/css/admin.css": "/css/admin.css?id=718e64a285dafc4f2ae4"
"/css/admin.css": "/css/admin.css?id=4afe303d7ebf77ad3aa4"
}

View File

@ -9,6 +9,24 @@ body {
background-color: $body-background;
}
.padding-container-navbar-not-expand{
padding-left:56px !important;
}
.padding-container-navbar-expand{
padding-left:200px !important;
}
.rtl{
.padding-container-navbar-not-expand{
padding-right:56px !important;
}
.padding-container-navbar-expand{
padding-right:200px !important;
}
}
.dark-mode-button {
background: $blue;
border: none;

View File

@ -22,18 +22,6 @@
@stack('css')
{!! view_render_event('bagisto.admin.layout.head') !!}
@php
$paddingNavbar = 'padding-left:56px';
$paddingNavbarOpen = 'padding-left:200px';
if(core()->getCurrentLocale() && core()->getCurrentLocale()->direction == 'rtl') {
$paddingNavbar = 'padding-right:56px';
$paddingNavbarOpen = 'padding-right:200px';
}
@endphp
</head>
<body @if (core()->getCurrentLocale() && core()->getCurrentLocale()->direction == 'rtl') class="rtl" @endif style="scroll-behavior: smooth;">
@ -55,7 +43,7 @@
{!! view_render_event('bagisto.admin.layout.nav-left.after') !!}
<div class="content-container" v-bind:style="isMenuOpen ? '{{ $paddingNavbarOpen }}' : '{{ $paddingNavbar }}'">
<div :class="isMenuOpen ? 'content-container padding-container-navbar-expand' : 'content-container padding-container-navbar-not-expand'">
{!! view_render_event('bagisto.admin.layout.content.before') !!}

View File

@ -31,7 +31,7 @@
<script type="text/x-template" id="cart-template">
<div class="container">
<section class="cart-details row no-margin col-12">
<h2 class="fw6 col-12">{{ __('shop::app.checkout.cart.title') }}</h2>
<h2 class="cart-details-header fw6 col-12">{{ __('shop::app.checkout.cart.title') }}</h2>
@if ($cart)
<div class="cart-details-header col-lg-6 col-md-12">