{{ Math.ceil(scrollProgress * 100) }}
@@ -73,19 +73,16 @@ export default {
display: inline-block;
position: relative;
circle {
- fill: #000;
- fill-opacity: 0.6;
- transition: stroke-dashoffset 0.35s ease-out;
+ fill: var(--scheme-main-ter);
+ fill-opacity: 0.8;
+ transition: stroke-dashoffset 250ms ease-out;
transform: rotate(-90deg);
transform-origin: 50% 50%;
- stroke: #00d1b2;
+ stroke: var(--primary-color);
stroke-dashoffset: calc(276.32px - var(--progress) * 276.32px);
stroke-dasharray: 276.32px 276.32px;
stroke-width: 3;
will-change: stroke-dashoffset;
- html.has-light-theme & {
- fill-opacity: 0.1;
- }
}
.percent {
@@ -94,10 +91,6 @@ export default {
top: 0;
right: 0;
bottom: 0;
-
- html.has-light-theme & {
- color: #333;
- }
}
}
diff --git a/assets/components/ScrollableView.vue b/assets/components/ScrollableView.vue
index 3804347f..ad3c4c00 100644
--- a/assets/components/ScrollableView.vue
+++ b/assets/components/ScrollableView.vue
@@ -13,12 +13,7 @@
-
@@ -93,10 +88,10 @@ section {
.scrollbar-progress {
text-align: right;
- margin-right: 125px;
+ margin-right: 110px;
.scroll-progress {
position: fixed;
- top: 30px;
+ top: 60px;
z-index: 2;
}
}
@@ -107,6 +102,34 @@ section {
button {
position: fixed;
bottom: 30px;
+ background-color: var(--secondary-color);
+ transition: background-color 1s ease-out;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
+ border: none !important;
+
+ &.has-more {
+ background-color: var(--primary-color);
+ animation-name: bounce;
+ animation-duration: 1000ms;
+ animation-fill-mode: both;
+ color: #fff;
+ }
+ }
+ }
+
+ @keyframes bounce {
+ 0%,
+ 20%,
+ 50%,
+ 80%,
+ 100% {
+ transform: translateY(0);
+ }
+ 40% {
+ transform: translateY(-30px);
+ }
+ 60% {
+ transform: translateY(-15px);
}
}
diff --git a/assets/components/Search.vue b/assets/components/Search.vue
index 2310bdd1..7490b090 100644
--- a/assets/components/Search.vue
+++ b/assets/components/Search.vue
@@ -75,17 +75,26 @@ export default {
width: 350px;
position: fixed;
padding: 10px;
- background: rgba(50, 50, 50, 0.9);
+ background: var(--scheme-main-ter);
top: 0;
right: 0;
border-radius: 0 0 0 5px;
z-index: 10;
-}
-.delete {
- margin-left: 1em;
-}
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
-.icon {
- padding: 10px 3px;
+ .delete {
+ margin-left: 1em;
+ }
+
+ .icon {
+ padding: 10px 3px;
+ }
+
+ .input {
+ color: var(--body-color);
+ &::placeholder {
+ color: var(--border-color);
+ }
+ }
}
diff --git a/assets/components/SideMenu.vue b/assets/components/SideMenu.vue
index c1e93dcf..14df69a1 100644
--- a/assets/components/SideMenu.vue
+++ b/assets/components/SideMenu.vue
@@ -79,10 +79,6 @@ aside {
overflow: hidden;
}
- .burger.is-white {
- color: #fff;
- }
-
.is-hidden-mobile.is-active {
display: block !important;
}
@@ -90,39 +86,7 @@ aside {
h1.title {
font-family: "Gafata", sans-serif;
-
- html.has-light-theme & {
- text-shadow: 1px 0px #ffdd57;
-
- &.has-text-warning {
- color: #ffcc00;
- }
- }
-}
-
-html.has-light-theme {
- .menu-label {
- color: #595959;
- }
-
- .menu-list a {
- color: #444;
-
- &:hover {
- background-color: #eee8e7;
- }
- &.is-active {
- background-color: #d8f0ca;
- border-color: #d8f0ca;
- }
- }
-
- .button {
- &:active,
- &.is-active {
- color: #ffdd57;
- }
- }
+ text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}
li.exited a {
@@ -133,7 +97,7 @@ li.exited a {
transition: transform 0.2s ease-out;
&.is-active {
pointer-events: none;
- color: #00d1b2;
+ color: var(--primary-color);
}
.router-link-exact-active & {
visibility: hidden;
diff --git a/assets/index.ejs b/assets/index.ejs
index 189fd427..b1ea838e 100644
--- a/assets/index.ejs
+++ b/assets/index.ejs
@@ -4,7 +4,10 @@
Dozzle
-
+
-
diff --git a/assets/pages/Settings.vue b/assets/pages/Settings.vue
index 3e02c7c8..3b1f70bb 100644
--- a/assets/pages/Settings.vue
+++ b/assets/pages/Settings.vue
@@ -118,23 +118,26 @@ export default {
},
computed: {
...mapState(["settings"]),
- ...["search", "size", "smallerScrollbars", "showTimestamp", "showAllContainers", "lightTheme"].reduce((map, name) => {
- map[name] = {
- get() {
- return this.settings[name];
- },
- set(value) {
- this.updateSetting({ [name]: value });
- },
- };
- return map;
- }, {}),
+ ...["search", "size", "smallerScrollbars", "showTimestamp", "showAllContainers", "lightTheme"].reduce(
+ (map, name) => {
+ map[name] = {
+ get() {
+ return this.settings[name];
+ },
+ set(value) {
+ this.updateSetting({ [name]: value });
+ },
+ };
+ return map;
+ },
+ {}
+ ),
},
};
diff --git a/assets/pages/__snapshots__/Index.spec.js.snap b/assets/pages/__snapshots__/Index.spec.js.snap
index 6b9b0689..ff36c359 100644
--- a/assets/pages/__snapshots__/Index.spec.js.snap
+++ b/assets/pages/__snapshots__/Index.spec.js.snap
@@ -2,7 +2,7 @@
exports[`
renders correctly 1`] = `