summaryrefslogtreecommitdiffhomepage
path: root/common/main.css
diff options
context:
space:
mode:
authorColleen <[email protected]>2023-01-17 05:17:24 -0400
committerColleen <[email protected]>2023-01-17 05:17:24 -0400
commit30874d4f8889e2d3db58c56e74c00e6dd3b6e07a (patch)
tree21db060c02a87596913239662a6c8c7c1cf6a997 /common/main.css
parenta429c99a097132642e943e6c172f1ce0aa966409 (diff)
downloadraylib.com-30874d4f8889e2d3db58c56e74c00e6dd3b6e07a.tar.gz
raylib.com-30874d4f8889e2d3db58c56e74c00e6dd3b6e07a.zip
Added copyable links to sections on the homepage.
Diffstat (limited to 'common/main.css')
-rw-r--r--common/main.css21
1 files changed, 21 insertions, 0 deletions
diff --git a/common/main.css b/common/main.css
index 0773a91..ba326cf 100644
--- a/common/main.css
+++ b/common/main.css
@@ -42,6 +42,10 @@
line-height: 24px;
}
+html {
+ scroll-behavior: smooth;
+}
+
body {
background-color: #ddd;
}
@@ -165,6 +169,23 @@ h2 {
font-size: x-small;
}
+.anchor-link {
+ margin-right: 8px;
+ width: 16px;
+ height: 16px;
+ background-image: url(img/anchor_link.svg);
+ background-size: 16px 16px;
+ display: inline-block;
+ cursor: pointer;
+ opacity: 0.5;
+ transition: 0.25s;
+ transform: translateY(4px);
+}
+
+.anchor-link:hover {
+ opacity: 1.0;
+}
+
ul {
width: fit-content;
padding-left: 48px;