summaryrefslogtreecommitdiff
path: root/scss/modules/_btn.scss
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2024-01-19 09:33:11 +0000
committerGitHub <noreply@github.com>2024-01-19 09:33:11 +0000
commit7140956da0820d4b818119eff7dfc72345f3328e (patch)
tree503e1129a999fe834d2a7b98a4e82bf07264f49f /scss/modules/_btn.scss
parenta4f3cb02befe658594c076144be2e5200f36682a (diff)
parent83c3460191a2089b56b091a7f4e09f39ac636e1e (diff)
Merge pull request #65 from joeacarstairs/deployment-staging
Update production
Diffstat (limited to 'scss/modules/_btn.scss')
-rw-r--r--scss/modules/_btn.scss40
1 files changed, 40 insertions, 0 deletions
diff --git a/scss/modules/_btn.scss b/scss/modules/_btn.scss
new file mode 100644
index 0000000..6b5e543
--- /dev/null
+++ b/scss/modules/_btn.scss
@@ -0,0 +1,40 @@
+.btn {
+ display: block;
+ border: solid var(--border-width) var(--text-color);
+ font-weight: 600;
+ text-align: center;
+ margin-block-start: var(--spacing-block-sm);
+ padding-inline: var(--spacing-inline-md);
+ padding-block: var(--spacing-block-sm);
+ background-color: transparent;
+ transition:
+ background-color 100ms,
+ transform 100ms;
+}
+
+.btn:is(:hover, :focus, :focus-visible, :focus-within, :active) {
+ box-shadow: none;
+ outline: none;
+ color: var(--text-highlight-color);
+ border-color: var(--background-highlight-color);
+ background-color: var(--background-highlight-color);
+ transition:
+ background-color 300ms,
+ transform 300ms;
+}
+
+.btn:is(:focus, :focus-visible, :focus-within) {
+ border-color: var(--special-text-highlight-color);
+ border-style: dotted;
+}
+
+.btn:active {
+ transform: scale(1.1, 1.1);
+}
+
+/* Override anchor styling. */
+a.btn {
+ color: var(--text-color);
+ text-decoration: none;
+}
+