mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
fix: make button take up full width
This commit is contained in:
parent
d66c063789
commit
c32bc268b3
@ -2,14 +2,14 @@
|
||||
export let kind = 'secondary';
|
||||
$: type = 'button-' + kind;
|
||||
export let href = '#';
|
||||
export let fontsize = '1.2rem';
|
||||
export let width = 'max-content';
|
||||
export let icon = "";
|
||||
</script>
|
||||
|
||||
<a href={href}>
|
||||
<div
|
||||
class={type}
|
||||
style="font-size: {fontsize};"
|
||||
style="width: {width};"
|
||||
>
|
||||
<img src="icons/{icon}.svg" alt="{icon}"/>
|
||||
<slot/>
|
||||
@ -22,8 +22,8 @@
|
||||
border-radius: 16px;
|
||||
}
|
||||
div, .button-secondary {
|
||||
font-size: 1.1rem;
|
||||
height: 60px;
|
||||
width: max-content;
|
||||
color: var(--white);
|
||||
font-weight: 600;
|
||||
border: none;
|
||||
|
@ -12,8 +12,8 @@
|
||||
</h2>
|
||||
|
||||
<div class="hero-buttons">
|
||||
<Button icon="download" kind="primary" href="download" fontsize="1.2rem">Download</Button>
|
||||
<Button icon="docs" href="docs" fontsize="1.2rem" >Read The Docs</Button>
|
||||
<Button icon="download" kind="primary" href="download" width="100%">Download</Button>
|
||||
<Button icon="docs" href="docs" width="100%" >Read The Docs</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user