From eadb083346fa2e35708349e94de4e45a81ec40d8 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Tue, 9 Apr 2019 07:31:07 -0400 Subject: [PATCH] more tweaking --- site/src/routes/_components/Blurb.svelte | 30 +++++++++++++++++------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/site/src/routes/_components/Blurb.svelte b/site/src/routes/_components/Blurb.svelte index a18c6d18ea..61b249be80 100644 --- a/site/src/routes/_components/Blurb.svelte +++ b/site/src/routes/_components/Blurb.svelte @@ -46,18 +46,20 @@ text-decoration: underline; } - .box a::after, .cta::after { + .box a::after, .cta a::after { content: ''; position: absolute; display: block; right: 0; - top: 0.25em; + top: 0.35em; width: 1em; height: 1em; background: url(/icons/arrow-right.svg); } - a.cta { + .cta a { + display: inline-block; + text-align: right; background-color: var(--prime); padding: 0.5em 1.8em 0.5em 1em; border-radius: var(--border-r); @@ -65,15 +67,19 @@ position: relative; } - .cta::after { + .cta a::after { right: 0.5em; - top: 0.6em; + top: 0.75em; } .description { margin: 2em 0 0 0; } + .cta { + margin: 0; + } + @media (min-width: 900px) { .container { grid-column-gap: 1em; @@ -88,6 +94,10 @@ .box { padding: 2em; } + + .cta { + text-align: right; + } } @media (min-width: 1200px) { @@ -103,6 +113,10 @@ .description { margin: 0; } + + .cta { + text-align: left; + } } @@ -136,7 +150,7 @@

Read the introductory blog post to learn more.

-
+
 npx degit sveltejs/template my-svelte-project
 cd my-svelte-project
@@ -145,8 +159,8 @@ npm install
 npm run dev & open http://localhost:5000
 		
-

See the quickstart guide for more information.

+

See the quickstart guide for more information.

-

Learn Svelte

+

Learn Svelte

\ No newline at end of file