added permalink anchor to titles, moved arrow in resources submenus to right
This commit is contained in:
parent
c170e9da2f
commit
b478f8787b
File diff suppressed because one or more lines are too long
|
@ -44,10 +44,13 @@ main {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.entry-content {
|
section {
|
||||||
|
// padding: $global-padding $global-padding*2;
|
||||||
|
}
|
||||||
|
.entry-content,.omekas-entry-content {
|
||||||
@include breakpoint(small){
|
@include breakpoint(small){
|
||||||
@include xy-cell(12);
|
@include xy-cell(12);
|
||||||
padding: $global-padding*2 ;
|
padding: $global-padding*2 $global-padding/2 ;
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
}
|
}
|
||||||
@include breakpoint(medium){
|
@include breakpoint(medium){
|
||||||
|
|
|
@ -49,11 +49,14 @@
|
||||||
li.menu-item-has-children {
|
li.menu-item-has-children {
|
||||||
> a {
|
> a {
|
||||||
&:after {
|
&:after {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 2px;
|
||||||
border-bottom-width: 6px;
|
border-bottom-width: 6px;
|
||||||
border-right-width: 0;
|
border-right-width: 0;
|
||||||
border-right-style:solid;
|
border-right-style:solid;
|
||||||
border-color: transparent transparent transparent $anchor-color-alt;
|
border-color: transparent transparent transparent $anchor-color-alt;
|
||||||
margin-left: 10px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,11 +24,14 @@ get_header(); ?>
|
||||||
<?php //get_template_part( 'template-parts/content', get_post_format() ); ?>
|
<?php //get_template_part( 'template-parts/content', get_post_format() ); ?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header>
|
<header>
|
||||||
<?php
|
<?php
|
||||||
if ( is_single() ) {
|
//https://developer.wordpress.org/reference/functions/permalink_anchor/
|
||||||
|
if ( is_single() ) {
|
||||||
|
permalink_anchor();
|
||||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||||
} else {
|
} else {
|
||||||
|
permalink_anchor();
|
||||||
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -44,10 +44,13 @@ main {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.entry-content {
|
section {
|
||||||
|
// padding: $global-padding $global-padding*2;
|
||||||
|
}
|
||||||
|
.entry-content,.omekas-entry-content {
|
||||||
@include breakpoint(small){
|
@include breakpoint(small){
|
||||||
@include xy-cell(12);
|
@include xy-cell(12);
|
||||||
padding: $global-padding*2 ;
|
padding: $global-padding*2 $global-padding/2 ;
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
}
|
}
|
||||||
@include breakpoint(medium){
|
@include breakpoint(medium){
|
||||||
|
|
|
@ -49,11 +49,14 @@
|
||||||
li.menu-item-has-children {
|
li.menu-item-has-children {
|
||||||
> a {
|
> a {
|
||||||
&:after {
|
&:after {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 2px;
|
||||||
border-bottom-width: 6px;
|
border-bottom-width: 6px;
|
||||||
border-right-width: 0;
|
border-right-width: 0;
|
||||||
border-right-style:solid;
|
border-right-style:solid;
|
||||||
border-color: transparent transparent transparent $anchor-color-alt;
|
border-color: transparent transparent transparent $anchor-color-alt;
|
||||||
margin-left: 10px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header>
|
<header>
|
||||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
<h1 class="entry-title">
|
||||||
|
<?php //https://developer.wordpress.org/reference/functions/permalink_anchor/;?>
|
||||||
|
<?php permalink_anchor(); ?>
|
||||||
|
<?php the_title(); ?>
|
||||||
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
|
|
@ -12,13 +12,14 @@
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header>
|
<header>
|
||||||
<?php
|
<?php
|
||||||
if ( is_single() ) {
|
//https://developer.wordpress.org/reference/functions/permalink_anchor/
|
||||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
if ( is_single() ) {
|
||||||
} else {
|
permalink_anchor();the_title( '<h1 class="entry-title">', '</h1>' );
|
||||||
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
} else {
|
||||||
}
|
permalink_anchor();the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
||||||
?>
|
}
|
||||||
|
?>
|
||||||
<?php //foundationpress_entry_meta(); ?>
|
<?php //foundationpress_entry_meta(); ?>
|
||||||
</header>
|
</header>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
Loading…
Reference in New Issue