summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2023-08-18 23:00:41 +0200
committerMartial Simon <msimon_fr@hotmail.com>2023-08-18 23:00:41 +0200
commit29ab874fc699c1d7bf9042d284539b0a7eea376d (patch)
tree7804fb41fca939515238e145b7e2cf551aa06a86 /style.css
parent5fb8e842d0634fc694f28d89d084b2cb467b9c15 (diff)
parent8364f786783ffe93d72d6803af9f918bdc4ee0cf (diff)
Merge branch 'main' of github.com:Laitram31/runninggags
Diffstat (limited to 'style.css')
-rw-r--r--style.css25
1 files changed, 25 insertions, 0 deletions
diff --git a/style.css b/style.css
index f489a85..3172af1 100644
--- a/style.css
+++ b/style.css
@@ -1,3 +1,7 @@
+:root{
+ --shadow-size: 8px;
+}
+
body{
display: flex;
background: url(img/bg.jpg) no-repeat fixed;
@@ -13,6 +17,27 @@ body.index{
font-family: serif;
}
+nav{
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ position: fixed;
+ height: 100vh;
+ width: 9vw;
+ top:0;
+ left: 0;
+}
+
+nav a{
+ text-shadow: 1px 1px var(--shadow-size) white, -1px -1px var(--shadow-size) white, -1px 1px var(--shadow-size) white, 1px -1px var(--shadow-size) white;
+ transition-property: var(--shadow-size);
+ transition-duration: 1s;
+}
+
+nav a:hover{
+ --shadow-size: 15px;
+}
+
.content{
padding: 5px;
margin: auto;