mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-21 02:03:56 +00:00
modal width and formatting
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
$: type = 'button-' + kind;
|
||||
export let maxWidth = false;
|
||||
export let icon = '';
|
||||
export let alt = '';
|
||||
export let alt = '';
|
||||
export let unclickable = false;
|
||||
</script>
|
||||
|
||||
<button class={type} class:unclickable on:click style="width: {maxWidth ? '100%' : 'max-content'}">
|
||||
{#if icon}
|
||||
<img src={icon} {alt} />
|
||||
{/if}
|
||||
<slot />
|
||||
</button>
|
||||
<button class={type} class:unclickable on:click style="width: {maxWidth ? '100%' : 'max-content'}">
|
||||
{#if icon}
|
||||
<img src={icon} {alt} />
|
||||
{/if}
|
||||
<slot />
|
||||
</button>
|
||||
|
||||
<style>
|
||||
button {
|
||||
@@ -29,7 +29,7 @@
|
||||
.button-secondary {
|
||||
min-width: max-content;
|
||||
font-size: 1rem;
|
||||
color: #FFD9E1;
|
||||
color: #ffd9e1;
|
||||
font-weight: 400;
|
||||
border: none;
|
||||
border-radius: 1200px;
|
||||
@@ -41,9 +41,9 @@
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
background-color: #FFB1C5;
|
||||
background-color: #ffb1c5;
|
||||
box-shadow: 0px 0px 32px 1px var(--accent-color-glow);
|
||||
color: #65002F;
|
||||
color: #65002f;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
z-index: 1001;
|
||||
padding: 32px;
|
||||
padding: 1rem;
|
||||
box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12),
|
||||
0px 2px 4px -1px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user