From 1f3049ab60445bd320d9dc9e16bbb18b879e419e Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Mon, 25 Mar 2024 17:20:07 +0000 Subject: [PATCH] Tweak alignment of code toolbar buttons --- styles/_code_prism.scss | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/styles/_code_prism.scss b/styles/_code_prism.scss index 3703e14..8fb5400 100644 --- a/styles/_code_prism.scss +++ b/styles/_code_prism.scss @@ -1,5 +1,5 @@ /* -Copyright 2023 DigitalOcean +Copyright 2024 DigitalOcean Licensed under the Apache License, Version 2.0 (the "License") !default; you may not use this file except in compliance with the License. @@ -86,8 +86,8 @@ pre { > .toolbar { position: absolute; - right: 24px; - top: 24px; + right: calc(1.5em - 0.5em); + top: calc(1.5em - 0.375em); > .toolbar-item { display: inline-block; @@ -107,11 +107,12 @@ pre { > a, > button { background: $neutral3; - border-radius: 10px; + border-radius: 0.625em; color: $white; cursor: pointer; - padding: 6px 8px; - transition: color 0.25s, background 0.25s; + line-height: 1; + padding: 0.375em 0.5em; + transition: color 0.25s, background 0.25s; span { color: $white;