mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Add 'narrow' property to Modal
This commit is contained in:
+8
-1
@@ -3,6 +3,7 @@
|
||||
export let error = false;
|
||||
export let subtle = false;
|
||||
export let small = false;
|
||||
export let narrow = false;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -33,6 +34,9 @@
|
||||
max-width: 760px;
|
||||
text-align: center;
|
||||
}
|
||||
.modal.modal-narrow {
|
||||
max-width: 600px;
|
||||
}
|
||||
.modal.modal-subtle {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
@@ -82,7 +86,10 @@
|
||||
{/if}
|
||||
|
||||
<div class:modal-floating={floating} class="centered">
|
||||
<div class="modal" class:error class:modal-subtle={subtle} class:modal-small={small}>
|
||||
<div class="modal" class:error
|
||||
class:modal-subtle={subtle}
|
||||
class:modal-narrow={narrow}
|
||||
class:modal-small={small}>
|
||||
<div class="modal-title">
|
||||
<slot name="title"></slot>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user