Skip to content

Commit

Permalink
Merge pull request #6 from mkocansey/main
Browse files Browse the repository at this point in the history
Made component/modal mobile friendly
  • Loading branch information
mkocansey authored May 18, 2022
2 parents 75e02a0 + 8bb10a3 commit f8fc362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/resources/assets/compiled/css/bladewind-ui.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ to{transform:rotate(360deg)}}
.border-yellow-400\/80{border-color:rgb(250 204 21 / 0.8)}
.border-blue-400\/80{border-color:rgb(96 165 250 / 0.8)}
.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}
.border-red-700{--tw-border-opacity:1;border-color:rgb(185 28 28 / var(--tw-border-opacity))}
.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}
.border-yellow-500{--tw-border-opacity:1;border-color:rgb(234 179 8 / var(--tw-border-opacity))}
.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}
Expand Down
5 changes: 3 additions & 2 deletions src/resources/views/components/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@
if($cancel_button_action !== 'close') $cancelAction = $cancel_button_action . (($close_after_action== 'true') ? ';'.$cancelAction : '');
@endphp

<span class="w-1/6 w-1/4 w-1/3 w-1/2 w-1/4" />
<span class="w-1/2 w-1/3 w-1/4 w-1/5 w-1/6" />
<div
class="w-full h-full bg-black/40 fixed left-0 top-0 backdrop-blur-md z-40 flex bw-modal bw-{{$name}}-modal hidden"
aria-backdrop-can-close="{{$backdrop_can_close}}">
<div class="bg-white {{ $sizes[$size] }} mx-auto my-auto rounded-lg drop-shadow-2xl bw-{{$name}}">
<div class="bg-white w-[94%] sm:{{$sizes[$size]}} mx-auto my-auto rounded-lg drop-shadow-2xl bw-{{$name}}">
{{-- {{ $sizes[$size] }} --}}
<div class="flex">
@if($type !== '')
<div class="modal-icon py-6 pl-6">
Expand Down

0 comments on commit f8fc362

Please sign in to comment.