Skip to content

Commit

Permalink
14.1.1 (#8)
Browse files Browse the repository at this point in the history
- [Dark Mode] Fixed adminbar position when dark mode is on
  • Loading branch information
hrsetyono authored Jul 31, 2022
1 parent b55fa8f commit e0da63b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
17 changes: 15 additions & 2 deletions assets/css/components/_dark-mode.sass
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// without background, it can't be inverted
#main-container
background-color: var(--siteBg) // without background, it can't be inverted
background-color: var(--siteBg)

// Fix weird positioning bug with adminbar when dark mode is on
html[lang]
margin-top: 0 !important
#wpadminbar
position: sticky

body.h-is-dark &
filter: invert(100%) hue-rotate(180deg)

body.h-is-dark
filter: invert(100%) hue-rotate(180deg)

Expand All @@ -9,10 +19,13 @@ body.h-is-dark
filter: invert(100%) hue-rotate(180deg) brightness(1.2)

// image that you want to stay inverted
.wp-block-site-logo img
.wp-block-site-logo img,
.footer-mid .textwidget img
filter: none




.h-dark-toggle
cursor: pointer
display: flex
Expand Down
2 changes: 1 addition & 1 deletion dist/app.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'ca00c0f7e7308de31ad2063bc11886e6');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '1bd63158f09c4ffbcb6d0a355737ce59');
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: Edje Boilerplate Theme
Author: Pixel Studio
Author URI: https://pixelstudio.id
Description: Boilerplate WordPress theme to be used alongside Edje WP Library
Version: 14.2.1
Version: 14.1.1
Tags: private theme, edje, acf, woocommerce, custom-menu, editor-style
*/

Expand Down

0 comments on commit e0da63b

Please sign in to comment.