changed to dark theme

optimize-reads
Simon Huang 5 years ago
parent 670b115a97
commit 4b830b9960

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -12,5 +12,5 @@ ion-segment-button {
} }
ion-fab-button { ion-fab-button {
--background: var(--ion-color-secondary); --background: var(--ion-color-secondary-shade);
} }

@ -18,7 +18,7 @@
border-radius: 5px; border-radius: 5px;
margin-bottom: 4px; margin-bottom: 4px;
max-width: 70%; max-width: 70%;
background: var(--ion-color-secondary); background: var(--ion-color-secondary-shade);
color: #fff; color: #fff;
} }
@ -27,7 +27,7 @@
border-radius: 5px; border-radius: 5px;
margin-bottom: 4px; margin-bottom: 4px;
max-width: 70%; max-width: 70%;
background: var(--ion-color-primary); background: var(--ion-color-primary-shade);
color: #fff; color: #fff;
} }

@ -1,5 +1,5 @@
.online-content { .online-content {
height: calc(100% - 160px); height: calc(100% - 160px + 56px);
} }
.online-header { .online-header {

@ -8,12 +8,12 @@ const GetExtension: React.FC = () => {
return ( return (
<IonContent class="extension-content"> <IonContent class="extension-content">
<IonListHeader>Browser extension installation is required.</IonListHeader> <IonListHeader>Browser extension installation is required.</IonListHeader>
<IonRouterLink href="https://addons.mozilla.org/en-US/firefox/addon/turtletv/" target="_blank" class="ext-link">
<IonImg src={firefox} alt="Get the extension for Firefox" class="firefox-ext-img"></IonImg>
</IonRouterLink>
<IonRouterLink href="https://chrome.google.com/webstore/search/TurtleTv" target="_blank" class="ext-link"> <IonRouterLink href="https://chrome.google.com/webstore/search/TurtleTv" target="_blank" class="ext-link">
<IonImg src={chrome} alt="Get the extension for Chrome" class="chrome-ext-img"></IonImg> <IonImg src={chrome} alt="Get the extension for Chrome" class="chrome-ext-img"></IonImg>
</IonRouterLink> </IonRouterLink>
<IonRouterLink href="https://addons.mozilla.org/en-US/firefox/addon/turtletv/" target="_blank" class="ext-link">
<IonImg src={firefox} alt="Get the extension for Firefox" class="firefox-ext-img"></IonImg>
</IonRouterLink>
</IonContent> </IonContent>
); );
}; };

@ -1,5 +1,6 @@
.create-room { .create-room {
width: 50%; width: 50%;
--background: var(--ion-color-secondary-shade);
} }
.home-content { .home-content {
@ -9,7 +10,7 @@
.home-grid { .home-grid {
max-width: 500px; max-width: 500px;
font-size: 26px; font-size: 26px;
color: var(--ion-color-primary); color: var(--ion-color-secondary);
text-align: center; text-align: center;
} }

@ -1,123 +1,24 @@
/* Ionic Variables and Theming. For more info, please see: /* Ionic Variables and Theming. For more info, please see:
http://ionicframework.com/docs/theming/ */ http://ionicframework.com/docs/theming/ */
/** Ionic CSS Variables **/ /*
:root {
/** primary **/
--ion-color-primary: #3880ff;
--ion-color-primary-rgb: 56, 128, 255;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
--ion-color-primary-shade: #3171e0;
--ion-color-primary-tint: #4c8dff;
/** secondary **/
--ion-color-secondary: #0ec7ab;
--ion-color-secondary-rgb: 14, 199, 171;
--ion-color-secondary-contrast: #000000;
--ion-color-secondary-contrast-rgb: 0, 0, 0;
--ion-color-secondary-shade: #0caf96;
--ion-color-secondary-tint: #26cdb3;
/** tertiary **/
--ion-color-tertiary: #5260ff;
--ion-color-tertiary-rgb: 82, 96, 255;
--ion-color-tertiary-contrast: #ffffff;
--ion-color-tertiary-contrast-rgb: 255, 255, 255;
--ion-color-tertiary-shade: #4854e0;
--ion-color-tertiary-tint: #6370ff;
/** success **/
--ion-color-success: #2dd36f;
--ion-color-success-rgb: 45, 211, 111;
--ion-color-success-contrast: #ffffff;
--ion-color-success-contrast-rgb: 255, 255, 255;
--ion-color-success-shade: #28ba62;
--ion-color-success-tint: #42d77d;
/** warning **/
--ion-color-warning: #ffc409;
--ion-color-warning-rgb: 255, 196, 9;
--ion-color-warning-contrast: #000000;
--ion-color-warning-contrast-rgb: 0, 0, 0;
--ion-color-warning-shade: #e0ac08;
--ion-color-warning-tint: #ffca22;
/** danger **/
--ion-color-danger: #eb445a;
--ion-color-danger-rgb: 235, 68, 90;
--ion-color-danger-contrast: #ffffff;
--ion-color-danger-contrast-rgb: 255, 255, 255;
--ion-color-danger-shade: #cf3c4f;
--ion-color-danger-tint: #ed576b;
/** dark **/
--ion-color-dark: #222428;
--ion-color-dark-rgb: 34, 36, 40;
--ion-color-dark-contrast: #ffffff;
--ion-color-dark-contrast-rgb: 255, 255, 255;
--ion-color-dark-shade: #1e2023;
--ion-color-dark-tint: #383a3e;
/** medium **/
--ion-color-medium: #92949c;
--ion-color-medium-rgb: 146, 148, 156;
--ion-color-medium-contrast: #ffffff;
--ion-color-medium-contrast-rgb: 255, 255, 255;
--ion-color-medium-shade: #808289;
--ion-color-medium-tint: #9d9fa6;
/** light **/
--ion-color-light: #f4f5f8;
--ion-color-light-rgb: 244, 245, 248;
--ion-color-light-contrast: #000000;
--ion-color-light-contrast-rgb: 0, 0, 0;
--ion-color-light-shade: #edeeef;
--ion-color-light-tint: #f5f6f9;
--ion-font-family: 'custom';
}
@font-face {
font-family: 'custom';
font-style: normal;
font-weight: normal;
src: url('../assets/OpenSans-Regular.ttf');
}
@font-face {
font-family: 'custom';
font-style: normal;
font-weight: bold;
src: url('../assets/OpenSans-SemiBold.ttf');
}
@font-face {
font-family: 'custom';
font-style: oblique;
font-weight: normal;
src: url('../assets/PathwayGothicOne-Regular.ttf');
}
@media (prefers-color-scheme: dark) {
/*
* Dark Colors * Dark Colors
* ------------------------------------------- * -------------------------------------------
*/ */
body { :root {
--ion-color-primary: #428cff; --ion-color-primary: #428cff;
--ion-color-primary-rgb: 66, 140, 255; --ion-color-primary-rgb: 66, 140, 255;
--ion-color-primary-contrast: #ffffff; --ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255; --ion-color-primary-contrast-rgb: 255, 255, 255;
--ion-color-primary-shade: #3a7be0; --ion-color-primary-shade: #3268c0;
--ion-color-primary-tint: #5598ff; --ion-color-primary-tint: #5598ff;
--ion-color-secondary: #0ec7ab; --ion-color-secondary: #0ec7ab;
--ion-color-secondary-rgb: 14, 199, 171; --ion-color-secondary-rgb: 14, 199, 171;
--ion-color-secondary-contrast: #000000; --ion-color-secondary-contrast: #000000;
--ion-color-secondary-contrast-rgb: 0, 0, 0; --ion-color-secondary-contrast-rgb: 0, 0, 0;
--ion-color-secondary-shade: #0caf96; --ion-color-secondary-shade: #098572;
--ion-color-secondary-tint: #26cdb3; --ion-color-secondary-tint: #26cdb3;
--ion-color-tertiary: #6a64ff; --ion-color-tertiary: #6a64ff;
@ -162,21 +63,23 @@ http://ionicframework.com/docs/theming/ */
--ion-color-medium-shade: #86888f; --ion-color-medium-shade: #86888f;
--ion-color-medium-tint: #a2a4ab; --ion-color-medium-tint: #a2a4ab;
--ion-color-light: #222428; --ion-color-light: #2c323d;
--ion-color-light-rgb: 34, 36, 40; --ion-color-light-rgb: 34, 36, 40;
--ion-color-light-contrast: #ffffff; --ion-color-light-contrast: #ffffff;
--ion-color-light-contrast-rgb: 255, 255, 255; --ion-color-light-contrast-rgb: 255, 255, 255;
--ion-color-light-shade: #1e2023; --ion-color-light-shade: #282c34;
--ion-color-light-tint: #383a3e; --ion-color-light-tint: #383a3e;
}
/* --ion-font-family: 'custom';
}
/*
* iOS Dark Theme * iOS Dark Theme
* ------------------------------------------- * -------------------------------------------
*/ */
.ios body { .ios body {
--ion-background-color: #000000; --ion-background-color: #2c323d;
--ion-background-color-rgb: 0, 0, 0; --ion-background-color-rgb: 0, 0, 0;
--ion-text-color: #ffffff; --ion-text-color: #ffffff;
@ -202,20 +105,15 @@ http://ionicframework.com/docs/theming/ */
--ion-color-step-900: #e6e6e6; --ion-color-step-900: #e6e6e6;
--ion-color-step-950: #f2f2f2; --ion-color-step-950: #f2f2f2;
--ion-toolbar-background: #0d0d0d; --ion-toolbar-background: #2c323d;
--ion-item-background: #000000;
--ion-card-background: #1c1c1d; --ion-item-background: #2c323d;
}
/* --ion-card-background: #2c323d;
* Material Design Dark Theme }
* -------------------------------------------
*/
.md body { .md body {
--ion-background-color: #121212; --ion-background-color: #2c323d;
--ion-background-color-rgb: 18, 18, 18; --ion-background-color-rgb: 18, 18, 18;
--ion-text-color: #ffffff; --ion-text-color: #ffffff;
@ -243,12 +141,32 @@ http://ionicframework.com/docs/theming/ */
--ion-color-step-900: #e7e7e7; --ion-color-step-900: #e7e7e7;
--ion-color-step-950: #f3f3f3; --ion-color-step-950: #f3f3f3;
--ion-item-background: #1e1e1e; --ion-item-background: #2c323d;
--ion-toolbar-background: #1f1f1f; --ion-toolbar-background: #2c323d;
--ion-tab-bar-background: #1f1f1f; --ion-tab-bar-background: #2c323d;
--ion-card-background: #1e1e1e; --ion-card-background: #2c323d;
} }
@font-face {
font-family: 'custom';
font-style: normal;
font-weight: normal;
src: url('../assets/OpenSans-Regular.ttf');
}
@font-face {
font-family: 'custom';
font-style: normal;
font-weight: bold;
src: url('../assets/OpenSans-SemiBold.ttf');
}
@font-face {
font-family: 'custom';
font-style: oblique;
font-weight: normal;
src: url('../assets/PathwayGothicOne-Regular.ttf');
} }

Loading…
Cancel
Save