Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-03-31 17:19:23 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-03-31 17:19:23 +0300
commitc533ea6ffe9781ce724a13da8e7f410b6d86d769 (patch)
tree71a764ab101aadfe7d48908e48619f0e1607af0e /assets/scss/dark-mode.scss
parent53f450150583e09030851f89be84c06dd76ac69d (diff)
Add dark mode.
Diffstat (limited to 'assets/scss/dark-mode.scss')
-rw-r--r--assets/scss/dark-mode.scss146
1 files changed, 146 insertions, 0 deletions
diff --git a/assets/scss/dark-mode.scss b/assets/scss/dark-mode.scss
new file mode 100644
index 0000000..bd393ac
--- /dev/null
+++ b/assets/scss/dark-mode.scss
@@ -0,0 +1,146 @@
+@import "journal";
+
+$dark-mode-text: #ccc;
+
+body.night {
+ background: $dark-mode-back-container-background;
+ :root{
+ --color_555: #ccc;
+ }
+
+ img {
+ opacity: .8;
+ }
+
+ blockquote {
+ * {
+ color: $deep-light-accent;
+ }
+ }
+
+ code {
+ color: $deep-light-accent;
+ }
+
+ a {
+ color: $light-accent;
+ &:hover {
+ color: $deep-light-accent !important;
+ }
+ @media screen and (max-width: $single-column-max-width) {
+ &:hover {
+ text-decoration: none !important;
+ }
+ }
+ }
+
+ .nav-link-list {
+ $nav-item-hover-color-lighten: 30%;
+ $nav-item-active-background-alpha: 0.03;
+ $nav-item-active-color-lighten: 20%;
+ flex-grow: 1;
+ .nav-link-item {
+ color: $dark-mode-text !important;
+ &:hover {
+ color: lighten($color-accent, $nav-item-hover-color-lighten) !important;
+ }
+ &.active {
+ color: lighten($color-accent, $nav-item-active-color-lighten) !important;
+ }
+ }
+ }
+
+ .stream-container {
+ .post{
+ background: $dark-mode-front-container-background;
+ .post-comment-wrapper *{
+ color: $dark-mode-text !important;
+ }
+ }
+ .post-list-container {
+ background: $dark-mode-back-container-background;
+ &,
+ > * {
+ .post-item-wrapper {
+ @media screen and (max-width: $single-column-max-width) {
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
+ background: $dark-mode-front-container-background;
+ }
+ .post-item{
+ background: $dark-mode-front-container-background;
+ }
+ &:not(.post-item-wrapper-no-hover):hover {
+ * {
+ color: $deep-light-accent;
+ }
+ }
+ }
+ }
+ }
+ }
+ * {
+ color: $dark-mode-text;
+ }
+
+ .single-column-nav-container {
+ @media screen and (max-width: $single-column-max-width) {
+ .nav-dropdown-toggle {
+ &:hover {
+ color: #3f587d !important;
+ }
+ }
+ .navbar-brand {
+ color: $dark-mode-text;
+ &:hover {
+ color: $dark-mode-text;
+ }
+ }
+ .nav-background {
+ background: $dark-mode-front-container-background;
+ box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
+ }
+ }
+ }
+
+ .single-column-header-container {
+ @media screen and (max-width: $single-column-max-width) {
+ * {
+ font-family: $sans-preferred-font-list;
+ color: $deep-light-accent;
+ }
+ .single-column-header-title {
+ color: $dark-mode-text;
+ }
+ .single-column-header-subtitle {
+ color: $dark-mode-text;
+ }
+ }
+ }
+
+
+ .single-column-drawer-container {
+ @media screen and (max-width: $single-column-max-width) {
+ .drawer-content {
+ background: $dark-mode-back-container-background;
+ .drawer-menu {
+ .drawer-menu-item {
+ color: $dark-mode-text;
+ &.active {
+ border-right: 2px solid $color-accent;
+ color: $light-accent;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ .toc{
+ a {
+ color: $dark-mode-text;
+ }
+ .toc-active{
+ color: $light-accent !important;
+ }
+ }
+} \ No newline at end of file