xarxaprod-wp-theme/sass/components/content/_posts-and-pages.scss

669 lines
14 KiB
SCSS
Raw Permalink Normal View History

@media screen {
//any screen
2024-01-09 16:13:20 +01:00
.sticky {
display: block;
}
.post,
.page {
2024-02-22 12:44:46 +01:00
margin: 0;
2024-01-09 16:13:20 +01:00
}
.updated:not(.published) {
display: none;
}
.page-content,
.entry-summary {
margin: 1.5em 0 0;
}
2024-03-11 16:10:46 +01:00
.site-main {
.entry-title {
//margin: 0.5em 0 0 0;
2024-03-11 16:10:46 +01:00
}
}
2024-01-09 16:13:20 +01:00
.page-links {
clear: both;
margin: 0 0 1.5em;
}
2024-03-13 20:24:02 +01:00
.home-featured {
padding: 0 1rem;
}
/*
* big letters block below titles
* */
.xarxaprod-intro {
line-height: 1.2;
margin-top: 0;
margin-bottom: 0;
}
/*
* blocks columns with line below each block
* see Que oferim?
* */
.ratlla-abaix,.border-bottom {
.wp-block-column {
position:relative;
padding-top: 1em;
padding-bottom: 1em;
> :last-child {
// border-bottom: $border__line;
&:after {
content: "";
border-bottom: $border__line;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
}
}
}
.wp-block-heading {
display:inline-grid;
}
p {
margin-bottom: 0;
}
}
/*
* download files
* line and icon to show download
*
* * * * * * * */
.descarregar-fitxers,.descarga-fichero,.download-files {
a {
display: inline-block;
width: 100%;
border-bottom: $border__line;
&:after {
content: "";
display:inline-block;
float: right;
width: 1em;
height: 1em;
background-image: url(./assets/img/icon-download.svg);
background-repeat: none;
background-size: contain;
}
}
}
/* used in
* template-parts/section-eachpost.php
* */
.xarxaprod-card-each {
display: flex;
flex-direction: column;
.entry-title {
2024-01-09 16:13:20 +01:00
margin: 0;
padding: 0 0 0.5rem 0;
//border-bottom: $border__line;
}
h6 {
padding: 0.5rem 1rem 0.5rem 0;
border-bottom: $border__line;
2024-01-09 16:13:20 +01:00
}
.xarxaprod-deadline {
text-transform: uppercase;
}
2024-01-09 16:13:20 +01:00
p {
padding: 0.5rem 0;
margin:0;
}
2024-03-10 13:34:02 +01:00
.excerpt {
border-bottom: $border__line;
2024-03-10 13:34:02 +01:00
margin-bottom: 0.5em;
padding: 0.5em 0;
2024-03-10 13:34:02 +01:00
}
.more-link {
margin-top: 1rem;
}
}
/* used in
* template-parts/content-xarxaprod-ajut.php
* template-parts/content-xarxaprod-convo.php
* template-parts/section-eachpost.php
* */
.xarxaprod-card-each {
&.xarxaprod-ajut {
.entry-title {
display: inline-flex;
2024-04-05 11:46:08 +02:00
align-items: flex-start;
height: $font__size-body * 6.4;
border-bottom: $border__line;
overflow: hidden;
}
}
}
.xarxaprod-fund-info-fields,
.xarxaprod-fund-info-contact-fields {
2024-01-09 16:13:20 +01:00
display: grid;
2024-04-01 18:49:43 +02:00
margin-bottom: 2rem;
.xarxaprod-fund-info-field {
margin: 0;
2024-04-01 18:49:43 +02:00
padding: 1rem 0;
border-bottom: $border__line;
2024-01-09 16:13:20 +01:00
}
h6 {
2024-04-01 18:49:43 +02:00
//display: inline;
font-size: $font__size-body*2.4;
2024-01-09 16:13:20 +01:00
font-variant: all-petite-caps;
2024-04-01 18:49:43 +02:00
~ p .button {
display: inline-block;
margin-top: 0.5rem;
}
2024-01-09 16:13:20 +01:00
}
p {
2024-04-01 18:49:43 +02:00
margin: 0;
2024-01-09 16:13:20 +01:00
}
.xarxaprod-fund-original-title {
font-weight: bold;
}
2024-01-09 16:13:20 +01:00
li {
font-size: $font__size-body*1.3;
2024-01-09 16:13:20 +01:00
}
}
.xarxaprod-funder-name,
.xarxaprod-fund-contact-name,
.xarxaprod-fund-web {
2024-01-09 16:13:20 +01:00
display: flex;
margin:0;
padding: 0;
font-variant: all-petite-caps;
font-size: $font__size-body*1.1;
2024-01-09 16:13:20 +01:00
line-height: 0.9;
align-items: center;
a {
text-decoration: none;
font-size: $font__size-body*0.8;
2024-01-09 16:13:20 +01:00
}
}
/* used in
* archive-xarxaprod-convo.php
* page-template/convo-search.php
* template-parts/content-xarxaprod-convo.php
* template-parts/section-eachconvo.php
* */
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
//margin-bottom: 2em;
2024-03-11 16:10:46 +01:00
li {
padding: 0.2em 0;
border-bottom: $border__line;
font-size: $font__size-body*1;
&:first-of-type {
border-top: $border__line;
}
2024-03-11 16:10:46 +01:00
.xarxaprod-label li {
display: inherit;
margin: 0;
padding: 0;
color: inherit;
border: none;
background-color: transparent;
2024-03-11 16:10:46 +01:00
font-size: inherit;
&:nth-child(n+2):before {
content:", ";
2024-03-11 16:10:46 +01:00
display:inline-block;
}
}
}
dt,dd {
display: inline;
2024-03-11 16:10:46 +01:00
font-weight: 100;
margin: 0;
span {
//padding-right: 0.5rem;
}
2024-03-11 16:10:46 +01:00
}
p {
grid-row: 1 / 2;
margin: 0;
}
}
.xarxaprod-card-each {
&.xarxaprod-convo {
.entry-title {
display: inline-flex;
align-items: flex-start;
min-height: $font__size-body * 3.6;
}
}
}
.single-xarxaprod-convo {
article.xarxaprod-convo {
> .xarxaprod-convo-info-fields {
2024-04-05 12:35:13 +02:00
width: 100%;
padding-top: 2rem;
padding-bottom: 2rem;
}
> .entry-footer {
padding-top: 2rem;
.xarxaprod-more-convos-header {
padding: 2rem 0;
font-size: $font__size-body*1.6;
text-align: center;
text-transform: uppercase;
}
.last-convos{
padding: 2rem 0;
border-top: $border__line;
> header {
display:none;
}
}
}
}
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
li {
display:grid;
grid-template-columns: 0.75fr 2.25fr;
}
dt {
grid-row: 1 / 1;
font-weight: 100;
}
dd {
grid-row: 1 / 2;
margin: 0;
font-weight: 700;
}
2024-04-05 12:35:13 +02:00
}
.archive-posts {
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
li {
&:first-of-type{
border-top: $border__line;
}
}
}
}
}
/* used in
2024-03-14 11:37:22 +01:00
* template-parts/content-xarxaprod-associat.php
* * * * * * * * * */
.single-xarxaprod-associat {
.xarxaprod-associat {
> section {
margin-top: 4em;
}
2024-03-31 19:45:28 +02:00
}
.xarxaprod-associat-info {
display: grid;
grid-template-columns: 1fr;
gap: $grid__gap * 1 ;
2024-03-31 19:45:28 +02:00
.xarxaprod-associat-contact,
.xarxaprod-associat-services {
dt {
height: $font__size-body*1.5;
}
2024-03-31 19:45:28 +02:00
li {
display: grid;
font-size: $font__size-body*1;
border: none;
border-top: $border__line;
margin: 0;
padding: 0.5em 0;
}
2024-03-31 19:45:28 +02:00
h6,p {
font-size: $font__size-body*1;
margin: 0;
padding: 0;
}
}
2024-03-31 19:45:28 +02:00
.xarxaprod-associat-contact li {
grid-template-columns: 1fr 2.5fr;
}
.xarxaprod-associat-services li {
}
2024-03-31 19:45:28 +02:00
.xarxaprod-associat-logo {
display: inline-flex;
align-content: center;
justify-content: center;
2024-03-31 19:45:28 +02:00
max-height: 11rem;
img {
object-fit: contain;
}
2024-03-31 19:45:28 +02:00
}
}
.xarxaprod-associat-convos {
}
.xarxaprod-associat-location {
.xarxaprod-associat-osm-map {
}
.xarxaprod-associat-osm-link {
display: grid;
grid-template-columns: auto;
align-items: center;
h6,p,a {
margin: 0.5em ;
font-size: $font__size-body*1;
2024-03-13 17:48:58 +01:00
}
}
}
}
2024-03-14 11:37:22 +01:00
/*
* used in
* archive-xarxaprod-associat.php
* page-templates/associats-search.php
*
* */
.xarxaprod-associat {
}
.xarxaprod-associat-contact {
font-size: $font__size-body*0.9;
h6 {
font-size: $font__size-body*0.9;
border: none;
}
li {
display:grid;
grid-template-columns: 1fr 2fr;
}
}
/* mapas leaflet associats */
2024-04-01 14:08:43 +02:00
.xarxaprod-associats-map,.xarxaprod-espais-map {
margin:0;
grid-column: 1 / -1;
2024-04-01 14:08:43 +02:00
aspect-ratio: 4 / 3;
background-color: rgba(200,200,200,0.4); //place holder background color
}
.page-template-associats-search{
.xarxaprod-associats-map,.xarxaprod-espais-map {
aspect-ratio: 4 / 3;
}
}
.single-xarxaprod-associat {
.xarxaprod-associats-map,.xarxaprod-espais-map {
aspect-ratio: 16 / 9;
}
}
/*
* Arxiu
* */
.xarxaprod-filtered-arxiu {
> header {
grid-column: -1 / 1;
}
> aside {
grid-column: -1 / 1;
}
> .archive-posts {
grid-column: -1 / 1;
grid-template-columns: repeat(3, 1fr);
}
}
/*
* categories:
* convocatorias pre 2024
* REC
*
* * * * * * * * * * * * * * * */
.archive.category-convocatories {
main {
> aside {
grid-column: -1 / 1;
}
> .archive-posts.category-convocatories {
grid-column: -1 / 1;
grid-template-columns: repeat(3, 1fr);
}
}
}
//.xarxaprod-cards,.category-convocatories, .category-rec {
.xarxaprod-cards,.category-rec {
display: flex;
flex-flow: column;
justify-content: flex-end;
padding-bottom: $font__size-body * 2;
2024-03-11 16:36:50 +01:00
.wp-block-post-title {
font-size: $font__size-body*1.5;
2024-03-11 16:36:50 +01:00
margin-bottom: 0.5em;
padding-bottom: 0.5em;
border-bottom: $border__line;
2024-03-11 16:36:50 +01:00
}
.post-excerpt,
2024-03-11 16:36:50 +01:00
.wp-block-post-excerpt {
min-height: $font__size-body * 7;
2024-03-11 16:36:50 +01:00
margin: 0.5em 0;
font-size: $font__size-body * 1;
border-bottom: $border__line;
2024-03-11 16:36:50 +01:00
}
.wp-block-read-more {
margin: 1em 0;
}
}
/*
* categories:
* agenda, activitats, agenda-es
*
* * * * * * * * * * * * * * * */
//.category-activitats,.category-agenda,.category-agenda-es
/* used in
* template-parts/section-last-agenda.php
* template-parts/section-each-agenda-entry.php
* */
.xarxaprod-agenda {
.xarxaprod-card-each {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 0.2em 0;
border-bottom: $border__line;
&:first-of-type {
border-top: $border__line;
}
> * {
display: inline-flex;
align-items: center;
}
header,.entry-header {
}
.entry-title,h6 {
border-bottom: none;
padding: 0.5rem 0;
}
p {
}
.activity-organizer, .organiza-activitat {
}
.agenda-date, .agenda-data {
}
}
}
.xarxaprod-card-each{
&.category-activitats {
justify-content: flex-start;
.entry-title {
display: inline-flex;
align-items: flex-start;
min-height: $font__size-body * 5.5;
overflow: hidden;
border: none;
}
figure {
// position: absolute;
order: -1;
margin: 0 0 1rem 0;
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
img {
object-position: 50% 50%;
max-height: 100%;
object-fit: cover;
width: 100%;
}
}
.xarxaprod-agenda-info {
margin-bottom: 0;
}
li {
display: inline-flex;
width: 100%;
max-height: 2.9rem;
overflow: hidden;
font-weight: 100;
}
dt {
padding-right: 0.5rem;
text-transform: uppercase;
}
dd {
font-weight: 100;
}
.post-excerpt {
margin: 0;
min-height: 5rem;
}
}
}
/*
* filters form custom fields
* * */
.xarxaprod-filters {
section {
margin: 0;
.filter {
display: none;
}
}
}
.xarxaprod-titol-opcions {
// applied in forms and contactforms
display: inline-block;
width: 100%;
margin-bottom: 0;
margin-bottom: 0.5rem;
padding: 0.6em 1em 0.4em;
clear: both;
cursor: pointer;
2024-03-11 12:05:14 +01:00
font-weight: 900;
font-size: $font__size-body*0.9;
2024-03-14 20:54:11 +01:00
border: $border__line;
&:after {
content: ">";
display: inline;
float:right;
}
&:hover {
&:after {
transform: rotate(90deg);
animation: rotate 0.5s;
}
}
@keyframes rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(90deg);
}
}
}
2024-01-09 16:13:20 +01:00
}
@media screen and (max-width: 48em) {
//only smaller than 48em
.post,
.page {
margin: 0;
}
.xarxaprod-filters {
section {
display: block;
h5 {
display: block;
width: 100%;
}
.filter {
width: 45%;
margin-top: 0.5rem;
margin-right: 0.3em;
float: left;
&:last-of-type {
margin-bottom: 2rem;
}
}
2024-03-12 14:20:12 +01:00
&:last-of-type:after {
content: "";
display: inline-block;
width: 100%;
}
}
}
2024-01-09 16:13:20 +01:00
}
@media screen and (min-width: 48em) {
//only bigger than 48em
.xarxaprod-filters {
a.button-more {
display:inline-block;
margin-top: 1rem;
}
}
.archive-posts {
//grid-template-columns: repeat(2 , minmax(0,1fr));
}
.single-xarxaprod-convo,
.single-post .category-activitats{
.xarxaprod-convo-info-fields,
.xarxaprod-agenda-info {
li {
font-size: $font__size-body*1.5;
}
}
}
.single-xarxaprod-associat {
.xarxaprod-associat {
}
.xarxaprod-associat-info {
grid-template-columns: 1fr 1fr 1fr;
}
.xarxaprod-associat-location {
}
.xarxaprod-associat-osm-link {
grid-template-columns: min-content auto;
}
}
.xarxaprod-agenda {
.xarxaprod-card-each {
flex-direction: row-reverse;
header,.entry-header {
width: 50%;
}
.activity-organizer, .organiza-activitat {
width: 30%;
}
.agenda-date, .agenda-data {
width: 17%;
}
2024-01-09 16:13:20 +01:00
}
}
2024-01-09 16:13:20 +01:00
}
@media screen and (min-width: 80em) {
//only bigger than 80rem
.xarxaprod-filtered-content {
//grid-template-columns: 1fr 3fr;
.archive-xarxaprod-associats,&.archive-custom-post-type-associat {
//grid-template-columns: repeat(1 , minmax(0,1fr));
2024-01-09 16:13:20 +01:00
}
}
.archive-posts {
}
2024-01-09 16:13:20 +01:00
}