From b163b1a03b29fd3724fc8be25e2b4037dc08cb36 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 22 Sep 2022 09:39:47 +0300 Subject: [PATCH 1/4] loading component hidden feature --- app/View/Components/Loading/Absolute.php | 32 +++++++++++++++++++ app/View/Components/Loading/Content.php | 32 +++++++++++++++++++ .../components/loading/absolute.blade.php | 8 +++-- .../components/loading/content.blade.php | 8 +++-- 4 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 app/View/Components/Loading/Absolute.php create mode 100644 app/View/Components/Loading/Content.php diff --git a/app/View/Components/Loading/Absolute.php b/app/View/Components/Loading/Absolute.php new file mode 100644 index 000000000..f68abe0c9 --- /dev/null +++ b/app/View/Components/Loading/Absolute.php @@ -0,0 +1,32 @@ +hidden = $hidden; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|string + */ + public function render() + { + return view('components.loading.absolute'); + } +} \ No newline at end of file diff --git a/app/View/Components/Loading/Content.php b/app/View/Components/Loading/Content.php new file mode 100644 index 000000000..440072ae6 --- /dev/null +++ b/app/View/Components/Loading/Content.php @@ -0,0 +1,32 @@ +hidden = $hidden; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|string + */ + public function render() + { + return view('components.loading.content'); + } +} \ No newline at end of file diff --git a/resources/views/components/loading/absolute.blade.php b/resources/views/components/loading/absolute.blade.php index 9d473dcbb..574e40c54 100644 --- a/resources/views/components/loading/absolute.blade.php +++ b/resources/views/components/loading/absolute.blade.php @@ -1,4 +1,6 @@ -
- Akaunting -
+@if (! $hidden) +
+ Akaunting +
+@endif \ No newline at end of file diff --git a/resources/views/components/loading/content.blade.php b/resources/views/components/loading/content.blade.php index 0d290e0e2..8f9c0874a 100644 --- a/resources/views/components/loading/content.blade.php +++ b/resources/views/components/loading/content.blade.php @@ -1,4 +1,6 @@ -
- Akaunting -
+@if (! $hidden) +
+ Akaunting +
+@endif From fa5612e54e7c8dedd7e3d7f90085f5de0e7b6c3f Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 22 Sep 2022 10:12:04 +0300 Subject: [PATCH 2/4] unused files deleted --- app/View/Components/Loading/Absolute.php | 32 ------------------------ app/View/Components/Loading/Content.php | 32 ------------------------ 2 files changed, 64 deletions(-) delete mode 100644 app/View/Components/Loading/Absolute.php delete mode 100644 app/View/Components/Loading/Content.php diff --git a/app/View/Components/Loading/Absolute.php b/app/View/Components/Loading/Absolute.php deleted file mode 100644 index f68abe0c9..000000000 --- a/app/View/Components/Loading/Absolute.php +++ /dev/null @@ -1,32 +0,0 @@ -hidden = $hidden; - } - - /** - * Get the view / contents that represent the component. - * - * @return \Illuminate\Contracts\View\View|string - */ - public function render() - { - return view('components.loading.absolute'); - } -} \ No newline at end of file diff --git a/app/View/Components/Loading/Content.php b/app/View/Components/Loading/Content.php deleted file mode 100644 index 440072ae6..000000000 --- a/app/View/Components/Loading/Content.php +++ /dev/null @@ -1,32 +0,0 @@ -hidden = $hidden; - } - - /** - * Get the view / contents that represent the component. - * - * @return \Illuminate\Contracts\View\View|string - */ - public function render() - { - return view('components.loading.content'); - } -} \ No newline at end of file From 098d5a45b8db79c708318ed44d138030afeb1c4c Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 22 Sep 2022 10:13:10 +0300 Subject: [PATCH 3/4] unused codes ejected --- resources/views/components/loading/absolute.blade.php | 8 +++----- resources/views/components/loading/content.blade.php | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/resources/views/components/loading/absolute.blade.php b/resources/views/components/loading/absolute.blade.php index 574e40c54..9d473dcbb 100644 --- a/resources/views/components/loading/absolute.blade.php +++ b/resources/views/components/loading/absolute.blade.php @@ -1,6 +1,4 @@ -@if (! $hidden) -
- Akaunting -
-@endif +
+ Akaunting +
\ No newline at end of file diff --git a/resources/views/components/loading/content.blade.php b/resources/views/components/loading/content.blade.php index 8f9c0874a..0d290e0e2 100644 --- a/resources/views/components/loading/content.blade.php +++ b/resources/views/components/loading/content.blade.php @@ -1,6 +1,4 @@ -@if (! $hidden) -
- Akaunting -
-@endif +
+ Akaunting +
From e9ab1eda2248018ab0fdc163f8382bc5c17650b4 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 22 Sep 2022 14:28:47 +0300 Subject: [PATCH 4/4] some rtl classnames added --- public/css/app.css | 31 +++++++++++++++++++++++++++++++ safelist.txt | 11 ++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/public/css/app.css b/public/css/app.css index 0658b2841..f90d68fc9 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -47944,6 +47944,12 @@ body{ margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); } +[dir="ltr"] .ltr\:space-x-4 > :not([hidden]) ~ :not([hidden]){ + --tw-space-x-reverse: 0; + margin-right: calc(1rem * var(--tw-space-x-reverse)); + margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))); +} + [dir="ltr"] .ltr\:rounded-tl-lg{ border-top-left-radius: 0.5rem; } @@ -48000,6 +48006,10 @@ body{ padding-right: 2.5rem; } +[dir="ltr"] .ltr\:pl-0{ + padding-left: 0px; +} + [dir="ltr"] .ltr\:text-left{ text-align: left; } @@ -48430,6 +48440,11 @@ body{ grid-column: span 5 / span 5; } + .lg\:my-12{ + margin-top: 3rem; + margin-bottom: 3rem; + } + .lg\:my-0{ margin-top: 0px; margin-bottom: 0px; @@ -48439,6 +48454,10 @@ body{ margin-top: 0.5rem; } + .lg\:mt-4{ + margin-top: 1rem; + } + .lg\:mt-60{ margin-top: 15rem; } @@ -48688,6 +48707,10 @@ body{ padding-left: 6rem; } + .lg\:pl-6{ + padding-left: 1.5rem; + } + .lg\:pl-12{ padding-left: 3rem; } @@ -48749,6 +48772,10 @@ body{ padding-left: 6rem; } + [dir="ltr"] .ltr\:lg\:pl-6{ + padding-left: 1.5rem; + } + [dir="rtl"] .lg\:rtl\:left-0{ left: 0px; } @@ -48768,6 +48795,10 @@ body{ [dir="rtl"] .lg\:rtl\:pr-24{ padding-right: 6rem; } + + [dir="rtl"] .rtl\:lg\:pr-6{ + padding-right: 1.5rem; + } } @media (min-width: 1280px){ diff --git a/safelist.txt b/safelist.txt index c7f11a5f5..b778bd747 100644 --- a/safelist.txt +++ b/safelist.txt @@ -2,4 +2,13 @@ xl:pt-6 lg:mt-2 ltr:-right-1.5 rtl:-left-1.5 -lg:pl-24 \ No newline at end of file +lg:pl-24 +lg:my-12 +lg:mt-4 +lg:pl-6 +ltr:pl-0 +rtl:pr-0 +ltr:lg:pl-6 +rtl:lg:pr-6 +ltr:-right-8 +rtl:-left-8 \ No newline at end of file