From a16cf562a8dc4e358c21791f41679ca6a306b7a8 Mon Sep 17 00:00:00 2001 From: Lexxie Date: Wed, 8 Mar 2023 21:34:22 +0000 Subject: [PATCH] testing --- _config.yml | 22 +- _includes/clicky.html | 12 + _includes/footer.html | 8 + _includes/google-analytics.html | 16 ++ _includes/head-custom.html | 11 - _includes/head.html | 18 ++ _includes/header.html | 6 + _layouts/default.html | 17 ++ assets/css/main.css | 135 +++++++++ assets/css/normalize.css | 492 ++++++++++++++++++++++++++++++++ assets/js/main.js | 1 + 11 files changed, 722 insertions(+), 16 deletions(-) create mode 100644 _includes/clicky.html create mode 100644 _includes/footer.html create mode 100644 _includes/google-analytics.html delete mode 100644 _includes/head-custom.html create mode 100644 _includes/head.html create mode 100644 _includes/header.html create mode 100644 _layouts/default.html create mode 100644 assets/css/main.css create mode 100644 assets/css/normalize.css create mode 100644 assets/js/main.js diff --git a/_config.yml b/_config.yml index d7844882a0..017dfeac6a 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,19 @@ -remote_theme: pages-themes/midnight@v0.2.0 -plugins: -- jekyll-remote-theme +# command: bundle exec jekyll serve + title: Lexxie's Minecraft JavaDocs description: A small repository of Forge/Fabric JavaDocs for quick and easy use. -show_downloads: true -google_analytics: G-K3TX5NPDG5 +baseurl: "" +url: "https://lexxie.site" + +# User settings +github_username: ladylexxie + +# Google-Analytics +google-analytics: + id: "G-K3TX5NPDG5" + +# Clicky +clicky: + id: "101400502" + +exclude: ['.vscode', 'Gemfile', 'Gemfile.lock'] diff --git a/_includes/clicky.html b/_includes/clicky.html new file mode 100644 index 0000000000..3e14d8f2f9 --- /dev/null +++ b/_includes/clicky.html @@ -0,0 +1,12 @@ + +{% if site.clicky %} + + Clicky + + + +{% endif %} diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000000..397c20e656 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,8 @@ + + + +{% include google-analytics.html %} +{% include clicky.html %} diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html new file mode 100644 index 0000000000..1c9f444e58 --- /dev/null +++ b/_includes/google-analytics.html @@ -0,0 +1,16 @@ + +{% if site.google-analytics %} + +{% endif %} diff --git a/_includes/head-custom.html b/_includes/head-custom.html deleted file mode 100644 index bbbbd6b741..0000000000 --- a/_includes/head-custom.html +++ /dev/null @@ -1,11 +0,0 @@ - -{% include head-custom-theme-colors.html %} - - -{% include head-custom-google-analytics.html %} - - - -Clicky - - diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000000..7163f82437 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,18 @@ + + + + + + + {% if page.title %} + {{ page.title }} + {% else %} + {{ site.title }} + {% endif %} + + + + + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000000..0db4d0f493 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,6 @@ +
+

+ {{site.title}} + {{site.description}} +

+
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000000..43f828728d --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,17 @@ + + +{% include head.html %} + + +
+ {% include header.html %} +
+ +
+
+ {{ content }} +
+
+ + {% include footer.html %} + diff --git a/assets/css/main.css b/assets/css/main.css new file mode 100644 index 0000000000..995a3d2a28 --- /dev/null +++ b/assets/css/main.css @@ -0,0 +1,135 @@ +#particles-js { + background: #1a222c; + display: flex; + vertical-align: bottom; + width: 100%; + min-height: 100vh; + background-repeat: no-repeat; + background-size: cover; + background-attachment: fixed +} + +#particles-js .particles-js-canvas-el { + width: 100% !important; + height: 100vh !important +} + +.header { + z-index: 1; + text-align: center; + color: #fff; + position: absolute; + left: 50%; + margin: 0 auto; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%) +} + +.header .site-title { + font-size: 30px; + display: block; + line-height: 1; + color: #fff +} + +@media only screen and (min-width:550px) { + .header .site-title { + margin: 0; + font-size: 50px + } +} + +.header .site-description { + font-size: 20px; + display: block; + line-height: 1; + color: #fff; + margin-top: 10px +} + +@media only screen and (min-width:550px) { + .header .site-description { + font-size: 20px + } +} + +.footer { + position: absolute; + bottom: 0; + left: 50%; + transform: translateX(-50%); + background: rgba(26, 34, 44, 0.8); + text-align: center; + color: #fff +} + +.footer .love { + color: red +} + +.footer p { + margin: 16px; + margin-bottom: 0px; +} + +.footer a { + text-decoration: none; + margin: 0; + color: #fff +} + +.page-content { + left: 0; + right: 0; + max-width: 650px; + min-width: 310px; + margin: 0 auto; + padding: 0 20px; + position: absolute; + top: 50%; + left: 50%; + margin: 0; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%) +} + +.page-content h3 { + margin-top: 0px; +} + +section { + color: #fff; + background: rgba(18, 23, 29, 0.8); + border-radius: 25px; + padding: 20px; +} + +table { + width: 100%; + border-collapse: collapse; +} + +th { + text-align: left; + padding: 5px 10px; + border-bottom: 1px solid #434343; + color: #b6b6b6; + font-family: 'OpenSansSemibold', "Helvetica Neue", Helvetica, Arial, sans-serif !important; + font-weight: normal; +} + +td { + text-align: left; + padding: 5px 10px; + border-bottom: 1px solid #434343; +} + +a { + color: #ff0000; + font-weight: 400; + text-decoration: none; +} + +a:hover { + color: #ff9b9b; +} diff --git a/assets/css/normalize.css b/assets/css/normalize.css new file mode 100644 index 0000000000..133aa0b757 --- /dev/null +++ b/assets/css/normalize.css @@ -0,0 +1,492 @@ +/*! normalize.css 2012-02-07T12:37 UTC - https://github.com/necolas/normalize.css */ + +/* ============================================================================= + HTML5 display definitions + ========================================================================== */ + +/* + * Corrects block display not defined in IE6/7/8/9 & FF3 + */ + + article, + aside, + details, + figcaption, + figure, + footer, + header, + hgroup, + nav, + section, + summary { + display: block; + } + + /* + * Corrects inline-block display not defined in IE6/7/8/9 & FF3 + */ + + audio, + canvas, + video { + display: inline-block; + *display: inline; + *zoom: 1; + } + + /* + * Prevents modern browsers from displaying 'audio' without controls + */ + + audio:not([controls]) { + display: none; + } + + /* + * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4 + * Known issue: no IE6 support + */ + + [hidden] { + display: none; + } + + + /* ============================================================================= + Base + ========================================================================== */ + + /* + * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units + * http://clagnut.com/blog/348/#c790 + * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom + * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ + */ + + html { + font-size: 100%; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ + -ms-text-size-adjust: 100%; /* 2 */ + } + + /* + * Addresses font-family inconsistency between 'textarea' and other form elements. + */ + + html, + button, + input, + select, + textarea { + font-family: sans-serif; + } + + /* + * Addresses margins handled incorrectly in IE6/7 + */ + + body { + margin: 0; + } + + + /* ============================================================================= + Links + ========================================================================== */ + + /* + * Addresses outline displayed oddly in Chrome + */ + + a:focus { + outline: thin dotted; + } + + /* + * Improves readability when focused and also mouse hovered in all browsers + * people.opera.com/patrickl/experiments/keyboard/test + */ + + a:hover, + a:active { + outline: 0; + } + + + /* ============================================================================= + Typography + ========================================================================== */ + + /* + * Addresses font sizes and margins set differently in IE6/7 + * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5 + */ + + h1 { + font-size: 2em; + margin: 0.67em 0; + } + + h2 { + font-size: 1.5em; + margin: 0.83em 0; + } + + h3 { + font-size: 1.17em; + margin: 1em 0; + } + + h4 { + font-size: 1em; + margin: 1.33em 0; + } + + h5 { + font-size: 0.83em; + margin: 1.67em 0; + } + + h6 { + font-size: 0.75em; + margin: 2.33em 0; + } + + /* + * Addresses styling not present in IE7/8/9, S5, Chrome + */ + + abbr[title] { + border-bottom: 1px dotted; + } + + /* + * Addresses style set to 'bolder' in FF3+, S4/5, Chrome + */ + + b, + strong { + font-weight: bold; + } + + blockquote { + margin: 1em 40px; + } + + /* + * Addresses styling not present in S5, Chrome + */ + + dfn { + font-style: italic; + } + + /* + * Addresses styling not present in IE6/7/8/9 + */ + + mark { + background: #ff0; + color: #000; + } + + /* + * Addresses margins set differently in IE6/7 + */ + + p, + pre { + margin: 1em 0; + } + + /* + * Corrects font family set oddly in IE6, S4/5, Chrome + * en.wikipedia.org/wiki/User:Davidgothberg/Test59 + */ + + pre, + code, + kbd, + samp { + font-family: monospace, serif; + _font-family: 'courier new', monospace; + font-size: 1em; + } + + /* + * 1. Addresses CSS quotes not supported in IE6/7 + * 2. Addresses quote property not supported in S4 + */ + + /* 1 */ + + q { + quotes: none; + } + + /* 2 */ + + q:before, + q:after { + content: ''; + content: none; + } + + small { + font-size: 75%; + } + + /* + * Prevents sub and sup affecting line-height in all browsers + * gist.github.com/413930 + */ + + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + sup { + top: -0.5em; + } + + sub { + bottom: -0.25em; + } + + + /* ============================================================================= + Lists + ========================================================================== */ + + /* + * Addresses margins set differently in IE6/7 + */ + + dl, + menu, + ol, + ul { + margin: 1em 0; + } + + dd { + margin: 0 0 0 40px; + } + + /* + * Addresses paddings set differently in IE6/7 + */ + + menu, + ol, + ul { + padding: 0 0 0 40px; + } + + /* + * Corrects list images handled incorrectly in IE7 + */ + + nav ul, + nav ol { + list-style: none; + list-style-image: none; + } + + + /* ============================================================================= + Embedded content + ========================================================================== */ + + /* + * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3 + * 2. Improves image quality when scaled in IE7 + * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ + */ + + img { + border: 0; /* 1 */ + -ms-interpolation-mode: bicubic; /* 2 */ + } + + /* + * Corrects overflow displayed oddly in IE9 + */ + + svg:not(:root) { + overflow: hidden; + } + + + /* ============================================================================= + Figures + ========================================================================== */ + + /* + * Addresses margin not present in IE6/7/8/9, S5, O11 + */ + + figure { + margin: 0; + } + + + /* ============================================================================= + Forms + ========================================================================== */ + + /* + * Corrects margin displayed oddly in IE6/7 + */ + + form { + margin: 0; + } + + /* + * Define consistent border, margin, and padding + */ + + fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; + } + + /* + * 1. Corrects color not being inherited in IE6/7/8/9 + * 2. Corrects text not wrapping in FF3 + * 3. Corrects alignment displayed oddly in IE6/7 + */ + + legend { + border: 0; /* 1 */ + padding: 0; + white-space: normal; /* 2 */ + *margin-left: -7px; /* 3 */ + } + + /* + * 1. Corrects font size not being inherited in all browsers + * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome + * 3. Improves appearance and consistency in all browsers + */ + + button, + input, + select, + textarea { + font-size: 100%; /* 1 */ + margin: 0; /* 2 */ + vertical-align: baseline; /* 3 */ + *vertical-align: middle; /* 3 */ + } + + /* + * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet + */ + + button, + input { + line-height: normal; /* 1 */ + } + + /* + * 1. Improves usability and consistency of cursor style between image-type 'input' and others + * 2. Corrects inability to style clickable 'input' types in iOS + * 3. Removes inner spacing in IE7 without affecting normal text inputs + * Known issue: inner spacing remains in IE6 + */ + + button, + input[type="button"], + input[type="reset"], + input[type="submit"] { + cursor: pointer; /* 1 */ + -webkit-appearance: button; /* 2 */ + *overflow: visible; /* 3 */ + } + + /* + * Re-set default cursor for disabled elements + */ + + button[disabled], + input[disabled] { + cursor: default; + } + + /* + * 1. Addresses box sizing set to content-box in IE8/9 + * 2. Removes excess padding in IE8/9 + * 3. Removes excess padding in IE7 + Known issue: excess padding remains in IE6 + */ + + input[type="checkbox"], + input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ + *height: 13px; /* 3 */ + *width: 13px; /* 3 */ + } + + /* + * 1. Addresses appearance set to searchfield in S5, Chrome + * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof) + */ + + input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; + } + + /* + * Removes inner padding and search cancel button in S5, Chrome on OS X + */ + + input[type="search"]::-webkit-search-decoration, + input[type="search"]::-webkit-search-cancel-button { + -webkit-appearance: none; + } + + /* + * Removes inner padding and border in FF3+ + * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ + */ + + button::-moz-focus-inner, + input::-moz-focus-inner { + border: 0; + padding: 0; + } + + /* + * 1. Removes default vertical scrollbar in IE6/7/8/9 + * 2. Improves readability and alignment in all browsers + */ + + textarea { + overflow: auto; /* 1 */ + vertical-align: top; /* 2 */ + } + + + /* ============================================================================= + Tables + ========================================================================== */ + + /* + * Remove most spacing between table cells + */ + + table { + border-collapse: collapse; + border-spacing: 0; + } diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000000..4eacbb6201 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1 @@ +document.addEventListener("DOMContentLoaded", () => { particlesJS("particles-js", { particles: { number: { value: 30, density: { enable: !0, value_area: 800 } }, color: { value: "#ffffff" }, shape: { type: "polygon", stroke: { width: 0, color: "#000000" }, polygon: { nb_sides: 5 }, image: { src: "img/github.svg", width: 100, height: 100 } }, opacity: { value: .5, random: !1, anim: { enable: !1, speed: 1, opacity_min: .1, sync: !1 } }, size: { value: 3, random: !0, anim: { enable: !1, speed: 19.18081918081918, size_min: .1, sync: !1 } }, line_linked: { enable: !0, distance: 150, color: "#ffffff", opacity: .4, width: 1 }, move: { enable: !0, speed: 4, direction: "none", random: !0, straight: !1, out_mode: "out", bounce: !1, attract: { enable: !1, rotateX: 600, rotateY: 1200 } }, nb: 80 }, interactivity: { detect_on: "canvas", events: { onhover: { enable: !1, mode: "grab" }, onclick: { enable: !0, mode: "push" }, resize: !0 }, modes: { grab: { distance: 400, line_linked: { opacity: 1 } }, bubble: { distance: 400, size: 40, duration: 2, opacity: 8, speed: 3 }, repulse: { distance: 200, duration: .4 }, push: { particles_nb: 4 }, remove: { particles_nb: 2 } } }, retina_detect: !0 }) }, !1);