mirror of
https://ghproxy.net/https://github.com/AlxMedia/boxstyle.git
synced 2025-08-26 16:44:24 +08:00
1.1.3
This commit is contained in:
parent
ab2d46f862
commit
db415c90c9
4 changed files with 34 additions and 11 deletions
17
dark.css
17
dark.css
|
@ -88,6 +88,23 @@ a:hover,
|
|||
background: -webkit-linear-gradient(top, rgba(26,26,26,1) 0%,rgba(0,0,0,0) 100%);
|
||||
background: linear-gradient(to bottom, rgba(26,26,26,1) 0%,rgba(0,0,0,0) 100%); }
|
||||
|
||||
/* header : nav mobile
|
||||
/* ------------------------------------ */
|
||||
#nav-mobile.nav-container { background: #222; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
|
||||
#nav-mobile .nav-toggle { background: transparent; color: #fff; }
|
||||
#nav-mobile .nav-text { color: #999; }
|
||||
|
||||
@media only screen and (max-width: 719px) {
|
||||
|
||||
#nav-mobile .nav-wrap { background: #222; }
|
||||
#nav-mobile .nav li a { color: #999; border-bottom: 1px solid #292929; }
|
||||
#nav-mobile .nav li > a:hover,
|
||||
#nav-mobile .nav li.current_page_item > a,
|
||||
#nav-mobile .nav li.current-menu-item > a,
|
||||
#nav-mobile .nav li.current-post-parent > a { background: transparent; }
|
||||
|
||||
}
|
||||
|
||||
/* header : nav header
|
||||
/* ------------------------------------ */
|
||||
#nav-header.nav-container { background: #222; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
|
||||
|
|
|
@ -546,15 +546,18 @@ if ( ! function_exists( 'boxstyle_body_class' ) ) {
|
|||
function boxstyle_body_class( $classes ) {
|
||||
$classes[] = boxstyle_layout_class();
|
||||
|
||||
// Scheme class.
|
||||
$current_mode = 'light';
|
||||
if ( isset( $_COOKIE['theme_mode'] ) && ! empty( $_COOKIE['theme_mode'] ) ) {
|
||||
$current_mode = $_COOKIE['theme_mode'];
|
||||
if ( get_theme_mod('light-dark-switch','off') =='on' ) {
|
||||
|
||||
// Scheme class.
|
||||
$current_mode = 'light';
|
||||
if ( isset( $_COOKIE['theme_mode'] ) && ! empty( $_COOKIE['theme_mode'] ) ) {
|
||||
$current_mode = $_COOKIE['theme_mode'];
|
||||
}
|
||||
if ( 'dark' === $current_mode ) {
|
||||
$classes[] = 'dark-mode';
|
||||
}
|
||||
|
||||
}
|
||||
if ( 'dark' === $current_mode ) {
|
||||
$classes[] = 'dark-mode';
|
||||
}
|
||||
|
||||
if ( get_theme_mod( 'boxed','off' ) != 'on' ) { $classes[] = 'full-width'; }
|
||||
if ( get_theme_mod( 'boxed','off' ) == 'on' ) { $classes[] = 'boxed'; }
|
||||
if ( has_nav_menu( 'topbar' ) ) { $classes[] = 'topbar-enabled'; }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Contributors: alxmedia
|
||||
Requires at least: 5.0
|
||||
Tested up to: 5.0
|
||||
Version: 1.1.2
|
||||
Version: 1.1.3
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0
|
||||
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
|
@ -81,6 +81,9 @@ Sidebar images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.1.3 - 2019-02-07 =
|
||||
* Fix minor styling issues for dark mode
|
||||
|
||||
= 1.1.2 - 2019-02-06 =
|
||||
* Add a styling option to enable light/dark theme mode switch - special thanks to Nilambar Sharma
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Theme Name: Boxstyle
|
||||
Theme URI: http://alxmedia.se/themes/boxstyle/
|
||||
Version: 1.1.2
|
||||
Version: 1.1.3
|
||||
Description: <a href="http://alxmedia.se/themes/boxstyle/">Boxstyle</a> is a flexible personal blog theme with plenty of options. Optimized for all devices, this theme will stand out with a unique colorful left bar with social links and a header profile image, name and description. It includes a featured posts slider, a day and night mode switch and three different blog layouts: standard, grid and list. Set the theme to any width and accent color you wish. Disable or enable the wave style. Use a sidebar to the left or right, or disable it entirely - it is all up to you.
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alxmedia.se
|
||||
|
@ -613,7 +613,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
|
||||
/* common */
|
||||
#nav-mobile .nav-wrap { background: #fff; }
|
||||
#nav-mobile .nav { padding: 0 0 20px; }
|
||||
#nav-mobile .nav { padding: 0 0 50px; }
|
||||
#nav-mobile .nav li a { color: #333; border-bottom: 1px solid #f4f4f4; }
|
||||
/* level 1 */
|
||||
#nav-mobile .nav li > a:hover,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue