2020-09-23 23:11:03 +00:00
|
|
|
|
|
|
|
/* Single Item Page */
|
2020-12-29 04:33:20 +00:00
|
|
|
.tainacan-item-single {
|
2020-09-23 23:11:03 +00:00
|
|
|
|
2020-12-29 04:33:20 +00:00
|
|
|
// Overall page layout structure -------------------
|
|
|
|
@include display-grid;
|
|
|
|
align-items: start;
|
2021-02-28 02:27:10 +00:00
|
|
|
grid-column-gap: 48px;
|
|
|
|
column-gap: 48px;
|
2020-12-29 04:33:20 +00:00
|
|
|
|
|
|
|
.tainacan-item-section {
|
2021-02-02 13:31:52 +00:00
|
|
|
max-width: var(--block-max-width);
|
2020-12-29 04:33:20 +00:00
|
|
|
align-self: flex-start;
|
|
|
|
align-self: start;
|
2020-12-30 03:31:53 +00:00
|
|
|
margin-bottom: 2.25rem;
|
2020-12-29 04:33:20 +00:00
|
|
|
}
|
2020-12-30 03:31:53 +00:00
|
|
|
.tainacan-item-section--document,
|
|
|
|
.tainacan-item-section--gallery { grid-area: document }
|
2020-12-29 04:33:20 +00:00
|
|
|
.tainacan-item-section--attachments { grid-area: attachments }
|
|
|
|
.tainacan-item-section--metadata { grid-area: metadata }
|
|
|
|
|
|
|
|
&.tainacan-item-single--layout-type-dam {
|
2020-12-30 03:31:53 +00:00
|
|
|
grid-template-areas:
|
2020-12-29 04:33:20 +00:00
|
|
|
'document'
|
|
|
|
'attachments'
|
|
|
|
'metadata';
|
2020-12-30 03:31:53 +00:00
|
|
|
grid-template-columns: 100%;
|
2020-12-29 04:33:20 +00:00
|
|
|
}
|
|
|
|
&.tainacan-item-single--layout-type-dma {
|
2020-12-30 03:31:53 +00:00
|
|
|
grid-template-areas:
|
2020-12-29 04:33:20 +00:00
|
|
|
'document'
|
|
|
|
'metadata'
|
|
|
|
'attachments';
|
2020-12-30 03:31:53 +00:00
|
|
|
grid-template-columns: 100%;
|
2020-12-29 04:33:20 +00:00
|
|
|
}
|
|
|
|
&.tainacan-item-single--layout-type-mda {
|
|
|
|
grid-template-areas:
|
2020-12-30 03:31:53 +00:00
|
|
|
'metadata'
|
2020-12-29 04:33:20 +00:00
|
|
|
'document'
|
|
|
|
'attachments';
|
2020-12-30 03:31:53 +00:00
|
|
|
grid-template-columns: 100%;
|
2020-12-29 04:33:20 +00:00
|
|
|
}
|
|
|
|
&.tainacan-item-single--layout-type-mg {
|
|
|
|
grid-template-areas:
|
2020-12-30 03:31:53 +00:00
|
|
|
'metadata document'
|
|
|
|
'metadata attachments'
|
|
|
|
'metadata .';
|
|
|
|
grid-template-columns: 60% 40%;
|
|
|
|
|
|
|
|
@media only screen and (max-width: 960px) {
|
|
|
|
grid-template-areas:
|
|
|
|
'metadata'
|
|
|
|
'document'
|
|
|
|
'attachments';
|
|
|
|
grid-template-columns: 100% !important;
|
|
|
|
}
|
2020-12-29 04:33:20 +00:00
|
|
|
}
|
|
|
|
&.tainacan-item-single--layout-type-gm {
|
|
|
|
grid-template-areas:
|
2020-12-30 03:31:53 +00:00
|
|
|
'document metadata'
|
|
|
|
'attachments metadata'
|
|
|
|
'. metadata';
|
|
|
|
grid-template-columns: 60% 40%;
|
|
|
|
|
|
|
|
@media only screen and (max-width: 960px) {
|
|
|
|
grid-template-areas:
|
|
|
|
'document'
|
|
|
|
'attachments'
|
|
|
|
'metadata';
|
|
|
|
grid-template-columns: 100% !important;
|
|
|
|
}
|
2020-12-29 04:33:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Headings and spacing ----------------------------
|
2020-09-23 23:11:03 +00:00
|
|
|
h1 {
|
|
|
|
--fontSize: 30px;
|
|
|
|
}
|
|
|
|
h2 {
|
2021-01-04 21:40:54 +00:00
|
|
|
--fontSize: 24px;
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|
|
|
|
h3 {
|
2021-01-04 21:40:54 +00:00
|
|
|
--fontSize: 20px;
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|
|
|
|
h4 {
|
2021-01-04 21:40:54 +00:00
|
|
|
--fontSize: 18px;
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|
|
|
|
h5 {
|
2021-01-04 21:40:54 +00:00
|
|
|
--fontSize: 16px;
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|
|
|
|
h6 {
|
2021-01-04 21:40:54 +00:00
|
|
|
--fontSize: 14px;
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|
2021-01-04 22:57:51 +00:00
|
|
|
.tainacan-single-item-section {
|
|
|
|
text-align: var(--section-alignment, left);
|
|
|
|
}
|
2020-09-23 23:11:03 +00:00
|
|
|
|
2021-04-02 13:58:40 +00:00
|
|
|
// Tainacan Media Component (attachments gallery)
|
|
|
|
.tainacan-media-component {
|
|
|
|
--swiper-theme-color: var(--paletteColor1, #3eaf7c);
|
|
|
|
--swiper-navigation-color: var(--paletteColor1, #3eaf7c);
|
|
|
|
--swiper-navigation-size: 2.5rem;
|
|
|
|
--tainacan-media-background: var(--background-color, #ffffff);
|
|
|
|
--tainacan-media-main-carousel-height: 60vh;
|
|
|
|
--tainacan-media-main-carousel-width: 100%;
|
|
|
|
--tainacan-media-thumbs-carousel-width: 100%;
|
|
|
|
--tainacan-media-thumbs-carousel-item-size: var(--attachments-size,140px);
|
2021-02-28 02:27:10 +00:00
|
|
|
|
2021-04-02 13:58:40 +00:00
|
|
|
.tainacan-media-component__swiper-thumbs {
|
|
|
|
font-weight: normal;
|
|
|
|
transition: font-weight 0.3s ease;
|
|
|
|
|
2020-09-24 02:39:33 +00:00
|
|
|
img {
|
2020-12-28 19:39:26 +00:00
|
|
|
border-radius: var(--borderRadius, 3px);
|
2021-04-02 13:58:40 +00:00
|
|
|
border-bottom: 4px solid transparent;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
transition: border 0.3s ease;
|
2020-09-24 02:39:33 +00:00
|
|
|
}
|
2021-04-02 13:58:40 +00:00
|
|
|
|
|
|
|
.swiper-slide-metadata {
|
2021-01-04 22:57:51 +00:00
|
|
|
display: block;
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
font-family: var(--fontFamily);
|
|
|
|
font-size: var(--fontSize);
|
|
|
|
font-weight: var(--fontWeight);
|
|
|
|
font-style: var(--fontStyle, inherit);
|
|
|
|
line-height: var(--lineHeight);
|
|
|
|
letter-spacing: var(--letterSpacing);
|
|
|
|
text-transform: var(--textTransform);
|
|
|
|
-webkit-text-decoration: var(--textDecoration);
|
|
|
|
text-decoration: var(--textDecoration);
|
|
|
|
}
|
2020-09-24 02:39:33 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-29 04:33:20 +00:00
|
|
|
|
|
|
|
// Metadata list -------------------------------------
|
|
|
|
.tainacan-item-section__metadata {
|
2020-09-23 23:11:03 +00:00
|
|
|
height: 100%;
|
2021-01-03 23:47:07 +00:00
|
|
|
-moz-column-width: var(--metadata-column-width, 400px);
|
|
|
|
-webkit-column-width: var(--metadata-column-width, 400px);
|
|
|
|
column-width: var(--metadata-column-width, 400px);
|
2020-09-23 23:11:03 +00:00
|
|
|
|
|
|
|
div {
|
|
|
|
-webkit-column-break-inside: avoid;
|
|
|
|
page-break-inside: avoid;
|
|
|
|
break-inside: avoid;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
&:last-child {
|
|
|
|
-webkit-column-break-inside: auto;
|
|
|
|
page-break-inside: auto;
|
|
|
|
break-inside: auto;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
-moz-column-gap: 0;
|
|
|
|
-moz-column-rule: none;
|
|
|
|
-webkit-column-gap: 0;
|
|
|
|
-webkit-column-rule: none;
|
2021-01-03 21:17:51 +00:00
|
|
|
column-gap: 4rem;
|
2020-09-23 23:11:03 +00:00
|
|
|
column-rule: none;
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 1366px) {
|
|
|
|
-moz-column-gap: 7rem;
|
|
|
|
-moz-column-rule: none;
|
|
|
|
-webkit-column-gap: 7rem;
|
|
|
|
-webkit-column-rule: none;
|
|
|
|
column-gap: 7rem;
|
|
|
|
column-rule: none;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
padding-right: 1rem;
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
width: 100%;
|
|
|
|
&:first-of-type:last-of-type {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
h4,
|
|
|
|
label {
|
|
|
|
padding-right: 0.875rem;
|
|
|
|
width: 100%;
|
|
|
|
&:first-of-type:last-of-type {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2021-01-04 22:57:51 +00:00
|
|
|
.tainacan-metadata-label {
|
|
|
|
text-align: var(--metadata-label-alignment, left);
|
|
|
|
}
|
2021-01-03 21:17:51 +00:00
|
|
|
.tainacan-metadata-value {
|
2021-01-04 22:57:51 +00:00
|
|
|
text-align: var(--metadata-value-alignment, left);
|
2021-01-03 21:17:51 +00:00
|
|
|
font-family: var(--fontFamily);
|
|
|
|
font-size: var(--fontSize);
|
|
|
|
font-weight: var(--fontWeight);
|
|
|
|
font-style: var(--fontStyle, inherit);
|
|
|
|
line-height: var(--lineHeight);
|
|
|
|
letter-spacing: var(--letterSpacing);
|
|
|
|
text-transform: var(--textTransform);
|
|
|
|
-webkit-text-decoration: var(--textDecoration);
|
|
|
|
text-decoration: var(--textDecoration);
|
2021-01-03 23:47:07 +00:00
|
|
|
margin-bottom: 0.75rem;
|
|
|
|
padding-bottom: 0.75rem;
|
2021-01-04 21:40:54 +00:00
|
|
|
border-bottom: var(--metadata-value-border, 0px solid rgba(125, 125, 125, 0.5));
|
2021-01-03 21:17:51 +00:00
|
|
|
}
|
2020-12-29 04:33:20 +00:00
|
|
|
.tainacan-item-section__metadata-thumbnail img {
|
|
|
|
border-radius: var(--borderRadius, 3px);
|
|
|
|
}
|
2020-09-23 23:11:03 +00:00
|
|
|
|
|
|
|
// Metadata type textarea has different separator
|
|
|
|
.multivalue-separator {
|
|
|
|
color: #cbcbcb;
|
|
|
|
margin: 0 8px;
|
|
|
|
}
|
|
|
|
.hierarchy-separator {
|
|
|
|
color: #cbcbcb;
|
|
|
|
}
|
|
|
|
.metadata-type-compound,
|
|
|
|
.metadata-type-textarea {
|
|
|
|
.multivalue-separator {
|
|
|
|
display: block;
|
|
|
|
max-height: 1px;
|
|
|
|
width: 35px;
|
|
|
|
background: #cbcbcb;
|
|
|
|
content: none;
|
|
|
|
color: transparent;
|
|
|
|
margin: 0.875rem auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.tainacan-compound-group {
|
|
|
|
padding-left: 1.5rem;
|
2021-01-03 23:47:07 +00:00
|
|
|
border-left: 1px solid #e0e5eb;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.metadata-type-2 {
|
|
|
|
&>div {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
.tainacan-metadata-label {
|
|
|
|
flex-basis: 40%;
|
2021-04-02 19:56:34 +00:00
|
|
|
margin-bottom: .75rem;
|
2021-01-04 21:40:54 +00:00
|
|
|
border-right: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
|
2021-01-03 23:47:07 +00:00
|
|
|
}
|
|
|
|
.tainacan-metadata-value {
|
|
|
|
flex-basis: 60%;
|
|
|
|
padding-left: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
.tainacan-metadata-label {
|
|
|
|
flex-basis: 100%;
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
}
|
|
|
|
.tainacan-metadata-value {
|
|
|
|
flex-basis: 100%;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|
|
|
|
}
|
2020-09-30 13:06:00 +00:00
|
|
|
|
2020-12-29 04:33:20 +00:00
|
|
|
// Document Download button -------------------------------------
|
|
|
|
.tainacan-item-file-download {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0);
|
|
|
|
border-radius: 24px;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
bottom: -18px;
|
|
|
|
right: calc(50% - 18px);
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 0;
|
|
|
|
background-color: var(--paletteColor1, #3eaf7c);
|
|
|
|
color: white;
|
|
|
|
transition: opacity 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
|
2020-12-28 19:39:26 +00:00
|
|
|
|
2020-12-29 04:33:20 +00:00
|
|
|
a {
|
|
|
|
height: 38px;
|
|
|
|
width: 38px;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2020-12-28 19:39:26 +00:00
|
|
|
z-index: 99;
|
2021-04-02 13:58:40 +00:00
|
|
|
background: transparent !important;
|
2020-09-30 13:06:00 +00:00
|
|
|
}
|
2020-12-28 19:39:26 +00:00
|
|
|
|
2020-12-29 04:33:20 +00:00
|
|
|
&::after {
|
|
|
|
position: relative;
|
|
|
|
top: -38px;
|
|
|
|
display: inline-block;
|
|
|
|
font: normal normal normal 20px/1 "TainacanIcons";
|
|
|
|
font-size: 1.25rem !important;
|
|
|
|
line-height: 2.25rem;
|
|
|
|
text-rendering: auto;
|
|
|
|
vertical-align: middle;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
font-size: 1.25em;
|
|
|
|
text-transform: none !important;
|
|
|
|
letter-spacing: normal !important;
|
|
|
|
content: 'download';
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2020-12-28 19:39:26 +00:00
|
|
|
}
|
2021-04-02 19:56:34 +00:00
|
|
|
.tainacan-media-component__swiper-main {
|
2021-04-02 13:58:40 +00:00
|
|
|
&:hover {
|
|
|
|
.tainacan-item-file-download {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 23:11:03 +00:00
|
|
|
}
|