Skip to content

Commit 31ec97c

Browse files
committed
Adjust width
1 parent 9156fc5 commit 31ec97c

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

resources/views/livewire/book-modal.blade.php

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
</div>
99
<div class="book-content">
1010
<div class="inner-container">
11-
<div class="inner-header {{ !$modalContent->showImage && $modalContent->bookButtons[0]->type === 'signature' ? 'increased-font-size' : '' }}">
11+
<div
12+
class="inner-header {{ !$modalContent->showImage && $modalContent->bookButtons[0]->type === 'signature' ? 'increased-font-size' : '' }}">
1213
{!! $modalContent->bookSubHeading !!}
1314
</div>
1415
<div class="main-content">
@@ -24,22 +25,26 @@
2425
class="book-text {{ $modalContent->showImage ? '' : 'book-text-resize' }}">{!! $modalContent->bookText !!}</div>
2526
</div>
2627
</div>
27-
<div class="book-footer book-button-text {{ isset($modalContent->bookButtons[1]) ? 'margin-increase' : '' }}">{!! $modalContent->bookButtonText !!}</div>
28+
<div
29+
class="book-footer book-button-text {{ isset($modalContent->bookButtons[1]) ? 'margin-increase' : '' }}">{!! $modalContent->bookButtonText !!}</div>
2830
<div class="button-container button-container-override">
2931
@foreach($modalContent->bookButtons as $button)
3032
@if($button->type === 'standard')
31-
<button onclick="window.open('https://www.ebay.co.uk/itm/304251724807', '_blank')" class="book-button button text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded m-auto">{{ $button->text }}</button>
33+
<button onclick="window.open('https://www.ebay.co.uk/itm/304251724807', '_blank')"
34+
class="book-button button text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded m-auto">{{ $button->text }}</button>
3235
@elseif($button->type === 'signature')
33-
<button onclick="window.open('https://www.ebay.co.uk/itm/304251735338', '_blank')" class="book-button button text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded m-auto">{{ $button->text }}</button>
36+
<button onclick="window.open('https://www.ebay.co.uk/itm/304251735338', '_blank')"
37+
class="book-button button text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded m-auto">{{ $button->text }}</button>
3438
@elseif($button->type === 'book2')
35-
<button onclick="location.href='mailto:[email protected]'" class="book-button button text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded m-auto">{{ $button->text }}</button>
39+
<button onclick="location.href='mailto:[email protected]'"
40+
class="book-button button text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded m-auto">{{ $button->text }}</button>
3641
@endif
3742
@endforeach
3843
</div>
3944
</div>
4045
</div>
4146
</div>
42-
<style>
47+
<style lang="scss">
4348
.bg-white {
4449
background: none !important;
4550
overflow: hidden;
@@ -50,10 +55,15 @@ class="book-text {{ $modalContent->showImage ? '' : 'book-text-resize' }}">{!! $
5055
display: flex !important;
5156
justify-content: center !important;
5257
align-items: center !important;
53-
width: 50% !important;
5458
margin-inline: auto;
5559
}
5660
61+
@media screen and (min-width: 1024px) {
62+
.sm\:block {
63+
width: 900px !important;
64+
}
65+
}
66+
5767
.library {
5868
display: flex;
5969
flex-direction: row;

resources/views/livewire/character-bio-modal.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515
display: flex !important;
1616
justify-content: center !important;
1717
align-items: center !important;
18-
width: 30% !important;
1918
margin-inline: auto;
2019
}
2120
21+
@media screen and (min-width: 1024px) {
22+
.sm\:block {
23+
width: 900px !important;
24+
}
25+
}
26+
2227
.close-button {
2328
display: none;
2429
}

resources/views/livewire/history-modal.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@
2020
display: flex !important;
2121
justify-content: center !important;
2222
align-items: center !important;
23-
width: 40% !important;
2423
margin-inline: auto;
2524
}
2625
26+
@media screen and (min-width: 1024px) {
27+
.sm\:block {
28+
width: 900px !important;
29+
}
30+
}
31+
2732
.text-background {
2833
background-image: url('/img/modal-content-container.png') !important;
2934
background-position: center;

0 commit comments

Comments
 (0)