Compare commits
3 commits
f343d03800
...
fbb85ad5aa
Author | SHA1 | Date | |
---|---|---|---|
|
fbb85ad5aa | ||
|
94fb3b7dd3 | ||
|
0f194ffae8 |
15 changed files with 391 additions and 422 deletions
|
@ -10,6 +10,5 @@
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- Sidebar custom pour contenir la description -->
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<div class="preview-overlay">
|
<div class="preview-overlay">
|
||||||
<div class="preview-categories">
|
<div class="preview-categories">
|
||||||
<?php $category = get_the_category();
|
<?php $category = get_the_category();
|
||||||
echo"<span class='badge bg-primary'>" . $category[0]->cat_name . "</span>"; ?>
|
echo"<span class='badge bg-secondary'>" . $category[0]->cat_name . "</span>"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="preview-title"><?php the_title();/*3*/ ?></h2>
|
<h2 class="preview-title"><?php the_title();/*3*/ ?></h2>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<footer class="bg-dark">
|
<footer class="bg-dark fg-light">
|
||||||
<nav class="container menu toolbar bg-light fg-dark">
|
<nav class="container menu toolbar bg-light fg-dark">
|
||||||
<ul class="f-end">
|
<ul class="f-end">
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1,27 +1,26 @@
|
||||||
<?php while(have_posts()) : the_post(); ?>
|
<?php while(have_posts()) : the_post(); ?>
|
||||||
<div class="preview">
|
<a href="<?php the_permalink(); ?>" class="preview">
|
||||||
|
|
||||||
<div class="preview-thumbnail">
|
<div class="preview-thumbnail">
|
||||||
<a href="<?php the_permalink(); ?>">
|
<?php the_post_thumbnail( ); ?>
|
||||||
<?php the_post_thumbnail( ); ?>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="preview-text">
|
<div class="preview-text">
|
||||||
<h2><a href="<?php the_permalink(); ?>" class="preview-title-link m-0 p-0"><?php the_title(); ?></a></h2>
|
<h2><?php the_title(); ?></h2>
|
||||||
|
|
||||||
<div class="flex-that">
|
<div class="flex-that">
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
if (!has_category('chapters')) {
|
if (!has_category('chapters')) {
|
||||||
$category = get_the_category();
|
$category = get_the_category();
|
||||||
echo"<span class='badge bg-primary small-text m-0'>" . $category[0]->cat_name . "</span>";
|
echo"<span class='badge bg-secondary small-text m-0'>" . $category[0]->cat_name . "</span>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<time><span class="badge bg-primary small-text m-0"><?php the_time('d/m/Y') ?></span></time>
|
<time><span class="badge bg-secondary small-text m-0"><?php the_time('d/m/Y') ?></span></time>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="preview-excerpt" aria-excerpt="true"><?php the_excerpt(); ?></div>
|
<div class="preview-excerpt" aria-excerpt="true"><?php the_excerpt(); ?></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
|
@ -20,6 +20,8 @@ ul.breadcrumb, ol.breadcrumb, .breadcrumb {
|
||||||
@include button($button-large);
|
@include button($button-large);
|
||||||
@include button-fullcontrol($color-background-alt, accentuate($color-background-alt), get-color("dark2"));
|
@include button-fullcontrol($color-background-alt, accentuate($color-background-alt), get-color("dark2"));
|
||||||
margin:0 $button-group-margin 0 $button-group-margin;
|
margin:0 $button-group-margin 0 $button-group-margin;
|
||||||
|
outline-color: accentuate($color-background-alt)!important;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
@include button-fullcontrol($color-secondary, $color-secondary, $color-font-light);
|
@include button-fullcontrol($color-secondary, $color-secondary, $color-font-light);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
word-wrap: none;
|
word-wrap: none;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -38,24 +39,34 @@
|
||||||
.fg-light & {
|
.fg-light & {
|
||||||
a {
|
a {
|
||||||
color: $color-font-light;
|
color: $color-font-light;
|
||||||
|
outline-color: $color-font-light;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
background-color: transparentize($color-font-light, 0.7);
|
background-color: transparentize($color-font-light, 0.7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
outline-color: $color-font-light;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.fg-dark,
|
&.fg-dark,
|
||||||
.fg-dark & {
|
.fg-dark & {
|
||||||
a {
|
a {
|
||||||
color: $color-font;
|
color: $color-font;
|
||||||
|
outline-color: $color-font;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
background-color: transparentize($color-font, 0.85);
|
background-color: transparentize($color-font, 0.85);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
outline-color: $color-font;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,16 +10,16 @@ nav.pagination {
|
||||||
padding-right: $button_small;
|
padding-right: $button_small;
|
||||||
margin-right : $button_small / 8;
|
margin-right : $button_small / 8;
|
||||||
margin-left: $button_small / 8;
|
margin-left: $button_small / 8;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
|
||||||
&:not(.current) {
|
&:not(.current) {
|
||||||
@include button-color($color-background-alt);
|
@include button-color($color-background-alt);
|
||||||
|
outline-color: mix($color-background-alt, getTextColorFromBackground($color-background-alt), 85%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.current {
|
&.current {
|
||||||
@include background-color($color-primary);
|
@include background-color($color-primary);
|
||||||
&:hover {
|
|
||||||
@include background-color($color-primary);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
@include panel($card-smallpad);
|
@include panel($card-smallpad);
|
||||||
padding:$card-smallpad;
|
padding:$card-smallpad;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
a:not(:hover) {
|
|
||||||
background-color: rgba(0,0,0,0.2)!important;
|
|
||||||
}
|
|
||||||
a {
|
a {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,26 +29,41 @@ em {
|
||||||
font-weight: $fontweight_base;
|
font-weight: $fontweight_base;
|
||||||
}
|
}
|
||||||
|
|
||||||
a, a:visited, mark {
|
mark {
|
||||||
text-decoration: none;
|
|
||||||
padding: 0.05rem 0.25rem;
|
padding: 0.05rem 0.25rem;
|
||||||
border-radius: 0.1rem;
|
border-radius: 0.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a, a:visited {
|
a {
|
||||||
@include background-color($color-link);
|
color: darken($color-link, 25%);
|
||||||
&:hover, &:active, &:focus {
|
outline-color: $color-link;
|
||||||
color: $color-link;
|
padding: 0.05rem;
|
||||||
background-color: transparent;
|
border-radius: 0.1rem;
|
||||||
|
text-decoration: underline dashed;
|
||||||
|
|
||||||
|
&:visited {
|
||||||
|
color: darken($color-link, 25%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:hover, &:active {
|
||||||
outline-color: currentColor;
|
&, &.fg-dark, .fg-light & {
|
||||||
outline-style: dashed;
|
background-color: transparentize($color-font, 0.9);
|
||||||
outline-width: 2px;
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fg-light &, &.fg-light {
|
||||||
|
background-color: transparentize($color-font-light, 0.8);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:focus-visible, input:focus-visible {
|
||||||
|
outline-style: dashed;
|
||||||
|
outline-width: 2px;
|
||||||
|
outline-offset: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
background-color: lighten($color-mark, 30%);
|
background-color: lighten($color-mark, 30%);
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -95,6 +110,9 @@ h1, h2, h3, h4, h5, h6, h7 {
|
||||||
margin:0;
|
margin:0;
|
||||||
font-weight: $fontweight_base;
|
font-weight: $fontweight_base;
|
||||||
padding-bottom: $lineheight;
|
padding-bottom: $lineheight;
|
||||||
|
a {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sup, sub {
|
sup, sub {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
padding:0;
|
padding:0;
|
||||||
border-radius: $card-radius;
|
border-radius: $card-radius;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
text-decoration: none;
|
||||||
.preview-item {
|
.preview-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
|
@ -59,6 +59,8 @@ header h1 {
|
||||||
|
|
||||||
a, a:visited, a:hover {
|
a, a:visited, a:hover {
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
|
outline-color:white;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,13 +213,8 @@ footer {
|
||||||
padding-bottom:1.5rem;
|
padding-bottom:1.5rem;
|
||||||
.columns {
|
.columns {
|
||||||
font-size:0.8rem;
|
font-size:0.8rem;
|
||||||
a,
|
a {
|
||||||
a:visited {
|
color: $color-footer-text;
|
||||||
&:hover,
|
|
||||||
&:active,
|
|
||||||
&:visited {
|
|
||||||
color: $color-footer-text;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,37 +2,41 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-rows: auto;
|
grid-template-rows: auto;
|
||||||
grid-gap: $lineheight;
|
grid-gap: $lineheight / 3;
|
||||||
|
margin: -$lineheight / 3;
|
||||||
padding-bottom: $lineheight;
|
padding-bottom: $lineheight;
|
||||||
|
|
||||||
@include md() {
|
@include md() {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include xl() {
|
@include lg() {
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include xxl() {
|
@include xl() {
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-list {
|
.preview-list {
|
||||||
|
.preview {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
@include sm() {
|
@include sm() {
|
||||||
.preview-thumbnail a {
|
.preview-thumbnail img {
|
||||||
width: 240px;
|
width: 240px;
|
||||||
margin-right: $lineheight /2;
|
margin-right: $lineheight /2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: start;
|
||||||
margin-bottom: $lineheight;
|
margin-bottom: $lineheight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@include xl() {
|
@include xl() {
|
||||||
.preview-thumbnail a {
|
.preview-thumbnail img {
|
||||||
width: 320px;
|
width: 320px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,13 +44,15 @@
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: $lineheight / 3;
|
||||||
|
border-radius: $card-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-thumbnail a {
|
.preview-thumbnail {
|
||||||
display:block;
|
display:block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
margin:auto;
|
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
padding:0;
|
padding:0;
|
||||||
line-height:0;
|
line-height:0;
|
||||||
|
@ -65,12 +71,17 @@
|
||||||
font-family: $titlefont;
|
font-family: $titlefont;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
height:3rem;
|
height:3rem;
|
||||||
|
color: $color-font;
|
||||||
a {
|
a {
|
||||||
background-color:transparent!important;
|
background-color:transparent!important;
|
||||||
color:$color-font;
|
color:$color-font;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.preview-featured h2 {
|
||||||
|
color: $color-font-light;
|
||||||
|
}
|
||||||
|
|
||||||
.preview-excerpt {
|
.preview-excerpt {
|
||||||
margin-top: $lineheight / 2;
|
margin-top: $lineheight / 2;
|
||||||
font-size:0.8rem;
|
font-size:0.8rem;
|
||||||
|
|
|
@ -19,31 +19,25 @@
|
||||||
|
|
||||||
@mixin button-hover() {
|
@mixin button-hover() {
|
||||||
transition: background-color .2s, border .2s, box-shadow .2s, color .2s;
|
transition: background-color .2s, border .2s, box-shadow .2s, color .2s;
|
||||||
&:hover, &:active, &:focus {
|
&:hover, &:active {
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
|
||||||
outline: none;
|
|
||||||
box-shadow: $narrow-shadow, $inset-shadow, 0px 0px 0px 2px rgba(0, 0, 0, 0);
|
|
||||||
&:before {
|
|
||||||
box-shadow: $narrow-shadow, $inset-shadow, 0px 0px 0px 2px rgba(0, 0, 0, 0.3);
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin button-fullcontrol($background-color, $hover-color, $text-color) {
|
@mixin button-fullcontrol($background-color, $hover-color, $text-color) {
|
||||||
@include colorize-shape($background-color);
|
@include colorize-shape($background-color);
|
||||||
|
outline-color: $background-color;
|
||||||
color:$text-color;
|
color:$text-color;
|
||||||
&:visited {
|
&:visited {
|
||||||
@include colorize-shape($background-color);
|
@include colorize-shape($background-color);
|
||||||
color:$text-color;
|
color:$text-color;
|
||||||
}
|
}
|
||||||
&, &:visited, &:not(.disabled):not(:disabled) {
|
&, &:visited, &:not(.disabled):not(:disabled) {
|
||||||
&:hover, &:active, &:focus {
|
&:hover, &:active {
|
||||||
@include colorize-shape($hover-color);
|
@include colorize-shape($hover-color);
|
||||||
color:lighten($text-color, 5%);
|
color:lighten($text-color, 5%);
|
||||||
|
outline-color: $hover-color;
|
||||||
|
box-shadow:none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,17 +19,9 @@
|
||||||
@mixin bg-color($background-color) {
|
@mixin bg-color($background-color) {
|
||||||
@include background-color($background-color);
|
@include background-color($background-color);
|
||||||
|
|
||||||
&>a,
|
a {
|
||||||
&>a:visited {
|
color:currentColor;
|
||||||
color: $background-color;
|
outline-color: currentColor;
|
||||||
background-color: getTextColorFromBackground($background-color);
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:active,
|
|
||||||
&:visited {
|
|
||||||
color: getTextColorFromBackground($background-color);
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue