Skip to content

Commit

Permalink
modified: functions.php
Browse files Browse the repository at this point in the history
	modified:   lib/csscolor.css.php
	modified:   plugins/plugins-presentation.php
	modified:   raindrops.js
	modified:   style.css
  • Loading branch information
tenman committed Dec 10, 2017
1 parent cc206ae commit 79328a3
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 17 deletions.
12 changes: 7 additions & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3798,7 +3798,7 @@ function raindrops_loop_title() {

if ( !empty( $Raindrops_class_name ) ) {

echo "\n" . str_repeat( "\t", 7 ) . '<ul class="index archives ' . esc_attr( $Raindrops_class_name ) . '">';
echo "\n" . str_repeat( "\t", 7 ) . '<ul class="index archives list-' . esc_attr( $Raindrops_class_name ) . '">';
} else {

echo "\n" . str_repeat( "\t", 7 ) . '<ul class="index archives">';
Expand Down Expand Up @@ -13819,15 +13819,15 @@ function raindrops_font_size_class(){

$font_class .= '/* raindrops_font_size_class */';

$font_class .= '.search .pagetitle, .date .page-title,.archive .archives .title-wrapper .title, .entry-content h2, article .entry-title{
$font_class .= '.search .pagetitle, .date .page-title,.archive .archives .title-wrapper .title, .entry-content h2, article div .h2, article .entry-title{
font-size:230.7%;
}';
$font_class .= '.entry-content h3{
$font_class .= '.entry-content h3, article div .h3{
font-size:153.9%;
}';

$font_class .= '@media screen and (max-width : 640px){
.search .pagetitle, .date .page-title,.archive .archives .title-wrapper .title, .entry-content h2, article .entry-title{
.search .pagetitle, .date .page-title,.archive .archives .title-wrapper .title, .entry-content h2, article div .h2, article .entry-title{
font-size:'.$font_size.'px;
}
.entry-content h3{
Expand Down Expand Up @@ -13891,8 +13891,10 @@ function raindrops_add_codemirror_for_raindrops_custom_css_field(){

if ( 'page' !== get_current_screen()->id && 'post' !== get_current_screen()->id ) {
return;
}
if( ! function_exists( 'wp_enqueue_code_editor' ) ) {
return;
}

$settings = wp_enqueue_code_editor( array( 'type' => 'text/css' ) );

if ( false === $settings ) {
Expand Down
6 changes: 3 additions & 3 deletions lib/csscolor.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -3204,17 +3204,17 @@ function raindrops_indv_css_minimal() {
.rd-type-minimal .widget_archive li:before {
top:0;
}
/* @1.502
.yui-b > .yui-gf .widget_nav_menu li:first-child:before,
.yui-b > .yui-gd .widget_nav_menu li:first-child:before,
.yui-b > .yui-g .widget_nav_menu li:first-child:before,
.rd-type-minimal .widget_meta li:first-child:before,
.rd-type-minimal .widget_pages li:first-child:before,
,.rd-type-minimal .widget_pages li:first-child:before
.rd-type-minimal .widget_nav_menu li:first-child:before,
.rd-type-minimal .widget_archive li:first-child:before {
top:-.25em;
}
*/
.yui-b > .yui-gf .widget_nav_menu li:before,
.yui-b > .yui-gd .widget_nav_menu li:before,
.yui-b > .yui-g .widget_nav_menu li:before,
Expand Down
100 changes: 99 additions & 1 deletion plugins/plugins-presentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ function raindrops_gutenberg_enqueue_common_assets() {
add_action( 'enqueue_block_assets', 'raindrops_gutenberg_enqueue_common_assets' );

function raindrops_gutenberg_front_end_style(){

$theme_url = get_stylesheet_directory_uri();
$style =<<<GUTENBERG
/**
Expand Down Expand Up @@ -1118,6 +1118,9 @@ function raindrops_gutenberg_front_end_style(){
/**
* Block Latest Posts
*/
ul.wp-block-latest-posts li a{
font-size:108%;
}
.wp-block-latest-posts .h2-thumb:empty{
display:none;
}
Expand Down Expand Up @@ -1161,6 +1164,7 @@ function raindrops_gutenberg_front_end_style(){
ul.wp-block-latest-posts.is-grid li{
flex:1 1 auto;
margin: 0 .5em .5em 0;
background:url($theme_url/images/sticky.png);
}
.wp-block-latest-posts__post-date{
display:block;
Expand Down Expand Up @@ -1194,6 +1198,61 @@ function raindrops_gutenberg_front_end_style(){
.wp-block-latest-posts.is-grid.columns-2 li:nth-of-type(2n){
margin-right:0;
}
/**
* Block wp-block-embed-youtube
*/
.wp-block-embed-wordpress-tv.alignleft,
.wp-block-embed-reddit.alignleft,
.wp-block-embed-flickr.alignleft,
.wp-block-embed-kickstarter.alignleft,
.wp-block-embed-wordpress.alignleft,
.wp-block-embed-soundcloud.alignleft,
.wp-block-embed-slideshare.alignleft,
.wp-block-embed-ted.alignleft,
.wp-block-embed-issuu.alignleft,
.wp-block-embed-cloudup.alignleft,
.wp-block-embed-reverbnation.alignleft,
.wp-block-embed-youtube.alignleft{
clear:left;
margin-right:1em;
width:calc(50% - 1em - 40px);
}

.wp-block-embed-flickr > .oembed-container{
padding:0;
position:relative;
height:auto;

}
.wp-block-embed-flickr a{
display:block;
width:100%;
height:auto;
}
.wp-block-embed-flickr .oembed-container{
padding-top:0;
}
.wp-block-embed-flickr figcaption{
clear:both;
margin-top:4em;
display:block;
}
.wp-block-embed-wordpress-tv.alignright,
.wp-block-embed-reddit.alignright,
.wp-block-embed-flickr.alignright,
.wp-block-embed-kickstarter.alignright,
.wp-block-embed-wordpress.alignright,
.wp-block-embed-soundcloud.alignright,
.wp-block-embed-slideshare.alignright,
.wp-block-embed-ted.alignright,
.wp-block-embed-issuu.alignright,
.wp-block-embed-cloudup.alignright,
.wp-block-embed-reverbnation.alignright,
.wp-block-embed-youtube.alignright{
clear:right;
margin-left:1em;
width:calc(50% - 1em - 40px);
}
/**
* Block Gallery
*/
Expand Down Expand Up @@ -1351,6 +1410,10 @@ function raindrops_gutenberg_front_end_style(){
.wp-block-table.alignright{
/* todo rd-table-wrapper */
}
.wp-block-table td{
padding-top:1.125em;
padding-bottom:1.125em;
}
/**
* Block Preformatted, Code
*/
Expand Down Expand Up @@ -1499,6 +1562,8 @@ function raindrops_gutenberg_front_end_style(){
max-width:100%;
width:296px;
height:32px;
margin-left:auto;
margin-right:auto;
}

div[class|="wp-block"].alignleft,
Expand Down Expand Up @@ -1750,6 +1815,39 @@ function raindrops_gutenberg_front_end_style(){
margin-left:auto;
margin-right:auto;
}
/**
* Block wp-block-embed-youtube
*/
.wp-block-embed-wordpress-tv.alignleft,
.wp-block-embed-wordpress-tv.alignright,
.wp-block-embed-reddit.alignright,
.wp-block-embed-flickr.alignright,
.wp-block-embed-reddit.alignleft,
.wp-block-embed-flickr.alignleft,
figure.wp-block-embed-kickstarter.alignright,
figure.wp-block-embed-kickstarter.alignleft,
figure.wp-block-embed-wordpress.alignright,
figure.wp-block-embed-wordpress.alignleft,
figure.wp-block-embed-soundcloud.alignright,
figure.wp-block-embed-soundcloud.alignleft,
figure.wp-block-embed-slideshare.alignleft,
figure.wp-block-embed-slideshare.alignright,
figure.wp-block-embed-ted.alignright,
figure.wp-block-embed-ted.alignleft,
figure.wp-block-embed-issuu.alignleft,
figure.wp-block-embed-issuu.alignright,
figure.wp-block-embed-cloudup.alignright,
figure.wp-block-embed-cloudup.alignleft,
figure.wp-block-embed-reverbnation.alignright,
figure.wp-block-embed-reverbnation.alignleft,
figure.wp-block-embed-youtube.alignleft,
figure.wp-block-embed-youtube.alignright{
float:none;
clear:both;
margin-left:0;
width:100%;
max-width:none;
}
}
Expand Down
10 changes: 6 additions & 4 deletions raindrops.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ jQuery( function ( $ ) {
$(this).parents('.rd-modal').find('iframe').attr('src', iframe_src);
});

/* load iframe only modal link clicked */

$('.rd-modal iframe').each( function ( index ) {
var renamed_src = $(this).attr('src');

if (typeof renamed_src !== typeof undefined && renamed_src !== false) {
$( this).attr('data-rd-src', renamed_src ).attr('src', 'about:blank');
$( this).attr('data-rd-src', renamed_src );
}
});

Expand All @@ -423,9 +423,11 @@ jQuery( function ( $ ) {
var modal_box_id = $(this).attr('href');
modal_box_id = modal_box_id.replace(/^[^#]*/,"");
var iframe_src = $( modal_box_id ).find('iframe').attr('data-rd-src');

$( modal_box_id ).find('iframe').attr('src', iframe_src).removeAttr('data-rd-src');
if (typeof iframe_src !== typeof undefined && iframe_src !== false) {
$( modal_box_id ).find('iframe').attr('src', iframe_src).removeAttr('data-rd-src');
}

});


} );
20 changes: 16 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ b{
border-bottom:none;
text-decoration:none;
}
strong strong{
text-decoration:underline;
}
em,
i{
font-style: italic;
Expand Down Expand Up @@ -933,11 +936,12 @@ blockquote p:last-child{
padding:.5em;
overflow:auto;
}
/* @1.501
.textwidget cite,
.entry-content cite {
margin:.2em .5em;
padding:0 1em;
}
}*/
.textwidget blockquote cite,
.entry-content blockquote cite {
display:inline-block;
Expand Down Expand Up @@ -6524,9 +6528,9 @@ ul.rd-nowrap{
height: 0px;
position: fixed;
overflow: hidden;
left: 0px;
top: 1em;
padding: 0px;
left: 0;
top: 0;
padding: 0;
z-index: 199999;
text-align: center;
background:rgba(0,0,0,.6);
Expand Down Expand Up @@ -9289,4 +9293,12 @@ body:not(.hierarchical-cat) .rsidebar .widget_categories .cat-item a,
* Icon color when category is set and it is not used in post
*/
background: repeating-linear-gradient( 135deg, transparent, rgba(127,127,127,.3) 2px, rgba(127,127,127,.1) 3px, rgba(127,127,127,.1) 5px );
}
/**
* Audio element
========================================================================== */
audio{
display:block;
margin-left:auto;
margin-right:auto;
}

0 comments on commit 79328a3

Please sign in to comment.