Merge branch 'master' of https://github.com/jottocraft/dtps
diff --git a/dev.css b/dev.css
index e21ac50..f2c00cd 100644
--- a/dev.css
+++ b/dev.css
@@ -1,7 +1,67 @@
/*
-Power+ CSS v2.0.0 (canary)
+Power+ CSS v2.0.0 (beta)
(c) jottocraft 2018-2019
*/
+
+
+/* cacao */
+
+body.cacao .cacaoBar {
+ display: block !important;
+ position: absolute;
+ top: 10px;
+ left: 10px;
+ padding: 10px 0px;
+ z-index: 300;
+ width: calc(100% - 460px);
+ background-color: var(--nav);
+ border-radius: 15px;
+ overflow-x: auto;
+ white-space: nowrap;
+}
+body.cacao .cacaoBar .tab {
+ background-color: var(--norm);
+ color: var(--light);
+ border-radius: 18px;
+ padding: 0px 10px;
+ height: 40px;
+ line-height: 40px;
+ font-size: 16px;
+ cursor: pointer;
+ display: inline-block;
+ margin: 0px 5px;
+ transition: var(--trans);
+}
+body.cacao .cacaoBar .tab.active {
+ background-color: var(--dark);
+ color: white;
+}
+body.cacao .cacaoBar .tab.new {
+ background-color: var(--theme);
+ color: var(--themeText);
+ opacity: 0.8;
+ height: 40px;
+ width: 40px;
+ padding: 0px;
+ text-align: center;
+}
+body.cacao .cacaoBar .tab i {
+ vertical-align: middle;
+}
+body.cacao .cacaoBar .tab:not(.icon) i {
+ margin-right: 10px;
+}
+body.cacao .sidebar {
+ top: 80px;
+ border-top-right-radius: 15px;
+}
+body.cacao .header {
+ padding-top: 150px;
+}
+body.cacao .classContent {
+ padding-top: 350px;
+}
+
@font-face {
font-family: 'Material Icons Outline';
font-style: normal;
@@ -15,13 +75,13 @@
.fc-today {
border-radius: 5px;
- background: var(--theme-color) !important;
- color: var(--theme-text-color) !important;
+ background: var(--theme) !important;
+ color: var(--themeText) !important;
}
.infoChip {
vertical-align: middle;
- margin:0px;
+ margin: 0px;
display: inline-block;
font-size: 16px;
height: 20px;
@@ -30,7 +90,7 @@
.progressBar {
padding: 5px;
- background-color: var(--theme-color-outline);
+ background-color: var(--elements);
border-radius: 12px;
height: 30px;
margin: 10px 5px;
@@ -40,12 +100,12 @@
.progressLabel {
position: absolute;
z-index: 5;
- color: var(--theme-text-color);
+ color: var(--themeText);
}
.progress {
height: 32px;
- background-color: var(--theme-color);
+ background-color: var(--theme);
margin: -6px;
border-radius: 12px;
position: absolute;
@@ -115,6 +175,7 @@
.card.focus {
max-height: calc(100vh - 50px);
+ top: 25px !important;
}
#calendar h2 {
@@ -127,8 +188,8 @@
border: none;
}
-body.dark .fc .fc-button-group>* {
- color: white;
+.fc .fc-button-group>* {
+ color: var(--text);
}
.announcement .label {
@@ -304,12 +365,8 @@
top: 75;
}
-body.dark .spinner > div {
- background-color: var(--flex-sectext, #bbb);
-}
-
-body:not(.dark) .spinner > div {
- background-color: var(--flex-sectext, #333);
+.spinner > div {
+ background-color: var(--secText);
}
.class .grade .letter, .class .grade .points , .class .grade .material-icons {
@@ -370,12 +427,8 @@
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.17);
}
-body:not(.dark) .sidebar, body:not(.dark) .abtheader {
- background-color: var(--flex-layer2, #f1f1f1);
-}
-
-body.dark.midnight .sidebar {
- background-color: #080808;
+.sidebar, .abtheader {
+ background-color: var(--nav);
}
body.noSidebar .sidebar {
@@ -438,11 +491,11 @@
}
.classContent {
- margin-left: 260px;
+ margin-left: 275px;
padding-top: 300px;
z-index: 100;
top: 0;
- width: calc(100% - 250px);
+ width: calc(100% - 275px);
}
body.titlebar .classContent {
@@ -471,20 +524,20 @@
.tabs.btns .btn.active {
color: white;
- border-bottom: 1px solid white;
+ border-bottom: 1px solid white !important;
}
-body:not(.dark) .tabs.btns .btn.active {
- color: black !important;
- border-color: black !important;
+.tabs.btns .btn.active {
+ color: var(--text) !important;
+ border-color: var(--text) !important;
}
-body:not(.dark) .tabs.btns .btn:not(.active) {
- color: var(--norm, gray) !important;
+body:not(.dark) .tabs.btns .btn:not(.active), body.midnight.dark .tabs.btns .btn:not(.active) {
+ color: var(--norm, var(--secText)) !important;
}
body.dark .tabs.btns .btn:not(.active) {
- color: var(--light, gray) !important;
+ color: var(--light, var(--secText)) !important;
}
.sidebar, .header {
@@ -519,12 +572,8 @@
border-radius: 30px;
}
-body:not(.dark) .classContent .card {
- color: black;
-}
-
-body.dark .classContent .card {
- color: white;
+.classContent .card {
+ color: var(--text);
}
.card i.close {
@@ -613,15 +662,15 @@
font-size: 14px;
margin-top: 15px;
display: inline-block;
- color: var(--flex-sectext, #8e8e8e);
+ color: var(--secText);
}
-body.midnight.dark .classContent .card:not(.color) .points .total, body.midnight.dark .assignment:not(.color) .weighted {
- color: gray;
+.classContent .card:not(.color) .points .total, .assignment:not(.color) .weighted {
+ color: var(--secText);
}
.assignment .weighted {
- color: var(--flex-sectext, #8e8e8e);
+ color: var(--secText);
font-size: 0.9rem;
}
@@ -662,55 +711,42 @@
overflow: hidden !important;
}
-.badge, .beta.notice {
- display: inline-block;
- margin: 0 5px;
- border: none;
- padding: 3px 6px;
- color: white !important;
- background-color: #ff7e00;
- font-size: 14px;
- font-weight: bold;
-}
-
-.badge i, .beta.notice i {
+.badge i {
vertical-align: middle;
font-size: 20px;
}
-.beta.notice.turnin {
- color: white;
- border-color: #0bb75b;
- background-color: #0bb75b;
-}
-
-.beta.notice.turnin i {
- font-size: 18px;
-}
-
.dash.stream .card {
margin-right: 25px;
}
-.beta.notice.missing {
+.badge.missing {
color: #b7630a;
border-color: #b7630a;
}
.badge.dev {
- background-color: #0090ff;
+ color: #0090ff;
+ background-color: transparent !important;
+ margin: 0px !important;
}
.badge.sudo {
- background-color: #d64c0c;
+ color: #d64c0c;
+ background-color: transparent !important;
+ margin: 0px !important;
}
.badge.og {
- background-color: #daa520;
+ color: #daa520;
+ background-color: transparent !important;
+ margin: 0px !important;
}
.badge.contributor {
- background-color: #20da61;
+ color: #20da61;
+ background-color: transparent !important;
+ margin: 0px !important;
}
.weight.parent {
@@ -720,7 +756,7 @@
}
.card .weight p {
- color: var(--flex-sectext, gray) !important;
+ color: var(--secText) !important;
}
.card.gb {
@@ -744,42 +780,11 @@
display: none;
}
-body.dark .card.details * {
- /* color: white !important; */
-}
-
.card.assignment {
cursor: pointer;
padding: 20px 30px;
}
-.card.assignment.whatif .points .numbers {
- padding: 2px 10px;
- border-radius: 10px;
- outline: none;
- border: none;
-}
-
-body.dark .card.assignment.whatif .points .numbers {
- background-color: #171717;
-}
-
-body:not(.dark) .card.assignment.whatif .points .numbers {
- background-color: #dadada;
-}
-
-.card.assignment.color.whatif .points .numbers {
- background-color: var(--dark) !important;
-}
-
-.card.assignment.whatif .points .numbers, .card.assignment.whatif .points .possible {
- display: inline-block !important;
-}
-
-.card.assignment.whatif .points .letters, .card.assignment.whatif .points .percentage {
- display: none !important;
-}
-
.classContent .card.assignment h5 {
font-size: 1rem !important;
min-height: 20px;
@@ -807,18 +812,22 @@
font-weight: bold;
}
-body.dark .class .name {
- color: white;
-}
+body:not(.dark) {
+ --light: var(--flex-light, #efefef);
+ --norm: var(--flex-layer1, #929292);
+ --dark: var(--flex-layer3, #5f5f5f);
+ --grad: linear-gradient(to bottom right, var(--cards), var(--background));
+ }
body.dark {
- --light: var(--flex-light, #7d7d7d); --norm: var(--flex-layer1, #383838); --dark: var(--flex-layer3, #101010); --grad: linear-gradient(to right bottom, var(--flex-layer3, #2f2f2f), var(--flex-bg, #252525)); }
-
-body:not(.dark) {
- --light: var(--flex-light, #d4d4d4); --norm: var(--flex-layer1, #a7a7a7); --dark: var(--flex-layer3, #676767); --grad: linear-gradient(to bottom right, var(--flex-layer3, #d4d4d4), var(--flex-bg, #FFFFFF)); }
+ --light: var(--flex-light, #949494);
+ --norm: var(--flex-layer1, #444444);
+ --dark: var(--flex-layer3, #292929);
+ --grad: linear-gradient(to bottom right, var(--cards), var(--background));
+ }
body:not(.dark) .background, body:not(.dark) .header h1 {
- --grad: linear-gradient(to bottom right, #d6d6d6, white) !important; color: black !important;
+ --grad: linear-gradient(to bottom right, var(--darker), var(--background)) !important; color: black !important;
}
.filter_0 {
@@ -884,16 +893,12 @@
transition: all 0.5s ease-in-out;
}
-body:not(.dark):not(.dashboard) .background:before {
- background: linear-gradient(to right bottom, var(--light), var(--flex-bg, white)) !important;
+body:not(.dashboard) .background:before {
+ background: linear-gradient(to right bottom, var(--light), var(--background)) !important;
}
-body.dark:not(.dashboard) .background:before {
- background: linear-gradient(to right bottom, var(--light), var(--flex-bg, #252525)) !important;
-}
-
-body.dark.midnight:not(.dashboard) .background:before {
- background: linear-gradient(to right bottom, var(--dark), var(--flex-bg, black)) !important;
+body.midnight:not(.dashboard) .background:before {
+ background: linear-gradient(to right bottom, var(--dark), var(--background)) !important;
}
.background.trans:before {
@@ -903,7 +908,7 @@
.card.color {
background: linear-gradient(to right bottom, var(--light), var(--norm));
- color: var(--text, white) !important;
+ color: white !important;
}
.card.color .weighted {
diff --git a/fluid.css b/fluid.css
index d029300..7f74886 100644
--- a/fluid.css
+++ b/fluid.css
@@ -1,107 +1,262 @@
/*!
-Fluid UI Elements v3.1.0
-
+Fluid UI Elements v3.9.1
Copyright (c) 2017-2019 jottocraft
+Licenced under the MIT License (https://github.com/jottocraft/fluid/blob/master/LICENSE)
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+Skeleton CSS components (c) 2014 Dave Gamache. All rights reserved.
*/
-body.dark.darkNew {
- --flex-light: #313131;
---flex-bg: rgb(23, 23, 23);
---flex-text: white;
---flex-sectext: #5f5f5f;
---flex-layer1: rgb(33, 33, 33);
---flex-layer2: rgb(29, 29, 29);
---flex-layer3: rgb(16, 16, 16);
---theme-color: #0c4d82;
---theme-color-outline: #0c4d82C0;
---theme-text-color: #def0ff;
+
+/* 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
+
+ TODO:
+ - Flex themes
+ */
+
+/* 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: black;
+ --acrylic: white;
+ --inputColor: #efefef;
+ --listColor: #f1f1f1;
+ --listHover: #e4e4e4;
+ --switchHead: white;
+ --sideColor: #f2f2f2;
+ --sideActive: #efefef;
+ --sideItem: #b9b9b9;
+ --navActiveText: #3ea760;
+ --navActive: #b2ffc9;
+ --navText: #6f6f6f;
+ --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;
}
-/* Theme Colors */
-:root {
- --theme-color: #3396e6;
- --theme-color-outline: #3396e6C0;
- --theme-text-color: 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;
+ --navActiveText: #26d47f;
+ --navActive: #436f50;
+ --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 colors */
-body.dark {
- --theme-color: #0c4d82;
- --theme-color-outline: #0c4d82C0;
- --theme-text-color: #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;
+ --navActiveText: #26d47f;
+ --navActive: #436f50;
+ --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;
}
-/* Light theme colors */
-body:not(.dark) {
- --theme-color: #3396e6;
- --theme-color-outline: #3396e6C0;
- --theme-text-color: white;
+/* 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);
+ --navActiveText: var(--themeText);
+ --navActive: var(--theme);
+ --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);
}
-body.hasSidebar {
- padding-left: 275px;
-}
-
-/*
-
-Fluid Elements
-
-*/
-body {
- transition: background-color 0.5s;
-}
-@font-face {
- font-family: 'Material Icons Outline';
- font-style: normal;
- font-weight: 400;
- src: url(outline.woff2) format('woff2');
-}
-.theme {
- color: var(--theme-text-color) !important;
- background-color: var(--theme-color) !important;
-}
-body.city.dark {
- --flex-light: #18163e;
- --flex-bg: #0d0d1f;
- --flex-text: white;
- --flex-sectext: #454561;
- --flex-layer1: #11112b;
- --flex-layer2: #030117;
- --flex-layer3: black;
- --theme-color: #333f79;
- --theme-color-outline: rgb(51, 63, 121, 0.75);
- --theme-text-color: #080721;
-}
-body.highContrast:not(.dark) {
+/* 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);
+ --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);
+ --navActiveText: var(--themeText);
+ --navActive: var(--theme);
+ --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);
}
-body.nitro.dark {
+
+/* Included Flex Themes */
+
+body.nitro.dark, body.showThemeWindows .themeWindow.nitro {
--flex-light: #b72b2b;
--flex-bg: rgb(127, 1, 1);
--flex-text: white;
@@ -113,7 +268,8 @@
--theme-color-outline: rgb(243, 110, 110, 0.75);
--theme-text-color: rgb(104, 0, 0);
}
-body.aquatic.dark {
+
+body.aquatic.dark, body.showThemeWindows .themeWindow.aquatic {
--flex-light: rgb(90, 189, 182);
--flex-bg: rgb(15, 162, 162);
--flex-text: white;
@@ -125,138 +281,298 @@
--theme-text-color: #0e958b;
--flex-sectext: #a3ded5;
}
-body.midnight.dark {
- --flex-light: #1b1b1b;
- --flex-bg: #000000;
- --flex-text: #bfbfbf;
- --flex-layer1: #171717;
- --flex-layer2: #0c0c0c;
- --flex-layer3: #060606;
- --theme-color: #232323;
- --theme-color-outline: #171717c0;
- --theme-text-color: #c0c0c0;
- --flex-sectext: gray;
+
+body.midnight.dark, body.showThemeWindows .themeWindow.midnight {
+ --flex-light: #1b1b1b;
+ --flex-bg: #000000;
+ --flex-text: #cccccc;
+ --flex-layer1: #101010;
+ --flex-layer2: #212121;
+ --flex-layer3: #2f2f2f;
+ --theme-color: #252525;
+ --theme-color-outline: #252525c0;
+ --theme-text-color: #dddddd;
+ --flex-sectext: #484848;
+ --sideColor: #101010;
+ --sideItem: #292929;
+ --sideActive: #0e0e0e;
}
-body.darkRed {
+
+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 {
- --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 {
- --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 {
- --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 {
- --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 {
- --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 {
- --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;
- }
+ --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;
+}
-/* Product Sans */
+
+/* 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-family: 'Product Sans';
font-display: auto;
font-style: normal;
font-weight: 400;
src: url(https://fluid.js.org/product-sans.ttf) format('truetype');
}
+
@font-face {
- font-family: 'Google sans';
+ font-family: 'Google Sans';
font-display: auto;
font-style: normal;
font-weight: 400;
src: url(https://fluid.js.org/gsans.ttf) format('truetype');
}
-html {
- font-family: "Google sans", sans-serif;
+
+/* 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;
+ }
}
-/* Little Caesar */
-@font-face {
- font-family: 'Pizza Pizza';
- font-style: normal;
- font-weight: 400;
- src: url(https://fluid.js.org/caesar.ttf) format('truetype');
+
+/* Text Font Styling */
+
+p, div, button, .btn, a, span, input, body, html, textarea {
+ font-family: var(--textFont);
+ font-weight: normal;
}
-@font-face {
- font-family: 'Holiday';
- font-style: normal;
- font-weight: 400;
- src: url(holiday.ttf) format('truetype');
-}
+
+/* Icons */
+
.material-icons {
- font-family: 'Material Icons Extended';
+ font-family: 'Material Icons Extended', 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
@@ -269,309 +585,541 @@
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;
}
-h1, h2, h3, h4, h5 {
- font-family: "Product sans", sans-serif;
- font-weight: normal;
-}
-h1, h2, h3 {
- font-weight: bold;
-}
-p, div, button, a, span, input, body, html, textarea {
- font-family: "Google sans", sans-serif;
- font-weight: normal;
-}
-p i {
+
+p .material-icons {
vertical-align: middle;
font-size: 20px;
margin: 0px 2px;
}
+
img.emoji {
height: 1em;
width: auto;
display: inline-block;
vertical-align: middle;
}
-.align {
- display: inline-block;
- vertical-align: middle;
+
+/* Blur & Page wrapper */
+
+#pagewrapper {
+ transition: -webkit-filter 0.3s !important;
}
-.icotext i, .icotext span {
- display: inline-block;
- vertical-align: middle;
+
+.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);
+}
+
+/* Scrollbar */
+
::-webkit-scrollbar {
- width: 5px;
- height: 5px;
- opacity: 80px;
+ width: 5px;
+ height: 5px;
}
-
::-webkit-scrollbar-thumb {
- background: var(--flex-sectext, #707275);
- opacity: 90px;
- border-radius: 20px;
+ background: var(--secText);
+ opacity: 0.9;
+ border-radius: 20px;
}
-/*Page dark mode */
-body { overflow-x: hidden; }
-body.dark {
- background-color: var(--flex-bg, #252525);
- color:var(--flex-text, #FFFFFF);
-}
-body:not(.dark) {
- background-color: var(--flex-bg, #FFFFFF);
- color:var(--flex-text, black);
-}
-body.litleceser,body.litleceser h1, body.litleceser h2, body.litleceser h3, body.litleceser h4, body.litleceser h5 {
- font-family: "Pizza Pizza", cursive;
-}
-body.litleceser {
- --flex-light: #ff6b00;
- --flex-bg: #f46600;
- --flex-text: white;
- --flex-layer1: #ce5601;
- --flex-layer2: #b34b01;
- --flex-layer3: #7a3402;
+/* Links */
+
+a {
+ text-decoration: none;
+ color: #039be5;
}
-/* Sweetalert dark mode */
-body.dark .swal-icon--success:after, body.dark .swal-icon--success:before, body.dark .swal-icon--success__hide-corners {
- background: var(--flex-layer1, #1b1b1b) !important;
+/* 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, var(--trans);
}
-body.dark .swal-title, body.dark .swal-text {
- color: #FFF;
+body.acrylic .card, .card.acrylic {
+ background-color: transparent !important;
+ backdrop-filter: blur(25px);
+ -webkit-backdrop-filter: blur(25px);
}
-body.dark .swal-modal {
- background-color: var(--flex-layer1, #1b1b1b);
+body.acrylic .card .content, .card.acrylic .content {
+ padding-left: 20px !important;
+ margin-left: 240px;
+ background-color: var(--cards);
}
-/* Materialize dark theme patches */
-body.dark table.striped > tbody > tr:nth-child(odd) {
- background-color: var(--flex-layer1, #1b1b1b);
-}
-body:not(.dark) table.striped > tbody > tr:nth-child(odd) {
- background-color: var(--flex-layer2, #f2f2f2);
+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:not(.dark) table.highlight > tbody > tr:hover {
- background-color: var(--flex-layer2, #f2f2f2);
-}
-body.dark table.highlight > tbody > tr:hover {
- background-color: var(--flex-layer1, #1b1b1b);
+body.acrylic .sidenav .item:not(.active), .card.acrylic .sidenav .item:not(.active) {
+ color: var(--acrylicSecText) !important;
}
-body:not(.dark) .chip {
- color: rgba(0,0,0,0.6);
- background-color: #e4e4e4;
-}
-body.dark .chip {
- color: #FFFFFF;
- background-color: var(--flex-layer1, #1b1b1b);
-}
-body:not(.dark) .collection .collection-item {
- background-color: #FFFFFF;
- border-bottom: 1px solid #e0e0e0;
- color: black;
-}
-body.dark .collection .collection-item {
- background-color:var(--flex-layer1, #1b1b1b);
- border-bottom: 1px solid #161616;
- color: white;
-}
-body:not(.dark) .collection {
- border: 1.4px solid #e0e0e0
-}
-body.dark .collection {
- border: 1.4px solid #161616
-}
-body:not(.dark) .collection a.collection-item:not(.active):hover {
- background-color: #ddd
-}
-body.dark .collection a.collection-item:not(.active):hover {
- background-color: var(--flex-layer3, #151515)
-}
-body:not(.dark) .collection.with-header .collection-header {
- background-color: #fff;
- border-bottom: 1px solid #e0e0e0;
-}
-body.dark .collection.with-header .collection-header {
- background-color:var(--flex-layer1, #1b1b1b);
- border-bottom: 1px solid #161616;
-}
-body:not(.dark) .page-footer {
- color: black;
- background-color: var(--flex-layer2, #f7f7f7);
-}
-body.dark .page-footer {
- color: white;
- background-color: var(--flex-layer1, #1b1b1b);
-}
-body.dark .page-footer .footer-copyright {
- background-color: var(--flex-layer3, #151515);
-}
-body:not(.dark) .page-footer .footer-copyright {
- background-color: #e0e0e0;
-}
-body:not(.dark) .pagination li:not(.active) a {
- color: #444;
-}
-body.dark .pagination li a {
- color: #FFFFFF;
-}
-.body:not(.dark) .collapsible-header {
- background-color: #fff;
- border-bottom: 1px solid #272728;
-}
-.body.dark .collapsible-header {
- background-color: var(--flex-layer1, #1b1b1b);
- border-bottom: 1px solid #161616;
-}
-body:not(.dark) .dropdown-content {
-background-color:#FFFFFF;
-color: #000000;
-}
-body.dark .dropdown-content {
-color: #FFFFFF;
-background-color:var(--flex-layer1, #1b1b1b);
-}
-body:not(.dark) .dropdown-content li:hover, .dropdown-content li.active, .dropdown-content li.selected {
- background-color: #eee
+.acrylicMaterial {
+ background: var(--acrylic50) !important;
+ backdrop-filter: blur(25px) !important;
+ -webkit-backdrop-filter: blur(25px) !important;
}
-body:not(.dark) .dropdown-content li.active.selected {
- background-color: #e1e1e1
+@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;
}
-body.dark .dropdown-content li:hover, .dropdown-content li.active, .dropdown-content li.selected {
- background-color: var(--flex-layer3, #151515)
}
-body.dark .dropdown-content li.active.selected {
- background-color: var(--flex-layer3, #151515)
-}
-body:not(.dark) .tap-target {
- background-color:var(--flex-layer2, #f2f2f2);
- color:black;
-}
-body.dark .tap-target {
- background-color:var(--flex-layer1, #1b1b1b);
- color:white;
-}
-body:not(.dark) .tap-target-wave::before, .tap-target-wave::after {
-background-color: #FFFFFF;
-}
-body.dark .tap-target-wave::before, .tap-target-wave::after {
-background-color: var(--flex-layer3, #151515);
-}
-body:not(.dark) .modal {
- background-color: #fafafa;
-}
-body.dark .modal {
- background-color: var(--flex-layer1, #1b1b1b);
-}
-body:not(.dark) .side-nav {
- color:black;
- background-color: #FFFFFF;
-}
-body.dark .side-nav {
- color:white;
- background-color:var(--flex-layer1, #1b1b1b);
-}
-body:not(.dark) .side-nav li.active, body:not(.dark) .side-nav li > a:hover {
- background-color: rgba(0,0,0,0.05)
-}
-body:not(.dark) .side-nav li > a {
- color: rgba(0,0,0,0.87);
-}
-body.dark .side-nav li.active, body.dark .side-nav li > a:hover {
- background-color: var(--flex-layer3, #151515);
-}
+/* Buttons
+–––––––––––––––––––––––––––––––––––––––––––––––––– */
-body.dark .side-nav li > a {
- color: #FFFFFF;
-}
-
-/* Buttons */
-button:focus {outline:0;}
-.btn, select {
+.btn, button, select {
+ font-family: "Google Sans";
cursor: pointer;
- font-family: "Google sans";
- border: none;
- outline: none;
- padding: 12px 30px;
- text-align: center;
- border-radius: 10px;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
- user-select: none;
- vertical-align: middle;
- margin: 0px 5px;
- font-weight: bold;
- letter-spacing: 0.9px;
+ 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;
}
- .btn.outline, select.outline {
- background-color: inherit !important;
- padding: 10px 28px;
- border: 2px solid;
+}
+
+/* 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%;
}
- .btn.small, select.small {
- padding: 10px 20px;
- font-size: 14px;
- }
- .btn.small.outline, select.small.outline {
- padding: 8px 18px;
- border: 2px solid;
- }
- .btn i {
- display: inline-block;
- vertical-align: middle;
- margin-top:-10px;
- margin-bottom:-7px;
- margin-right: 5px;
- font-size: 26px;
- line-height: inherit;
- }
- .switch {
- border-radius: 25px;
- display: inline-block;
- width: 50px;
- height: 25px;
- cursor: pointer;
- vertical-align: middle;
- transition: background-color 0.4s;
- box-shadow: none !important;
- }
- .switch .head {
- transition: background-color 0.4s, box-shadow 0.4s, margin 0.4s;
- background-color: white;
- border-radius: 50%;
- display: inline-block;
- width: 20px;
- height: 20px;
- margin: 2.5px;
- position: absolute;
- }
- .switch.active .head {
- margin-left: 27.5px;
- background-color: var(--theme-text-color);
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- }
- .label {
- line-height: 25px;
- height: 25px;
- display: inline-block;
- vertical-align: middle;
- margin-left: 25px;
- }
- .slider {
+}
+
+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: 7px;
+ border-radius: calc(var(--elementRadius) - 5px);
min-width: 200px;
+ background-color: var(--elements);
}
.slider::-webkit-slider-thumb {
@@ -579,239 +1127,236 @@
appearance: none;
width: 25px;
height: 25px;
- background: var(--theme-color);
+ background: var(--theme);
cursor: pointer;
- border-radius: 7px;
+ border-radius: calc(var(--elementRadius) - 5px);
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
- background: var(--theme-color);
+ background: var(--theme);
cursor: pointer;
- border-radius: 7px;
-}
- .list .item i {
- display: inline-block;
- vertical-align: middle;
- margin-top:-10px;
- margin-bottom:-10px;
- margin-right: 7px;
- font-size: 26px;
- line-height: inherit;
- }
- #activecontextmenu i.outOfContext {
- padding: 12px;
- border-radius: 30px;
- margin-top: -13px;
- margin-left: -13px;
- }
- body.dark .btn:not(.active):hover {
- background-color: var(--flex-layer2, #151515);
- border-color: var(--flex-layer2, #151515);
- }
- .btns .btn:not(.active):hover {
- box-shadow: none !important;
- }
- body:not(.dark) .btn:not(.active):hover {
- background-color: var(--flex-layer2, #dddddd);
- border-color: var(--flex-layer2, #dddddd);
- }
- .row:not(.btns) .btn {
- margin-right: 10px;
- }
- body:not(.dark) .btn:not(.active), body:not(.dark) .btns.row, body:not(.dark) .switch:not(.active), body:not(.dark) .directory span:hover, body:not(.dark) .slider, body:not(.dark) select, body:not(.dark) .element:not(.theme) {
- background-color: var(--flex-layer1, #ececec);
- border-color: var(--flex-layer1, #ececec);
- color: #404040;
- }
- body.dark .btn:not(.active), body.dark .switch:not(.active), body.dark .btns.row, body.dark .directory span:hover, body.dark .slider, body.dark select, body.dark .element:not(.theme) {
- background-color: var(--flex-layer1, #1b1b1b);
- border-color: var(--flex-layer1, #1b1b1b);
- color: white;
- }
- .btns.row .btn {
- margin: 0;
- }
- .btns .btn:not(.active) {
- background-color: transparent !important;
- }
- .btns {
- width:auto;
- display: inline-block;
- padding: 5px;
- border-radius: 10px;
- margin-left: 5px;
- }
-
- body .btn.active, body .switch.active, body .btn.active:hover, body .list .item.active, body .list .item.active:hover {
- background-color: var(--theme-color);
- color: var(--theme-text-color);
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
- }
-
-
-body.dark .tabs .indicator {
- background-color: #FFFFFF;
-}
-body.dark .tabs .tab a:hover, body.dark .tabs .tab a.active, body.dark .tabs .tab a {
- color: #FFFFFF
-}
-body:not(.dark) .tabs .indicator {
- background-color: #000000;
-}
-body:not(.dark) .tabs .tab a:hover, body:not(.dark) .tabs .tab a.active, body:not(.dark) .tabs .tab a {
- color: #000000
+ border-radius: calc(var(--elementRadius) - 5px);
}
+/* Navigation
+–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-/* Nav */
-.nav {
-display: inline-block;
-margin: 15px;
-border-radius: 10px;
-user-select: none;
-}
-.nav.right {
- float: right !important;
-}
-.card.nav {
- padding: 5px;
- max-width: 100%;
- margin: 0;
- text-align: center;
-}
-.card.nav li {
- border-radius: 22px;
- font-size: 20px;
- padding: 5px 10px;
- background-color: transparent !important;
- border: none !important;
-}
-.card.nav li i, .card.nav li span {
- vertical-align: middle;
-}
-.nav.sticky, .navbar.sticky {
- position: fixed;
- top: 0;
-}
-.nav.sticky.right {
- right: 0;
-}
-.nav.navbar h1,.nav.navbar h2,.nav.navbar h3,.nav.navbar h4,.nav.navbar h5 {
- float:left;
- display:inline-block;
- margin:0 !important;
- line-height: 55px !important;
-}
-.navbar.nav img {
- float:left;
- margin-right: 10px;
- height: 55px
-}
-.nav.navbar {
- width: 100%;
- margin-top: 0;
- margin-left: 0;
- margin-right: 0;
-}
-.nav li {
- margin: 2px 7px;
- border-radius: 30px;
- transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
- cursor: pointer;
- padding: 12px;
-}
-.nav span {
- margin-left: 5px;
- vertical-align: middle;
-}
-.nav li i {
- display: inline-block;
- vertical-align: middle;
-}
.directory span {
vertical-align: middle;
padding: 4px 6px;
- border-radius: 10px;
+ 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;
}
-.card.withnav {
- padding: 0px;
- overflow: hidden;
-}
+
.sidebar {
- height: 100vh;
+ height: 100vh;
position: fixed;
left: 0;
top: 0;
width: 275px;
- border-right: 2px solid;
- padding: 25px 0px 0px 10px;
+ padding: 25px 0px 0px 0px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.17);
+ background-color: var(--nav);
+ transition: var(--trans);
}
+
.sidebar h4 {
- text-align: center;
+ text-align: left;
+ font-size: 32px;
font-weight: bold;
- margin: 10px 0px 25px 0px;
- font-size: 27px;
+ margin: 0px 0px 0px 10px;
}
+
+.sidebar p {
+ text-align: left;
+ margin: 7px 0px 25px 10px;
+}
+
.sidebar .item {
border: none;
padding: 0px;
opacity: 0.95;
display: inline-block;
- border-radius: 15px;
+ border-radius: 0px calc(var(--cardRadius) + 10px) calc(var(--cardRadius) + 10px) 0px;
padding-right: 0px;
padding-left: 10px;
overflow: hidden;
- font-size: 24px;
- font-weight: bold;
+ font-size: 22px;
cursor: pointer;
- line-height: 50px;
+ line-height: 32px;
width: 250px;
- height: 50px;
- margin: 5px 0;
- transition: background-color 0.5s;
+ height: 32px;
+ margin: 1px 0;
+ transition: var(--trans);
+ color: var(--navText);
}
+
+.sidebar .item i {
+ float: right;
+ vertical-align: middle;
+ line-height: 32px;
+ margin-right: 7px;
+}
+
.sidebar .item.active {
- background-color: var(--theme-color);
- color: var(--theme-text-color);
+ background-color: var(--navActive);
+ color: var(--navActiveText);
+ font-weight: bold;
+ letter-spacing: 0.9px;
}
-.sidenav {
- width: 240px;
- height: 100%;
+
+body.hasSidebar.collapsedSidebar .sidebar {
+ width: 80px;
+}
+
+body.hasSidebar.collapsedSidebar .sidebar .item .label {
+ display: none;
+}
+
+body.hasSidebar.collapsedSidebar .sidebar .item {
+ width: 32px;
+ height: 32px;
+ margin-left: 24px;
+ border-radius: 50%;
+ text-align: center;
+}
+
+body.hasSidebar.collapsedSidebar .sidebar .item i {
+ margin-right: 4px;
+}
+
+body.hasSidebar.collapsedSidebar .sidebar p, body.hasSidebar.collapsedSidebar .sidebar h4 {
+ display: none;
+}
+
+body.hasSidebar.collapsedSidebar img {
+ width: 40px;
+ margin-bottom: 25px;
+ margin-left: 20px;
+}
+
+body.hasSidebar:not(.collapsedSidebar) .sidebar img {
+ display: none;
+}
+
+.sidebar .label {
+ margin-left: 0px;
+}
+
+.nav.links {
+ background-color: var(--listColor);
display: inline-block;
- transition: background-color 0.4s;
- float:left;
+ 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;
+}
+
.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;
@@ -819,740 +1364,498 @@
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;
}
-body:not(.dark) .sidenav, body:not(.dark) .sidebar {
- background-color: var(--flex-layer2, #f2f2f2);
- border-color: var(--flex-layer2, #f2f2f2);
-}
-body:not(.dark) .sidenav .item:not(.active) {
- color:var(--flex-light, #b9b9b9);
-}
-body:not(.dark) .sidenav .item.active {
- color: black;
- background-color: var(--flex-layer2, #efefef);
-}
-body.dark .sidenav, body.dark .sidebar {
- background-color: var(--flex-layer2, #1d1d1d);
- border-color: var(--flex-layer2, #1d1d1d);
-}
-body.dark .sidenav .item:not(.active) {
- color: var(--flex-light, #656565);
-}
-body.dark .sidenav .item.active {
- color: var(--flex-text, white);
- background-color: var(--flex-layer2, #1b1b1b);
-}
+/* Sections / Headers
+–––––––––––––––––––––––––––––––––––––––––––––––––– */
-
-
-.material-icons {
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-}
-
-.nav:not(.card) ul {
- margin-top: 7px;
- margin-bottom: 0;
-}
-.nav.card ul {
- margin: 3px;
-}
-body.dark .nav {
- border: 1.4px solid var(--flex-layer1, #1b1b1b);
- background-color: var(--flex-layer1, #1b1b1b);
-}
-body:not(.dark) .nav {
-background-color: var(--flex-light, #fcfcfc);
-}
-body:not(.dark) .nav a {
- color:black;
-}
-.nav a i {
- font-size: 20px;
- margin:0
-}
-.nav {
- padding:10px;z-index:99;
-}
-.nav ul {
- white-space: nowrap;
- overflow: auto;
- list-style-type: none;padding:0
-}
-.nav ul li {
- display: inline-block;
-}
-body:not(.dark) .nav li:not(.active) {
- background-color: #ededed
-}
-body.dark .nav li:not(.active) {
- background-color: #2c3135
-}
-body:not(.dark) .nav li.active {
- background-color: #4c4c4c;
- color: white;
-}
-body:not(.dark) .nav li.active span {
- color: white;
-}
-body.dark .nav li.active {
- background-color: #ededed;
- color: black;
-}
-body.dark .nav li.active {
- background-color: rgb(237, 237, 237, 0.8);
- border: 1.4px solid var(--flex-layer3, #dddddd);
- color: black;
-}
-
-body.dark .nav li.active span {
- color: black;
-}
-body:not(.dark) .nav li.active i {
- color: white;
-}
-body.dark .nav li.active i {
- color: black;
-}
-body.dark .nav a {
- color: var(--flex-sectext, #9e9e9e) !important;
-}
-body:not(.dark) .nav a {
- color: var(--flex-sectext, #545454) !important;
-}
-
-
-
-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: 15px;
- padding-left: 10px;
- padding-right:7px;
- opacity: 0.95;
- border: none;
- outline: none;
- height: 48px;
- margin-bottom: 20px;
- transition: background-color 0.4s, box-shadow 0.3s, color 0.4s;
-}
-input.inputIcon {
- padding-left: 40px !important;
-}
-i.inputIcon {
- position: absolute;
- z-index: 99;
- padding: 12px 10px;
-}
-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]):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:not(.dark) 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:not(.dark) textarea.shadow {
- background-color: white;
-}
-input::placeholder {
- color: var(--flex-sectext, gray);
-}
-textarea {
- padding:10px;
- overflow:hidden;
-}
-.white-text {
- color:white;
-}
-body:not(.dark) textarea, body:not(.dark) .fluid.element, body:not(.dark) 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]) {
- background-color: var(--flex-layer1, #efefef);
- color: black;
-}
-body.dark textarea, body.dark .fluid.element, body.dark 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]) {
- background-color: var(--flex-layer1, #1b1b1b);
- color: white;
-}
-body:not(.dark) .chips {
- background-color:var(--flex-layer2, #f2f2f2);
- color: black;
-}
-body.dark .chips {
- background-color:var(--flex-layer1, #1b1b1b);
- color: white;
-}
-.chips {
- text-align:left;
-}
-
-
- /* Fluid Loader */
- .bubblingG {
- text-align: center;
- width: 250px;
- height: 156px;
- margin: auto;
- }
-
- .bubblingG span {
- display: inline-block;
- vertical-align: middle;
- width: 31px;
- height: 31px;
- margin: 78px auto;
- background: #00ff6a;
- border-radius: 156px;
- -o-border-radius: 156px;
- -ms-border-radius: 156px;
- -webkit-border-radius: 156px;
- -moz-border-radius: 156px;
- animation: bubblingG 0.975s infinite alternate;
- -o-animation: bubblingG 0.975s infinite alternate;
- -ms-animation: bubblingG 0.975s infinite alternate;
- -webkit-animation: bubblingG 0.975s infinite alternate;
- -moz-animation: bubblingG 0.975s infinite alternate;
- }
-
- #bubblingG_1 {
- animation-delay: 0s;
- -o-animation-delay: 0s;
- -ms-animation-delay: 0s;
- -webkit-animation-delay: 0s;
- -moz-animation-delay: 0s;
- }
-
- #bubblingG_2 {
- animation-delay: 0.2895s;
- -o-animation-delay: 0.2895s;
- -ms-animation-delay: 0.2895s;
- -webkit-animation-delay: 0.2895s;
- -moz-animation-delay: 0.2895s;
- }
-
- #bubblingG_3 {
- animation-delay: 0.589s;
- -o-animation-delay: 0.589s;
- -ms-animation-delay: 0.589s;
- -webkit-animation-delay: 0.589s;
- -moz-animation-delay: 0.589s;
- }
-
-
-
- @keyframes bubblingG {
- 0% {
- width: 31px;
- height: 31px;
- background-color: #00ff6a;
- transform: translateY(0);
- }
-
- 100% {
- width: 75px;
- height: 75px;
- opacity: 0;
- transform: translateY(-66px);
- }
- }
-
- @-o-keyframes bubblingG {
- 0% {
- width: 31px;
- height: 31px;
- background-color: #00ff6a;
- -o-transform: translateY(0);
- }
-
- 100% {
- width: 75px;
- height: 75px;
- opacity: 0;
- -o-transform: translateY(-66px);
- }
- }
-
- @-ms-keyframes bubblingG {
- 0% {
- width: 31px;
- height: 31px;
- background-color: #00ff6a;
- -ms-transform: translateY(0);
- }
-
- 100% {
- width: 75px;
- height: 75px;
- opacity: 0;
- -ms-transform: translateY(-66px);
- }
- }
-
- @-webkit-keyframes bubblingG {
- 0% {
- width: 31px;
- height: 31px;
- background-color: #00ff6a;
- -webkit-transform: translateY(0);
- }
-
- 100% {
- width: 75px;
- height: 75px;
- opacity: 0;
- -webkit-transform: translateY(-66px);
- }
- }
-
- @-moz-keyframes bubblingG {
- 0% {
- width: 31px;
- height: 31px;
- background-color: #00ff6a;
- -moz-transform: translateY(0);
- }
-
- 100% {
- width: 75px;
- height: 75px;
- opacity: 0;
- -moz-transform: translateY(-66px);
- }
- }
-
-.hidden {
- display:none !important;
-}
-
-/* Sections */
.section {
- border-radius: 30px;
- margin-bottom: 15px;
- transition: background-color 0.4s !important;
+ border-radius: var(--cardRadius);
}
-.section.collapse .header, .section.collapse .header h1, .section.collapse .header h2, .section.collapse .header h3, .section.collapse .header h4, .section.collapse .header h5, .section.collapse .header h6 {
- transition: all 0.5s, color 0.4s !important;
+
+.section .header i {
+ font-size: 42px;
+ margin-left: 5px;
+ margin-right: 10px;
}
-.section.collapsed .header h1, .section.collapsed .header h2, .section.collapsed .header h3, .section.collapsed .header h4, .section.collapsed .header h5, .section.collapsed .header h6 {
- transition: all 0.5s, color 0.4s !important;
- font-size: 2.2rem;
- margin-left: 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.collapsed .header {
- padding: 10px !important;
+
+.section .header {
+ text-align: center;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ padding: 40px 0px;
}
-.section.collapse .header {
- cursor: pointer;
- -webkit-touch-callout: none; /* iOS Safari */
- -webkit-user-select: none; /* Safari */
- -khtml-user-select: none; /* Konqueror HTML */
- -moz-user-select: none; /* Firefox */
- -ms-user-select: none; /* Internet Explorer/Edge */
- user-select: none;
+
+@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;
+ }
}
-.section.collapse.collapsed .body {
+
+/* Splash Screens (Basically all of the code managed in JS)
+–––––––––––––––––––––––––––––––––––––––––––––––––– */
+
+.splash {
display: none;
}
-body:not(.dark) .section {
- /*background-color:var(--flex-layer2, #f7f7f7);*/
-}
-body.dark .section {
- /*background-color:var(--flex-layer2, #1c2023);*/
-}
-.section .header {
- text-align: center;
-}
-.section .header h3 {
- font-size: 60px;
+
+/* Grid & Layout
+–––––––––––––––––––––––––––––––––––––––––––––––––– */
+
+/* Helpers
+–––––––––––––––––––––––––––––––––––––––––––––––––– */
+
+/* Shorthand floats & alignments */
+
+.center {
+ text-align: center;
}
-.beta.notice {
- font-size: 20px;
+.left {
+ float: left !important;
+}
+
+.right {
+ float: right !important;
+}
+
+.align {
+ display: inline-block;
vertical-align: middle;
- border: 2px solid #ff7e00;
- color: #ff7e00;
- padding: 2px 4px;
+}
+
+.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;
}
-.section .header, .section.header {
- padding: 40px;
-}
-.section .header i, .section.header i {
- font-size: 42px;
- margin-left: 5px;
- vertical-align: middle;
-}
-.section .body {
- padding: 60px;
- padding-top: 0px;
+
+/* Generic Themed Elements */
+
+.theme {
+ color: var(--themeText) !important;
+ background-color: var(--theme) !important;
}
-.section .header i {
- margin-right: 10px;
-}
-.section .header i, .section .header span, .section .header h1, .section .header h2, .section .header h3, .section .header h4, .section .header h5,
-.section.header i, .section.header span, .section.header h1, .section.header h2, .section.header h3, .section.header h4, .section.header h5 {
- display: inline-block;
- vertical-align: middle;
-}
-.section .header, .section.header {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
+/* Dividers */
-/* Splash Screens */
-div.splash {
- display:none;
-}
-
-/* Cards */
-
-.card, code, .list .item {
- /* Add shadows to create the "card" effect */
- transition: background-color 0.4s, background 0.4s, box-shadow 0.4s, color 0.4s;
- border-radius: 15px;
- z-index: 10;
-}
-.card {
- border-radius: 20px;
-}
-code, .list .item {
-padding: 15px;
-}
-.card {
- padding: 30px;
-}
-.card i.close {
- position: absolute;
- right: 0;
- cursor: pointer;
- top: 0;
- margin: 25px;
-}
-.list:not(.contextmenu) {
- padding: 3px;
-}
-.card, code, .contextmenu {
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
-}
-.card.focus {
- position:absolute;
- max-height: calc(100% - 100px);
- overflow: auto;
-}
-code {
- display:block;
- font-family: monospace, monospace !important;
- font-size: 16px;
- padding: 20px;
- box-shadow: 0 2px 3px rgba(0, 0, 0, 0.17) !important;
- overflow: auto;
-}
-code xmp {
- margin: 0;
-}
-/* contextmenus */
-.contextmenu {
- position:absolute;
- width: 200px;
- display:none;
-}
-.contextmenu.list .item {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- padding: 12px;
-}
-.contextmenu.active {
- display:inline-block;
-}
-body:not(.dark) .list.contextmenu .item:not(.active):not(.disabled):hover {
- background-color: var(--flex-layer2, #e4e4e4);
-}
-body.dark .list.contextmenu .item:not(.active):not(.disabled):hover {
- background-color: var(--flex-layer3, #151515);
-}
-body:not(.dark) .list .item.disabled {
- filter: blur(0.5px);
- background-color: #e7e7e7;
-}
-body.dark .list .item.disabled {
- filter: blur(0.5px);
- background-color: #32373c;
-}
-.list:not(.contextmenu) {
- border-radius: 15px;
-}
-.list.contextmenu, .list.contextmenu .item {
- border-radius: 12px;
-}
-.list .item {
- cursor: pointer;
- font-weight: bold;
- letter-spacing: 0.9px;
-}
-.list:not(.contextmenu) .item {
- margin-top: 3px;
- margin-bottom: 3px;
-}
-
-.nav {
- box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
- transition: 0.3s !important;
-}
-.nav.toast {
- box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2) !important;
-}
-
-.card.close {
- display: none;
-}
-
-
-.darkText {
- color: #000000
-}
-
-
-.card:not(.focus){
- position: relative;
-}
-
-body.dark code, body.dark .list {
- background-color:var(--flex-layer1, #212121);
-}
-body.dark .card {
- background-color:var(--flex-light, #292929);
-}
-body:not(.dark) code, body:not(.dark) .list {
- background-color: var(--flex-layer1, #f1f1f1);
-}
-body:not(.dark) .card {
- background-color:var(--flex-light, #fdfdfd);
-}
-
-
-
-.blur {
- filter: blur(20px);
-}
-.blur, .blur * {
- cursor: default !important;
- -webkit-touch-callout: none; /* iOS Safari */
- -webkit-user-select: none; /* Safari */
- -khtml-user-select: none; /* Konqueror HTML */
- -moz-user-select: none; /* Firefox */
- -ms-user-select: none; /* Internet Explorer/Edge */
- user-select: none; /* Non-prefixed version, currently
- supported by Chrome and Opera */
-}
-#pagewrapper {
- transition: -webkit-filter 0.3s !important;
-}
-
-.card.contextmenu {
- display:inline-block;
- padding: 8px;
-}
-
-
-
-
-/*
-
-Fluid Core
-
-R.I.P Materialize
-
-*/
-
-
-.container {
- margin: 0 auto;
- max-width: 1500px;
-}
-
-@media only screen and (min-width: 601px) {
- .container {
- width: 90%
- }
- .nav {
- max-width: calc(100% - 30px)
- }
- .fluid.logo {
- display:none;
- }
-}
-@media only screen and (max-width: 600px) {
- .section {
- border: none !important;
- background-color: transparent !important;
- }
- .section.header, .section .header, .section .body {
- padding: 10px !important;
- }
- input {
- width: 100% !important;
- }
- .btns.row .btn {
- display:block !important;
- width: 100% !important;
- }
- .btns.row {
- width: 100%;
- }
- #reldownload.fluid, #relspace.fluid {
- display: none;
- }
- .nav ul {
- text-align: center;
- }
- .nav li {
- margin: 0 3px;
- }
- .section {
- margin-left: 3px;
- margin-right: 3px;
- }
- .fluid.logo {
- display:none;
- }
-}
-
-@media only screen and (min-width: 993px) {
- .container {
- width: 75%
- }
- .nav {
- max-width: 55%
- }
- .fluid.logo {
- display:inline-block;
- }
-}
-
-a {
- text-decoration: none;
- color: #039be5;
-}
-.center {
- text-align: center;
-}
-.left {
- float: left !important;
-}
-.right {
- float: right !important;
-}
-textarea {
- width: 100%;
- height: 50px;
- margin: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-
-.row {
- margin-bottom: 20px;
-
-}
-h1, h2, h3, h4, h5, h6 {
- line-height: 110%;
-}
-h1 {
- font-size: 4.2rem;
- margin: 2.1rem 0 1.68rem 0
-}
-
-h2 {
- font-size: 3.56rem;
- margin: 1.78rem 0 1.424rem 0
-}
-
-h3 {
- font-size: 2.92rem;
- margin: 1.46rem 0 1.168rem 0
-}
-
-h4 {
- font-size: 2.28rem;
- margin: 1.14rem 0 .912rem 0
-}
-
-h5 {
- font-size: 1.64rem;
- margin: .82rem 0 .656rem 0
-}
-
-h6 {
- font-size: 1rem;
- margin: .5rem 0 .4rem 0
-}
-
-body {
- margin:0;
-}
-* {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
.divider {
width: 100%;
margin: 0 10px;
- background-color: #b2b2b2;
+ background-color: var(--elements);
height: 3px;
border-radius: 100px;
}
-.space {
- padding: 10px;
- display:inline-block;
- float: left;
- margin: 0px 3px;
+/* Fluid CSS Loader */
+
+.bubblingG {
+ text-align: center;
+ width: 250px;
+ height: 156px;
+ margin: auto;
}
-.space.demo {
- padding: 5px 3px;
- border-radius: 10px;
- text-align:center;
+
+.bubblingG span {
+ display: inline-block;
+ vertical-align: middle;
+ width: 31px;
+ height: 31px;
+ margin: 78px auto;
+ background: #00ff6a;
+ border-radius: 156px;
+ -o-border-radius: 156px;
+ -ms-border-radius: 156px;
+ -webkit-border-radius: 156px;
+ -moz-border-radius: 156px;
+ animation: bubblingG 0.975s infinite alternate;
+ -o-animation: bubblingG 0.975s infinite alternate;
+ -ms-animation: bubblingG 0.975s infinite alternate;
+ -webkit-animation: bubblingG 0.975s infinite alternate;
+ -moz-animation: bubblingG 0.975s infinite alternate;
}
-.space.c1 {
- width: calc(10% - 6px);
+
+#bubblingG_1 {
+ animation-delay: 0s;
+ -o-animation-delay: 0s;
+ -ms-animation-delay: 0s;
+ -webkit-animation-delay: 0s;
+ -moz-animation-delay: 0s;
}
-.space.c2 {
- width: calc(20% - 6px);
+
+#bubblingG_2 {
+ animation-delay: 0.2895s;
+ -o-animation-delay: 0.2895s;
+ -ms-animation-delay: 0.2895s;
+ -webkit-animation-delay: 0.2895s;
+ -moz-animation-delay: 0.2895s;
}
-.space.c3 {
- width: calc(30% - 6px);
+
+#bubblingG_3 {
+ animation-delay: 0.589s;
+ -o-animation-delay: 0.589s;
+ -ms-animation-delay: 0.589s;
+ -webkit-animation-delay: 0.589s;
+ -moz-animation-delay: 0.589s;
}
-.space.c4 {
- width: calc(40% - 6px);
+
+@keyframes bubblingG {
+ 0% {
+ width: 31px;
+ height: 31px;
+ background-color: #00ff6a;
+ transform: translateY(0);
+ }
+ 100% {
+ width: 75px;
+ height: 75px;
+ opacity: 0;
+ transform: translateY(-66px);
+ }
}
-.space.c5 {
- width: calc(50% - 6px);
+
+@-o-keyframes bubblingG {
+ 0% {
+ width: 31px;
+ height: 31px;
+ background-color: #00ff6a;
+ -o-transform: translateY(0);
+ }
+ 100% {
+ width: 75px;
+ height: 75px;
+ opacity: 0;
+ -o-transform: translateY(-66px);
+ }
}
-.space.c6 {
- width: calc(60% - 6px);
+
+@-ms-keyframes bubblingG {
+ 0% {
+ width: 31px;
+ height: 31px;
+ background-color: #00ff6a;
+ -ms-transform: translateY(0);
+ }
+ 100% {
+ width: 75px;
+ height: 75px;
+ opacity: 0;
+ -ms-transform: translateY(-66px);
+ }
}
-.space.c7 {
- width: calc(70% - 6px);
+
+@-webkit-keyframes bubblingG {
+ 0% {
+ width: 31px;
+ height: 31px;
+ background-color: #00ff6a;
+ -webkit-transform: translateY(0);
+ }
+ 100% {
+ width: 75px;
+ height: 75px;
+ opacity: 0;
+ -webkit-transform: translateY(-66px);
+ }
}
-.space.c8 {
- width: calc(80% - 6px);
+
+@-moz-keyframes bubblingG {
+ 0% {
+ width: 31px;
+ height: 31px;
+ background-color: #00ff6a;
+ -moz-transform: translateY(0);
+ }
+ 100% {
+ width: 75px;
+ height: 75px;
+ opacity: 0;
+ -moz-transform: translateY(-66px);
+ }
}
-.space.c9 {
- width: calc(90% - 6px);
+
+/* 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;
}
-.space.c10 {
- width: calc(100% - 6px);
+
+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
index 48880bf..19e03e1 100644
--- a/fluid.js
+++ b/fluid.js
@@ -1,46 +1,61 @@
/*!
-Fluid UI JavaScript Modules v3.1.0
-
+Fluid UI JavaScript Modules v3.9.1
Copyright (c) 2017-2019 jottocraft
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+Licenced under the MIT License (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 "";
- }
-if (typeof fluidStorage == "undefined") { fluidStorage = "cookies" }
+
+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.includedFlexThemes = ["midnight", "nitro", "aquatic", "city", "highContrast"]
-fluid.theme = function(theme, dontSave) {
+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 (theme, dontSave) {
if (theme == "toggle") { if ($("body").hasClass("dark")) { theme = "light"; } else { theme = "dark"; } }
$(".btns.themeSelector .btn").removeClass("active");
if (theme) { $(".btns.themeSelector .btn." + theme.replace("#", "")).addClass("active"); }
@@ -49,36 +64,28 @@
document.body.style = "";
if (theme) {
for (var i = 0; i < fluid.includedFlexThemes.length; i++) $("body").removeClass(fluid.includedFlexThemes[i])
- }
- if (theme == "dark") { $("body").addClass("dark"); }
- if (theme == "light") { $("body").removeClass("dark"); } else { $("body").removeClass("light"); }
- if (fluid.includedFlexThemes.includes(theme)) { $("body").addClass("dark"); $("body").addClass(theme); }
- if (theme == "highContrast") { $("body").removeClass("dark"); }
- if (String(theme).startsWith("light")) { $("body").removeClass("dark"); $("body").addClass(theme); }
- if (String(theme).startsWith("dark")) { $("body").addClass("dark"); $("body").addClass(theme); }
- if (theme == "auto") {
- var hours = new Date().getHours()
- // Light: 6AM - 5PM Dark: 6PM - 5AM
- if (hours > 5 && hours < 18) {
- $("body").removeClass("dark");
- } else {
- $("body").addClass("dark");
+
+ //apply theme
+ if (theme == "dark") { $("body").addClass("dark"); $("body").removeClass("light"); }
+ if (theme == "light") { $("body").removeClass("dark"); $("body").addClass("light"); }
+ if (fluid.includedFlexThemes.includes(theme)) { $("body").addClass("dark"); $("body").removeClass("light"); $("body").addClass(theme); }
+ if (theme == "highContrast") { $("body").removeClass("dark"); $("body").addClass("light"); }
+ if (String(theme).startsWith("light")) { $("body").removeClass("dark"); $("body").addClass("light"); $("body").addClass(theme); }
+ if (String(theme).startsWith("dark")) { $("body").addClass("dark"); $("body").removeClass("light"); $("body").addClass(theme); }
+ if ((String(theme).startsWith("dark") && (theme !== "dark")) || (String(theme).startsWith("light") && (theme !== "light")) || (fluid.includedFlexThemes.includes(theme))) { $("body").addClass("flex"); } else { $("body").removeClass("flex"); }
+ if (theme == "auto") {
+ var hours = new Date().getHours()
+ if (hours > fluid.auto.darkEndAM && hours < fluid.auto.darkStartPM) {
+ $("body").removeClass("dark");
+ $("body").addClass("light");
+ } else {
+ $("body").addClass("dark");
+ $("body").removeClass("light");
+ }
}
- }
- if (fluid.onThemeChange) fluid.onThemeChange();
- if (theme == undefined) {
- if (dontSave !== "unsetStat") { var activeTheme = "light"; } else { var activeTheme = "unset"; }
- if ($("body").hasClass("dark")) var activeTheme = "dark";
- if ($("body").hasClass("light")) var activeTheme = "light";
- if (fluid.includedFlexThemes.includes(theme)) var activeTheme = theme;
- if (activeTheme) { $(".btns.themeSelector .btn." + activeTheme.replace("#", "")).addClass("active"); }
- for (var i = 0; i < document.body.classList.length.length; i++) { if (document.body.classList.length[i].startsWith("light")) { var activeTheme = document.body.classList.length[i] } if (document.body.classList.length[i].startsWith("dark")) { var activeTheme = document.body.classList.length[i] } }
- return activeTheme;
- }
- if (String(theme).startsWith("#")) {
- var baseColor = theme.slice(1)
- console.warn("[Fluid UI] Using fluid.theme to generate a theme based on a color. This function should only be used for demo purposes only. Do not use this function on an actual site.")
- jQuery.getScript("https://bgrins.github.io/TinyColor/tinycolor.js", function() {
+ if (String(theme).startsWith("#")) {
+ var baseColor = theme.slice(1)
+ console.warn("[FLUID UI] Using fluid.theme to generate a theme based on a color. This function should be used for demo purposes only. Do not use this function on an actual site.")
var color = tinycolor(baseColor)
document.body.style.setProperty("--flex-light", tinycolor(baseColor).brighten(10).toString())
document.body.style.setProperty("--flex-bg", tinycolor(baseColor).brighten(5).toString())
@@ -86,10 +93,12 @@
var colorDark = "black";
document.body.style.setProperty("--flex-text", "black")
$("body").removeClass("dark")
+ $("body").addClass("light");
} else {
var colorDark = "white";
document.body.style.setProperty("--flex-text", "white")
$("body").addClass("dark")
+ $("body").removeClass("light");
}
var colorDesc = "dark";
if (colorDark == "black") var colorDesc = "light";
@@ -101,68 +110,306 @@
document.body.style.setProperty("--theme-color-outline", colorDark + `c0`)
document.body.style.setProperty("--theme-text-color", tinycolor(baseColor).brighten(10).toString())
$("#genTheme").html(`<code>/* Set this CSS on your Fluid site to use your generated Flex Theme */
+
+ body.` + colorDesc + `NewTheme {
+ --flex-light: ` + tinycolor(baseColor).brighten(10).toString() + `;
+ --flex-bg: ` + tinycolor(baseColor).brighten(5).toString() + `;
+ --flex-text: ` + colorDark + `;
+ --flex-sectext: ` + tinycolor(baseColor).brighten(40).desaturate(50).toString() + `;
+ --flex-layer1: ` + tinycolor(baseColor).darken(5).toString() + `;
+ --flex-layer2: ` + tinycolor(baseColor).darken(10).toString() + `;
+ --flex-layer3: ` + tinycolor(baseColor).darken(15).toString() + `;
+ --theme-color: ` + colorDark + `;
+ --theme-color-outline: ` + tinycolor(colorDark).toHexString() + `c0;
+ --theme-text-color: ` + tinycolor(baseColor).brighten(10).toString() + `;
+ }</code>`);
+ $("body").addClass("flex");
+ }
- body.` + colorDesc + `NewTheme {
- --flex-light: ` + tinycolor(baseColor).brighten(10).toString() + `;
- --flex-bg: ` + tinycolor(baseColor).brighten(5).toString() + `;
- --flex-text: ` + colorDark + `;
- --flex-sectext: ` + tinycolor(baseColor).brighten(40).desaturate(50).toString() + `;
- --flex-layer1: ` + tinycolor(baseColor).darken(5).toString() + `;
- --flex-layer2: ` + tinycolor(baseColor).darken(10).toString() + `;
- --flex-layer3: ` + tinycolor(baseColor).darken(15).toString() + `;
- --theme-color: ` + colorDark + `;
- --theme-color-outline: ` + tinycolor(colorDark).toHexString() + `c0;
- --theme-text-color: ` + tinycolor(baseColor).brighten(10).toString() + `;
- }</code>`);
- });
+ //change context menu css for new theme
+ if ($("#activecontextmenu").children(".btn").hasClass("active")) { $("#activecontextmenu").children(".btn").css("background-color", "#207bdf") } else {
+ if ($("#activecontextmenu").length) { if ($("#activecontextmenu").children().length == 2) { if ($("body").hasClass("dark")) { $("#activecontextmenu").children(".btn, i")[0].style = "background-color: var(--flex-layer3, #16181a);" } else { $("#activecontextmenu").children(".btn, i")[0].style = "background-color: var(--flex-layer3, #dddddd);" } } }
+ }
+
+ //save theme prefrence
+ if (dontSave !== true) { localStorage.setItem("fluidTheme", theme); }
}
- if (theme !== undefined) {
- if ($("#activecontextmenu").children(".btn").hasClass("active")) {$("#activecontextmenu").children(".btn").css("background-color", "#207bdf") } else {
- if ($("#activecontextmenu").length) { if ($("#activecontextmenu").children().length == 2) { if ($("body").hasClass("dark")) { $("#activecontextmenu").children(".btn, i")[0].style = "background-color: var(--flex-layer3, #16181a);" } else { $("#activecontextmenu").children(".btn, i")[0].style = "background-color: var(--flex-layer3, #dddddd);" } } } }
- if (dontSave !== true) { if (fluidStorage == "localStorage") { localStorage.setItem("fluidTheme", theme); } else { document.cookie = "fluidTheme=" + theme; } }
+
+ //Load acrylic variables
+ if (typeof tinycolor !== "undefined") {
+ //acrylic supported (tinycolor library loaded)
+ 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())
+ }
+
+ //Load chroma
+ if (fluid.chroma.on && fluid.chroma.themeLink) {
+ fluid.chroma.static(getComputedStyle(document.body).getPropertyValue("--background"))
+ }
+
+ if (theme) {
+ //emit theme change event
+ document.dispatchEvent(new CustomEvent('fluidTheme', { detail: theme }))
+ }
+
+ if (theme == undefined) {
+ //get current theme
+ var activeTheme = null;
+ var bodyClass = $(document.body).attr("class");
+ if ($("body").hasClass("dark")) var activeTheme = "dark";
+ if ($("body").hasClass("light")) var activeTheme = "light";
+ //check for included flex themes
+ for (var i = 0; i < fluid.includedFlexThemes.length; i++) {
+ if (bodyClass.includes(fluid.includedFlexThemes[i])) {
+ activeTheme = fluid.includedFlexThemes[i];
+ }
+ }
+ //check for custom flex themes
+ for (var i = 0; i < document.body.classList.length.length; i++) { if (document.body.classList.length[i].startsWith("light")) { var activeTheme = document.body.classList.length[i] } if (document.body.classList.length[i].startsWith("dark")) { var activeTheme = document.body.classList.length[i] } }
+ if (activeTheme) { $(".btns.themeSelector .btn." + activeTheme.replace("#", "")).addClass("active"); }
+ return activeTheme;
+ }
+
}
-}
-fluid.isOutlined = function() {
+fluid.isOutlined = function () {
return $("body").hasClass("outline");
}
-fluid.tcoh = function() {
+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"
+ 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"
}
/* Loader auto initilization */
setTimeout(function () {
-try { $("loader").html('<div class="bubblingG"><span id="bubblingG_1"></span><span id="bubblingG_2"></span><span id="bubblingG_3"></span></div>');
-}
-catch(err) {
-}
+ try {
+ $("loader").html('<div class="bubblingG"><span id="bubblingG_1"></span><span id="bubblingG_2"></span><span id="bubblingG_3"></span></div>');
+ }
+ catch (err) {
+ }
}, 1);
-fluid.load = function(mode) {
+fluid.chroma = { on: false, themeLink: false };
+fluid.chroma.session = {};
+fluid.chroma.supported = function (cb) {
+ $.ajax({
+ type: "GET",
+ url: 'https://chromasdk.io:54236/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: 'https://chromasdk.io:54236/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();
+ }, 10000)
+ }
+ })
+}
+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.load = function (mode) {
if (mode) {
$("loader").removeClass("hidden");
} else {
$("loader").addClass("hidden");
}
}
-fluid.themePages = function(ele, dir) {
+fluid.themePages = function (ele, dir) {
+ var themePage = $(ele).parents(".themeSelector").attr("themePage")
if (dir == +1) {
- fluid.themePage++;
- $('.themeSelector span').hide();
- $('.themeSelector .s' + fluid.themePageList[fluid.themePage]).show();
- if (fluid.themePage == (fluid.themePageList.length - 1)) { $(ele).hide(); } $(ele).siblings(".btn").show();
+ 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 {
- fluid.themePage--;
- $('.themeSelector span').hide();
- $('.themeSelector .s' + fluid.themePageList[fluid.themePage]).show();
- if (fluid.themePage == 0) { $(ele).hide(); } $(ele).siblings(".btn").show();
+ 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.init = function() {
+fluid.init = function () {
+ if ((window.navigator.userAgent.indexOf('MSIE ') > 0) || (window.navigator.userAgent.indexOf('Trident/') > 0)) {
+ alert("Internet Explorer is not supported. Please upgrade to a modern browser like Microsoft Edge or Google Chrome.")
+ throw "error: unsupported browser";
+ }
+ if ($("body").hasClass("hasSidebar") && (window.innerWidth < 1000)) {
+ $("body").addClass("collapsedSidebar")
+ } else {
+ $("body").removeClass("collapsedSidebar")
+ }
+ 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]))
+ }
+ }
+ window.onresize = function (event) {
+ if ($("body").hasClass("hasSidebar") && (window.innerWidth < 1000)) {
+ $("body").addClass("collapsedSidebar")
+ } else {
+ $("body").removeClass("collapsedSidebar")
+ }
+ };
if (typeof fluidThemes !== "undefined") {
if (typeof fluidThemes[0] == "string") {
fluidThemes = [];
@@ -170,304 +417,319 @@
var flexDom = [];
var pages = [];
for (var i = 0; i < fluidThemes.length; i++) {
- pages.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";} pages[i].push(`<div onclick="fluid.theme('` + fluidThemes[i][ii].id + `')" class="btn ` + fluidThemes[i][ii].id.replace("#", "") + `"><i class="material-icons">` + fluidThemes[i][ii].icon + `</i> ` + fluidThemes[i][ii].name + `</div>`) }
- if (fluidThemes[i][ii] == "midnight") { pages[i].push(`<div onclick="fluid.theme('midnight')" class="btn midnight"><i class="material-icons">brightness_3</i> Midnight Black</div>`) }
- if (fluidThemes[i][ii] == "nitro") { pages[i].push(`<div onclick="fluid.theme('nitro')" class="btn nitro"><i class="material-icons">whatshot</i> Nitro</div>`) }
- if (fluidThemes[i][ii] == "aquatic") { pages[i].push(`<div onclick="fluid.theme('aquatic')" class="btn aquatic"><i class="material-icons">pool</i> Aqua</div>`) }
- if (fluidThemes[i][ii] == "city") { pages[i].push(`<div onclick="fluid.theme('city')" class="btn city"><i class="material-icons">location_city</i> City</div>`) }
- if (fluidThemes[i][ii] == "highContrast") { pages[i].push(`<div onclick="fluid.theme('highContrast')" class="btn highContrast"><i class="material-icons">accessibility_new</i> High Contrast</div>`) }
- if (fluidThemes[i][ii] == "rainbow") { pages[i] = [`<div onclick="fluid.theme('darkRed')" class="btn darkRed"><i style="width: 24px; height: 24px; border-radius: 50%; background-color: #8e0004;" class="material-icons"></i></div>
- <div onclick="fluid.theme('darkOrange')" class="btn darkOrange"><i style="width: 24px; height: 24px; border-radius: 50%; background-color: #8e4b00;" class="material-icons"></i></div>
- <div onclick="fluid.theme('darkYellow')" class="btn darkYellow"><i style="width: 24px; height: 24px; border-radius: 50%; background-color: #6a5a00;"class="material-icons"></i></div>
- <div onclick="fluid.theme('darkGreen')" class="btn darkGreen"><i style="width: 24px; height: 24px; border-radius: 50%; background-color: #257300;" class="material-icons"></i></div>
- <div onclick="fluid.theme('darkBlue')" class="btn darkBlue"><i style="width: 24px; height: 24px; border-radius: 50%; background-color: #0043bf;" class="material-icons"></i></div>
- <div onclick="fluid.theme('darkPurple')" class="btn darkPurple"><i style="width: 24px; height: 24px; border-radius: 50%; background-color: #8100b9;" class="material-icons"></i></div>`] }
- } }
- fluid.themePage = 0;
+ pages.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"; } pages[i].push(`<button onclick="fluid.theme('` + fluidThemes[i][ii].id + `')" class="btn themeWindow 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") { pages[i].push(`<button onclick="fluid.theme('midnight')" class="btn themeWindow flex midnight"><div class="themeName"><i class="material-icons">brightness_3</i> Midnight Black</div></button>`) }
+ if (fluidThemes[i][ii] == "nitro") { pages[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") { pages[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") { pages[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") { pages[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") { pages[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") {
+ pages[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>`]
+ }
+ }
+ }
fluid.themePageList = [];
- $( ".btns.row.themeSelector" ).html(`
- <div style="display: none;" onclick="fluid.themePages(this, -1);" class="btn"><i class="material-icons">keyboard_arrow_left</i></div>
- <span class="s0">
- <div onclick="fluid.theme('auto')" class="btn auto"><i class="material-icons">brightness_auto</i> Auto</div>
- <div onclick="fluid.theme('light')" class="btn light"><i class="material-icons">brightness_high</i> Light</div>
- <div onclick="fluid.theme('dark')" class="btn dark"><i class="material-icons">brightness_low</i> Dark</div>
- </span>
- <span style="display:none;" class="s1">
- ` + (pages[0] ? pages[0].join("") : "") + `
- </span>
- <span style="display:none;" class="s2">
- ` + (pages[1] ? pages[1].join("") : "") + `
- </span>
- <span style="display:none;" class="s3">
- ` + (pages[2] ? pages[2].join("") : "") + `
- </span>
- <div onclick="fluid.themePages(this, +1);" class="btn"><i class="material-icons">keyboard_arrow_right</i></div>
- `);
+ $(".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>
+ ` + pages.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 (fluidStorage == "localStorage") {
- if (window.localStorage.fluidTheme !== undefined) {
- fluid.theme(window.localStorage.fluidTheme, true)
- } else {
- if (fluid.theme(undefined, "unsetStat") == "unset") fluid.theme("auto", true);
- }
-} else {
+ //Legacy (>=v3.x.x) compatibility
if (getCookie("fluidTheme") !== "") {
- fluid.theme(getCookie("fluidTheme"), true)
- } else {
- if (fluid.theme(undefined, "unsetStat") == "unset") fluid.theme("auto", true);
+ console.warn("[FLUID UI] Detected a legacy Fluid UI Theme cookie")
+ 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) {
+ fluid.theme(window.localStorage.getItem("fluidTheme"), true)
+ } else {
+ var unset = fluid.theme(undefined, "unsetStat");
+ console.log(unset)
+ if (unset == null) {
+ fluid.unsetStart = true;
+ if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
+ fluid.theme("dark", true);
+ } else {
+ fluid.theme("auto", true);
+ }
+ }
+ }
if (!$("body").hasClass("notwemoji")) {
- if (typeof twemoji !== "undefined") twemoji.parse(document.body);
-}
+ $.getScript("https://twemoji.maxcdn.com/2/twemoji.min.js?12.0.4", function () {
+ if (typeof twemoji !== "undefined") twemoji.parse(document.body);
+ })
+ }
$("loader").html('<div class="bubblingG"><span id="bubblingG_1"></span><span id="bubblingG_2"></span><span id="bubblingG_3"></span></div>');
- $( ".btns:not(.themeSelector) .btn:not(.manual), .list.select .item:not(.manual), .sidenav .item:not(.manual), .sidebar .item:not(.manual)" ).click(function(event) {
- if ($(event.target).parent().hasClass("multiple")) {
- $(this).toggleClass("active")
- } else {
- $(this).siblings().removeClass("active")
- $(this).addClass("active")
-}
-});
-fluid.shouldSwitch = true;
-$( ".switch, .switch .head" ).click(function(event) {
-if ($(event.target).hasClass("head")) {
-var ele = $(event.target).parent();
-} else { var ele = event.target }
-if (fluid.shouldSwitch) {
-$(ele).toggleClass("active");
-fluid.shouldSwitch = false;
-setTimeout(() => fluid.shouldSwitch = true, 400)
-}
-});
-$( "#activecontextmenu" ).contextmenu(function(event) {
- event.preventDefault();
-});
-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);");
+ $(".btns:not(.themeSelector) .btn:not(.manual), .list.select .item:not(.manual), .sidenav .item:not(.manual), .sidebar .item:not(.manual)").click(function (event) {
+ if ($(event.target).parent().hasClass("multiple")) {
+ $(this).toggleClass("active")
} else {
- $("#pagewrapper").attr("onclick","fluid.exitContextMenu(false);");
+ $(this).siblings().removeClass("active")
+ $(this).addClass("active")
}
- $(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)
+ });
+ fluid.shouldSwitch = true;
+ $(".switch").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)
+ }
+ });
+ $("#activecontextmenu").contextmenu(function (event) {
+ event.preventDefault();
+ });
+ 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 {
- $(element).siblings(".contextmenu").css("margin-top", $(element).height())
- }
- $("#pagewrapper").addClass("blur", 100)
- }
- } else {
- if (fluid.expBeh) {
- event.preventDefault();
- fluid.bounceBack(element);
+ if (fluid.expBeh) {
+ event.preventDefault();
+ fluid.bounceBack(element);
+ }
}
}
-}
-$( ".btn, .nav a, .nav li" ).contextmenu(function(event) {
-fluid.contextMenu(event.target, event)
-});
-$( ".contextmenu.list .item" ).click(function(event) {
- fluid.exitContextMenu(false);
-});
-$( "div.nav.active li" ).click(function(event) {
-$(this).siblings().removeClass("active")
-$(this).addClass("active")
-});
+ $(".btn, .nav a, .nav li").contextmenu(function (event) {
+ fluid.contextMenu(event.target, event)
+ });
+ $(".contextmenu.list .item").click(function (event) {
+ fluid.exitContextMenu(false);
+ });
+ $("div.nav.active li").click(function (event) {
+ $(this).siblings().removeClass("active")
+ $(this).addClass("active")
+ });
-$( ".section.collapse .header" ).click(function(event) {
- if ($(this).parent().hasClass("collapsed")) {
- if ($(this).parent().hasClass("one")) {
- $(this).parent().siblings().addClass("collapsed");
+ $(".section.collapse .header").click(function (event) {
+ if ($(this).parent().hasClass("collapsed")) {
+ if ($(this).parent().hasClass("one")) {
+ $(this).parent().siblings().addClass("collapsed");
+ }
}
- }
-$(this).parent().toggleClass("collapsed");
-});
+ $(this).parent().toggleClass("collapsed");
+ });
-$( ".list .item, a" ).contextmenu(function(event) {
-if (fluid.expBeh) { event.preventDefault(); fluid.bounceBack(event.target); }
-});
+ $(".list .item, a").contextmenu(function (event) {
+ if (fluid.expBeh) { event.preventDefault(); fluid.bounceBack(event.target); }
+ });
}
-$( document ).ready(fluid.init);
-$( window ).resize(function() {
+
+$(document).ready(fluid.init);
+
+$(window).resize(function () {
fluid.exitContextMenu(true);
});
-fluid.exitContextMenu = function(force) {
+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);
-}
+ $("#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;
+ 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)
-}
+ $("#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) {
+fluid.cards = function (element, isModal) {
var focus = $(element).hasClass('focus');
if (focus) {
fluid.generateWrapper();
- $(element).css({top: window.scrollY + 25});
- 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)
- }
+ $(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","");
+ $("#pagewrapper").attr("onclick", "");
if (menuopen) {
fluid.cards.close();
$(element).removeClass('close');
} else {
- menuopen = true;
- $(element).removeClass('close');
+ menuopen = true;
+ $(element).removeClass('close');
}
}
}
-fluid.modal = function(element) {
+fluid.modal = function (element) {
fluid.cards(element, true)
}
-fluid.toast = function(icon, text, sticky, focus) {
+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 (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)
- }
-);
+ $("#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.exitToast = function () {
$(fluid.toastNav).show();
var iconExtraStyles = ""
fluid.toastHiding = true;
$("#activetoast").hide("fade");
}
-fluid.cards.close = function(element) {
+fluid.cards.close = function (element) {
$(element).addClass('close');
$('#pagewrapper').removeClass("blur");
document.body.style.overflow = ""
- $( "body" ).css( "padding-right", "");
- $("#pagewrapper").attr("onclick","");
+ $("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.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.splash = function (element) {
fluid.splashScroll = window.scrollY;
fluid.generateWrapper();
$("#pagewrapper").hide();
- var title = $(element).attr("title");
+ var title = $(element).attr("title");
$("#splashscreenname").html(title);
$(element).show();
$("#splashscreen").show();
}
-fluid.unsplash = function() {
+fluid.unsplash = function () {
$("#splashscreen").hide();
$("#splashscreenname").html("");
$(".splash").hide();
@@ -495,7 +757,7 @@
-document.addEventListener('keydown', function(e) {
+document.addEventListener('keydown', function (e) {
var key = allowedKeys[e.keyCode];
var requiredKey = darkOverride[darkOverridePosition];
if (key == requiredKey) {
@@ -534,7 +796,7 @@
};
var outlineOverride = ['up', 'up', 'down', 'down', 'f9'];
var outlineOverridePosition = 0;
-document.addEventListener('keydown', function(e) {
+document.addEventListener('keydown', function (e) {
var key = outlineKeysAuto[e.keyCode];
var requiredKey = outlineOverride[outlineOverridePosition];
if (key == requiredKey) {
@@ -556,7 +818,7 @@
};
var emojiOverride = ['up', 'up', 'down', 'down', 'e'];
var emojiOverridePosition = 0;
-document.addEventListener('keydown', function(e) {
+document.addEventListener('keydown', function (e) {
var key = emojiKeysAuto[e.keyCode];
var requiredKey = emojiOverride[emojiOverridePosition];
if (key == requiredKey) {
@@ -578,7 +840,7 @@
};
var nitroOverride = ['up', 'up', 'down', 'down', 'n'];
var nitroOverridePosition = 0;
-document.addEventListener('keydown', function(e) {
+document.addEventListener('keydown', function (e) {
var key = nitroKeysAuto[e.keyCode];
var requiredKey = nitroOverride[nitroOverridePosition];
if (key == requiredKey) {
@@ -601,7 +863,7 @@
};
var midnightOverride = ['up', 'up', 'down', 'down', 'm'];
var midnightOverridePosition = 0;
-document.addEventListener('keydown', function(e) {
+document.addEventListener('keydown', function (e) {
var key = midnightKeysAuto[e.keyCode];
var requiredKey = midnightOverride[midnightOverridePosition];
if (key == requiredKey) {
@@ -615,6 +877,3 @@
midnightOverridePosition = 0;
}
});
-
-/*! Copyright Twitter Inc. and other contributors. Licensed under MIT */
-var twemoji=function(){"use strict";var twemoji={base:"https://twemoji.maxcdn.com/2/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:fromCodePoint,toCodePoint:toCodePoint},onerror:function onerror(){if(this.parentNode){this.parentNode.replaceChild(createText(this.alt,false),this)}},parse:parse,replace:replace,test:test},escaper={"&":"&","<":"<",">":">","'":"'",'"':"""},re=/(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f)|[\u0023\u002a\u0030-\u0039]\ufe0f?\u20e3|(?:[\u00a9\u00ae\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\uddb5\uddb6\uddb8\uddb9\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef9]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd40-\udd45\udd47-\udd70\udd73-\udd76\udd7a\udd7c-\udda2\uddb4\uddb7\uddc0-\uddc2\uddd0\uddde-\uddff]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,UFE0Fg=/\uFE0F/g,U200D=String.fromCharCode(8205),rescaper=/[&<>'"]/g,shouldntBeParsed=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,fromCharCode=String.fromCharCode;return twemoji;function createText(text,clean){return document.createTextNode(clean?text.replace(UFE0Fg,""):text)}function escapeHTML(s){return s.replace(rescaper,replacer)}function defaultImageSrcGenerator(icon,options){return"".concat(options.base,options.size,"/",icon,options.ext)}function grabAllTextNodes(node,allText){var childNodes=node.childNodes,length=childNodes.length,subnode,nodeType;while(length--){subnode=childNodes[length];nodeType=subnode.nodeType;if(nodeType===3){allText.push(subnode)}else if(nodeType===1&&!("ownerSVGElement"in subnode)&&!shouldntBeParsed.test(subnode.nodeName.toLowerCase())){grabAllTextNodes(subnode,allText)}}return allText}function grabTheRightIcon(rawText){return toCodePoint(rawText.indexOf(U200D)<0?rawText.replace(UFE0Fg,""):rawText)}function parseNode(node,options){var allText=grabAllTextNodes(node,[]),length=allText.length,attrib,attrname,modified,fragment,subnode,text,match,i,index,img,rawText,iconId,src;while(length--){modified=false;fragment=document.createDocumentFragment();subnode=allText[length];text=subnode.nodeValue;i=0;while(match=re.exec(text)){index=match.index;if(index!==i){fragment.appendChild(createText(text.slice(i,index),true))}rawText=match[0];iconId=grabTheRightIcon(rawText);i=index+rawText.length;src=options.callback(iconId,options);if(src){img=new Image;img.onerror=options.onerror;img.setAttribute("draggable","false");attrib=options.attributes(rawText,iconId);for(attrname in attrib){if(attrib.hasOwnProperty(attrname)&&attrname.indexOf("on")!==0&&!img.hasAttribute(attrname)){img.setAttribute(attrname,attrib[attrname])}}img.className=options.className;img.alt=rawText;img.src=src;modified=true;fragment.appendChild(img)}if(!img)fragment.appendChild(createText(rawText,false));img=null}if(modified){if(i<text.length){fragment.appendChild(createText(text.slice(i),true))}subnode.parentNode.replaceChild(fragment,subnode)}}return node}function parseString(str,options){return replace(str,function(rawText){var ret=rawText,iconId=grabTheRightIcon(rawText),src=options.callback(iconId,options),attrib,attrname;if(src){ret="<img ".concat('class="',options.className,'" ','draggable="false" ','alt="',rawText,'"',' src="',src,'"');attrib=options.attributes(rawText,iconId);for(attrname in attrib){if(attrib.hasOwnProperty(attrname)&&attrname.indexOf("on")!==0&&ret.indexOf(" "+attrname+"=")===-1){ret=ret.concat(" ",attrname,'="',escapeHTML(attrib[attrname]),'"')}}ret=ret.concat("/>")}return ret})}function replacer(m){return escaper[m]}function returnNull(){return null}function toSizeSquaredAsset(value){return typeof value==="number"?value+"x"+value:value}function fromCodePoint(codepoint){var code=typeof codepoint==="string"?parseInt(codepoint,16):codepoint;if(code<65536){return fromCharCode(code)}code-=65536;return fromCharCode(55296+(code>>10),56320+(code&1023))}function parse(what,how){if(!how||typeof how==="function"){how={callback:how}}return(typeof what==="string"?parseString:parseNode)(what,{callback:how.callback||defaultImageSrcGenerator,attributes:typeof how.attributes==="function"?how.attributes:returnNull,base:typeof how.base==="string"?how.base:twemoji.base,ext:how.ext||twemoji.ext,size:how.folder||toSizeSquaredAsset(how.size||twemoji.size),className:how.className||twemoji.className,onerror:how.onerror||twemoji.onerror})}function replace(text,callback){return String(text).replace(re,callback)}function test(text){re.lastIndex=0;var result=re.test(text);re.lastIndex=0;return result}function toCodePoint(unicodeSurrogates,sep){var r=[],c=0,p=0,i=0;while(i<unicodeSurrogates.length){c=unicodeSurrogates.charCodeAt(i++);if(p){r.push((65536+(p-55296<<10)+(c-56320)).toString(16));p=0}else if(55296<=c&&c<=56319){p=c}else{r.push(c.toString(16))}}return r.join(sep||"-")}}();
diff --git a/index.html b/index.html
index 530e1c6..32b070d 100644
--- a/index.html
+++ b/index.html
@@ -13,12 +13,12 @@
<!--OpenGraph -->
<meta property="og:url" content="https://dtps.js.org" />
<meta property="og:title" content="Power+" />
- <meta property="og:description" content="A Canvas LMS client designed for d.tech" />
+ <meta property="og:description" content="A redesigned UI for Canvas LMS" />
<meta property="og:image" content="https://dtps.js.org/dtps.png" />
<meta charset="utf-8">
<title>Power+</title>
-<meta name="description" content="A Canvas LMS client designed for d.tech">
+<meta name="description" content="A redesigned UI for Canvas LMS">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
@@ -28,6 +28,12 @@
</style>
<body>
<style>
+ @font-face {
+ font-family: 'Material Icons Outline';
+ font-style: normal;
+ font-weight: 400;
+ src: url('/outline.woff2') format('woff2');
+ }
.material-icons {
font-family: 'Material Icons Outline';
}
diff --git a/init.js b/init.js
index fbfd305..32c72a3 100644
--- a/init.js
+++ b/init.js
@@ -10,7 +10,7 @@
showLetters: false,
fullNames: false,
latestStream: [],
- unsupported: false
+ unsupported: true
};
dtps.changelog = function () {
@@ -221,7 +221,7 @@
dtps.shouldRender = true;
dtps.nativeAlert("Loading...", "Updating to Power+ " + dtps.readableVer, true);
} else {
- if (!Number(HaikuContext.user.login)) {
+ if (false) {
dtps.shouldRender = false;
dtps.nativeAlert("Unsupported Account", "Power+ only works on student accounts");
} else {