From 8b510d3dbb40b98fdce935cf1e7eb1e0367243b2 Mon Sep 17 00:00:00 2001 From: Someon1e <120410318+Someon1e@users.noreply.github.com> Date: Tue, 1 Aug 2023 17:14:02 +0100 Subject: [PATCH] Add dark theme (#991) Fixes #333 ![image](https://github.com/Roblox/luau/assets/120410318/539fec9f-3ad1-49cd-ba2f-a47b6c1ee42c) ![image](https://github.com/Roblox/luau/assets/120410318/981981c6-2fbe-46ae-99b1-a1fc2c647a6a) --------- Co-authored-by: Someone-dQw4w9WgXcQ --- docs/_config.yml | 3 +- docs/_includes/masthead.html | 73 ++++++++++++++++++++++++++++++++++++ docs/_includes/repl.html | 73 ++++++++++++++++++++++++++++++------ docs/assets/css/theme2.scss | 8 ++++ 4 files changed, 145 insertions(+), 12 deletions(-) create mode 100644 docs/_includes/masthead.html create mode 100644 docs/assets/css/theme2.scss diff --git a/docs/_config.yml b/docs/_config.yml index 33a85609..fac90591 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,5 +1,6 @@ -remote_theme: "mmistakes/minimal-mistakes@4.22.0" +remote_theme: "mmistakes/minimal-mistakes@4.24.0" minimal_mistakes_skin: "default" #"air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum" "sunrise" +minimal_mistakes_skin2: "dark" url: name: Roblox title: Luau diff --git a/docs/_includes/masthead.html b/docs/_includes/masthead.html new file mode 100644 index 00000000..b78c80f9 --- /dev/null +++ b/docs/_includes/masthead.html @@ -0,0 +1,73 @@ +{% capture logo_path %}{{ site.logo }}{% endcapture %} + +
+
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/docs/_includes/repl.html b/docs/_includes/repl.html index 8a946d59..df27a792 100644 --- a/docs/_includes/repl.html +++ b/docs/_includes/repl.html @@ -2,11 +2,11 @@

- +
- +
@@ -26,31 +26,81 @@ padding: 7px 7px; vertical-align: middle; } + .line-error { background: #e65f55; } - - - + + + + + + + + + - + \ No newline at end of file diff --git a/docs/assets/css/theme2.scss b/docs/assets/css/theme2.scss new file mode 100644 index 00000000..21710d40 --- /dev/null +++ b/docs/assets/css/theme2.scss @@ -0,0 +1,8 @@ +--- + +--- + +@charset "utf-8"; + +@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin2 | default: 'default' }}"; // skin +@import "minimal-mistakes"; // main partials \ No newline at end of file