diff --git a/js/impress.js b/js/impress.js index 46cd7d1..e16cdf1 100644 --- a/js/impress.js +++ b/js/impress.js @@ -8,7 +8,7 @@ * in modern browsers and inspired by the idea behind prezi.com. * * - * Copyright 2011-2012 Bartek Szopka (@bartaz), 2016-2023 Henrik Ingo (@henrikingo) + * Copyright 2011-2012 Bartek Szopka (@bartaz), 2016-2023 Henrik Ingo (@henrikingo) * and 70+ other contributors * * Released under the MIT License. diff --git a/website/css/docs/navstyle.css b/website/css/docs/navstyle.css index f1a7c1e..69674f7 100644 --- a/website/css/docs/navstyle.css +++ b/website/css/docs/navstyle.css @@ -1,5 +1,5 @@ .nav-container { - background-color: blue; + background-color: var( --accent-background ); width: 100%; height: 100vh; } @@ -14,7 +14,7 @@ display: none; font-size: 0.8rem; height: 100%; - background-color: rgb(27, 27, 165); + background-color: var( --dropdown-color ); } .navitem { @@ -23,8 +23,9 @@ color: white; padding: 5%; width: 90%; - background-color: rgb(22, 22, 117); + background-color: var( --nav-buttons ); font-size: 1rem; + transition: all 0.5s; } .nav-subitem { @@ -35,5 +36,14 @@ width: 70%; padding: 5%; padding-left: 25%; - background-color: rgb(27, 27, 165); + background-color: var( --dropdown-color ); + transition: all 0.5s; +} + +.nav-subitem:hover { + background-color: black; +} + +.navitem:hover, .active { + background-color: black; } diff --git a/website/css/docs/style.css b/website/css/docs/style.css index e2db4a1..a355100 100644 --- a/website/css/docs/style.css +++ b/website/css/docs/style.css @@ -15,9 +15,45 @@ html, body { font-family: sans-serif; } +:root, :root.light { + --primary-color: black; + --accent-background: rgb(25, 25, 148); + --accent-color: white; + --background-color: white; + --accent-background-hover: rgb(124, 140, 236); + --top-background: rgb(211, 211, 211); + --nav-buttons: rgb(1, 1, 109); + --dropdown-color: rgb(0, 0, 156); +} + +:root.dark { + --primary-color: white; + --accent-background: rgb(0, 0, 88); + --accent-color: white; + --background-color: rgb(32, 32, 32); + --accent-background-hover: #4380a8; + --top-background: rgb(77, 77, 77); + --nav-buttons: rgb(0, 0, 36); + --dropdown-color: rgb(0, 0, 116); +} + +@media ( prefers-color-scheme: dark ) { + :root { + --primary-color: white; + --accent-background: rgb(56, 56, 112); + --accent-color: white; + --background-color: rgb(46, 46, 46); + --accent-background-hover: #4380a8; + --top-background: rgb(77, 77, 77); + --nav-buttons: rgb(0, 0, 41); + --dropdown-color: rgb(0, 0, 116); + } +} + .content { - background-color: rgb(255, 255, 255); - color: black; + transition: all 0.5s; + background-color: var( --background-color ); + color: var( --primary-color ); display: grid; grid-template-areas: 'menu header header header header' @@ -33,7 +69,7 @@ html, body { } #doc-container a { - color: blue; + color: var( --primary-color ); } .logo { diff --git a/website/css/docs/topstyle.css b/website/css/docs/topstyle.css index f2a5b17..4f8845e 100644 --- a/website/css/docs/topstyle.css +++ b/website/css/docs/topstyle.css @@ -1,10 +1,11 @@ .top-container { - background-color: rgb(223, 223, 223); + background-color: var( --top-background ); height: 100%; width: 100%; display: flex; align-items: center; justify-content: flex-end; + transition: all 0.5s; } .top-wrapper { @@ -19,4 +20,5 @@ border-style: none; font-size: 1.5rem; cursor: pointer; + color: var( --primary-color ); } \ No newline at end of file diff --git a/website/css/style.css b/website/css/style.css index e7a8c4f..34936a2 100644 --- a/website/css/style.css +++ b/website/css/style.css @@ -85,7 +85,7 @@ body { /* Buttons */ .button { display: inline-block; - background-color: rgba(0, 128, 0, 1); + background-color: rgb(0, 128, 0); text-decoration: none; color: white; font-size: 1.2rem; @@ -95,6 +95,12 @@ body { padding-top: 15px; padding-bottom: 15px; border-radius: 50px; + transition: all 0.5s; +} + +.button:hover { + background-color: rgb(2, 88, 2); + border-radius: 5px; } diff --git a/website/demo/examples/index.html b/website/demo/examples/index.html index 8fdc2e7..d0e10e1 100644 --- a/website/demo/examples/index.html +++ b/website/demo/examples/index.html @@ -24,7 +24,7 @@
Loading the script from the cdn is quite straight forward. If you copy the below example code, you need to do nothing else, impress will be loaded automatically.
Direct links to different versions of the impress.js file
Head to the releases tab and download the source code as zip or as a tarball. Go ahead and unzip / untar it. You need to copy the folder /js/ into the folder you are working in. Optionally, if you want to make your life a bit easier, you can copy also copy the folder /css/ in there.
diff --git a/website/docs/nav.html b/website/docs/nav.html index e753a5e..1269042 100644 --- a/website/docs/nav.html +++ b/website/docs/nav.html @@ -13,7 +13,7 @@ Getting Started API reference + HomeCSSHTMLJavaScriptPluginsindex