volto-advanced-variations
Version:
Advanced variations: Volto add-on
621 lines (512 loc) • 12.1 kB
CSS
/* Start existing-content-backgroundimage */
.backgroundimage {
background: #000;
aspect-ratio: 16/9;
object-fit: cover;
position: relative;
overflow: hidden;
width: 100%;
}
.backgroundimage .info-text {
color: #fff;
width: 100%;
display: block;
position: absolute;
bottom: 0px;
left: 0px;
z-index: 2;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, #000 75%);
padding: 0 0.5em;
height: auto;
}
.backgroundimage .info-text h2,
.backgroundimage .info-text h3,
.backgroundimage .info-text h4 {
color: #fff;
padding-left: 5px;
margin-left: -5px;
margin-bottom: 5px;
text-shadow: -1px -1px 4px #000, 1px -1px 4px #000, -1px 1px 4px #000,
1px 1px 4px #000;
}
.card h2,
.card h3,
.card h4 {
margin-top: 0;
}
.backgroundimage .info-text p {
margin: 0em;
}
.backgroundimage .focuspoint img {
aspect-ratio: 16/9;
object-fit: cover;
z-index: 1;
}
.backgroundimage:hover .info-text p {
height: 5em;
transition: 0.5s;
}
.backgroundimage a:hover .focuspoint {
filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
transition: filter 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backgroundimage .info-text p {
height: 0.2em;
overflow: hidden;
transition: height 260ms cubic-bezier(0.4, 0, 0.2, 1), padding 260ms cubic-bezier(0.4, 0, 0.2, 1);
padding-top: 4px;
}
.backgroundimage:hover .info-text p.date {
height: 1.5em;
transition: height 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backgroundimage:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
transition: box-shadow 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backgroundimage .event-when {
background: #c8201a;
padding: 0 0.5em;
}
.limited-text {
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box ;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: normal;
}
.text-ellipsis {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
/* End existing-content-backgroundimage */
/* Start Slick */
.slick-slide {
padding: 0 0.5em 0.5em 0.5em;
}
.backgroundimage h2,
.backgroundimage h3,
.backgroundimage h4 {
margin-top: 0 ;
}
.top h2,
.top h3,
.top h4 {
margin-top: 0 ;
}
.advancedView {
max-width: 100vw;
}
.advancedView {
width: calc(100% + 1em);
margin-left: -0.5em;
}
.slick-prev:before,
.slick-next:before {
color: #fff;
box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.75);
border-radius: 50%;
background: #000;
padding: 2px 1px 0 1px;
}
.advancedView.has--stretch--stretch {
margin-left: 0;
}
.advancedView.has--stretch--stretch .slick-slide {
padding: 0;
}
.advancedList .top.aligned.twelve.wide.column {
padding: 0 1em;
}
.listing.advancedCarousel.has--stretch--stretch .advancedView {
margin: 0;
}
.listing.advancedCarousel.has--stretch--stretch .advancedView .column1 .slick-slide {
padding: 0;
}
.listing.advancedCarousel.has--stretch--stretch .advancedView:hover .column1 .slick-next {
transform: translateX(-58px);
}
/*@media screen and (min-width: 767px) and (max-width: 1790px) {*/
/* body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar-collapsed) .stretch .advancedView {*/
/* margin: 0 0 0 186px;*/
/* width: calc(100% - 80px);*/
/* }*/
/* body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar) .stretch .advancedView {*/
/* margin: 0 0 0 166px;*/
/* width: calc(100% - 20px);*/
/* }*/
/*}*/
.backgroundimage a:hover img {
filter: blur(2px);
transition: filter 420ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media only screen and (max-width: 991px) {
.advancedCarousel.has--stretch--stretch .advancedView {
margin-left: 0;
}
.advancedCarousel.has--stretch--stretch .slick-slide {
padding: 0;
}
}
@media only screen and (max-width: 1222px) {
.view-editview .advancedView {
max-width: calc(100vw - 475px) ;
}
}
@media only screen and (min-width: 1223px) and (max-width: 1446px) {
.view-editview .advancedView {
max-width: 730px ;
}
}
@media only screen and (min-width: 1447px) and (max-width: 1654px) {
.view-editview .advancedView {
max-width: 940px ;
}
}
@media only screen and (min-width: 1655px) {
.view-editview .advancedView {
max-width: 1134px ;
}
}
@media screen and (min-width: 767px) {
body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar-collapsed) .stretch {
max-width: 100vw ;
width: calc(100vw - 80px) ;
margin: 0 0 0 40px ;
left: calc(50% - 50vw);
}
body:not(.view-editview):not(.view-addview):not(.document_wide_view):not(.is-anonymous):not(.has-toolbar) .stretch {
max-width: 100vw ;
width: calc(100vw - 20px) ;
margin: 0 0 0 10px ;
left: calc(50% - 50vw);
}
}
@media screen and (max-width: 766px) {
.view-editview .advancedView {
max-width: calc(100vw - 28px) ;
}
.styled-listing.has--stretch--stretch.styled.stretch {
/*left: calc(50% - 50vw) !important;*/
width: 100vw ;
margin: 0 ;
}
.advancedView .slick-prev {
z-index: 2;
transform: translateX(0);
opacity: 0;
}
.advancedView:hover .slick-prev {
transform: translateX(42px);
opacity: 1;
transition: opacity 260ms ease-out, transform 260ms ease-out;
}
.advancedView .slick-next {
z-index: 2;
transform: translateX(0);
opacity: 0;
}
.advancedView:hover .slick-next {
transform: translateX(-42px);
opacity: 1;
transition: opacity 260ms ease-out, transform 260ms ease-out;
}
}
.advancedView .column1 .slick-prev {
z-index: 2;
transform: translateX(0);
opacity: 0;
}
.advancedView:hover .column1 .slick-prev {
transform: translateX(42px);
opacity: 1;
transition: opacity 260ms ease-out, transform 260ms ease-out;
}
.advancedView .column1 .slick-next {
z-index: 2;
transform: translateX(0);
opacity: 0;
}
.advancedView:hover .column1 .slick-next {
transform: translateX(-42px);
opacity: 1;
transition: opacity 260ms ease-out, transform 260ms ease-out;
}
.advancedView .column1 .backgroundimage:hover {
box-shadow: 0 0 0;
}
.advancedView .ui.one.column.grid {
padding: 0;
margin: 0;
}
.advancedView.advancedList {
padding-left: 7px;
}
.advancedView .twelve.wide.column.advanced-item {
padding: 0;
margin: 0;
}
.slick-dots {
bottom: 30px ;
}
.advancedView.advancedList {
padding: 0 0.5em ;
}
/* End Slick */
/* start listing */
.ui.one.column.grid.advanced-item {
padding: 0;
margin: 0;
}
.ui.one.column.grid.advanced-item .column {
padding: 0 7px 14px 7px ;
margin: 0;
}
.ui.one.column.grid.advanced-item .column.background {
padding: 0 0 0 0 ;
margin: 0;
}
.block.listing.advanced .ui.stackable.one.column.grid,
.block.listing.advanced .ui.stackable.two.column.grid,
.block.listing.advanced .ui.stackable.three.column.grid,
.block.listing.advanced .ui.stackable.four.column.grid {
margin: 0 -0.5em 0 -0.5em;
}
.event-when {
font-weight: bold;
}
/* end listing */
/* start eventCard */
.cal_date {
box-shadow: 0 1px 3px rgb(0 0 0 / 25%), inset 0 -1px 0 rgb(0 0 0 / 10%);
overflow: hidden;
font-size: 0.8em;
float: left;
vertical-align: top;
text-align: center;
background-color: white;
border-radius: 0.5em;
min-width: 4.4em;
margin: 0 1em 0.5em 0 ;
padding-left: 0 ;
padding-right: 0 ;
}
.cal_month {
background: #c8201a;
padding: 0 0.5em;
color: #fff;
font-size: 1.1em;
line-height: 1.3em;
display: block;
}
.cal_day {
font-size: 2em;
display: block;
padding-top: 0.3em;
}
.cal_wkday {
display: block;
font-size: 1em;
font-weight: normal;
padding-bottom: 0.3em;
min-width: 7em;
}
.info-text .cal_wkday,
.info-text .cal_day {
color: #000000;
}
/* end eventCard */
.playpause {
position: absolute;
background: transparent ;
transform: translate(10px, -61px);
opacity: .25;
}
.playpause:hover {
opacity: 1;
}
.advancedImage {
padding: 0 0 0 0 ;
}
.threelines {
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box ;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
white-space: normal;
}
p.effectiveDate {
margin: 0;
color: #000000a8;
font-size: 14px;
line-height: 1em ;
}
@media only screen and (max-width: 767px) {
.advancedView>.ui.stackable.grid>.column:not(.row),
.ui.stackable.grid>.column.grid>.column {
padding: 0 0 0.5em 0 ;
}
}
.playpause .image {
height: 15px;
}
.slick-slider .advancedImage {
padding: 0 0 1em 0 ;
}
/* Prevent interaction with hidden slides */
.slick-slide[aria-hidden="true"] {
pointer-events: none;
/* Disable pointer events */
visibility: hidden;
/* Optionally hide the slide visually */
}
/* Ensure focusable elements within hidden slides are not focusable */
.slick-slide[aria-hidden="true"] a,
.slick-slide[aria-hidden="true"] button,
.slick-slide[aria-hidden="true"] input,
.slick-slide[aria-hidden="true"] select,
.slick-slide[aria-hidden="true"] textarea,
.slick-slide[aria-hidden="true"] [tabindex] {
pointer-events: none;
outline: none;
/* Remove focus outlines */
}
/* withQuerystringResults.css */
/* Advanced List Styles */
.advanced-list-ol {
list-style-type: decimal;
padding-left: 2em;
}
.advanced-list-ul {
list-style-type: disc;
padding-left: 2em;
}
.advanced-list-none {
list-style-type: none;
padding-left: 0;
}
.advanced-list-item {
margin-bottom: 1em;
}
/* ADA compliant: ensure focus indicators are visible */
.advanced-list-item a:focus-visible {
outline: 2px solid #000;
outline-offset: 2px;
border-radius: 2px;
}
/* Animation styles */
.fade-in-enabled {
transition: opacity 0.5s ease-in-out;
}
.fade-in-enabled .advanced-list-item {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive list styles */
@media only screen and (max-width: 767px) {
.advanced-list-ol,
.advanced-list-ul,
.advanced-list-none {
padding-left: 1em;
}
}
/* Advanced List Marker Styles */
.advanced-list-none {
list-style-type: none;
padding-left: 0;
}
.advanced-list-disc {
list-style-type: disc;
padding-left: 2em;
}
.advanced-list-circle {
list-style-type: circle;
padding-left: 2em;
}
.advanced-list-square {
list-style-type: square;
padding-left: 2em;
}
.advanced-list-decimal {
list-style-type: decimal;
padding-left: 2em;
}
.advanced-list-decimal-leading-zero {
list-style-type: decimal-leading-zero;
padding-left: 2em;
}
.advanced-list-lower-roman {
list-style-type: lower-roman;
padding-left: 2em;
}
.advanced-list-upper-roman {
list-style-type: upper-roman;
padding-left: 2em;
}
.advanced-list-lower-alpha {
list-style-type: lower-alpha;
padding-left: 2em;
}
.advanced-list-upper-alpha {
list-style-type: upper-alpha;
padding-left: 2em;
}
/* Advanced Table Styles */
.advanced-table td {
vertical-align: top;
padding: 1em;
}
.advanced-table-cell {
padding: 1em;
border: 1px solid #d4d4d5;
}
.advanced-table-cell .ui.card {
margin: 0;
}
/* Responsive table styles */
@media only screen and (max-width: 767px) {
.advanced-table td,
.advanced-table-cell {
display: block;
width: 100%;
}
}
.fade-enter {
opacity: 0;
}
.fade-enter-active {
opacity: 1;
transition: opacity 500ms ease-in-out;
}
.fade-exit {
opacity: 1;
}
.fade-exit-active {
opacity: 0;
transition: opacity 500ms ease-in-out;
}
.fade-in-section {
opacity: 0;
transform: translateY(24px);
visibility: hidden;
transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
will-change: opacity, transform, visibility;
}
.fade-in-section.is-visible {
opacity: 1;
transform: none;
visibility: visible;
}