Skip to content

Commit

Permalink
modified: README.txt
Browse files Browse the repository at this point in the history
	modified:   changelog.txt
	modified:   fonts.css
	modified:   functions.php
	modified:   grids.css
	modified:   images/dummy.png
	modified:   languages/css/ja.css
	modified:   lib/csscolor.css.php
	modified:   lib/hooks.php
	modified:   plugins/plugins-presentation.php
	modified:   raindrops.js
	modified:   responsiveness.css
	modified:   style.css
  • Loading branch information
tenman committed Dec 4, 2017
1 parent eae7a75 commit 882e732
Show file tree
Hide file tree
Showing 13 changed files with 1,256 additions and 397 deletions.
6 changes: 3 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Raindrops

Contributors: nobita
Requires at least: WordPress 4.5
Tested up to: WordPress 4.8.3
Requires at least: WordPress 4.6
Tested up to: WordPress 4.9
Stable tag: 1.487
Version: 1.497
Version: 1.498
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-colors, custom-header, custom-background, custom-menu, editor-style, theme-options, threaded-comments, sticky-post, translation-ready, post-formats, featured-images, full-width-template, rtl-language-support, microformats, grid-layout, flexible-header, custom-logo, featured-image-header, footer-widgets
Expand Down
95 changes: 95 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,99 @@
Changelog -----------------------------------
version:1.498

Overview of Changes

Focus Wide Sidebar Design.

WordPress 4.9 has greatly advanced the extension of non-post content such as sidebar.
Custom html widgets allow you to place content freely in the sidebar and galleries can now be displayed in the sidebar.
Schedule function was also added.

Until now, the sidebar was just the place to place the link, but you may be able to use it more effectively with your idea

In order to help your idea, I reconsidered the design of the wide sidebar of Raindrops

wider sidebar is ( Customize / Presentation / Layout and Sidebars ) Extra Sidebar Width 50%, 66%, 75%

Many widget displays have been refreshed for these sidebar settings

Please preview with the customizer and check how it looks. Also, please give me your feedback.
In addition, I have devised modal boxes and tab display further to make use of wide sidebar conveniently.

Modified Gallery widget in Sidebar( default sidebar, extra sidebar )

Raindrops Default sidebar can be set in the range of minimum 160px width up to 300px width.
The Extra Sidebar can be set in the relative range of 25% to 75% in proportion to posting.
Since the width used relatively often is about 300px,
when added the gallery, the image is displayed very small. If the link is not used, it is very hard to see

When linkless gallery is set, added a function to pop up when clicking images
Image size of linkless gallery, midium or more is recommended

Modified Raindrops Modal Box
A modal box is a mechanism to create a modal box easily from ancient times.
You can easily create a modal box simply by pasting the following source in the entry content.
Since the href attribute and data-modal-id are automatically converted, you can create as many modal boxes as you paste.

<a href="#raindrops_modal_fragment_id_automatic" class="modal-link">Link displaying modal box</a>

<div class="rd-modal" data-modal-id="raindrops_modal_fragment_id_automatic">
<div>
<div class="body">
https://youtu.be/dFf4AgBNR1E
</div>
<div class="footer">
<a href="#page" ><span class="lb-close color5 pad-s corner">Close</span></a>
</div>
</div>
</div>

I added the function so that this function works not only in the entry content but also in the sidebar( with Custom HTML Widget ).

This modal box has some drawbacks to date. That is, if youtube video is placed in a modal box,
youtube video continues to play even if you press the close button during playback.

Improved to stop video when pushing the Close button.

tested with
youtube.com, reverbnation.com, cloudup.com, videopress.com, www.mixcloud.com, ted.com, soundcloud.com, wordpress.tv

Not yet, audio shortcode

Modified Raindrops Tab Box

A layout that saves space on the WEB page is easily realized.
You can easily create a Tab Box simply by pasting the following source in the entry content and Custom HTML Widget.

<ul class="raindrops-tab-list clearfix" role="tablist">
<li class="dummy">Tab Area</li>
</ul>
<div class="raindrops-tab-content clearfix">
<div class="raindrops-tab-page">
<h3>Tab1</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="raindrops-tab-page">
<h3>Tab2</h3>

<p>Lorem ipsum dolor sit amet, ... </p>
</div>
<div class="raindrops-tab-page">
<h3>Tab3</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
</div>

Added current Tab CSS and General adjustment of display


Files Modified


Description of Code Changes
please see https://themes.trac.wordpress.org/changeset?old_path=raindrops/1.497&new_path=raindrops/1.498
-----------------------------------------------Changelog -----------------------------------
Changelog -----------------------------------
version:1.497

Overview of Changes
Expand Down
32 changes: 31 additions & 1 deletion fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
/**
* Font family
========================================================================== */

body{
font:arial,helvetica,clean,sans-serif;
line-height:1.231;
}

#access .menu,
#access div.menu ul{
font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
Expand Down Expand Up @@ -137,10 +139,17 @@ tt {
.image-caption .section-title{
font-size:138.5%;
}
.topsidebar .widgettitle,
.entry-content h3.sans-serif,
.page .raindrops-tag-posts .enty-title,
.page .raindrops-category-posts .entry-title,
.page .raindrops-recent-posts .entry-title,
.yui-b > .yui-gf #wp-calendar caption,
.yui-b > .yui-gd #wp-calendar caption,
.yui-b > .yui-g #wp-calendar caption,
.yui-b > .yui-gf #wp-calendar tbody td,
.yui-b > .yui-gd #wp-calendar tbody td,
.yui-b > .yui-g #wp-calendar tbody td,
.sticky-widget #wp-calendar caption,
.sticky-widget #wp-calendar tbody td,
.rsidebar .widgettitle,
Expand Down Expand Up @@ -215,34 +224,55 @@ h1,h2,h3,h4,h5,h6,
/**
* Font Classes
========================================================================== */
/**
* font weight
*/
.b1 .site-title-link,
.entry-title.b1,
.thin,
.b1{
font-weight:100;
}
.b2 .site-title-link,
.entry-title.b2,
.b2{
font-weight:200;
}
.b3 .site-title-link,
.entry-title.b3,
.b3{
font-weight:300;
}
.b4 .site-title-link,
.entry-title.b4,
.b4{
font-weight:400;
}
.b5 .site-title-link,
.entry-title.b5,
.b5{
font-weight:500;
}
.b6 .site-title-link,
.entry-title.b6,
.b6{
font-weight:600;
}
.b7 .site-title-link,
.entry-title.b7,
.bold,
.b7{
font-weight:700;
}
.b8 .site-title-link,
.entry-title.b8,
.b8{
font-weight:800;
}
.b9 .site-title-link,
.entry-title.b9,
.b9{
font-weight:800;
font-weight:900;
}
.small-caps{
font-variant:small-caps;
Expand Down
50 changes: 47 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,10 @@ function raindrops_add_share_link( $posted_in = '' ) {
$array_options = array(
' - - - ' => array( 'type' => '', 'url' => '', 'icon' => '' ),
'tweet' => array( 'type' => 'link', 'url' => 'https://twitter.com/intent/tweet?text=%title%&amp;url=%url%', 'icon' => '' ),
'html' => array( 'type' => 'data', 'url' => 'data:text', 'icon' => '' )
/* @1.498
* Browser Stop Support
* 'html' => array( 'type' => 'data', 'url' => 'data:text', 'icon' => '' )
*/
);
$array_options = apply_filters( 'raindrops_add_share_link_args', $array_options );

Expand Down Expand Up @@ -1863,7 +1866,11 @@ function raindrops_gradient( $selector ) {
function raindrops_add_stylesheet() {

global $raindrops_current_theme_name, $raindrops_current_data_version, $raindrops_css_auto_include, $raindrops_fallback_human_interface_show, $raindrops_tooltip, $wp_scripts, $raindrops_minified_suffix, $raindrops_load_minified_css_js;

/* 1.498 jquery in footer */
wp_scripts()->add_data( 'jquery', 'group', 1 );
wp_scripts()->add_data( 'jquery-core', 'group', 1 );
wp_scripts()->add_data( 'jquery-migrate', 'group', 1 );

if( ! is_user_logged_in() ) {
/* @since 1.490 */
$raindrops_current_data_version = null;
Expand Down Expand Up @@ -2434,6 +2441,11 @@ function raindrops_embed_css() {
#doc3 #container:not(.rd-expand-sidebar) .first+.yui-u{
display:none;
}
/* @1.498 */
#doc5 #container:not(.rd-expand-sidebar) .entry-content .first+.yui-u,
#doc3 #container:not(.rd-expand-sidebar) .entry-content .first+.yui-u{
display:block;
}
#doc5 .button-wrapper,
#doc3 .button-wrapper{
position:relative;
Expand Down Expand Up @@ -5047,6 +5059,7 @@ function raindrops_is_fluid() {
"\n#access{min-width:" . $raindrops_fluid_minimum_width . 'px;}' .
'.raindrops-auto-fit-width, ' .
"\n#doc5 .static-front-content,
.page-template-front-page #doc5 .topsidebar,
#doc5 .front-page-top-container,
.page-template-page-featured .poster .line,
.page-template-page-featured .page article,
Expand Down Expand Up @@ -11899,6 +11912,8 @@ function raindrops_automatic_modal_rel_rev( $content ) {
$flagment_link = esc_url( get_permalink( $post->ID ) . '#' . $unique_id );
$result .= str_replace( array( 'raindrops_modal_fragment_id_automatic', '_fragment_id_automatic', ), array( $unique_id, $flagment_link ), $modal );
}

$result = str_replace( 'data-modal-id=', 'id=', $result );
return $result;
}
return $content;
Expand Down Expand Up @@ -13768,7 +13783,7 @@ function raindrops_font_size_class(){
'.raindrops-pinup-entries .entry-title' => array( $default_basefont_val * 1.231,'px'),
'.raindrops-post-format-chat dt' => array( $default_basefont_val * 1.231,'px'),
'.page .edit-link' => array( $default_basefont_val,'px'),
'#raindrops-recent-posts .title,.raindrops-category-posts .title,.raindrops-tag-posts .title' => array( $default_basefont_val * 2,'px'),
'#raindrops-recent-posts .title,.raindrops-category-posts .title,.raindrops-tag-posts .title' => array( $default_basefont_val * 1.539,'px'),
'.portfolio .entry-title' => array( $default_basefont_val * 1.231,'px'),
'.raindrops-monthly-archive-prev-next-avigation, .pagination, .page-template-page-featured .widget' => array( $default_basefont_val,'px'),
'.archive-year-links .current-year,.datetable > h2' => array( $default_basefont_val * 1.539,'px'),
Expand Down Expand Up @@ -13886,6 +13901,35 @@ function raindrops_add_codemirror_for_raindrops_custom_css_field(){
);
}
}
if ( ! function_exists( 'raindrops_automatic_modal_rel_rev_sidebar' ) ) {
/**
*
* @param type $content
* @param type $instance
* @param type $this
* @return type
* @since 1.498
*/
function raindrops_automatic_modal_rel_rev_sidebar( $content, $instance, $this ) {

if ( false !== strpos( $content, 'raindrops_modal_fragment_id_automatic' ) ) {
$id = md5($instance["content"]);
$modals = explode( '#raindrops_modal', $content );
$result = '';
foreach ( $modals as $key => $modal ) {

$unique_id = 'modal_box_' . esc_attr($id) . '_' . absint( $key );
$flagment_link = '#' . $unique_id;
$result .= str_replace( array( 'raindrops_modal_fragment_id_automatic', '_fragment_id_automatic', ), array( $unique_id, $flagment_link ), $modal );
}

$result = str_replace( 'data-modal-id=', 'id=', $result );

return $result;
}
return $content;
}
}
/**
*
*
Expand Down
Loading

0 comments on commit 882e732

Please sign in to comment.