Added Dark/Light mode feature.
This commit is contained in:
+8
-15
@@ -1,7 +1,5 @@
|
||||
.App {
|
||||
min-height: 100vh;
|
||||
background-color: #1f2c38;
|
||||
color: white;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@@ -25,8 +23,6 @@
|
||||
border: none;
|
||||
width: 35%;
|
||||
min-width: 300px;
|
||||
color: white;
|
||||
background-color:#273949;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
}
|
||||
|
||||
@@ -44,24 +40,17 @@
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
color: #ffffffb6;
|
||||
background-color:#273949;
|
||||
border: none;
|
||||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
.btn:active { box-shadow: 0px 0px 10px rgb(83, 143, 255); }
|
||||
|
||||
.add-btn {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background-color: rgb(76, 117, 170);
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
box-shadow: 0px 0px 10px rgb(83, 143, 255);
|
||||
}
|
||||
|
||||
textarea:focus, input:focus{
|
||||
outline: none;
|
||||
}
|
||||
@@ -75,7 +64,11 @@ textarea:focus, input:focus{
|
||||
text-align: center;
|
||||
padding-top: 5%;
|
||||
padding-bottom: 5%;
|
||||
background-color:#273949;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
margin: 20px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.dark-light-btn {
|
||||
margin-left: 10px;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
@@ -18,7 +18,6 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
|
||||
background-color: #1f2c38;
|
||||
padding: 5px;
|
||||
top: 15%;
|
||||
left: 30%;
|
||||
@@ -42,8 +41,6 @@
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
color: #ffffffb6;
|
||||
background-color:#273949;
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
||||
+16
-15
@@ -28,7 +28,6 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color:#273949;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
}
|
||||
|
||||
@@ -50,7 +49,6 @@
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
pointer-events: all;
|
||||
text-decoration: none;
|
||||
color: rgb(194, 193, 193);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@@ -66,20 +64,10 @@
|
||||
|
||||
|
||||
.edit-btn {
|
||||
position: relative;
|
||||
border-radius: 100%;
|
||||
margin: 20px 20px 20px 0px;
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
padding: 10px;
|
||||
font-size: 1.3rem;
|
||||
cursor: pointer;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
color: #ffffffb6;
|
||||
background-color: #1f2c38;
|
||||
border: none;
|
||||
transition: background-color 0.1s;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.edit-btn:hover {
|
||||
@@ -106,7 +94,6 @@
|
||||
|
||||
.tags div {
|
||||
margin-right: 10px;
|
||||
color: rgb(126, 208, 255);
|
||||
}
|
||||
|
||||
.tags div::before {
|
||||
@@ -125,15 +112,29 @@
|
||||
}
|
||||
|
||||
.delete {
|
||||
margin: 20px 20px 20px 0px;
|
||||
background-color:#273949;
|
||||
float: right;
|
||||
font-size: 1.1rem;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
position: relative;
|
||||
border-radius: 100%;
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: 10px;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
background-color:#273949;
|
||||
border: none;
|
||||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
.delete:hover {
|
||||
background-color: rgba(255, 65, 65, 0.8);
|
||||
background-color: rgba(255, 75, 75, 0.8);
|
||||
color: #d8d8d8;
|
||||
}
|
||||
|
||||
.delete:active {
|
||||
|
||||
+1
-10
@@ -57,8 +57,6 @@
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
color: #ffffffb6;
|
||||
background-color:#273949;
|
||||
border: none;
|
||||
margin-top: 20px;
|
||||
display: block;
|
||||
@@ -67,13 +65,7 @@
|
||||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
.send-btn:hover {
|
||||
background-color: rgb(76, 117, 170);
|
||||
}
|
||||
|
||||
.send-btn:active {
|
||||
box-shadow: 0px 0px 10px rgb(83, 143, 255);
|
||||
}
|
||||
.send-btn:active { box-shadow: 0px 0px 10px rgb(83, 143, 255); }
|
||||
|
||||
@keyframes fadein {
|
||||
from { opacity: 0%; }
|
||||
@@ -87,6 +79,5 @@
|
||||
}
|
||||
|
||||
.title {
|
||||
color: darkgray;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
+1
-8
@@ -18,7 +18,6 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
|
||||
background-color: #1f2c38;
|
||||
padding: 5px;
|
||||
top: 15%;
|
||||
left: 25%;
|
||||
@@ -41,16 +40,10 @@
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
color: #ffffffb6;
|
||||
background-color:#273949;
|
||||
border: none;
|
||||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
.sort-by-btn:hover {
|
||||
background-color: rgb(76, 117, 170);
|
||||
}
|
||||
|
||||
|
||||
.sort-by-btn:active {
|
||||
box-shadow: 0px 0px 10px rgb(83, 143, 255);
|
||||
}
|
||||
|
||||
+143
-3
@@ -6,9 +6,149 @@ body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
background-color: #1f2c38;
|
||||
text-shadow: 0px 1px 1px #1f2c38;
|
||||
text-shadow: 0px 1px 2px #000000;
|
||||
color: white;
|
||||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
*::selection {
|
||||
background-color: rgba(115, 192, 255, 0.9);
|
||||
}
|
||||
background-color: rgba(120, 120, 120, 0.9);
|
||||
color: white;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* Dark Mode settings (Default) */
|
||||
|
||||
.delete {
|
||||
background-color: #1f2c38;
|
||||
color: #ffffffb6;
|
||||
}
|
||||
|
||||
.no-results {
|
||||
background-color: #1f2c38;
|
||||
}
|
||||
|
||||
.send-btn {
|
||||
background-color:#273949;
|
||||
color: #ffffffb6;
|
||||
}
|
||||
|
||||
.sort {
|
||||
background-color: #1f2c38;
|
||||
}
|
||||
|
||||
.sort-by-btn {
|
||||
background-color:#273949;
|
||||
color: #ffffffb6;
|
||||
}
|
||||
|
||||
.btn:hover, .sort-by-btn:hover, .send-btn:hover {
|
||||
background-color: rgb(76, 117, 170);
|
||||
}
|
||||
|
||||
.tags div {
|
||||
color: rgb(126, 208, 255);
|
||||
}
|
||||
|
||||
.title {
|
||||
color: darkgray;
|
||||
}
|
||||
|
||||
.list a {
|
||||
color: rgb(194, 193, 193);
|
||||
}
|
||||
|
||||
.btn {
|
||||
color: #ffffffb6;
|
||||
}
|
||||
|
||||
.no-results, .list-row {
|
||||
transition: background-color 0.1s;
|
||||
background-color:#273949;
|
||||
}
|
||||
|
||||
.search {
|
||||
transition: background-color 0.1s;
|
||||
background-color:#273949;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.filter {
|
||||
background-color: #1f2c38;
|
||||
}
|
||||
|
||||
.filter > label {
|
||||
background-color:#273949;
|
||||
color: #ffffffb6;
|
||||
}
|
||||
|
||||
/* Light Mode settings */
|
||||
|
||||
.light {
|
||||
text-shadow: 0px 1px 2px #ffffff;
|
||||
background-color:rgb(233, 220, 179);
|
||||
color: rgb(64, 64, 64);
|
||||
}
|
||||
|
||||
.light .list-row {
|
||||
background-color: lightyellow;
|
||||
}
|
||||
|
||||
.light .btn {
|
||||
background-color: lightyellow;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.light .delete {
|
||||
background-color: lightyellow;
|
||||
color: rgb(176, 176, 176);
|
||||
}
|
||||
|
||||
.light input {
|
||||
background-color: lightyellow;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.light .box, .light .edit-btn {
|
||||
background-color:rgb(233, 220, 179);
|
||||
}
|
||||
|
||||
.light .title {
|
||||
color: rgb(105, 105, 105);
|
||||
}
|
||||
|
||||
.light .list a {
|
||||
color: rgb(102, 102, 102);
|
||||
}
|
||||
|
||||
.light .tags div {
|
||||
color: rgb(9, 139, 214);
|
||||
}
|
||||
|
||||
.light .filter, .light .sort {
|
||||
background-color: rgb(233, 220, 179);
|
||||
}
|
||||
|
||||
.light .filter > label {
|
||||
background-color: lightyellow;
|
||||
color: #4b4b4bb6;
|
||||
}
|
||||
|
||||
.light .sort-by-btn {
|
||||
background-color:lightyellow;
|
||||
color: #4b4b4bb6;
|
||||
}
|
||||
|
||||
.light .send-btn {
|
||||
background-color: lightyellow;
|
||||
color: #717171b6;
|
||||
}
|
||||
|
||||
.light .sort-by-btn:hover, .light .btn:hover, .light .send-btn:hover {
|
||||
background-color: rgb(55, 131, 237);
|
||||
color: #d8d8d8;
|
||||
}
|
||||
|
||||
.light .no-results {
|
||||
background-color: lightyellow;
|
||||
}
|
||||
Reference in New Issue
Block a user