Commit f7d836a1 authored by agnez's avatar agnez

post formats to category blocks, image legend etc

parent beaf4b76
......@@ -7,32 +7,41 @@
* @package multipurpose blog
*/
get_header(); ?>
get_header();?>
<div class="container">
<h1 class="page-title"><?php single_cat_title();?></h1>
<div class="row">
<?php if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();?>
<div class="col-md-4 col-sm-4">
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
<h3 class="section-title"><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title();?></a></h3>
<div class="date-box">
<i class="far fa-calendar-alt"></i><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a>
</div> <?php
if(has_post_thumbnail()) {
the_post_thumbnail( 'medium' );
}?>
<div class="new-text">
<?php the_excerpt();?>
</div>
</div>
</div><?php
endwhile;
else :
get_template_part( 'no-results' );
endif; ?>
</div>
<h1 class="page-title"><?php single_cat_title();?></h1>
<div class="row">
<?php if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();?>
<div class="col-md-4 col-sm-4">
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
<h3 class="section-title"><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title();?></a></h3>
<?php
// TODO trouver comment afficher date uniquement si page cat 1
if(has_post_thumbnail()) {
$thumb_img = get_post_meta( get_post_thumbnail_id() );
$img_alt = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true);
the_post_thumbnail( 'medium', array( 'alt' => $img_alt ) );
$img_legende = get_post(get_post_thumbnail_id())->post_excerpt;
if(!empty($img_legende)){
echo '<div class="legende">' . $img_legende . '</div>';
}
$img_description = get_post(get_post_thumbnail_id())->post_content;
if(!empty($img_description)){
echo '<div class="description">' . $img_description . '</div>';
}
}
if(!has_post_thumbnail()) {
get_template_part( 'template-parts/formatview',get_post_format() );
}?>
</div>
</div><?php
endwhile;
else :
get_template_part( 'no-results' );
endif; ?>
</div>
<div class="clearfix"></div>
<?php get_footer(); ?>
\ No newline at end of file
<?php get_footer(); ?>
......@@ -6,11 +6,12 @@
*
* @package voisinssolidaires-child
*/
function voisinssolidaires_setup() {
load_child_theme_textdomain( 'voisinssolidaires', get_stylesheet_directory() . '/languages' );//Loads the child theme textdomain.
}
add_action( 'after_setup_theme', 'voisinssolidaires_setup' );
?>
add_action( 'after_setup_theme', 'voisinssolidaires_setup' );
function voisinssolidaires_setup() {
load_child_theme_textdomain( 'voisinssolidaires', get_stylesheet_directory() . '/languages' );//Loads the child theme textdomain.
}
?>
<?php
/*enqueue_scripts*/
add_action( 'wp_enqueue_scripts', 'my_parent_theme_css' );
......@@ -18,6 +19,7 @@ function my_parent_theme_css() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css');
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style,bootstrap' ) );
wp_enqueue_style( 'dashicons' );
}
/*enqueue_styles*/
// hook in late to make sure the parent theme's registration has fired so you can undo it. Otherwise the parent will simply enqueue its script anyway.
......@@ -46,6 +48,7 @@ function vs_thumbs() {
add_action( 'after_setup_theme', 'vs_remove_theme_support', 11 );
function vs_remove_theme_support() {
remove_theme_support( 'post-formats' );
add_theme_support( 'post-formats', array('video','audio',) );
}
?>
......@@ -175,7 +178,9 @@ add_filter( 'get_the_archive_title', function ($title) {
return $title;
});
?>
<?php
// disable access to wp-admin for non-administrators
function block_wp_admin_access() {
if ( is_admin() && ! current_user_can( 'administrator' ) && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
......@@ -184,3 +189,60 @@ function block_wp_admin_access() {
}
}
//add_action( 'init', 'block_wp_admin_access' );
?>
<?php
//email new user accound created
add_filter( 'wp_new_user_notification_email_admin', 'vs_new_user_notification_email', 10, 3 );
function vs_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) {
$wp_new_user_notification_email['subject'] = sprintf( '[%s] nouveau voisin solidaire %s enregistré.', $blogname, $user->user_login );
$wp_new_user_notification_email['message'] = sprintf( "%s ( %s ) a été ajouté au site %s.", $user->user_login, $user->user_email, $blogname );
return $wp_new_user_notification_email;
}
add_filter( 'wp_new_user_notification_email' , 'edit_user_notification_email', 10, 3 );
function edit_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) {
$message = sprintf(__( "Bienvenu.e sur %s ! Voici comment ce connecter :" ), $blogname ) . "\r\n";
$message .= wp_login_url() . "\r\n";
$message .= sprintf(__( 'Votre login : %s' ), $user->user_login ) . "\r\n";
$message .= sprintf(__( 'Votre mot de passe : %s' ), $user->user_pass ) . "\r\n\r\n";
$message .= sprintf(__( 'Si vous rencontrez un problème ou pour toute autre question vous pouvez contacter %s.'), get_option( 'admin_email' ) ) . "\r\n";
$message .= __('A très bientôt');
$wp_new_user_notification_email['message'] = $message;
return $wp_new_user_notification_email;
}
?>
<?php
// external links to blank https://stackoverflow.com/questions/41874623/open-every-external-link-in-a-new-window-automatically-html-css
function cdx_handel_external_links() {?>
<script type="text/javascript">
( function( $ ) {
$("a[href^=http]").click(function(){
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr({
target: "_blank"
});
}
})
//Add Nofollow
$("a").each(function(){
if(this.href.indexOf('nytimes.com') >0 ){
$(this).attr({
rel: "nofollow"
});
}
});
} )( jQuery );
</script>
<?php
}
add_filter( 'wp_footer', 'cdx_handel_external_links', 999);
\ No newline at end of file
......@@ -19,9 +19,14 @@ get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title();?></h1>
<?php if(has_post_thumbnail()) { ?>
<div class="feature-box">
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%">
</div>
<div class="feature-box"><?php
$thumb_img = get_post_meta( get_post_thumbnail_id() );?>
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%" alt="<?php echo $thumb_img['_wp_attachment_image_alt']['0'];?>">
</div><?php
$img_legende = get_post(get_post_thumbnail_id())->post_excerpt;
if(!empty($img_legende)){
echo '<div class="legende">' . $img_legende . '</div>';
}?>
<?php } ?>
<?php the_content();
......
......@@ -9,5 +9,5 @@
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: left-sidebar,right-sidebar,one-column,two-columns,three-columns,four-columns,grid-layout,custom-colors,custom-background,custom-logo,custom-menu,custom-header,editor-style,featured-images,footer-widgets,sticky-post,buddypress,full-width-template,front-page-post-form,theme-options,threaded-comments,translation-ready,rtl-language-support,blog,news,photography
Text Domain: voisinssolidaires
*/#header{background-image:none !important}#header .logo img{max-width:550px;width:100%;padding:0 0.5em}#header .nav .menu-navigation-principale-container{margin:0 auto}#header .nav .menu-navigation-principale-container ul li a{border-bottom:solid 3px white;color:#666}#header .nav .menu-navigation-principale-container ul li a:hover{color:#e51566}#header .nav .menu-navigation-principale-container ul li ul li a{color:white}.home-page section{padding-bottom:0}.home-page #slider h2{font-size:48px;font-weight:bold;text-align:center}.home-page #slider .nivo-caption{left:10%;overflow:visible;padding:0 10px}.home-page #slider .nivo-caption .slide-cap{color:#197189}.home-page #slider .nivo-caption .slide-cap a.read-more{display:inline-block;background:white none repeat scroll 0 0;border:2px solid #e51566;border-radius:25px;color:#e51566;font-size:18px;font-weight:bold;padding:15px 45px}.home-page .darkbox{text-align:center}.home-page .darkbox .imagebox{position:relative}.home-page .darkbox .imagebox .contentbox h4{font-size:1.1rem;width:100%}.home-page .darkbox#photography .imagebox .contentbox h4{background:rgba(25,113,137,0.5) none repeat scroll 0 0}.home-page #page-content{margin-top:2em}.home-page #page-content .middle-align{min-height:0}#content-blog{margin-bottom:1em}#content-blog .feature-box{margin-bottom:1em}#content-blog .wpcf7-form .form-group{border:2px solid #e51566;border-radius:15px;padding:2em}#content-blog .wpcf7-form p{line-height:1}#content-blog .wpcf7-form p span.wpcf7-list-item{display:block}#content-blog .wpcf7-form .wpcf7-not-valid-tip{margin:-1em 0 1em}#content-blog #my-calendar .my-calendar-date-switcher label{padding-left:20px}#content-blog #my-calendar .my-calendar-date-switcher input[type="submit"]{background-color:#e51566;border:3px solid #e51566;border-radius:8px}#content-blog #my-calendar select{width:auto}#content-blog #my-calendar input.button{padding:1em;border-radius:0.5}#content-blog #my-calendar .mc-time{padding-bottom:1em}#content-blog #my-calendar .mc-time span,#content-blog #my-calendar .mc-time a{padding-right:1em}#content-blog .mc-main .mc_general .event-title,#content-blog .mc-main .mc_general .event-title a{background:#DADADA}#content-blog .mc-main h3,#content-blog .mc-main h3 a{font:normal 12px Arial, Verdana, sans-serif;padding:3px}@media screen and (min-width: 720px){#content-blog .feature-box img{max-width:500px}}#sidebar h3{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";padding:6% 3%;font-size:1.8rem}div.wpcf7-validation-errors,div.wpcf7-acceptance-missing,div.wpcf7-response-output{border-radius:15px;padding:2em}div.wpcf7-validation-errors.wpcf7-mail-sent-ok,div.wpcf7-acceptance-missing.wpcf7-mail-sent-ok,div.wpcf7-response-output.wpcf7-mail-sent-ok{border:2px solid #197189}.footer-wp aside h3{font-size:20px;font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.footer-wp aside ul li{padding:0}.inner .copyright-wrapper{font-size:1rem;font-weight:normal;background-color:white;padding:20px 0;position:relative;color:#666}.inner .copyright-wrapper p{color:#666}.inner .copyright-wrapper a{color:#e51566}.inner .copyright-wrapper h3{font-size:20px;letter-spacing:2px;text-align:center;font-weight:bold;letter-spacing:2px}.footer-wp input[type="text"]{margin-bottom:13px}.footer-wp #bbp-search-form input[type="submit"]{float:none}.btn-primary{background-color:#e51566;border-color:#e51566}a{color:#e51566}h1,h2,h3,h4,h5,h6{font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.nivo-directionNav,.nivo-controlNav{display:none}
*/#header{background-image:none !important}#header .logo img{max-width:550px;width:100%;padding:0 0.5em}#header .nav .menu-navigation-principale-container{margin:0 auto}#header .nav .menu-navigation-principale-container ul li a{border-bottom:solid 3px white;color:#666}#header .nav .menu-navigation-principale-container ul li a:hover{color:#e51566}#header .nav .menu-navigation-principale-container ul li ul li a{color:white}.home-page section{padding-bottom:0}.home-page #slider h2{font-size:48px;font-weight:bold;text-align:center}.home-page #slider .nivo-caption{left:10%;overflow:visible;padding:0 10px}.home-page #slider .nivo-caption .slide-cap{color:#197189}.home-page #slider .nivo-caption .slide-cap a.read-more{display:inline-block;background:white none repeat scroll 0 0;border:2px solid #e51566;border-radius:25px;color:#e51566;font-size:18px;font-weight:bold;padding:15px 45px}.home-page .darkbox{text-align:center}.home-page .darkbox .imagebox{position:relative}.home-page .darkbox .imagebox .contentbox h4{font-size:1.1rem;width:100%}.home-page .darkbox#photography .imagebox .contentbox h4{background:rgba(25,113,137,0.5) none repeat scroll 0 0}.home-page #page-content{margin-top:2em}.home-page #page-content .middle-align{min-height:0}#content-blog{margin-bottom:1em}#content-blog .feature-box{margin-bottom:1em}#content-blog .wpcf7-form .form-group{border:2px solid #e51566;border-radius:15px;padding:2em}#content-blog .wpcf7-form p{line-height:1}#content-blog .wpcf7-form p span.wpcf7-list-item{display:block}#content-blog .wpcf7-form .wpcf7-not-valid-tip{margin:-1em 0 1em}#content-blog #my-calendar .my-calendar-date-switcher label{padding-right:10px}#content-blog #my-calendar .my-calendar-date-switcher input[type="submit"]{background-color:#e51566;border:5px solid #e51566;border-radius:8px;font-weight:bold}#content-blog #my-calendar select{width:auto;margin-right:50px}#content-blog #my-calendar .mc-time{padding-bottom:1em}#content-blog #my-calendar .mc-time span,#content-blog #my-calendar .mc-time a{padding-right:1em}#content-blog #my-calendar .category-icon{display:none}#content-blog .mc-main .mc_general .event-title,#content-blog .mc-main .mc_general .event-title a{background:#DADADA}#content-blog .mc-main h3,#content-blog .mc-main h3 a{font:normal 12px Arial, Verdana, sans-serif;padding:3px}#content-blog .etapes button.btn{margin-right:1em;padding:0 0.75rem;line-height:1;border:solid 2px #e51566;background-color:white;color:#e51566}#content-blog .etapes button.btn:hover{border-color:#197189}#content-blog .etapes button.btn img{max-width:50px}#content-blog .etapes button.btn:after{font-family:"dashicons";content:"\f345";padding:10px 0 5px;display:block}#content-blog .etapes button.btn.collapsed:after{content:"\f347"}.category h1.page-title{margin-top:0.5em}.legende{font-size:0.8em;margin-bottom:.5em;text-align:right}@media screen and (min-width: 720px){#content-blog .feature-box{max-height:300px;overflow:hidden}}#sidebar h3{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";padding:6% 3%;font-size:1.8rem}div.wpcf7-validation-errors,div.wpcf7-acceptance-missing,div.wpcf7-response-output{border-radius:15px;padding:2em}div.wpcf7-validation-errors.wpcf7-mail-sent-ok,div.wpcf7-acceptance-missing.wpcf7-mail-sent-ok,div.wpcf7-response-output.wpcf7-mail-sent-ok{border:2px solid #197189}.footer-wp aside h3{font-size:20px;font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.footer-wp aside ul li{padding:0}.inner .copyright-wrapper{font-size:1rem;font-weight:normal;background-color:white;padding:20px 0;position:relative;color:#666}.inner .copyright-wrapper p{color:#666}.inner .copyright-wrapper a{color:#e51566}.inner .copyright-wrapper h3{font-size:20px;letter-spacing:2px;text-align:center;font-weight:bold;letter-spacing:2px}.footer-wp input[type="text"]{margin-bottom:13px}.footer-wp #bbp-search-form input[type="submit"]{float:none}.btn-primary{background-color:#e51566;border-color:#e51566}a{color:#e51566}a[target="_blank"]:after{font-family:"dashicons";content:"\f172";color:#ddd;margin:0 3px 0 5px}h1,h2,h3,h4,h5,h6{font-family:ClearSans,"Clear Sans",helvetica,tahoma,arial,sans-serif}.nivo-directionNav,.nivo-controlNav{display:none}
/*# sourceMappingURL=style.css.map */
{
"version": 3,
"mappings": "AAAA;;;;;;;;;;;EAWE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jB,oCAAmC,CAEjC,0BAAY,CACX,UAAU,CAAC,KAAK,CAChB,QAAQ,CAAC,MAAM,EAQlB,WAAW,CACV,WAAW,CAAC,oJAAoJ,CAChK,OAAO,CAAE,KAAK,CACd,SAAS,CAAE,MAAM,CAGlB,kFAEyB,CACxB,aAAa,CAAC,IAAI,CAClB,OAAO,CAAE,GAAG,CACZ,2IAAoB,CACnB,MAAM,CAAC,iBAAc,CAMtB,mBAAE,CACD,SAAS,CAAC,IAAI,CACd,WAAW,CCnOL,wDAAwD,CDqO/D,sBAAK,CACJ,OAAO,CAAC,CAAC,CAIX,yBAA0B,CACzB,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,MAAM,CACnB,gBAAgB,CAAE,KAAK,CACvB,OAAO,CAAE,MAAM,CACf,QAAQ,CAAE,QAAQ,CAClB,KAAK,CClPD,IAAO,CDmPX,2BAAC,CACA,KAAK,CCpPF,IAAO,CDsPX,2BAAC,CACA,KAAK,CC1PF,OAAO,CD4PX,4BAAG,CACF,SAAS,CAAE,IAAI,CACf,cAAc,CAAE,GAAG,CACnB,UAAU,CAAE,MAAM,CAClB,WAAW,CAAE,IAAI,CACjB,cAAc,CAAE,GAAG,CAOpB,6BAAkB,CACjB,aAAa,CAAC,IAAI,CAEnB,gDAAqC,CACpC,KAAK,CAAC,IAAI,CAKZ,YAAY,CACR,gBAAgB,CClRf,OAAO,CDmRR,YAAY,CCnRX,OAAO,CDqRZ,CAAC,CACA,KAAK,CCtRD,OAAO,CDuRX,wBAAyB,CACxB,WAAW,CAAE,WAAW,CACxB,OAAO,CAAE,OAAO,CAChB,KAAK,CAAC,IAAI,CACV,MAAM,CAAE,WAAW,CAIrB,iBAAiB,CAChB,WAAW,CC3RJ,wDAAwD,CDiShE,mCACgB,CACf,OAAO,CAAC,IAAI",
"sources": ["../multipurpose-blog-child_dev/sass/style.scss","../multipurpose-blog-child_dev/sass/_variables.scss"],
"names": [],
"file": "style.css"
......
<?php
/**
* The template part for displaying slider
*
* @package multipurpose blog
* @subpackage multipurpose_blog
* @since 1.0
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
<h3 class="section-title"><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title();?></a></h3>
<div class="date-box"><i class="far fa-calendar-alt"></i><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></div>
<div class="box-image">
<?php
if(has_post_thumbnail()) {
the_post_thumbnail( 'full' );
}
?>
</div>
<div class="new-text">
<?php the_excerpt();?>
</div>
<div class="clearfix"></div>
</div>
\ No newline at end of file
<?php
/**
* The template part for displaying slider
*
* @package multipurpose blog
* @subpackage multipurpose_blog
* @since 1.0
*/
?>
<?php
$content = apply_filters( 'the_content', get_the_content() );
$video = false;
// Only get video from the content if a playlist isn't present.
if ( false === strpos( $content, 'wp-playlist-script' ) ) {
$video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) );
}
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
<h3 class="section-title"><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title();?></a></h3>
<div class="date-box"><i class="far fa-calendar-alt"></i><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></div>
<div class="box-image">
<?php
if ( ! is_single() ) {
// If not a single post, highlight the video file.
if ( ! empty( $video ) ) {
foreach ( $video as $video_html ) {
echo '<div class="entry-video">';
echo $video_html;
echo '</div>';
}
};
};
?>
</div>
<div class="new-text">
<?php the_excerpt();?>
</div>
<div class="clearfix"></div>
</div>
\ No newline at end of file
<?php
/**
* The template part for displaying slider
*
* @package multipurpose blog
* @subpackage multipurpose_blog
* @since 1.0
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
<h3 class="section-title"><a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title();?></a></h3>
<div class="date-box"><i class="far fa-calendar-alt"></i><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></div>
<?php
if(has_post_thumbnail()) {
the_post_thumbnail( 'medium' );
}
?>
<div class="new-text">
<?php the_excerpt();?>
</div>
<div class="clearfix"></div>
</div>
\ No newline at end of file
<h3><?php the_title();?></h3>
<div class="metabox">
<i class="far fa-calendar-alt"></i><span class="entry-date"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php echo esc_html( get_the_date() ); ?></a></span>
</div>
<?php if(has_post_thumbnail()) { ?>
<hr>
<div class="feature-box">
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%">
</div>
<hr>
<div class="feature-box"><?php
$thumb_img = get_post_meta( get_post_thumbnail_id() );?>
<img src="<?php the_post_thumbnail_url('full'); ?>" width="100%" alt="<?php echo $thumb_img['_wp_attachment_image_alt']['0'];?>">
</div><?php
$img_legende = get_post(get_post_thumbnail_id())->post_excerpt;
if(!empty($img_legende)){
echo '<div class="legende">' . $img_legende . '</div>';
}?>
<?php }
the_content();
......
......@@ -120,27 +120,29 @@
#my-calendar{
.my-calendar-date-switcher{
label{
padding-left: 20px;
padding-right: 10px;
}
input[type="submit"]{
background-color:$vs1;
border:3px solid $vs1;
border:5px solid $vs1;
border-radius:8px;
}
font-weight: bold;
}
}
select {
width: auto;
margin-right: 50px;
}
input.button{
padding:1em;
border-radius:0.5;
}
.mc-time{
span, a {
padding-right:1em;
}
padding-bottom:1em;
}
.category-icon{
display:none;
}
}
//#my-calendar
.mc-main{
......@@ -153,17 +155,57 @@
font:normal 12px Arial, Verdana, sans-serif;
padding:3px;
}
}
}
.etapes{
button.btn{
margin-right:1em;
padding: 0 0.75rem;
line-height: 1;
border: solid 2px $vs1;
background-color: white;
color: $vs1;
&:hover{
border-color:$vs2;
}
img{
max-width:50px;
}
&:after{
font-family: "dashicons";
content: "\f345";
padding:10px 0 5px;
display: block;
}
&.collapsed:after{
content: "\f347";
}
}
}
}
.category{
h1.page-title{
margin-top:0.5em;
}
}
.legende{
font-size:0.8em;
margin-bottom:.5em;
text-align:right;
}
@media screen and (min-width:720px){
#content-blog{
.feature-box{
max-height:300px;
overflow:hidden;
img{
max-width:500px;
//max-width:500px;
}
}
}
......@@ -236,6 +278,12 @@ div.wpcf7-response-output{
}
a{
color: $vs1;
&[target="_blank"]:after {
font-family: "dashicons";
content: "\f172";
color:#ddd;
margin: 0 3px 0 5px;
}
}
h1,h2,h3,h4,h5,h6{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment