style(site): spacing, colors, hover

This commit is contained in:
Ayo 2023-11-24 01:11:10 +01:00
parent 07cacab1e9
commit bda00b51b3
3 changed files with 9 additions and 4 deletions

View file

@ -9,7 +9,7 @@
background: linear-gradient(45deg, #3054bf, #416fff); background: linear-gradient(45deg, #3054bf, #416fff);
color: white; color: white;
margin: 1em 0; margin: 1em 0;
padding: 1em; padding: 1.5em;
& a { & a {
color: white; color: white;

View file

@ -3,7 +3,7 @@
href="https://www.npmjs.com/package/web-component-base#readme"> href="https://www.npmjs.com/package/web-component-base#readme">
Learn More Learn More
</a> </a>
<a href="https://codepen.io/ayoayco-the-styleful/pen/PoVegBK?editors=1010">Playground</a> <a href="https://codepen.io/ayoayco-the-styleful/pen/PoVegBK?editors=1010">Playground &rarr;</a>
</div> </div>
<style> <style>
@ -15,15 +15,19 @@
width: 100%; width: 100%;
& a { & a {
border: 1px solid var(--color-primary); border: 3px solid var(--color-fade);
padding: 0.75em; padding: 0.75em;
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
text-decoration: none;
&:hover {
box-shadow: 0 0 0 3px var(--color-fade);
}
&#primary { &#primary {
background: #3054bf; background: #3054bf;
color: white; color: white;
text-decoration: none;
width: 40%; width: 40%;
} }
} }

View file

@ -24,6 +24,7 @@
<style> <style>
:root { :root {
--color-primary: #3054bf; --color-primary: #3054bf;
--color-fade: #416fff;
} }
body { body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;