modified and closed basic css, addedd partners template

This commit is contained in:
jorge 2021-05-03 19:49:25 +02:00
parent 416635878d
commit 13df908915
9 changed files with 101 additions and 54 deletions

View File

@ -10,8 +10,6 @@
?>
</div><!-- Close off-canvas content -->
<footer class="">
<section class="subsection">
<aside class="site-brand archive">
@ -25,13 +23,14 @@
</a>
</aside>
<aside class="double newsletter">
<p> subscribe to our <br/>
<p> Subscribe to our <br/>
<span class="h4"><a href="https://arc-hive.zone/newsletter/">newsletter</a></span>
</p>
</aside>
<aside class="newsletter">
<p> follow us on <br/>
<p> Follow us on <br/>
<span class="h4"><a href="https://www.facebook.com/arc.hive.platform/">facebook</a></span>
&nbsp;-&nbsp;
<span class="h4"><a href="https://www.instagram.com/arc.hive.zone/">instagram</a></span>
</p>
</aside>
@ -44,13 +43,13 @@
<aside class="double partners">
<p>ARC-HIVE partners are:</p>
<ul>
<li class="h5"> <a href="https://cultivamoscultura.com/">Cultivamos Cultura</a></li>
<li class="h5"> <a href="https://bioartsociety.fi/">Bioart Society</a></li>
<li class="h5"> <a href="https://kersnikova.org/">Kersnikova</a></li>
<br />
<li class="h5"> <a href="https://www.naturalsciences.be/">RBINS</a></li>
<li class="h5"> <a href="https://www.kontejner.org/">Kontejner</a></li>
<li class="h5"> <a href="https://cultivamoscultura.com/">Cultivamos Cultura</a></li>
<li class="h5"> <a href="https://hangar.org/">Hangar</a></li>
<li class="clear clearfix"></li>
<li class="h5"> <a href="https://kersnikova.org/">Kersnikova</a></li>
<li class="h5"> <a href="https://www.kontejner.org/">Kontejner</a></li>
<li class="h5"> <a href="https://www.naturalsciences.be/">RBINS</a></li>
</ul>
</aside>
<aside class="co-founded">

View File

@ -13,6 +13,10 @@
// Check to see if rev-manifest exists for CSS and JS static asset revisioning
//https://github.com/sindresorhus/gulp-rev/blob/master/integration.md
// added mods to overwrite cached css and js on update in server
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056
//
if ( ! function_exists( 'foundationpress_asset_path' ) ) :
function foundationpress_asset_path( $filename ) {
$filename_split = explode( '.', $filename );
@ -37,7 +41,8 @@ if ( ! function_exists( 'foundationpress_scripts' ) ) :
function foundationpress_scripts() {
// Enqueue the main Stylesheet.
wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), '2.10.4', 'all' );
//wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), '2.10.4', 'all' );
wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), filemtime(get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' )), 'all' );
// Deregister the jquery version bundled with WordPress.
wp_deregister_script( 'jquery' );

View File

@ -0,0 +1,38 @@
<?php
/*
Template Name: Partners page
*/
get_header(); ?>
<article class="partners">
<main>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', get_post_format() ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; // End have_posts() check. ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php
if ( function_exists( 'foundationpress_pagination' ) ) :
foundationpress_pagination();
elseif ( is_paged() ) :
?>
<nav id="post-nav">
<div class="post-previous"><?php next_posts_link( __( '&larr; Older posts', 'foundationpress' ) ); ?></div>
<div class="post-next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'foundationpress' ) ); ?></div>
</nav>
<?php endif; ?>
</main>
<?php //get_template_part( 'template-parts/announcement' ); ?>
<?php get_footer();

View File

@ -1,19 +0,0 @@
<?php
/*
Template Name: Left Sidebar
*/
get_header(); ?>
<?php get_template_part( 'template-parts/featured-image' ); ?>
<div class="main-container">
<div class="main-grid sidebar-left">
<main class="main-content">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'page' ); ?>
<?php comments_template(); ?>
<?php endwhile; ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer();

View File

@ -179,7 +179,7 @@ $paragraph-lineheight: 1.6;
$paragraph-margin-bottom: 1rem;
$paragraph-text-rendering: optimizeLegibility;
$enable-code-inline: true;
$anchor-color: $body-font-color;
$anchor-color: $primary-color;
$anchor-color-hover: $primary-color;//scale-color($anchor-color, $lightness: -14%);
$anchor-text-decoration: none;
$anchor-text-decoration-hover: none;

View File

@ -3,11 +3,11 @@ button,.button {
}
.hero {
button,.button {
min-width: 20vw;
padding: $global-padding*0.3 $global-padding*2;
color: $button-color-alt;
font-size: $global-font-size*1.3;
border-color: $button-color-alt;
font-size: 2rem;
padding-left: $global-padding*6;
padding-right: $global-padding*6;
border-radius: 4rem;
// margin: $global-margin*2 0;
&:hover{

View File

@ -20,6 +20,16 @@
color: $body-font-color;
}
}
.excerpt,.post-excerpt{
a {
color: $body-font-color;
&:hover {
p {
color: $anchor-color;
}
}
}
}
//
// main block
@ -118,6 +128,7 @@
line-height: 0.7;
font-size: $global-font-size*1.5;
}
}
}
aside {
@ -171,7 +182,7 @@
// end news category
//
// hero
// partners
// for big announcemnts
//---------------------
@ -181,8 +192,16 @@
p {
padding-left: 30vw;
padding-bottom: 2rem;
border-bottom: 1px solid black;
margin-bottom: 2rem;
&:after {
content: '';
display: inline-block;
border-bottom: 1px solid $body-font-color;
width: 100vw;
position: absolute;
left: 0;
padding-top: 2rem;
}
}
.alignleft {
margin: 0;
@ -236,19 +255,19 @@
height: 100% !important;
}
.textwidget {
font-size: $global-font-size*1.3;
font-size: $global-font-size*1.2;
padding: $global-padding * 2;
}
}
@include breakpoint(xlarge){
.textwidget {
font-size: $global-font-size*1.4;
font-size: $global-font-size*1.3;
padding: $global-padding*3;
}
}
@include breakpoint(xxlarge){
.textwidget {
font-size: $global-font-size*1.8;
font-size: $global-font-size*1.6;
padding: $global-padding*3;
}
}

View File

@ -6,25 +6,28 @@ footer {
color: $primary-color;
}
}
p {
h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6,
p,ul,ol,li {
margin: 0;
}
ul,ol {
list-style: none;
padding: 0;
margin: 0;
li {
float:left;
padding-right: $global-padding;
}
}
li {
float:left;
padding-right: $global-padding;
.clear.clearfix {
width: 100%;
}
.logo {
}
.site-brand,.brand-logo {
&.archive{
&::before {
margin-top:unset;
}
&::before {
margin-top:unset;
}
}
&.eu {
&::before {
@ -34,15 +37,17 @@ footer {
}
}
}
.copyright, .legal-credits {
font-size: $global-font-size*0.8;
}
.subsection {
@include breakpoint(small) {
@include xy-grid;
@include flex;
@include flex-align(left,middle);
@include flex-align(left,bottom);
border-top: 1px solid black;
padding: $global-padding;
font-size: $global-font-size * 0.8;
//font-variant:all-small-caps;
&:first-child {
//padding-top: $global-padding*3;
}

View File

@ -15,7 +15,7 @@
<main class="">
<?php $the_query = new WP_Query( array( 'category_name' => 'news', 'posts_per_page' => 6 ) ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<?php// the loop ?>
<?php //the loop ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<?php //content here ?>
<article class="">
@ -38,11 +38,11 @@
<?php the_title(); ?>
</a>
</h3>
<p class="excerpt post-excerpt">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_excerpt() ?>
<section class="excerpt post-excerpt">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_excerpt() ?>
</a>
</div>
</section>
</article>
<?php endwhile; ?>
<?php // end of the loop ?>