use fluid ui v4 beta 2
diff --git a/app/index.html b/app/index.html
deleted file mode 100644
index a8375f0..0000000
--- a/app/index.html
+++ /dev/null
@@ -1 +0,0 @@
-Power+
diff --git a/dtps.css b/dtps.css
index 4e91b79..dc075c0 100644
--- a/dtps.css
+++ b/dtps.css
@@ -3,6 +3,11 @@
(c) jottocraft 2018-2019
*/
+/* Fluid UI theme prefs */
+:root {
+ --icons: "Material Icons Outlined", "Material Icons Extended" !important;
+}
+
.blur * {
pointer-events: none !important;
}
@@ -35,9 +40,6 @@
background: none !important;
}
-.material-icons {
- font-family: 'Material Icons Outlined';
-}
.fc-today {
border-radius: 5px;
diff --git a/fluid.css b/fluid.css
deleted file mode 100644
index 491bab8..0000000
--- a/fluid.css
+++ /dev/null
@@ -1,1844 +0,0 @@
-/*!
-Fluid UI Elements v3.9.1-dtps-epic
-Copyright (c) 2017-2019 jottocraft
-Licenced under the GNU General Public License v3.0 (https://github.com/jottocraft/fluid/blob/master/LICENSE)
-
-Skeleton CSS components (c) 2014 Dave Gamache. All rights reserved.
- */
-
-/* Table of contents
- ––––––––––––––––––––––––––––––––––––––––––––––––––
- - Variables & Included Themes
- - Core Styles & Fonts
- - Acrylic
- - Buttons
- - Lists & Context menus
- - Code
- - Input (Text, textareas, etc.)
- - Switches
- - Sliders
- - Navigation
- - Cards
- - Sidenav
- - Sections / Headers
- - Alerts
- - Splash screens
- - Helpers
- - Miscellaneous
- - Skeleton Components
- */
-
-/* Variables
- –––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-/* Light theme */
-:root, body.light, body.showThemeWindows .themeWindow.lightBox {
- --background: white;
- --elements: #ececec;
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: #404040;
- --darker: #dddddd;
- --darkest: #cccccc;
- --acrylic: white;
- --inputColor: #efefef;
- --listColor: #f1f1f1;
- --listHover: #e4e4e4;
- --switchHead: white;
- --sideColor: #f2f2f2;
- --sideActive: #efefef;
- --sideItem: #b9b9b9;
- --navBorder: #c7c7c7;
- --navActive: #d4d4d4;
- --navText: #4c4c4c;
- --nav: #f1f1f1;
- --cards: white;
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: black;
- --lightText: #565656;
- --secText: #929292;
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: #3396e6;
- --themeText: white;
-}
-
-@media (prefers-color-scheme: dark) {
- /* system-wide dark theme */
- :root, body.dark, body.showThemeWindows .themeWindow.darkBox {
- /* v3 dark theme backup
- --background: #252525;
- --elements: #1b1b1b;
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: white;
- --darker: #151515;
- --darkest: black;
- --acrylic: black;
- --inputColor: #1b1b1b;
- --listColor: #212121;
- --listHover: #151515;
- --switchHead: white;
- --sideColor: #1d1d1d;
- --sideActive: #1b1b1b;
- --sideItem: #656565;
- --navActiveText: #26d47f;
- --navActive: #436f50;
- --navText: #6f6f6f;
- --nav: #1d1d1d;
- --cards: #292929;
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: white;
- --lightText: #b3b3b3;
- --secText: #717171;
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: #0c4d82;
- --themeText: #def0ff;*/
- --background: #1b1b1b;
- --elements: #151515;
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: white;
- --darker: #0e0e0e;
- --darkest: black;
- --acrylic: black;
- --inputColor: #151515;
- --listColor: #151515;
- --listHover: #0c0c0c;
- --switchHead: white;
- --sideColor: #131313;
- --sideActive: #101010;
- --sideItem: #3c3c3c;
- --navBorder: #3a3a3a;
- --navActive: #2d2d2d;
- --navText: #6f6f6f;
- --nav: #131313;
- --cards: #212121;
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.2);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: white;
- --lightText: #b3b3b3;
- --secText: #717171;
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: #0c4d82;
- --themeText: #def0ff;
- }
-}
-
-/* Dark theme */
-body.dark, body.showThemeWindows .themeWindow.darkBox {
- --background: #1b1b1b;
- --elements: #151515;
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: white;
- --darker: #0e0e0e;
- --darkest: black;
- --acrylic: black;
- --inputColor: #151515;
- --listColor: #151515;
- --listHover: #0c0c0c;
- --switchHead: white;
- --sideColor: #131313;
- --sideActive: #101010;
- --sideItem: #3c3c3c;
- --navBorder: #3a3a3a;
- --navActive: #2d2d2d;
- --navText: #6f6f6f;
- --nav: #131313;
- --cards: #212121;
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.2);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: white;
- --lightText: #b3b3b3;
- --secText: #717171;
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: #0c4d82;
---themeText: #def0ff;
-}
-
-body.tome, body.showThemeWindows .themeWindow.tome {
- --background: #160f21;
- --elements: #0e0a0e;
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: white;
- --darker: #09070a;
- --darkest: #020102;
- --acrylic: #0a021f;
- --inputColor: #0f0b13;
- --listColor: #201b25;
- --listHover: #130f17;
- --switchHead: white;
- --sideColor: #0f0c15;
- --sideActive: #0d0a13;
- --sideItem: #2d263a;
- --navBorder: #5a4e6d;
- --navActive: #2f2146;
- --navText: #f3ebff;
- --nav: #131313;
- --cards: #1a1521;
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.2);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: white;
- --lightText: #ada5bd;
- --secText: #5a5367;
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: #321c58;
- --themeText: #e7e4e8;
-}
-
-/* Flex theme layer */
-body.flex, body.showThemeWindows .themeWindow.flex {
- --background: var(--flex-bg);
- --elements: var(--flex-layer1);
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: var(--text);
- --darker: var(--flex-layer2);
- --darkest: var(--flex-layer3);
- --acrylic: var(--flex-bg);
- --inputColor: var(--flex-layer1);
- --listColor: var(--flex-layer1);
- --listHover: var(--flex-layer3);
- --switchHead: white;
- --sideColor: var(--flex-layer2);
- --sideActive: var(--flex-layer2);
- --sideItem: var(--flex-light);
- --navBorder: var(--flex-light);
- --navActive: var(--flex-layer2);
- --navText: var(--text);
- --nav: var(--flex-layer2);
- --cards: var(--flex-light);
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: var(--flex-text);
- --lightText: var(--flex-sectext);
- --secText: var(--flex-sectext);
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: var(--theme-color);
- --themeText: var(--theme-text-color);
-}
-
-/* High Contrast theme
-I'm working on improving this theme, email [email protected] if you have any suggestions */
-body.flex.highContrast:not(.dark), body.showThemeWindows .themeWindow.highContrast {
- --flex-light: #dcdcdc;
- --flex-bg: rgb(255, 255, 255);
- --flex-text: black;
- --flex-sectext: #000000;
- --flex-layer1: rgb(183, 183, 183);
- --flex-layer2: rgb(158, 158, 158);
- --flex-layer3: #737373;
- --theme-color: rgb(0, 0, 0);
- --theme-color-outline: rgba(0, 0, 0, 0.75);
- --theme-text-color: rgb(255, 255, 255);
- --background: var(--flex-bg);
- --elements: var(--flex-layer1);
- --elementRadius: 0px;
- --elementShadow: none;
- --lightShadow: none;
- --elementText: var(--text);
- --darker: var(--flex-layer2);
- --darkest: var(--flex-layer3);
- --acrylic: var(--flex-bg);
- --inputColor: var(--flex-layer1);
- --listColor: var(--flex-layer1);
- --listHover: var(--flex-layer3);
- --switchHead: white;
- --sideColor: var(--flex-layer2);
- --sideActive: var(--flex-layer2);
- --sideItem: var(--flex-light);
- --navBorder: var(--flex-light);
- --navActive: var(--flex-layer2);
- --navText: var(--text);
- --nav: var(--flex-layer2);
- --cards: var(--flex-light);
- --cardRadius: 0px;
- --cardShadow: none;
- --titleFont: Arial;
- --textFont: Arial;
- --text: var(--flex-text);
- --lightText: var(--flex-sectext);
- --secText: var(--flex-sectext);
- --trans: all 0s;
- --theme: var(--theme-color);
- --themeText: var(--theme-text-color);
-}
-
-/* Included Flex Themes */
-
-body.nitro.dark, body.showThemeWindows .themeWindow.nitro {
- --flex-light: #b72b2b;
- --flex-bg: rgb(127, 1, 1);
- --flex-text: white;
- --flex-sectext: #ff9c9c;
- --flex-layer1: rgb(154, 33, 33);
- --flex-layer2: rgb(132, 15, 15);
- --flex-layer3: #5f0b0b;
- --theme-color: rgb(243, 110, 110);
- --theme-color-outline: rgb(243, 110, 110, 0.75);
- --theme-text-color: rgb(104, 0, 0);
-}
-
-body.aquatic.dark, body.showThemeWindows .themeWindow.aquatic {
- --flex-light: rgb(90, 189, 182);
- --flex-bg: rgb(15, 162, 162);
- --flex-text: white;
- --flex-layer1: rgb(48, 171, 165);
- --flex-layer2: rgb(20, 138, 134);
- --flex-layer3: #0a6765;
- --theme-color: #99eadf;
- --theme-color-outline: #c6e7e2c0;
- --theme-text-color: #0e958b;
- --flex-sectext: #a3ded5;
-}
-
-body.midnight.dark, body.showThemeWindows .themeWindow.midnight {
- --background: #000000;
- --elements: #161616;
- --elementRadius: 15px;
- --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
- --elementText: #ffffff;
- --darker: #222222;
- --darkest: #2e2e2e;
- --acrylic: #000000;
- --inputColor: #161616;
- --listColor: #161616;
- --listHover: #2e2e2e;
- --switchHead: white;
- --sideColor: #101010;
- --sideActive: #131313;
- --sideItem: #252525;
- --navBorder: #353535;
- --navActive: #292929;
- --navText: #ffffff;
- --nav: #222222;
- --cards: #0a0a0a;
- --cardRadius: 15px;
- --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- --titleFont: "Product Sans", Arial, sans-serif;
- --textFont: "Google Sans", Arial, sans-serif;
- --text: #ffffff;
- --lightText: #585858;
- --secText: #585858;
- --trans: background-color 0.4s, box-shadow 0.4s, border-color 0.4s, color 0.4s;
- --theme: #132035;
- --themeText: #b6daff;
-}
-
-body.candy, body.showThemeWindows .themeWindow.candy {
- --flex-light: #c73b47;
- --flex-bg: #c73b47;
- --flex-text: white;
- --flex-sectext: #f1717b;
- --flex-layer1: #af2b36;
- --flex-layer2: #a22731;
- --flex-layer3: #90242d;
- --theme-color: #e45964;
- --theme-color-outline: #e45964bf;
- --theme-text-color: #8a252d;
-}
-
-body.violet, body.showThemeWindows .themeWindow.violet {
- --flex-light: #b74ca8;
- --flex-bg: #b53ba3;
- --flex-text: white;
- --flex-sectext: #ff92f0;
- --flex-layer1: #a03b92;
- --flex-layer2: #8e3882;
- --flex-layer3: #692860;
- --theme-color: #d65ec5;
- --theme-color-outline: #d65ec5bf;
- --theme-text-color: #8e3a82;
-}
-
-/* Included rainbow themes */
-
-body.darkRed, body.showThemeWindows .themeWindow.darkRed {
- --flex-light: #da191e;
- --flex-bg: #ce0d12;
- --flex-text: white;
- --flex-sectext: #d98c8f;
- --flex-layer1: #a70004;
- --flex-layer2: #8e0004;
- --flex-layer3: #740003;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #da191e;
-}
-
-body.darkOrange, body.showThemeWindows .themeWindow.darkOrange {
- --flex-light: #e38319;
- --flex-bg: #d7770d;
- --flex-text: white;
- --flex-sectext: #d9c18c;
- --flex-layer1: #b05d00;
- --flex-layer2: #974f00;
- --flex-layer3: #7d4200;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #e38319;
-}
-
-body.darkYellow, body.showThemeWindows .themeWindow.darkYellow {
- --flex-light: #c19719;
- --flex-bg: #b58b0d;
- --flex-text: white;
- --flex-sectext: #d9cb8c;
- --flex-layer1: #8e6b00;
- --flex-layer2: #755800;
- --flex-layer3: #5b4500;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #c19719;
-}
-
-body.darkGreen, body.showThemeWindows .themeWindow.darkGreen {
- --flex-light: #50c319;
- --flex-bg: #44b70d;
- --flex-text: white;
- --flex-sectext: #a8d98c;
- --flex-layer1: #2f9000;
- --flex-layer2: #267700;
- --flex-layer3: #1e5d00;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #50c319;
-}
-
-body.darkBlue, body.showThemeWindows .themeWindow.darkBlue {
- --flex-light: #196fff;
- --flex-bg: #0d63ff;
- --flex-text: white;
- --flex-sectext: #8cb7d9;
- --flex-layer1: #004dda;
- --flex-layer2: #0044c1;
- --flex-layer3: #003ba7;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #196fff;
-}
-
-body.darkNavyBlue, body.showThemeWindows .themeWindow.darkNavyBlue {
- --flex-light: #191999;
- --flex-bg: #0d0d8d;
- --flex-text: white;
- --flex-sectext: #9292b9;
- --flex-layer1: #000066;
- --flex-layer2: #00004d;
- --flex-layer3: #000033;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #191999;
-}
-
-body.darkPurple, body.showThemeWindows .themeWindow.darkPurple {
- --flex-light: #c319ff;
- --flex-bg: #b70dff;
- --flex-text: white;
- --flex-sectext: #d98cd9;
- --flex-layer1: #9800d8;
- --flex-layer2: #8600bf;
- --flex-layer3: #7400a5;
- --theme-color: white;
- --theme-color-outline: #ffffffc0;
- --theme-text-color: #c319ff;
-}
-
-
-
-/* Core Styles & Fonts
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-body {
- margin: 0;
- background-color: var(--background);
- color: var(--text);
- transition: var(--trans);
-}
-
-body.hasSidebar {
- padding-left: 275px;
-}
-
-body.hasSidebar.collapsedSidebar {
- padding-left: 80px;
-}
-
-* {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-
-.row {
- margin-bottom: 20px;
-}
-
-@font-face {
- font-family: 'Product Sans';
- font-display: auto;
- font-style: normal;
- font-weight: 400;
- src: url(https://cdn.jottocraft.com/fluid/assets/product-sans.ttf) format('truetype');
-}
-
-@font-face {
- font-family: 'Google Sans';
- font-display: auto;
- font-style: normal;
- font-weight: 400;
- src: url(https://cdn.jottocraft.com/fluid/assets/gsans.ttf) format('truetype');
-}
-
-/* Title Font Styling */
-
-h1, h2, h3, h4, h5 {
- font-family: var(--titleFont);
- font-weight: normal;
-}
-
-h1, h2, h3 {
- font-weight: bold;
-}
-
-/* Font sizing and margins */
-
-h1, h2, h3, h4, h5, h6 {
- line-height: 110%;
-}
-
-h1 {
- font-size: 3rem;
- margin: 2.1rem 0 1.68rem 0
-}
-
-h2 {
- font-size: 2.6rem;
- margin: 1.78rem 0 1.424rem 0
-}
-
-h3 {
- font-size: 2.2rem;
- margin: 1.46rem 0 1.168rem 0
-}
-
-h4 {
- font-size: 1.8rem;
- margin: 1.14rem 0 .912rem 0
-}
-
-h5 {
- font-size: 1.4rem;
- margin: .82rem 0 .656rem 0
-}
-
-h6 {
- font-size: 1rem;
- font-weight: bold;
- margin: .5rem 0 .4rem 0
-}
-
-/* Larger than phablet */
-
-@media (min-width: 550px) {
- h1 {
- font-size: 3.5rem;
- }
- h2 {
- font-size: 3.0rem;
- }
- h3 {
- font-size: 2.5rem;
- }
- h4 {
- font-size: 2.0rem;
- }
- h5 {
- font-size: 1.5rem;
- }
- h6 {
- font-size: 1rem;
- font-weight: bold;
- }
-}
-
-/* Desktop */
-
-@media (min-width: 1000px) {
- h1 {
- font-size: 4.2rem;
- }
- h2 {
- font-size: 3.56rem;
- }
- h3 {
- font-size: 2.92rem;
- }
- h4 {
- font-size: 2.28rem;
- }
- h5 {
- font-size: 1.64rem;
- }
- h6 {
- font-size: 1.2rem;
- font-weight: normal;
- }
- body {
- font-size: 1em;
- }
-}
-
-/* Text Font Styling */
-
-p, div, button, .btn, a, span, input, body, html, textarea {
- font-family: var(--textFont);
- font-weight: normal;
-}
-
-/* Icons */
-
-.material-icons {
- font-family: 'Material Icons Extended', 'Material Icons';
- font-weight: normal;
- font-style: normal;
- font-size: 24px;
- line-height: 1;
- letter-spacing: normal;
- text-transform: none;
- display: inline-block;
- white-space: nowrap;
- word-wrap: normal;
- direction: ltr;
- -webkit-font-feature-settings: 'liga';
- -webkit-font-smoothing: antialiased;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-}
-
-p .material-icons {
- vertical-align: middle;
- font-size: 20px;
- margin: 0px 2px;
-}
-
-img.emoji {
- height: 1em;
- width: auto;
- display: inline-block;
- vertical-align: middle;
-}
-
-/* Blur & Page wrapper */
-
-#pagewrapper {
- transition: -webkit-filter 0.3s !important;
-}
-
-.blur, .blur * {
- cursor: default !important;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-}
-
-.blur {
- filter: blur(20px);
- -webkit-backdrop-filter: blur(20px);
- backdrop-filter: blur(20px);
-}
-
-/* Links */
-
-a {
- text-decoration: none;
- color: #039be5;
-}
-
-/* Acrylic
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-body.acrylic.demo {
- background-image: url("demoWall.jpg");
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- background-attachment: fixed;
- transition: background-image 0.2s ease-in-out;
-}
-body.acrylic .card, .card.acrylic {
- background-color: transparent !important;
- backdrop-filter: blur(25px);
- -webkit-backdrop-filter: blur(25px);
-}
-body.acrylic .card .content, .card.acrylic .content {
- padding-left: 20px !important;
- margin-left: 240px;
- background-color: var(--cards);
-}
-body.acrylic .sidenav, .card.acrylic .sidenav {
- background: var(--acrylic50) !important;
- }
-
- body.acrylic .sidenav .item.active, .card.acrylic .sidenav .item.active {
- background-color: var(--acrylic10) !important;
-}
-
-body.acrylic .sidenav .item:not(.active), .card.acrylic .sidenav .item:not(.active) {
- color: var(--acrylicSecText) !important;
-}
-
-.acrylicMaterial {
- background: var(--acrylic50) !important;
- backdrop-filter: blur(25px) !important;
- -webkit-backdrop-filter: blur(25px) !important;
-}
-
-@supports not ((backdrop-filter: blur(25px)) or (-webkit-backdrop-filter: blur(25px))) {
-.acrylicMaterial, body.acrylic .sidenav, .card.acrylic .sidenav {
- background-color: var(--acrylic50-fallback) !important;
-}
-}
-
-
-/* Buttons
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.btn, button, select {
- font-family: var(--textFont);
- cursor: pointer;
- border: none;
- outline: none;
- padding: 12px 30px;
- text-align: center;
- border-radius: var(--elementRadius);
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- transition: var(--trans);
- background-color: var(--elements);
- color: var(--elementText);
- user-select: none;
- vertical-align: middle;
- margin: 2px 5px;
- font-weight: bold;
- letter-spacing: 0.9px;
-}
-
-button:focus {
- outline: 0;
-}
-
-.btn i, button i, select i {
- display: inline-block;
- vertical-align: middle;
- margin-top: -10px;
- margin-bottom: -7px;
- margin-right: 5px;
- font-size: 26px;
- line-height: inherit;
-}
-
-.btn.disabled {
- filter: blur(0.5px);
- cursor: normal;
-}
-
-.btn.active {
- box-shadow: var(--elementShadow);
- background-color: var(--theme);
- border-color: var(--theme) !important;
- color: var(--themeText);
-}
-
-.btn.outline, button.outline, select.outline {
- background-color: inherit !important;
- padding: 10px 28px;
- border: 2px solid;
- border-color: var(--elements);
- color: var(--elementText) !important;
-}
-
-.btn.small, select.small {
- padding: 10px 20px;
- font-size: 14px;
-}
-
-.btn:not(.active):hover, button:not(.active):hover {
- background-color: var(--darker);
- border-color: var(--darker);
-}
-
-.btns {
- width: auto;
- display: inline-block;
- padding: 5px;
- border-radius: var(--elementRadius);
- margin-left: 5px;
- background-color: var(--elements);
-}
-
-.btns .btn:not(.active) {
- background-color: transparent !important;
-}
-
-.btns .btn {
- margin: 0;
-}
-
-/* Small button row */
-.btns.small {
- padding: 0px;
- border-radius: 20px;
-}
-
-.btns.small .btn {
- border-radius: 20px;
- padding: 10px 20px;
- font-size: 14px;
-}
-
-.btns.small .btn i {
- font-size: 22px;
- margin-right: 2px;
-}
-
-@media (max-width: 550px) {
- .btn, button, select {
- width: 100%;
- margin: 5px 2px !important;
- }
-}
-
-/* Theme windows */
-
-.themeWindow .themeName {
- font-weight: bold;
-}
-
-body.showThemeWindows .themeWindow:before {
- content:'';
- display: block;
- margin-top: -50%;
-}
-
-body.showThemeWindows .themeWindow, body.showThemeWindows .btns .themeWindow:not(.active), body.showThemeWindows .btns .themeWindow {
- width: 100px;
- text-align: left !important;
- height: 75px;
- background-color: var(--background) !important;
- color: var(--text) !important;
- padding: 0px !important;
- line-height: normal;
- border: 2px solid transparent !important;
- margin: 0px 5px !important;
- overflow: hidden;
-}
-
-body.showThemeWindows .themeWindow .themeName {
- font-size: 12px;
- line-height: 12px;
- font-weight: bold;
- margin-top: 100px;
- text-align: center;
- width: 100%;
- padding-right: 5px;
- overflow: visible;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-body.showThemeWindows .themeWindow .themeName i {
- font-size: 14px;
- margin-right: 0px;
-}
-
-body.showThemeWindows .themeWindow.active {
- border: 2px solid var(--theme) !important;
-}
-
-body.showThemeWindows .themeWindow .demoSecText {
- background-color: var(--text);
- border-radius: 10px;
- height: 4px;
- width: 60px;
- margin-top: 55px;
- margin-left: 10px;
- position: absolute;
-}
-body.showThemeWindows .themeWindow .demoSecText.short {
- background-color: var(--secText);
- width: 50px;
- height: 2px;
- margin-top: 60px;
-}
-body.showThemeWindows .themeWindow .demoBtn {
- background-color: var(--elements);
- height: 9px;
- width: 35px;
- margin-top: 65px;
- margin-left: 10px;
- border-radius: calc(var(--elementRadius) - 12px);
- position: absolute;
-}
-body.showThemeWindows .themeWindow .demoBtn .demoBtnText {
- width: 22px;
- height: 1px;
- background-color: var(--elementText);
- margin-top: 4px;
- margin-left: 7px;
- border-radius: 10px;
-}
-body.showThemeWindows .themeWindow .demoSwitch {
- background-color: var(--theme);
- height: 7px;
- width: 14px;
- margin-top: 78px;
- margin-left: 10px;
- border-radius: calc(var(--elementRadius) - 10px);
- position: absolute;
-}
-body.showThemeWindows .themeWindow .demoSwitch .demoHead {
- width: 6px;
- margin-top: 0.5px;
- height: 6px;
- margin-left: 7.5px;
- background-color: var(--themeText);
- border-radius: var(--elementRadius);
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
-}
-.gColor {
- height: 44px;
- width: 40px;
-}
-.gColor.active {
- border: 2px solid white !important;
-}
-body.showThemeWindows .gColor {
- height: 75px;
- width: 40px;
-}
-body.showThemeWindows .themeSelector .arrow {
- padding: 12px 10px;
-}
-body.showThemeWindows .themeSelector .arrow i {
- margin: 0px;
-}
-
-/* Lists & Context Menus
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.list .item i {
- display: inline-block;
- vertical-align: middle;
- margin-top: -10px;
- margin-bottom: -10px;
- margin-right: 7px;
- font-size: 26px;
- line-height: inherit;
-}
-
-.list {
- background-color: var(--listColor);
-}
-
-.contextmenu {
- position: absolute;
- width: 200px;
- display: none;
-}
-
-.contextmenu.list .item {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- padding: 12px;
-}
-
-.contextmenu.list .item:not(.disabled):hover {
- background-color: var(--listHover);
-}
-
-.contextmenu.active {
- display: inline-block;
-}
-
-.list .item.disabled {
- filter: blur(0.5px);
- cursor: normal;
-}
-
-.list:not(.contextmenu) {
- border-radius: var(--cardRadius);
- padding: 3px;
-}
-
-.list.contextmenu, .list.contextmenu .item {
- border-radius: calc(var(--cardRadius) - 2px);
-}
-
-.list .item {
- cursor: pointer;
- font-weight: bold;
- letter-spacing: 0.9px;
- padding: 15px;
- border-radius: var(--cardRadius);
- transition: var(--trans);
-}
-
-.list:not(.contextmenu) .item {
- margin-top: 3px;
- margin-bottom: 3px;
-}
-
-.list .item.active {
- background-color: var(--theme);
- color: var(--themeText);
- box-shadow: var(--elementShadow);
-}
-
-/* Code
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-code {
- display: block;
- font-family: monospace, monospace !important;
- font-size: 16px;
- padding: 20px;
- box-shadow: var(--lightShadow) !important;
- overflow: auto;
- border-radius: var(--cardRadius);
- background-color: var(--listColor);
-}
-
-/* Input
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]), textarea {
- width: 400px;
- margin-bottom: 30px;
- border-radius: calc(var(--elementRadius) + 5px);
- padding: 0px 10px;
- border: none;
- outline: none;
- height: 48px;
- margin-bottom: 20px;
- transition: var(--trans);
- background-color: var(--inputColor);
- color: var(--text);
-}
-
-input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]):not(.noshadow):focus, textarea:not(.noshadow):focus {
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
-}
-
-input:not([type=color]):not([type=range]):not([type=submit]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]).shadow, textarea.shadow {
- box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
-}
-body.light input:not([type=color]):not([type=range]):not([type=submit]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]).shadow, body.light textarea.shadow {
- background-color: white;
-}
-
-input::placeholder, textarea::placeholder {
- color: var(--secText);
-}
-
-@media (max-width: 550px) {
- input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]), textarea {
- width: 100%;
- }
-}
-
-input.inputIcon {
- padding-left: 40px !important;
-}
-
-i.inputIcon {
- position: absolute;
- z-index: 99;
- padding: 12px 10px;
-}
-
-textarea {
- width: 100%;
- height: 50px;
- margin: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- padding: 10px;
- overflow: hidden;
-}
-
-/* Switches
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.switch {
- border-radius: var(--elementRadius);
- display: inline-block;
- width: 50px;
- height: 25px;
- cursor: pointer;
- vertical-align: middle;
- transition: background-color 0.4s;
- box-shadow: none;
- background-color: var(--elements);
-}
-
-.switch .head {
- transition: background-color 0.4s, box-shadow 0.4s, margin 0.4s;
- border-radius: var(--elementRadius);
- display: inline-block;
- background-color: var(--switchHead);
- width: 20px;
- height: 20px;
- margin: 2.5px;
- position: absolute;
-}
-
-.switch.active .head {
- margin-left: 27.5px;
- background-color: var(--themeText);
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
-}
-
-.switch.active {
- background-color: var(--theme);
-}
-
-.label {
- line-height: 25px;
- height: 25px;
- display: inline-block;
- vertical-align: middle;
- margin-left: 15px;
- }
- .label i {
- vertical-align: middle;
- font-size: 26px;
- margin-right: 2px;
- }
-
-/* Sections & Headers
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.slider {
- -webkit-appearance: none;
- height: 25px;
- outline: none;
- border-radius: calc(var(--elementRadius) - 5px);
- min-width: 200px;
- background-color: var(--elements);
-}
-
-.slider::-webkit-slider-thumb {
- -webkit-appearance: none;
- appearance: none;
- width: 25px;
- height: 25px;
- background: var(--theme);
- cursor: pointer;
- border-radius: calc(var(--elementRadius) - 5px);
-}
-
-.slider::-moz-range-thumb {
- width: 25px;
- height: 25px;
- background: var(--theme);
- cursor: pointer;
- border-radius: calc(var(--elementRadius) - 5px);
-}
-
-/* Navigation
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.directory span {
- vertical-align: middle;
- padding: 4px 6px;
- border-radius: var(--elementRadius);
- cursor: pointer;
- font-size: 18px;
-}
-
-.directory span.active {
- font-weight: bold;
-}
-
-.directory span:hover {
- background-color: var(--elements);
-}
-
-.directory i {
- vertical-align: middle;
- margin: 0px 2px;
-}
-
-.sidebar {
- height: calc(100vh - 0px);
- position: fixed;
- left: 0;
- top: 0;
- width: calc(275px - 0px);
- padding: 25px 0px 42px 0px;
- border-radius: 0px;
- background-color: var(--nav);
- transition: var(--trans), width 0.2s;
- display: flex;
- flex-direction: column;
- box-shadow: var(--cardShadow);
-}
-
-.sidebar .items {
- overflow: auto;
-}
-
-.sidebar h4 {
- text-align: center;
- font-size: 32px;
- font-weight: bold;
- margin: 10px 0px;
- margin-bottom: 20px;
-}
-
-.sidebar p {
- text-align: left;
- margin: 7px 0px 25px 10px;
-}
-
-.sidebar .item {
- font-size: 20px;
- padding: 0px 10px;
- padding-right: 2px;
- border: 2px solid transparent;
- margin: 10px 10px;
- height: 40px;
- line-height: 36px;
- border-radius: calc(var(--cardRadius) - 5px);
- transition: var(--trans);
- color: var(--navText);
- cursor: pointer;
-}
-
-
-.sidebar .item .icon {
- float: right;
- margin-right: 7px;
-}
-
-.sidebar .item .icon i {
- vertical-align: middle;
-}
-
-.sidebar .item.main {
- height: 60px;
- line-height: 54px;
- border-radius: calc(var(--cardRadius) - 2px);
- font-size: 26px;
- border: 2px solid var(--navBorder);
-}
-
-.sidebar .item.active {
- background-color: var(--navActive);
- color: var(--text);
- letter-spacing: 0.9px;
- box-shadow: var(--elementShadow);
-}
-
-.sidebar .item.active .label {
- font-weight: bold;
-}
-
-.sidebar .collapse {
- width: 100%;
- position: absolute;
- bottom: 0px;
- height: 40px;
- text-align: right;
- padding-right: 10px;
- cursor: pointer;
-}
-
-.sidebar .collapse i {
- vertical-align: middle;
- background-color: var(--elements);
- padding: 5px;
- border-radius: 50%;
- color: var(--elementText);
-}
-
-.sidebar .divider {
- background-color: transparent;
- margin: 15px 0px;
-}
-body.hasSidebar.collapsedSidebar .sidebar {
- width: 80px;
- text-align: center;
-}
-
-body.hasSidebar.collapsedSidebar .sidebar .item .label {
- display: none;
-}
-
-body.hasSidebar.collapsedSidebar .sidebar .item {
- width: 40px;
- height: 40px;
- margin-left: 20px;
- padding: 0px;
- border-radius: 50%;
- text-align: center;
-}
-
-
-body.hasSidebar.collapsedSidebar .sidebar .item .icon {
- line-height: 40px;
- text-align: center;
- width: 40px;
- padding-left: 4px;
- margin: 0px;
- margin-top: -2px;
-}
-
-body.hasSidebar.collapsedSidebar .sidebar .item.main .icon {
- margin-top: -4px;
-}
-
-body.hasSidebar.collapsedSidebar .sidebar p, body.hasSidebar.collapsedSidebar .sidebar h4 {
- display: none;
-}
-
-body.hasSidebar.collapsedSidebar .logo {
- width: 40px;
- margin-bottom: 25px;
- margin-left: 20px;
-}
-
-body.hasSidebar:not(.collapsedSidebar) .sidebar .logo {
- display: none;
-}
-
-.sidebar .label {
- margin-left: 0px;
-}
-
-.sidebar .items {
- overflow-x: hidden;
- padding-bottom: 30px;
-}
-
-.nav.links {
- background-color: var(--listColor);
- display: inline-block;
- padding: 0px 2px;
- border-radius: 20px;
- border: 1px solid var(--acrylic10);
-}
-.nav.links a {
- color: var(--lightText);
- margin: 10px 10px;
- font-size: 16px;
- line-height: 22px;
- height: 22px;
- display: inline-block;
- vertical-align: middle;
-}
-.nav.links i {
- vertical-align: middle;
- margin: 0px 4px;
- font-size: 22px;
-}
-
-/* Cards
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.card:not(.focus) {
- position: relative;
-}
-
-.card.close {
- display: none;
- opacity: 0 !important;
- transition: opacity 1s ease-out !important;
-}
-
-.card:not(.close) {
- opacity: 1;
- transition: opacity 1s ease-out !important;
-}
-
-.card {
- border-radius: calc(var(--cardRadius) + 5px);
- background-color: var(--cards);
- padding: 30px;
- box-shadow: var(--cardShadow);
- z-index: 10;
- transition: var(--trans);
-}
-
-.card.focus {
- position: fixed;
- max-height: calc(100% - 100px);
- overflow: auto;
-}
-
-@media (max-width: 1000px) {
- .card.focus {
- position: fixed;
- top: 0px !important;
- left: 0px !important;
- width: 100% !important;
- height: 100vh !important;
- max-height: 100vh !important;
- max-width: 100% !important;
- border-radius: 0px !important;
- }
- .card.focus .sidenav {
- border-radius: 0px !important;
- height: 100vh !important;
- }
-}
-
-.card.withnav .content {
- padding: 20px;
- padding-left: 260px;
-}
-
-.card.withnav {
- padding: 0px;
- overflow: hidden;
-}
-
-.card.container:not(.withnav) {
- padding: 30px !important;
-}
-
-/* Sidenav
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.sidenav {
- width: 240px;
- height: 100%;
- display: inline-block;
- transition: var(--trans);
- float: left;
- background-color: var(--sideColor);
-}
-
-.sidenav .title {
- padding: 20px;
- padding-top: 32px;
- height: 135px;
-}
-
-.sidenav .title h5 {
- font-size: 24px;
- height: 40px;
- margin: 0;
- line-height: 40px;
-}
-
-.sidenav .title p {
- margin: 0px;
-}
-
-.sidenav .item {
- cursor: pointer;
- transition: color 0.2s;
- height: 55px;
- line-height: 55px;
- padding-left: 25px;
- font-weight: bold;
- color: var(--sideItem);
- letter-spacing: 0.9px;
-}
-
-.sidenav .item.active {
- background-color: var(--sideActive);
- color: var(--text);
-}
-
-.sidenav .item i {
- margin-right: 15px;
- vertical-align: middle;
- font-size: 26px;
-}
-
-/* Sections / Headers
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.section {
- border-radius: var(--cardRadius);
-}
-
-.section .header i {
- font-size: 42px;
- margin-left: 5px;
- margin-right: 10px;
-}
-
-.section .header h1, .section .header h2, .section .header h3, .section .header h4, .section .header h5, .section .header h6, .section .header i {
- display: inline-block;
- vertical-align: middle;
-}
-
-.section .header {
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding: 40px 0px;
-}
-
-@media (max-width: 550px) {
- .section .header i {
- display: block;
- }
- .section .header h1, .section .header h2, .section .header h3, .section .header h4, .section .header h5 {
- margin-top: 0px;
- }
-}
-
-/* Splash Screens (Basically all of the code managed in JS)
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-.splash {
- display: none;
-}
-
-/* Grid & Layout
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-/* Helpers
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-/* Shorthand floats & alignments */
-
-.center {
- text-align: center;
-}
-
-.left {
- float: left !important;
-}
-
-.right {
- float: right !important;
-}
-
-.align {
- display: inline-block;
- vertical-align: middle;
-}
-
-.hidden {
- display: none !important;
-}
-
-@media (max-width: 550px) {
- .desktop {
- display: none;
- }
-}
-
-@media (min-width: 550px) {
- .mobile {
- display: none;
- }
-}
-
-/* Miscellaneous
-–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-/* Badges (previously .beta.notice) */
-
-.badge {
- font-size: 18px;
- line-height: 18px;
- vertical-align: middle;
- background-color: #ec9b06;
- color: white;
- padding: 4px 5px;
- border-radius: 10px;
- display: inline-block;
- margin: 0 7px;
-}
-
-/* Generic Themed Elements */
-
-.theme {
- color: var(--themeText) !important;
- background-color: var(--theme) !important;
-}
-
-/* Dividers */
-
-.divider {
- width: 100%;
- margin: 0 10px;
- background-color: var(--elements);
- height: 3px;
- border-radius: 100px;
-}
-
-/* SweetAlert dark theme */
-
-body.dark .swal-icon--success:after, body.dark .swal-icon--success:before, body.dark .swal-icon--success__hide-corners {
- background: var(--elements) !important;
-}
-
-body.dark .swal-title, body.dark .swal-text {
- color: var(--elementText);
-}
-
-body.dark .swal-modal {
- background-color: var(--elements);
-}
-
-/* Skeleton Components
--------------------------------------------------- */
-
-/* Grid */
-
-.container {
- position: relative;
- width: 100%;
- max-width: 960px;
- margin: 0 auto;
- padding: 0 20px;
- box-sizing: border-box;
-}
-
-.column, .columns {
- width: 100%;
- float: left;
- box-sizing: border-box;
-}
-
-/* For devices larger than 400px */
-
-@media (min-width: 400px) {
- .container {
- width: 85%;
- padding: 0;
- }
-}
-
-/* For devices larger than 550px */
-
-@media (min-width: 550px) {
- .container {
- width: 80%;
- }
- .column, .columns {
- margin-left: 4%;
- }
- .column:first-child, .columns:first-child {
- margin-left: 0;
- }
- .one.column, .one.columns {
- width: 4.66666666667%;
- }
- .two.columns {
- width: 13.3333333333%;
- }
- .three.columns {
- width: 22%;
- }
- .four.columns {
- width: 30.6666666667%;
- }
- .five.columns {
- width: 39.3333333333%;
- }
- .six.columns {
- width: 48%;
- }
- .seven.columns {
- width: 56.6666666667%;
- }
- .eight.columns {
- width: 65.3333333333%;
- }
- .nine.columns {
- width: 74.0%;
- }
- .ten.columns {
- width: 82.6666666667%;
- }
- .eleven.columns {
- width: 91.3333333333%;
- }
- .twelve.columns {
- width: 100%;
- margin-left: 0;
- }
- .one-third.column {
- width: 30.6666666667%;
- }
- .two-thirds.column {
- width: 65.3333333333%;
- }
- .one-half.column {
- width: 48%;
- }
- /* Offsets */
- .offset-by-one.column, .offset-by-one.columns {
- margin-left: 8.66666666667%;
- }
- .offset-by-two.column, .offset-by-two.columns {
- margin-left: 17.3333333333%;
- }
- .offset-by-three.column, .offset-by-three.columns {
- margin-left: 26%;
- }
- .offset-by-four.column, .offset-by-four.columns {
- margin-left: 34.6666666667%;
- }
- .offset-by-five.column, .offset-by-five.columns {
- margin-left: 43.3333333333%;
- }
- .offset-by-six.column, .offset-by-six.columns {
- margin-left: 52%;
- }
- .offset-by-seven.column, .offset-by-seven.columns {
- margin-left: 60.6666666667%;
- }
- .offset-by-eight.column, .offset-by-eight.columns {
- margin-left: 69.3333333333%;
- }
- .offset-by-nine.column, .offset-by-nine.columns {
- margin-left: 78.0%;
- }
- .offset-by-ten.column, .offset-by-ten.columns {
- margin-left: 86.6666666667%;
- }
- .offset-by-eleven.column, .offset-by-eleven.columns {
- margin-left: 95.3333333333%;
- }
- .offset-by-one-third.column, .offset-by-one-third.columns {
- margin-left: 34.6666666667%;
- }
- .offset-by-two-thirds.column, .offset-by-two-thirds.columns {
- margin-left: 69.3333333333%;
- }
- .offset-by-one-half.column, .offset-by-one-half.columns {
- margin-left: 52%;
- }
-}
-
-@media (min-width: 1000px) {
- .container {
- max-width: 1300px;
- }
-}
-
-/* HTML Lists */
-
-ul {
- list-style: circle inside;
-}
-
-ol {
- list-style: decimal inside;
-}
-
-ol, ul {
- padding-left: 0;
- margin-top: 0;
-}
-
-ul ul, ul ol, ol ol, ol ul {
- margin: 1.5rem 0 1.5rem 3rem;
- font-size: 90%;
-}
-
-li {
- margin-bottom: 1rem;
-}
-
-/* Tables */
-
-th, td {
- padding: 12px 15px;
- text-align: left;
- border-bottom: 1px solid #E1E1E1;
-}
-
-th:first-child, td:first-child {
- padding-left: 0;
-}
-
-th:last-child, td:last-child {
- padding-right: 0;
-}
-
-/* Utilities */
-
-.u-full-width {
- width: 100%;
- box-sizing: border-box;
-}
-
-.u-max-full-width {
- max-width: 100%;
- box-sizing: border-box;
-}
-
-.u-pull-right {
- float: right;
-}
-
-.u-pull-left {
- float: left;
-}
-
-/* Misc */
-
-hr {
- margin-top: 3rem;
- margin-bottom: 3.5rem;
- border-width: 0;
- border-top: 1px solid #E1E1E1;
-}
-
-body {
- font-size: 1em;
- /* currently ems cause chrome bug misinterpreting rems on body element */
- font-weight: 400;
-}
-
-/* Self Clearing Goodness */
-
-.container:after, .row:after, .u-cf {
- content: "";
- display: table;
- clear: both;
-}
-
-/* Thank you for using Fluid UI :) */
diff --git a/fluid.js b/fluid.js
deleted file mode 100644
index 356b589..0000000
--- a/fluid.js
+++ /dev/null
@@ -1,769 +0,0 @@
-/*!
-Fluid UI JavaScript Modules v3.9.2
-Copyright (c) 2017-2019 jottocraft
-Licenced under the GNU General Public License v3.0 (https://github.com/jottocraft/fluid/blob/master/LICENSE)
- */
-
-
-function getCookie(cname) {
- var name = cname + "=";
- var decodedCookie = decodeURIComponent(document.cookie);
- var ca = decodedCookie.split(';');
- for (var i = 0; i < ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return "";
-}
-
-Date.prototype.stdTimezoneOffset = function () {
- var jan = new Date(this.getFullYear(), 0, 1);
- var jul = new Date(this.getFullYear(), 6, 1);
- return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());
-}
-
-Date.prototype.isDstObserved = function () {
- return this.getTimezoneOffset() < this.stdTimezoneOffset();
-}
-
-fluid = new Object;
-fluid.contextMenuOpen = false;
-
-fluid.dst = new Date().isDstObserved()
-if (fluid.dst) {
- // WITH Daylight Savings Time
- // Light: 5AM - 6PM Dark: 7PM - 4AM
- fluid.auto = { darkStartPM: 19, darkEndAM: 4 }
-} else {
- // NO Daylight Savings Time
- // Light: 6AM - 5PM Dark: 6PM - 5AM
- fluid.auto = { darkStartPM: 18, darkEndAM: 5 }
-}
-
-window.matchMedia("(prefers-color-scheme: dark)").addListener(function (e) {
- if ((window.localStorage.getItem("fluidTheme") == undefined) && fluid.unsetStart) {
- console.log("[FLUID UI] Detected a change in system-wide theme")
- if (e.matches) {
- fluid.theme("dark", true);
- } else {
- fluid.theme("auto", true);
- }
- }
-})
-
-fluid.includedFlexThemes = ["midnight", "nitro", "aquatic", "highContrast", "candy", "violet"]
-fluid.theme = function (requestedTheme, temporary) {
- // GET CURRENT THEME -----------------------
- var currentTheme = null;
-
- if ($("body").hasClass("dark")) currentTheme = "dark";
- if ($("body").hasClass("light")) currentTheme = "light";
-
- var bodyClass = document.body.className;
- for (var i = 0; i < fluid.includedFlexThemes.length; i++) {
- if (String(bodyClass).includes(fluid.includedFlexThemes[i])) {
- currentTheme = fluid.includedFlexThemes[i];
- }
- }
-
- for (var i = 0; i < document.body.classList.length; i++) { if ((document.body.classList[i] !== "light") && document.body.classList[i].startsWith("light")) { currentTheme = document.body.classList[i] } if ((document.body.classList[i] !== "dark") && document.body.classList[i].startsWith("dark")) { currentTheme = document.body.classList[i] } }
- if (currentTheme) { $(".btns.themeSelector .btn." + currentTheme.replace("#", "")).addClass("active"); }
-
- if (requestedTheme == undefined) return currentTheme;
- // -----------------------------------------
-
- // APPLY REQUESTED THEME -------------------
- classes = document.body.classList.value.split(" ");
- for (var ii = 0; ii < classes.length; ii++) { if ((classes[ii].startsWith("light") || classes[ii].startsWith("dark")) && ((classes[ii] !== "dark") && (classes[ii] !== "light"))) { $("body").removeClass(classes[ii]) } }
- for (var i = 0; i < fluid.includedFlexThemes.length; i++) $("body").removeClass(fluid.includedFlexThemes[i])
- $("body").removeClass("tome");
-
- if (requestedTheme.includes("light") || (requestedTheme == "highContrast")) { $("body").removeClass("dark"); $("body").addClass("light"); }
- if (requestedTheme.includes("dark") || fluid.includedFlexThemes.includes(requestedTheme) || (requestedTheme == "tome")) { $("body").removeClass("light"); $("body").addClass("dark"); }
- if (requestedTheme !== "auto") $("body").addClass(requestedTheme);
-
- //Auto (time-based) theme
- if (requestedTheme == "auto") {
- var hours = new Date().getHours()
- if (hours > fluid.auto.darkEndAM && hours < fluid.auto.darkStartPM) {
- $("body").removeClass("dark"); $("body").addClass("light");
- } else {
- $("body").removeClass("light"); $("body").addClass("dark");
- }
- }
-
- //Fluid Flex Compatibility Layer
- if ((String(requestedTheme).startsWith("dark") && (requestedTheme !== "dark")) || (String(requestedTheme).startsWith("light") && (requestedTheme !== "light")) || (fluid.includedFlexThemes.includes(requestedTheme))) { $("body").addClass("flex"); } else { $("body").removeClass("flex"); }
-
- //Save theme & UI Stuff
- if (temporary !== true) { localStorage.setItem("fluidTheme", requestedTheme); }
- if (requestedTheme) { $(".btns.themeSelector .btn").removeClass("active"); $(".btns.themeSelector .btn." + requestedTheme.replace("#", "")).addClass("active"); }
- // -----------------------------------------
-
- // OTHER THEME THINGS ----------------------
- //Acrylic (tinycolor library required)
- if (typeof tinycolor !== "undefined") {
- var acrylicBase = getComputedStyle(document.body).getPropertyValue("--acrylic");
- if (acrylicBase == "") acrylicBase = getComputedStyle(document.body).getPropertyValue("--background");
- document.documentElement.style.setProperty("--acrylic10", tinycolor(acrylicBase).setAlpha(0.1).toRgbString())
- document.documentElement.style.setProperty("--acrylic50", tinycolor(acrylicBase).setAlpha(0.5).toRgbString())
- document.documentElement.style.setProperty("--acrylic50-fallback", tinycolor(acrylicBase).setAlpha(0.9).toRgbString())
- document.documentElement.style.setProperty("--acrylicSecText", tinycolor(getComputedStyle(document.body).getPropertyValue("--text")).setAlpha(0.3).toRgbString())
- } else {
- console.warn("[FLUID UI] The tinycolor library is not present. Fluid UI Acrylic will not work on this site.");
- }
-
- //Load chroma
- if (fluid.chroma.on && fluid.chroma.themeLink) {
- fluid.chroma.static(getComputedStyle(document.body).getPropertyValue("--background"))
- }
-
- if ((requestedTheme !== currentTheme) && (currentTheme !== null)) {
- //emit theme change event if the theme has changed
- document.dispatchEvent(new CustomEvent('fluidTheme', { detail: requestedTheme }))
- }
- // -----------------------------------------
-
-}
-
-fluid.get = function (key) {
- return window.localStorage.getItem(key);
-}
-fluid.set = function (key, val, trigger) {
- if (key.startsWith("pref-")) {
- if ((String(val) == "true") || (String(val) == "false") || (val == undefined)) {
- //boolean value
- if (val == undefined) {
- if (fluid.get(key) !== null) {
- //toggle boolean value
- if (fluid.get(key) == "true") { val = false; } else { val = true; }
- } else {
- //no value to toggle, get value from switch activity
- val = !$("." + key).hasClass("active");
- }
- }
- if (String(val) == "true") {
- $(".switch." + key + ", .btn." + key).addClass("active");
- } else {
- $(".switch." + key + ", .btn." + key).removeClass("active");
- }
- } else {
- //value pref
- $(".btns." + key + " .btn").removeClass("active")
- $(".btns." + key + " .btn." + val).addClass("active")
- }
- if (trigger == undefined) window.localStorage.setItem(key, val);
- if (trigger !== "load") {
- document.dispatchEvent(new CustomEvent(key, { detail: val }));
- }
- } else {
- console.error("Error: Calling fluid.set with invalid prefrence name. Make sure the name of your prefrence starts with 'pref-'. See https://fluid.js.org/#input-prefs.")
- }
-}
-
-window.addEventListener('storage', function (e) {
- if (e.key.startsWith("pref-")) {
- fluid.set(e.key, e.newValue, true)
- }
- if (e.key == "fluidTheme") {
- fluid.theme(e.newValue, true)
- }
-});
-
-fluid.tcoh = function () {
- $("body").addClass("litleceser");
- $('img').attr('src', 'https://i.imgur.com/uhZT30E.png');
- var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
- link.type = 'image/png';
- link.rel = 'shortcut icon';
- link.href = 'https://i.imgur.com/uhZT30E.png';
- document.getElementsByTagName('head')[0].appendChild(link);
- document.title = "LITTLE CESERS HOT N READY FOR ONLY FIVE DOLALARS EXTRA MOST BESTEST IS ONLY SIX FOR EXTRA CHEESE AND PEPERONI AND THE NATIONS BEST PRICE"
-}
-
-fluid.chroma = { on: false, themeLink: false };
-fluid.chroma.session = {};
-fluid.chroma.supported = function (cb) {
- $.ajax({
- type: "GET",
- url: 'http://localhost:54235/razer/chromasdk',
- success: function () {
- if (cb) cb(true);
- },
- error: function (error) {
- if (cb) cb(false);
- }
- })
-}
-fluid.chroma.init = function (profile, cb) {
- $.ajax({
- type: "POST",
- url: 'http://localhost:54235/razer/chromasdk',
- dataType: 'json',
- contentType: 'application/json',
- data: `{
- "title": "` + profile.title + `",
- "description": "` + profile.description + `",
- "author": {
- "name": "` + profile.author + `",
- "contact": "` + (profile.domain ? profile.domain : document.location.hostname) + `"
- },
- "device_supported": ` + JSON.stringify([
- "keyboard",
- "mouse",
- "headset",
- "mousepad",
- "keypad",
- "chromalink"]) + `,
- "category": "application"
- }`,
- success: function (res) {
- fluid.chroma.session = res
- setInterval(function () {
- $.ajax({
- type: "PUT",
- url: fluid.chroma.session.uri + "/heartbeat",
- dataType: 'json',
- contentType: 'application/json'
- })
- }, 10000)
- setTimeout(function () {
- $("body").attr("onunload", "fluid.chroma.disable()");
- fluid.chroma.on = true;
- if (cb) cb();
- }, 2000)
- }
- })
-}
-fluid.chroma.disable = function (cb) {
- if (fluid.chroma.on) {
- $.ajax({
- type: "DELETE",
- url: fluid.chroma.session.uri,
- dataType: 'json',
- contentType: 'application/json',
- success: function () {
- fluid.chroma.on = false;
- fluid.chroma.session = {};
- if (cb) cb();
- }
- })
- }
-}
-fluid.chroma.effect = function (color, array) {
- //color: static color used for everything except for keyboards
- //array: 2d array for custom effect for keyboards
- fluid.chroma.static(color, true);
-
- //color to bgr integer
- convertedArray = [];
- for (var i = 0; i < array.length; i++) {
- convertedArray.push([])
- for (var ii = 0; ii < array[i].length; ii++) {
- if (array[i][ii] == 0) {
- convertedArray[i].push(0)
- } else {
- if (array[i][ii] == null) {
- var rgb = tinycolor(color).toRgb();
- convertedArray[i].push(parseInt(tinycolor("rgb(" + rgb.b + ", " + rgb.g + ", " + rgb.r + ")").toHexString().replace("#", "1"), 16))
- } else {
- var rgb = tinycolor(array[i][ii]).toRgb();
- convertedArray[i].push(parseInt(tinycolor("rgb(" + rgb.b + ", " + rgb.g + ", " + rgb.r + ")").toHexString().replace("#", "1"), 16))
- }
- }
- }
- }
-
- $.ajax({
- type: "PUT",
- url: fluid.chroma.session.uri + "/keyboard",
- dataType: 'json',
- contentType: 'application/json',
- data: `{
- "effect": "CHROMA_CUSTOM",
- "param": ` + JSON.stringify(convertedArray) + `
- }`
- })
-}
-fluid.chroma.static = function (color, exKeyboard) {
- var rgb = tinycolor(color).toRgb();
-
- function static(endpoint) {
- $.ajax({
- type: "PUT",
- url: fluid.chroma.session.uri + endpoint,
- dataType: 'json',
- contentType: 'application/json',
- data: `{
- "effect": "CHROMA_STATIC",
- "param": {
- "color": ` + parseInt(tinycolor("rgb(" + rgb.b + ", " + rgb.g + ", " + rgb.r + ")").toHexString().replace("#", "1"), 16) + `
- }
- }`
- })
- }
- if (exKeyboard == undefined) static("/keyboard");
- static("/mouse");
- static("/mousepad");
- static("/headset");
- static("/chromalink");
- static("/keypad");
-}
-
-
-fluid.themePages = function (ele, dir) {
- var themePage = $(ele).parents(".themeSelector").attr("themePage")
- if (dir == +1) {
- themePage++;
- $(ele).parents(".themeSelector").children("span").hide();
- $(ele).parents(".themeSelector").children('.s' + fluid.themePageList[themePage]).show();
- if (themePage == (fluid.themePageList.length - 1)) { $(ele).hide(); } $(ele).siblings(".btn").show();
- } else {
- themePage--;
- $(ele).parents(".themeSelector").children("span").hide();
- $(ele).parents(".themeSelector").children('.s' + fluid.themePageList[themePage]).show();
- if (themePage == 0) { $(ele).hide(); } $(ele).siblings(".btn").show();
- }
- $(ele).parents(".themeSelector").attr("themePage", themePage)
-}
-
-fluid.contextMenu = function (target, event) {
- var element = target
- if ($(element).children("a").length == 1) element = $(element).children("a").children("i").get(0);
- if ($(element).siblings(".contextmenu").length == 1) {
- if (event) event.preventDefault();
- if (!fluid.contextMenuOpen) {
- $(element).addClass("outOfContext")
- document.body.style.overflow = "hidden";
- $("body").css("padding-right", "5px");
- fluid.contextMenuOpen = true;
- fluid.generateWrapper();
-
- var bodyRect = document.body.getBoundingClientRect(),
- elemRect = element.getBoundingClientRect(),
- left = elemRect.left - bodyRect.left - 5,
- top = elemRect.top - bodyRect.top;
-
- $("#activecontextmenu").css("left", left)
- $("#activecontextmenu").css("top", top)
- $("#activecontextmenu").css("display", "inline-block")
- $("#activecontextmenu").css("background", "transparent")
- $(element).parent().css("height", $(element).parent().height());
- $(element).parent().css("width", $(element).parent().width());
- $(element).parent().css("vertical-align", "middle");
- if ($(element).hasClass("material-icons")) {
- $(element).parent().parent().css("width", "44px")
- $(element).parent().parent().css("height", "44px")
- $("#pagewrapper").attr("onclick", "fluid.exitContextMenu(true);");
- } else {
- $("#pagewrapper").attr("onclick", "fluid.exitContextMenu(false);");
- }
- $(element).parent().addClass("contextMenuSource")
- if ($(element).hasClass("active")) { $(element).css("background-color", "#207bdf") } else {
- if ($("body").hasClass("outline")) {
- if ($("body").hasClass("dark")) { $(element).css("border", "1px solid #16181a") } else { $(element).css("border", "1px solid #dddddd") }
- }
- else { if ($("body").hasClass("dark")) { element.style = "background-color: var(--flex-layer3, #16181a);"; } else { element.style = "background-color: var(--flex-layer3, #dddddd);"; } }
- }
- $(element).siblings(".contextmenu").css("display", "inline-block");
- $(element).siblings(".contextmenu").css("margin-left", "-20px")
- $(element).siblings(".contextmenu").css("margin-right", "10px")
- $(element).parent().children().appendTo("#activecontextmenu");
- $("#activecontextmenu").css("width", $("body").width() - Number($("#activecontextmenu").css("left").slice(0, -2)))
- if ($(element).siblings('.contextmenu').css("right").charAt(0) == "-") {
- $(element).siblings('.contextmenu').css("right", 0)
- $(element).siblings(".contextmenu").css("margin-top", $(element).height() + 3)
- } else {
- $(element).siblings(".contextmenu").css("margin-top", $(element).height())
- }
- $("#pagewrapper").addClass("blur", 100)
- }
- } else {
- if (fluid.expBeh) {
- event.preventDefault();
- fluid.bounceBack(element);
- }
- }
-}
-
-fluid.onLoad = function () {
- //NOTE: fluid.onLoad should ONLY be loaded ON PAGE LOAD. Use fluid.init to initialize elements added after page load
-
- //Unsupported browser alert
- if (window.navigator.userAgent.includes('MSIE ') || window.navigator.userAgent.includes('Trident/')) {
- alert("Internet Explorer is not supported. Please upgrade to a modern browser like Microsoft Edge or Google Chrome.")
- throw "error: unsupported browser";
- }
-
- //Load initial prefrences
- //NOTE: DO NOT add a prefrence element after page load. It is extremely difficult to maintain good performance while making sure every prefrence element is on the same page
- for (var i = 0; i < Object.keys(window.localStorage).length; i++) {
- if (Object.keys(window.localStorage)[i].startsWith("pref-")) {
- fluid.set(Object.keys(window.localStorage)[i], window.localStorage.getItem(Object.keys(window.localStorage)[i]))
- }
- }
-
- //Render fluid theme page DOM
- if (typeof fluidThemes !== "undefined") {
- if (typeof fluidThemes[0] !== "object") {
- fluidThemes = [];
- }
- fluid.themePageDOM = [];
- for (var i = 0; i < fluidThemes.length; i++) {
- fluid.themePageDOM.push([]);
- for (var ii = 0; ii < fluidThemes[i].length; ii++) {
- if (typeof fluidThemes[i][ii] == "object") { if (!fluidThemes[i][ii].icon) { fluidThemes[i][ii].icon = "palette"; } fluid.themePageDOM[i].push(`<button onclick="fluid.theme('` + fluidThemes[i][ii].id + `')" class="btn themeWindow ` + (fluidThemes[i][ii].id !== "tome" ? "flex" : "") + ` ` + fluidThemes[i][ii].id.replace("#", "") + `"><div class="themeName"><i class="material-icons">` + fluidThemes[i][ii].icon + `</i> ` + fluidThemes[i][ii].name + `</div></button>`) }
- if (fluidThemes[i][ii] == "midnight") { fluid.themePageDOM[i].push(`<button onclick="fluid.theme('midnight')" class="btn themeWindow flex midnight"><div class="themeName"><i class="material-icons">brightness_3</i> Midnight</div></button>`) }
- if (fluidThemes[i][ii] == "nitro") { fluid.themePageDOM[i].push(`<button onclick="fluid.theme('nitro')" class="btn themeWindow flex nitro"><div class="themeName"><i class="material-icons">whatshot</i> Nitro</div></button>`) }
- if (fluidThemes[i][ii] == "aquatic") { fluid.themePageDOM[i].push(`<button onclick="fluid.theme('aquatic')" class="btn themeWindow flex aquatic"><div class="themeName"><i class="material-icons">pool</i> Aqua</div></button>`) }
- if (fluidThemes[i][ii] == "candy") { fluid.themePageDOM[i].push(`<button onclick="fluid.theme('candy')" class="btn themeWindow flex candy"><div class="themeName"><i class="material-icons">color_lens</i> Candy</div></button>`) }
- if (fluidThemes[i][ii] == "violet") { fluid.themePageDOM[i].push(`<button onclick="fluid.theme('violet')" class="btn themeWindow flex violet"><div class="themeName"><i class="material-icons">terrain</i> Violet</div></button>`) }
- if (fluidThemes[i][ii] == "highContrast") { fluid.themePageDOM[i].push(`<button onclick="fluid.theme('highContrast')" class="btn themeWindow flex highContrast"><div class="themeName"><i class="material-icons">accessibility_new</i> High Contrast</div></button>`) }
- if (fluidThemes[i][ii] == "rainbow") {
- fluid.themePageDOM[i] = [`<button style="background-color: #8e0004 !important;" onclick="fluid.theme('darkRed')" class="btn darkRed gColor"></button>
- <button style="background-color: #8e4b00 !important;" onclick="fluid.theme('darkOrange')" class="btn darkOrange gColor"></button>
- <button style="background-color: #6a5a00 !important;" onclick="fluid.theme('darkYellow')" class="btn darkYellow gColor"></button>
- <button style="background-color: #257300 !important;" onclick="fluid.theme('darkGreen')" class="btn darkGreen gColor"></button>
- <button style="background-color: #0043bf !important;" onclick="fluid.theme('darkBlue')" class="btn darkBlue gColor"></button>
- <button style="background-color: #8100b9 !important;" onclick="fluid.theme('darkPurple')" class="btn darkPurple gColor"></button>`]
- }
- }
- }
- }
-
- //Legacy (>=v3.x.x) compatibility
- if (getCookie("fluidTheme") !== "") {
- console.warn("[FLUID UI] Detected a legacy Fluid UI Theme cookie. Moving to localStorage...")
- window.localStorage.setItem("fluidTheme", getCookie("fluidTheme"));
- document.cookie = "fluidTheme=; expires=Thu, 01 Jan 1970 00:00:00 UTC;";
- }
-
- fluid.unsetStart = false;
- if (window.localStorage.getItem("fluidTheme") == null) {
- var unset = fluid.theme();
- console.log("[FLUID UI] Unset Fluid Theme: " + unset)
- if (unset == null) {
- fluid.unsetStart = true;
- }
- }
-
- fluid.init();
-}
-
-fluid.init = function () {
- if (typeof fluidThemes !== "undefined") {
- fluid.themePageList = [];
- $(".btns.row.themeSelector").html(`
- <button style="display: none;" onclick="fluid.themePages(this, -1);" class="btn arrow leftArrow"><i class="material-icons">keyboard_arrow_left</i></button>
- <span class="s0">
- <button onclick="fluid.theme('auto')" class="btn themeWindow auto ` + ((new Date().getHours() > fluid.auto.darkEndAM) && (new Date().getHours() < fluid.auto.darkStartPM) ? "lightBox" : "darkBox") + `"><div class="themeName"><i class="material-icons">brightness_auto</i> Auto</div></button>
- <button onclick="fluid.theme('light')" class="btn themeWindow light lightBox"><div class="themeName"><i class="material-icons">brightness_high</i> Light</div></button>
- <button onclick="fluid.theme('dark')" class="btn themeWindow dark darkBox"><div class="themeName"><i class="material-icons">brightness_low</i> Dark</div></button>
- </span>
- ` + fluid.themePageDOM.map(function (key, i) {
- return `<span style="display:none;" class="s` + (i + 1) + `">
- ` + key.join("") + `
- </span>`
- }).join("") + `
- <button onclick="fluid.themePages(this, +1);" class="btn arrow rightArrow"><i class="material-icons">keyboard_arrow_right</i></button>
- `);
- $(".themeWindow").prepend(`<div class="demoSecText"></div><div class="demoSecText short"></div><div class="demoBtn"><div class="demoBtnText"></div></div><div class="demoSwitch"><div class="demoHead"></div></div>`)
- $(".themeSelector").attr("themePage", 0)
- for (var i = 0; i < ($('.themeSelector').children().length - 2); i++) {
- if ($('.themeSelector .s' + i).children().length) fluid.themePageList.push(i);
- }
- }
-
- if (window.localStorage.getItem("fluidTheme") !== null) {
- fluid.theme(window.localStorage.getItem("fluidTheme"), true)
- } else {
- if ((fluid.theme() == null) && fluid.unsetStart) {
- if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
- fluid.theme("dark", true);
- } else {
- fluid.theme("auto", true);
- }
- }
- }
-
- if (!$("body").hasClass("notwemoji")) {
- $.getScript("https://twemoji.maxcdn.com/2/twemoji.min.js?12.0.4", function () {
- if (typeof twemoji !== "undefined") twemoji.parse(document.body);
- })
- }
-
- $(".btns:not(.themeSelector) .btn:not(.manual):not([init='true']), .list.select .item:not(.manual):not([init='true']), .sidenav .item:not(.manual):not([init='true']), .sidebar .item:not(.manual):not([init='true'])").click(function (event) {
- if ($(event.target).parent().hasClass("multiple")) {
- $(this).toggleClass("active")
- } else {
- $(this).siblings().removeClass("active")
- $(this).addClass("active")
- }
- $(this).attr("init", "true")
- });
-
- $(".sidebar .collapse:not([init='true'])").click(function() {
- $('body').toggleClass('collapsedSidebar');
- if ($('body').hasClass('collapsedSidebar')) {
- $(this).html(`<i class="material-icons">keyboard_arrow_right</i>`);
- } else {
- $(this).html(`<i class="material-icons">keyboard_arrow_left</i>`);
- }
- $(this).attr("init", "true");
- })
-
- fluid.shouldSwitch = true;
- $(".switch:not([init='true'])").click(function (event) {
- if ($(event.target).hasClass("head")) {
- var ele = $(event.target).parent();
- } else { var ele = event.target }
- if (fluid.shouldSwitch && !$(ele).attr("class").includes("pref-")) {
- $(ele).toggleClass("active");
- fluid.shouldSwitch = false;
- setTimeout(() => fluid.shouldSwitch = true, 400)
- }
- $(this).attr("init", "true")
- });
-
- $("#activecontextmenu:not([init='true'])").contextmenu(function (event) {
- event.preventDefault();
- $(this).attr("init", "true")
- });
-
- $(".btn:not([init='true']), .nav a:not([init='true']), .nav li:not([init='true'])").contextmenu(function (event) {
- fluid.contextMenu(event.target, event)
- $(this).attr("init", "true")
- });
-
- $(".contextmenu.list .item:not([init='true'])").click(function (event) {
- fluid.exitContextMenu(false);
- $(this).attr("init", "true")
- });
-
- $("div.nav.active li:not([init='true'])").click(function (event) {
- $(this).siblings().removeClass("active")
- $(this).addClass("active")
- $(this).attr("init", "true")
- });
-
- $(".section.collapse .header:not([init='true'])").click(function (event) {
- if ($(this).parent().hasClass("collapsed")) {
- if ($(this).parent().hasClass("one")) {
- $(this).parent().siblings().addClass("collapsed");
- }
- }
- $(this).parent().toggleClass("collapsed");
- $(this).attr("init", "true")
- });
-
- if (fluid.expBeh) {
- //experimental behavior
- $(".list .item:not([init='true']), a:not([init='true'])").contextmenu(function (event) {
- event.preventDefault(); fluid.bounceBack(event.target);
- $(this).attr("init", "true")
- });
- }
-}
-
-
-
-$(document).ready(function() {
- if (typeof fluidAutoLoad !== "undefined") {
- if (fluidAutoLoad !== false) {
- fluid.onLoad();
- }
- } else {
- fluid.onLoad();
- }
-});
-
-$(window).resize(function () {
- fluid.exitContextMenu(true);
-});
-
-fluid.exitContextMenu = function (force) {
- if (fluid.contextMenuOpen) {
- $("#pagewrapper").removeClass("blur")
- $("#activecontextmenu").children(".contextmenu").css("display", "none");
- if (force) { wait = 0; } else { wait = 300; }
- setTimeout(function () {
- $("#activecontextmenu").children().appendTo(".contextMenuSource")
- $(".contextMenuSource").children(".btn, i").css("background-color", "");
- $(".contextMenuSource").children(".btn, i").css("border", "");
- $(".contextMenuSource").children(".btn, i").removeClass("outOfContext")
- $(".contextMenuSource").css("height", "");
- $("#pagewrapper").attr("onclick", "");
- $(".contextMenuSource").removeClass("contextMenuSource")
- fluid.contextMenuOpen = false;
- document.body.style.overflow = "";
- $("body").css("padding-right", "");
- }, wait);
- }
-}
-
-fluid.bounceBack = function (ele) {
- if (!fluid.contextMenuOpen) {
- fluid.contextMenuOpen = true;
-
- $("#pagewrapper").addClass("blur")
- document.body.style.overflow = "hidden";
- $("body").css("padding-right", "5px");
- setTimeout(function () {
- $("#pagewrapper").removeClass("blur");
- document.body.style.overflow = "";
- $("body").css("padding-right", "");
- }, 200)
- }
-}
-
-/* Cards */
-menuopen = false;
-fluid.cards = function (element, isModal) {
- var focus = $(element).hasClass('focus');
- if (focus) {
- fluid.generateWrapper();
- $(element).css("top", "50px");
- if (menuopen) {
- fluid.cards.close(".focus");
- $("#pagewrapper").addClass('blur');
- if (isModal) document.body.style.overflow = "hidden"
- $("body").css("padding-right", "5px");
- $(element).removeClass('close');
- setTimeout(function () { $("#pagewrapper").attr("onclick", "fluid.card.close('" + element + "');"); }, 100)
- } else {
- $("#pagewrapper").addClass('blur');
- if (isModal) document.body.style.overflow = "hidden"
- $("body").css("padding-right", "5px");
- $(element).removeClass('close');
- setTimeout(function () { $("#pagewrapper").attr("onclick", "fluid.cards.close('.focus');"); }, 100)
- }
- } else {
- $("#pagewrapper").attr("onclick", "");
- if (menuopen) {
- fluid.cards.close();
- $(element).removeClass('close');
- } else {
- menuopen = true;
- $(element).removeClass('close');
- }
- }
-}
-fluid.modal = function (element) {
- fluid.cards(element, true)
-}
-fluid.toast = function (icon, text, sticky, focus) {
- fluid.toastNav = $(".nav:not(.toast):not(.card):visible")
- $(fluid.toastNav).hide();
- var iconExtraStyles = ""
- if (text == undefined) { var text = ""; }
- if (icon == undefined) { var icon = ""; }
- if (text == "") { var iconExtraStyles = "margin-right: -15px;"; }
- fluid.generateWrapper();
- $("#activetoast").hide();
- $("#activetoast").html(`<div class="nav sticky toast">
- <i onclick="fluid.exitToast()" class="material-icons" style="vertical-align: middle;cursor:pointer;` + iconExtraStyles + `">` + icon + `</i>
- <h5 style="margin:0px;display:inline-block;vertical-align:middle;margin-right: 7px;margin-left: 5px;">` + text + `</h5>
- </div>`)
- $("#activetoast").show("fade");
- fluid.toastHiding = false;
- $(".toast").hover(
- function () {
- $(".toast i").html("cancel")
- }, function () {
- if (!fluid.toastHiding) $(".toast i").html(icon)
- }
- );
-}
-fluid.exitToast = function () {
- $(fluid.toastNav).show();
- var iconExtraStyles = ""
- fluid.toastHiding = true;
- $("#activetoast").hide("fade");
-}
-fluid.cards.close = function (element) {
- $(element).addClass('close');
- $('#pagewrapper').removeClass("blur");
- document.body.style.overflow = ""
- $("body").css("padding-right", "");
- $("#pagewrapper").attr("onclick", "");
- menuopen = false;
-}
-fluid.generateWrapper = function () {
- if (!$("#pagewrapper").length) {
- $("body").wrapInner("<div id='pagewrapper'></div>");
- $("#pagewrapper").after("<div id='focuscardwrapper' class='container'></div>");
- $("#pagewrapper").after("<div id='activecontextmenu' style='position:absolute'></div>");
- $("#pagewrapper").after("<div id='activetoast'></div>");
- $("#pagewrapper").after("<div id='splashscreen' style='display:none;margin-top: 100px;' class='container'><h1 style='font-size:5rem;' id='splashscreenname'></h1><div id='splashscreencnt'></div></div>");
- $(".card.focus").appendTo("#focuscardwrapper");
- $(".splash").appendTo("#splashscreencnt");
- }
-}
-fluid.splash = function (element) {
- fluid.splashScroll = window.scrollY;
- fluid.generateWrapper();
- $("#pagewrapper").hide();
- var title = $(element).attr("title");
- $("#splashscreenname").html(title);
- $(element).show();
- $("#splashscreen").show();
-}
-fluid.unsplash = function () {
- $("#splashscreen").hide();
- $("#splashscreenname").html("");
- $(".splash").hide();
- $("#pagewrapper").show();
- window.scrollTo(0, fluid.splashScroll);
-}
-
-/* Fluid Commands */
-// a key map of allowed keys
-var allowedKeys = {
- 38: 'up',
- 40: 'down',
- 119: 'f8'
-};
-var darkOverride = ['up', 'up', 'down', 'down', 'f8'];
-var darkOverridePosition = 0;
-
-var allowedKeysAuto = {
- 38: 'up',
- 40: 'down',
- 118: 'f7'
-};
-var autoOverride = ['up', 'up', 'down', 'down', 'f7'];
-var autoOverridePosition = 0;
-
-
-
-document.addEventListener('keydown', function (e) {
- var key = allowedKeys[e.keyCode];
- var requiredKey = darkOverride[darkOverridePosition];
- if (key == requiredKey) {
- darkOverridePosition++;
- if (darkOverridePosition == darkOverride.length) {
- fluid.theme("toggle");
- darkOverridePosition = 0;
- }
- } else {
- darkOverridePosition = 0;
- }
-
- var key = allowedKeysAuto[e.keyCode];
- var requiredKey = autoOverride[autoOverridePosition];
- if (key == requiredKey) {
- autoOverridePosition++;
- if (autoOverridePosition == autoOverride.length) {
- fluid.theme("auto");
- autoOverridePosition = 0;
- }
- } else {
- autoOverridePosition = 0;
- }
-
-});
diff --git a/init.js b/init.js
index 3d909cf..8985b33 100644
--- a/init.js
+++ b/init.js
@@ -477,7 +477,7 @@
//Get all JavaScript libraries
dtps.JS = function (cb) {
if (dtps.embedded) {
- jQuery.getScript('https://powerplus.app/fluid.js');
+ jQuery.getScript('https://cdn.jottocraft.com/fluid/v4.min.js');
jQuery.getScript("https://unpkg.com/sweetalert/dist/sweetalert.min.js")
jQuery.getScript("https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js", function () {
jQuery.getScript("https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/fullcalendar.min.js")
@@ -2546,7 +2546,7 @@
jQuery("<link/>", {
rel: "stylesheet",
type: "text/css",
- href: "https://powerplus.app/fluid.css"
+ href: "https://cdn.jottocraft.com/fluid/v4.min.css"
}).appendTo("head");
jQuery("<link/>", {
rel: "stylesheet",
@@ -2825,4 +2825,4 @@
if (fluid.get("pref-powerPoints") == "true") $.getScript("https://jottocraft.github.io/dtps-points/points.js");
}
-dtps.init();
+dtps.init();
\ No newline at end of file
diff --git a/outline.woff2 b/outline.woff2
deleted file mode 100644
index 34df5fe..0000000
--- a/outline.woff2
+++ /dev/null
Binary files differ