⬆️ Bumped dependencies

🎨 Improved UI contrast
This commit is contained in:
Liyas Thomas
2019-12-14 15:23:10 +05:30
parent 9e2407b7f1
commit acc80cff74
10 changed files with 1335 additions and 1558 deletions

View File

@@ -360,13 +360,13 @@ This project is licensed under the [MIT License](https://opensource.org/licenses
<p> <p>
[![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-252628?logo=Postwoman)](https://postwoman.io) [![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-121212?logo=Postwoman)](https://postwoman.io)
<details> <details>
<summary>Default</summary> <summary>Default</summary>
<p> <p>
``` ```
[![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-252628?logo=Postwoman)](https://postwoman.io) [![Postwoman](https://img.shields.io/badge/Tested_on-Postwoman-121212?logo=Postwoman)](https://postwoman.io)
``` ```
</p> </p>
</details> </details>

View File

@@ -144,6 +144,8 @@ footer {
.nav-first { .nav-first {
z-index: 1; z-index: 1;
height: 100vh;
padding: 0 8px;
} }
.main { .main {
@@ -183,7 +185,7 @@ nav.primary-nav {
background-color: var(--bg-light-color); background-color: var(--bg-light-color);
color: var(--fg-light-color); color: var(--fg-light-color);
fill: var(--fg-light-color); fill: var(--fg-light-color);
margin: 8px; margin: 8px 0;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
&:hover { &:hover {
@@ -228,7 +230,7 @@ nav.secondary-nav {
border-radius: 50%; border-radius: 50%;
background-color: var(--bg-dark-color); background-color: var(--bg-dark-color);
color: var(--fg-light-color); color: var(--fg-light-color);
margin: 8px; margin: 8px 0;
&:hover { &:hover {
color: var(--fg-color); color: var(--fg-color);
@@ -255,7 +257,7 @@ h3 {
} }
.tooltip { .tooltip {
$bgcolor: var(--brd-color); $bgcolor: var(--bg-color);
$fgcolor: var(--fg-color); $fgcolor: var(--fg-color);
display: block !important; display: block !important;
z-index: 10000; z-index: 10000;
@@ -787,6 +789,7 @@ input[type="radio"]:checked + label + .tab {
.toasted.info { .toasted.info {
background-color: var(--ac-color) !important; background-color: var(--ac-color) !important;
color: var(--act-color) !important; color: var(--act-color) !important;
font-weight: 700 !important;
} }
.toasted.bubble .action { .toasted.bubble .action {
@@ -824,6 +827,8 @@ input[type="radio"]:checked + label + .tab {
position: fixed; position: fixed;
top: auto; top: auto;
bottom: 0; bottom: 0;
height: auto;
padding: 0;
width: 100%; width: 100%;
background-color: var(--bg-color); background-color: var(--bg-color);
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
@@ -836,6 +841,7 @@ input[type="radio"]:checked + label + .tab {
a { a {
background-color: transparent; background-color: transparent;
margin: 8px;
&.nuxt-link-exact-active { &.nuxt-link-exact-active {
background-color: transparent; background-color: transparent;
@@ -889,7 +895,7 @@ input[type="radio"]:checked + label + .tab {
margin-left: 0; margin-left: 0;
} }
.toasted:last-child { .toasted-container {
margin-bottom: 68px; margin-bottom: 68px;
} }
} }

View File

@@ -9,75 +9,71 @@
// Dark is the default theme variant. // Dark is the default theme variant.
@mixin darkTheme { @mixin darkTheme {
// Background color // Background color
--bg-color: rgb(37, 38, 40); --bg-color: rgba(18, 18, 18, 1);
// Light Background color // Light Background color
--bg-light-color: rgba(255, 255, 255, 0.05); --bg-light-color: rgba(255, 255, 255, 0.02);
//Dark Background color // Dark Background color
--bg-dark-color: rgba(0, 0, 0, 0.1); --bg-dark-color: rgba(0, 0, 0, 0.1);
// Auto-complete color
--atc-color: rgb(49, 49, 55);
// Text color // Text color
--fg-color: rgb(247, 248, 248); --fg-color: rgba(255, 255, 255, 1);
// Light Text color // Light Text color
--fg-light-color: rgb(150, 155, 160); --fg-light-color: rgba(255, 255, 255, 0.5);
// Border color // Border color
--brd-color: rgb(48, 47, 55); --brd-color: rgba(255, 255, 255, 0.05);
// Error color // Error color
--err-color: rgba(255, 255, 255, 0.05); --err-color: rgba(255, 255, 255, 0.05);
// Acent color // Acent color
--ac-color: #50fa7b; --ac-color: rgba(80, 250, 123, 1);
// Active text color // Active text color
--act-color: rgb(37, 38, 40); --act-color: rgba(18, 18, 18, 1);
// Auto-complete color
--atc-color: rgba(18, 18, 18, 1);
} }
@mixin lightTheme { @mixin lightTheme {
// Dark Background color // Background color
--bg-dark-color: #eeeeee; --bg-color: rgba(255, 255, 255, 1);
// Light Background color // Light Background color
--bg-light-color: rgba(0, 0, 0, 0.02); --bg-light-color: rgba(0, 0, 0, 0.02);
//Dark Background color // Dark Background color
--bg-dark-color: rgba(0, 0, 0, 0.05); --bg-dark-color: rgba(0, 0, 0, 0.02);
// Background color
--bg-color: #ffffff;
// Auto-complete color
--atc-color: #ebebeb;
// Text color // Text color
--fg-color: #525252; --fg-color: rgba(0, 0, 0, 1);
// Light Text color // Light Text color
--fg-light-color: rgb(150, 155, 160); --fg-light-color: rgba(0, 0, 0, 0.6);
// Border color // Border color
--brd-color: #eeeeed; --brd-color: rgba(0, 0, 0, 0.1);
// Error color // Error color
--err-color: rgba(0, 0, 0, 0.02); --err-color: rgba(0, 0, 0, 0.1);
// Acent color // Acent color
--ac-color: #57b5f9; --ac-color: rgba(80, 250, 123, 1);
// Active text color // Active text color
--act-color: #ffffff; --act-color: rgba(255, 255, 255, 1);
// Auto-complete color
--atc-color: rgba(255, 255, 255, 1);
} }
@mixin blackTheme { @mixin blackTheme {
// Dark Background color
--bg-dark-color: rgb(8, 8, 8);
// Light Background color
--bg-light-color: rgba(255, 255, 255, 0.02);
//Dark Background color
--bg-dark-color: rgba(255, 255, 255, 0.02);
// Background color // Background color
--bg-color: #000000; --bg-color: rgba(0, 0, 0, 1);
// Auto-complete color // Light Background color
--atc-color: rgb(18, 18, 18); --bg-light-color: rgba(255, 255, 255, 0);
// Dark Background color
--bg-dark-color: rgba(255, 255, 255, 0.02);
// Text color // Text color
--fg-color: rgb(250, 250, 250); --fg-color: rgba(255, 255, 255, 1);
// Light Text color // Light Text color
--fg-light-color: rgb(100, 100, 100); --fg-light-color: rgba(255, 255, 255, 0.5);
// Border color // Border color
--brd-color: rgb(16, 16, 16); --brd-color: rgba(255, 255, 255, 0.05);
// Error color // Error color
--err-color: rgba(255, 255, 255, 0.02); --err-color: rgba(255, 255, 255, 0.05);
// Acent color // Acent color
--ac-color: #50fa7b; --ac-color: rgba(80, 250, 123, 1);
// Active text color // Active text color
--act-color: #000000; --act-color: rgba(0, 0, 0, 1);
// Auto-complete color
--atc-color: rgba(0, 0, 0, 1);
} }
:root { :root {

View File

@@ -50,6 +50,7 @@
border-radius: 0 0 8px 8px; border-radius: 0 0 8px 8px;
z-index: 9999; z-index: 9999;
transition: transform 0.2s ease-out; transition: transform 0.2s ease-out;
box-shadow: 0 5px 30px rgba(black, 0.1);
li { li {
width: 100%; width: 100%;

View File

@@ -307,7 +307,7 @@ ol li {
} }
.entry { .entry {
border-bottom: 1px solid var(--brd-color); border-bottom: 1px dashed var(--brd-color);
padding: 16px 0; padding: 16px 0;
} }

View File

@@ -525,7 +525,7 @@ export default {
document.documentElement.style.setProperty("--ac-color", color); document.documentElement.style.setProperty("--ac-color", color);
document.documentElement.style.setProperty( document.documentElement.style.setProperty(
"--act-color", "--act-color",
vibrant ? "rgb(37, 38, 40)" : "#ffffff" vibrant ? "rgb(18, 18, 18)" : "#ffffff"
); );
})(); })();
}, },
@@ -539,7 +539,7 @@ export default {
.querySelector("meta[name=theme-color]") .querySelector("meta[name=theme-color]")
.setAttribute( .setAttribute(
"content", "content",
this.$store.state.postwoman.settings.THEME_TAB_COLOR || "#252628" this.$store.state.postwoman.settings.THEME_TAB_COLOR || "#121212"
); );
// Initializes the PWA code - checks if the app is installed, // Initializes the PWA code - checks if the app is installed,

View File

@@ -100,7 +100,7 @@ export default {
}, },
{ {
name: "msapplication-TileColor", name: "msapplication-TileColor",
content: "#252628" content: "#121212"
}, },
{ {
name: "msapplication-tap-highlight", name: "msapplication-tap-highlight",
@@ -257,14 +257,14 @@ export default {
display: "standalone", display: "standalone",
theme_color: "#252628", theme_color: "#121212",
background_color: "#252628", background_color: "#121212",
start_url: `${routerBase.router.base}` start_url: `${routerBase.router.base}`
}, },
meta: { meta: {
description: meta.shortDescription, description: meta.shortDescription,
theme_color: "#252628" theme_color: "#121212"
}, },
icons: (sizes => { icons: (sizes => {

2772
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -38,7 +38,7 @@
"devDependencies": { "devDependencies": {
"cypress": "^3.8.0", "cypress": "^3.8.0",
"node-sass": "^4.13.0", "node-sass": "^4.13.0",
"sass-loader": "^7.3.1", "sass-loader": "^8.0.0",
"start-server-and-test": "^1.10.6" "start-server-and-test": "^1.10.6"
} }
} }

View File

@@ -156,17 +156,17 @@ export default {
// set the relevant values. // set the relevant values.
themes: [ themes: [
{ {
color: "#252628", color: "#121212",
name: "Kinda Dark", name: "Kinda Dark",
class: "", class: "",
aceEditor: "dracula" aceEditor: "twilight"
}, },
{ {
color: "#ffffff", color: "#ffffff",
name: "Clearly White", name: "Clearly White",
vibrant: true, vibrant: true,
class: "light", class: "light",
aceEditor: "xcode" aceEditor: "iplastic"
}, },
{ {
color: "#000000", color: "#000000",
@@ -180,8 +180,8 @@ export default {
vibrant: window.matchMedia("(prefers-color-scheme: light)").matches, vibrant: window.matchMedia("(prefers-color-scheme: light)").matches,
class: "auto", class: "auto",
aceEditor: window.matchMedia("(prefers-color-scheme: light)").matches aceEditor: window.matchMedia("(prefers-color-scheme: light)").matches
? "xcode" ? "iplastic"
: "dracula" : "twilight"
} }
], ],
// You can define a new color here! It will simply store the color value. // You can define a new color here! It will simply store the color value.
@@ -273,7 +273,7 @@ export default {
document.documentElement.style.setProperty("--ac-color", color); document.documentElement.style.setProperty("--ac-color", color);
document.documentElement.style.setProperty( document.documentElement.style.setProperty(
"--act-color", "--act-color",
vibrant ? "rgb(37, 38, 40)" : "#f8f8f2" vibrant ? "rgba(18, 18, 18, 1)" : "rgba(255, 255, 255, 1)"
); );
this.applySetting("THEME_COLOR", color.toUpperCase()); this.applySetting("THEME_COLOR", color.toUpperCase());
this.applySetting("THEME_COLOR_VIBRANT", vibrant); this.applySetting("THEME_COLOR_VIBRANT", vibrant);