Edit indentation style
This commit is contained in:
parent
98499d98de
commit
955b13fc44
23 changed files with 14326 additions and 14329 deletions
|
@ -11,84 +11,84 @@
|
|||
// Fonts and colors
|
||||
|
||||
body {
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--text-font-size);
|
||||
line-height: var(--text-line-height);
|
||||
color: var(--black);
|
||||
background-color: var(--feldgrau);
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--text-font-size);
|
||||
line-height: var(--text-line-height);
|
||||
color: var(--black);
|
||||
background-color: var(--feldgrau);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: var(--title-font-family);
|
||||
font-size: var(--h1-font-size);
|
||||
line-height: var(--h1-line-height);
|
||||
font-family: var(--title-font-family);
|
||||
font-size: var(--h1-font-size);
|
||||
line-height: var(--h1-line-height);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--h2-font-size);
|
||||
line-height: var(--h2-line-height);
|
||||
margin: 0 0 4rem 0;
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--h2-font-size);
|
||||
line-height: var(--h2-line-height);
|
||||
margin: 0 0 4rem 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--h3-font-size);
|
||||
line-height: var(--h3-line-height);
|
||||
margin: 2rem 0 1rem 0;
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--h3-font-size);
|
||||
line-height: var(--h3-line-height);
|
||||
margin: 2rem 0 1rem 0;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: var(--bold-font-weight);
|
||||
font-weight: var(--bold-font-weight);
|
||||
}
|
||||
|
||||
em {
|
||||
font-style: italic;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $desktop-media-query) {
|
||||
|
||||
.body--white-background {
|
||||
background-color: var(--white);
|
||||
}
|
||||
.body--white-background {
|
||||
background-color: var(--white);
|
||||
}
|
||||
}
|
||||
|
||||
// Link style
|
||||
|
||||
a {
|
||||
color: var(--black);
|
||||
text-decoration: none;
|
||||
transition: text-decoration 200ms ease-in-out;
|
||||
color: var(--black);
|
||||
text-decoration: none;
|
||||
transition: text-decoration 200ms ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 1px dashed var(--black);
|
||||
outline-offset: 2px;
|
||||
animation: expand-outline 200ms ease-in-out;
|
||||
}
|
||||
&:focus-visible {
|
||||
outline: 1px dashed var(--black);
|
||||
outline-offset: 2px;
|
||||
animation: expand-outline 200ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
// General layout
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $desktop-media-query) {
|
||||
|
||||
body {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
body {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -98,180 +98,180 @@ body {
|
|||
// Logo
|
||||
|
||||
.logo {
|
||||
width: 100%;
|
||||
padding: var(--logo-padding);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: var(--logo-padding);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
&--fixed-center {
|
||||
z-index: 2;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: calc(50vw - (var(--logo-width) / 2));
|
||||
display: block;
|
||||
}
|
||||
&--fixed-center {
|
||||
z-index: 2;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: calc(50vw - (var(--logo-width) / 2));
|
||||
display: block;
|
||||
}
|
||||
|
||||
.logo__link {
|
||||
width: var(--logo-width);
|
||||
height: var(--logo-height);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.logo__link {
|
||||
width: var(--logo-width);
|
||||
height: var(--logo-height);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo__icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.logo__icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
&--black {
|
||||
stroke: var(--black);
|
||||
transition: stroke 400ms ease-in-out;
|
||||
}
|
||||
&--black {
|
||||
stroke: var(--black);
|
||||
transition: stroke 400ms ease-in-out;
|
||||
}
|
||||
|
||||
&--white {
|
||||
stroke: var(--white);
|
||||
transition: stroke 400ms ease-in-out;
|
||||
}
|
||||
&--white {
|
||||
stroke: var(--white);
|
||||
transition: stroke 400ms ease-in-out;
|
||||
}
|
||||
|
||||
&--rotate-horizontal-bottom {
|
||||
animation: rotate-horizontal-bottom 800ms ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
&--rotate-horizontal-bottom {
|
||||
animation: rotate-horizontal-bottom 800ms ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $desktop-media-query) {
|
||||
|
||||
.logo {
|
||||
.logo {
|
||||
|
||||
&--fixed-right {
|
||||
z-index: 2;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1.5rem;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
&--fixed-right {
|
||||
z-index: 2;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1.5rem;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Sidebar
|
||||
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
padding: var(--sidebar-padding);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
background-color: transparent;
|
||||
transition: background-color 400ms ease-in-out;
|
||||
width: 100%;
|
||||
padding: var(--sidebar-padding);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
background-color: transparent;
|
||||
transition: background-color 400ms ease-in-out;
|
||||
|
||||
.sidebar__nav {
|
||||
max-width: 100%;
|
||||
}
|
||||
.sidebar__nav {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.sidebar__nav-item {
|
||||
.sidebar__nav-item {
|
||||
|
||||
+ .sidebar__nav-item {
|
||||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
}
|
||||
+ .sidebar__nav-item {
|
||||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__nav-link {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: var(--black);
|
||||
transition: color 400ms ease-in-out;
|
||||
}
|
||||
.sidebar__nav-link {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: var(--black);
|
||||
transition: color 400ms ease-in-out;
|
||||
}
|
||||
|
||||
.sidebar__social {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 1rem 0 0 0;
|
||||
}
|
||||
.sidebar__social {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 1rem 0 0 0;
|
||||
}
|
||||
|
||||
.sidebar__social-link {
|
||||
width: var(--icon-size);
|
||||
height: var(--icon-size);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.sidebar__social-link {
|
||||
width: var(--icon-size);
|
||||
height: var(--icon-size);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
+ .sidebar__social-link {
|
||||
margin: 0 0 0 1rem;
|
||||
}
|
||||
}
|
||||
+ .sidebar__social-link {
|
||||
margin: 0 0 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__instagram-icon,
|
||||
.sidebar__email-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: var(--black);
|
||||
transition: fill 400ms ease-in-out;
|
||||
}
|
||||
.sidebar__instagram-icon,
|
||||
.sidebar__email-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: var(--black);
|
||||
transition: fill 400ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: $desktop-media-query) {
|
||||
|
||||
.sidebar {
|
||||
.sidebar {
|
||||
|
||||
&--fixed {
|
||||
z-index: 1;
|
||||
overflow-y: auto;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&--slimmed {
|
||||
width: 15%;
|
||||
min-width: 15rem;
|
||||
&--fixed {
|
||||
z-index: 1;
|
||||
overflow-y: auto;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&--slimmed {
|
||||
width: 15%;
|
||||
min-width: 15rem;
|
||||
|
||||
.sidebar__nav-link {
|
||||
color: var(--transparent-black);
|
||||
}
|
||||
.sidebar__nav-link {
|
||||
color: var(--transparent-black);
|
||||
}
|
||||
|
||||
.sidebar__instagram-icon,
|
||||
.sidebar__email-icon {
|
||||
fill: var(--transparent-black);
|
||||
}
|
||||
.sidebar__instagram-icon,
|
||||
.sidebar__email-icon {
|
||||
fill: var(--transparent-black);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: var(--transparent-feldgrau);
|
||||
&:hover {
|
||||
background-color: var(--transparent-feldgrau);
|
||||
|
||||
|
||||
.sidebar__nav-link {
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
.sidebar__nav-link {
|
||||
color: var(--black);
|
||||
}
|
||||
|
||||
.sidebar__instagram-icon,
|
||||
.sidebar__email-icon {
|
||||
fill: var(--black);
|
||||
}
|
||||
}
|
||||
}
|
||||
.sidebar__instagram-icon,
|
||||
.sidebar__email-icon {
|
||||
fill: var(--black);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&--white-background {
|
||||
&--white-background {
|
||||
|
||||
&:hover {
|
||||
background-color: var(--transparent-white);
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
background-color: var(--transparent-white);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__social {
|
||||
width: auto;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
.sidebar__social {
|
||||
width: auto;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -282,35 +282,35 @@ body {
|
|||
|
||||
.splide {
|
||||
|
||||
&__image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
&__image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
// Exhibition section
|
||||
|
||||
.exhibition-section {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: $desktop-media-query) {
|
||||
|
||||
.exhibition-section {
|
||||
display: block;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.exhibition-section {
|
||||
display: block;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.exhibition {
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: opacity 400ms ease-in-out;
|
||||
.exhibition {
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: opacity 400ms ease-in-out;
|
||||
|
||||
&--visible {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&--visible {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,23 +6,23 @@
|
|||
|
||||
.k-textarea-field {
|
||||
|
||||
.k-toolbar {
|
||||
.k-toolbar {
|
||||
|
||||
.k-dropdown {
|
||||
.k-dropdown {
|
||||
|
||||
.k-button:nth-of-type(2),
|
||||
.k-button:nth-of-type(3) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.k-button:nth-of-type(2),
|
||||
.k-button:nth-of-type(3) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Visual image crop field properties
|
||||
|
||||
.kirby-imagecrop-field {
|
||||
|
||||
.k-column:nth-of-type(2) {
|
||||
display: none;
|
||||
}
|
||||
.k-column:nth-of-type(2) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,26 +3,26 @@
|
|||
// ----------------------------------------------------------------------------
|
||||
|
||||
@keyframes expand-outline {
|
||||
0% {
|
||||
outline-offset: 0;
|
||||
}
|
||||
100% {
|
||||
outline-offset: 2px;
|
||||
}
|
||||
0% {
|
||||
outline-offset: 0;
|
||||
}
|
||||
100% {
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rotate-horizontal-bottom {
|
||||
0% {
|
||||
transform: rotateX(0);
|
||||
transform-origin: bottom;
|
||||
}
|
||||
50% {
|
||||
transform: rotateX(180deg);
|
||||
transform-origin: bottom;
|
||||
}
|
||||
100% {
|
||||
transform: rotateX(0);
|
||||
transform-origin: bottom;
|
||||
}
|
||||
0% {
|
||||
transform: rotateX(0);
|
||||
transform-origin: bottom;
|
||||
}
|
||||
50% {
|
||||
transform: rotateX(180deg);
|
||||
transform-origin: bottom;
|
||||
}
|
||||
100% {
|
||||
transform: rotateX(0);
|
||||
transform-origin: bottom;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,41 +4,41 @@
|
|||
|
||||
:root {
|
||||
|
||||
// Fonts
|
||||
// Fonts
|
||||
|
||||
--text-font-family: Helvetica, sans-serif;
|
||||
--title-font-family: Helvetica, sans-serif;
|
||||
--regular-font-weight: 400;
|
||||
--medium-font-weight: 500;
|
||||
--semi-bold-font-weight: 600;
|
||||
--bold-font-weight: 700;
|
||||
--text-font-size: 1rem;
|
||||
--text-line-height: calc(var(--text-font-size) * 1.2);
|
||||
--footnote-font-size: 0.8rem;
|
||||
--footnote-line-height: calc(var(--footnote-font-size) * 1.2);
|
||||
--h1-font-size: 1.6rem;
|
||||
--h1-line-height: calc(var(--h1-font-size) * 1.2);
|
||||
--h2-font-size: 1.4rem;
|
||||
--h2-line-height: calc(var(--h2-font-size) * 1.2);
|
||||
--h3-font-size: 1.2rem;
|
||||
--h3-line-height: calc(var(--h3-font-size) * 1.2);
|
||||
--text-font-family: Helvetica, sans-serif;
|
||||
--title-font-family: Helvetica, sans-serif;
|
||||
--regular-font-weight: 400;
|
||||
--medium-font-weight: 500;
|
||||
--semi-bold-font-weight: 600;
|
||||
--bold-font-weight: 700;
|
||||
--text-font-size: 1rem;
|
||||
--text-line-height: calc(var(--text-font-size) * 1.2);
|
||||
--footnote-font-size: 0.8rem;
|
||||
--footnote-line-height: calc(var(--footnote-font-size) * 1.2);
|
||||
--h1-font-size: 1.6rem;
|
||||
--h1-line-height: calc(var(--h1-font-size) * 1.2);
|
||||
--h2-font-size: 1.4rem;
|
||||
--h2-line-height: calc(var(--h2-font-size) * 1.2);
|
||||
--h3-font-size: 1.2rem;
|
||||
--h3-line-height: calc(var(--h3-font-size) * 1.2);
|
||||
|
||||
// Dimensions
|
||||
// Dimensions
|
||||
|
||||
--logo-width: 6rem;
|
||||
--logo-height: 3rem;
|
||||
--logo-padding: 1rem;
|
||||
--icon-size: 2.25rem;
|
||||
--sidebar-padding: 1rem;
|
||||
--logo-width: 6rem;
|
||||
--logo-height: 3rem;
|
||||
--logo-padding: 1rem;
|
||||
--icon-size: 2.25rem;
|
||||
--sidebar-padding: 1rem;
|
||||
|
||||
// Colors
|
||||
// Colors
|
||||
|
||||
--black: #000;
|
||||
--transparent-black: rgba(0, 0, 0, 0.3);
|
||||
--white: #fff;
|
||||
--transparent-white: rgba(255, 255, 255, 0.9);
|
||||
--feldgrau: #4B6259;
|
||||
--transparent-feldgrau: rgba(75, 98, 89, 0.9);
|
||||
--black: #000;
|
||||
--transparent-black: rgba(0, 0, 0, 0.3);
|
||||
--white: #fff;
|
||||
--transparent-white: rgba(255, 255, 255, 0.9);
|
||||
--feldgrau: #4B6259;
|
||||
--transparent-feldgrau: rgba(75, 98, 89, 0.9);
|
||||
}
|
||||
|
||||
// Media queries
|
||||
|
|
|
@ -25,8 +25,8 @@ h3,
|
|||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1,
|
||||
|
@ -35,44 +35,44 @@ h3,
|
|||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
margin: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*, *::before, *::after {
|
||||
box-sizing: inherit;
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
img,
|
||||
video {
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
240
assets/js/app.js
240
assets/js/app.js
|
@ -23,7 +23,7 @@ const exhibitionIframe = document.querySelector('.exhibition');
|
|||
// NAV LINKS TARGET
|
||||
|
||||
const mediaQueries = {
|
||||
remTabletWidth: 48,
|
||||
remTabletWidth: 48,
|
||||
remDesktopWidth: 62
|
||||
}
|
||||
|
||||
|
@ -35,195 +35,195 @@ const mediaQueries = {
|
|||
|
||||
// Enable CSS :active pseudo-class in Safari Mobile
|
||||
function enableActivePseudoClass() {
|
||||
document.addEventListener("touchstart", function() {},false);
|
||||
document.addEventListener("touchstart", function() {},false);
|
||||
}
|
||||
|
||||
// Convert rem to pixels by getting font-size CSS property
|
||||
function convertRemToPixels(rem) {
|
||||
let fontSize = parseFloat(window.getComputedStyle(body).getPropertyValue('font-size'));
|
||||
return rem * fontSize;
|
||||
let fontSize = parseFloat(window.getComputedStyle(body).getPropertyValue('font-size'));
|
||||
return rem * fontSize;
|
||||
}
|
||||
|
||||
// SPLIDE SLIDER
|
||||
|
||||
function setUpSlider() {
|
||||
if (slider) {
|
||||
slider = new Splide('.splide', {
|
||||
type: 'fade',
|
||||
rewind: true,
|
||||
rewindByDrag: true,
|
||||
speed: 400,
|
||||
fixedWidth: '100vw',
|
||||
fixedHeight: '100vh',
|
||||
arrows: false,
|
||||
pagination: false,
|
||||
easing: 'ease-in-out',
|
||||
drag: true,
|
||||
wheel: true
|
||||
});
|
||||
}
|
||||
if (slider) {
|
||||
slider = new Splide('.splide', {
|
||||
type: 'fade',
|
||||
rewind: true,
|
||||
rewindByDrag: true,
|
||||
speed: 400,
|
||||
fixedWidth: '100vw',
|
||||
fixedHeight: '100vh',
|
||||
arrows: false,
|
||||
pagination: false,
|
||||
easing: 'ease-in-out',
|
||||
drag: true,
|
||||
wheel: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function mountSlider() {
|
||||
if (slider) {
|
||||
slider.mount();
|
||||
}
|
||||
if (slider) {
|
||||
slider.mount();
|
||||
}
|
||||
}
|
||||
|
||||
function goToNextSlideOnClick() {
|
||||
if (slider) {
|
||||
slider.on('click', function(e) {
|
||||
slider.go('>');
|
||||
});
|
||||
}
|
||||
if (slider) {
|
||||
slider.on('click', function(e) {
|
||||
slider.go('>');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function turnLogoToBlack() {
|
||||
if (logo) {
|
||||
logo.classList.remove('logo__icon--white');
|
||||
logo.classList.add('logo__icon--black');
|
||||
}
|
||||
if (logo) {
|
||||
logo.classList.remove('logo__icon--white');
|
||||
logo.classList.add('logo__icon--black');
|
||||
}
|
||||
}
|
||||
|
||||
function turnLogoToWhite() {
|
||||
if (logo) {
|
||||
logo.classList.remove('logo__icon--black');
|
||||
logo.classList.add('logo__icon--white');
|
||||
}
|
||||
if (logo) {
|
||||
logo.classList.remove('logo__icon--black');
|
||||
logo.classList.add('logo__icon--white');
|
||||
}
|
||||
}
|
||||
|
||||
function editLogoColor(slide) {
|
||||
if (slide) {
|
||||
if (slide.getAttribute('data-logo-color') === 'white') {
|
||||
turnLogoToWhite();
|
||||
} else if (slide.getAttribute('data-logo-color') === 'black') {
|
||||
turnLogoToBlack();
|
||||
}
|
||||
}
|
||||
if (slide) {
|
||||
if (slide.getAttribute('data-logo-color') === 'white') {
|
||||
turnLogoToWhite();
|
||||
} else if (slide.getAttribute('data-logo-color') === 'black') {
|
||||
turnLogoToBlack();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function editLogoColorOnSliderMounted() {
|
||||
if (slider && slides) {
|
||||
slider.on('mounted', function() {
|
||||
editLogoColor(slides[0]);
|
||||
})
|
||||
}
|
||||
if (slider && slides) {
|
||||
slider.on('mounted', function() {
|
||||
editLogoColor(slides[0]);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function editLogoColorOnSlideActive() {
|
||||
if (slider) {
|
||||
slider.on('active', function(e) {
|
||||
editLogoColor(e.slide);
|
||||
});
|
||||
}
|
||||
if (slider) {
|
||||
slider.on('active', function(e) {
|
||||
editLogoColor(e.slide);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function enableLogoRotation() {
|
||||
if (logo) {
|
||||
logo.classList.add('logo__icon--rotate-horizontal-bottom');
|
||||
}
|
||||
if (logo) {
|
||||
logo.classList.add('logo__icon--rotate-horizontal-bottom');
|
||||
}
|
||||
}
|
||||
|
||||
function disableLogoRotation() {
|
||||
if (logo) {
|
||||
logo.classList.remove('logo__icon--rotate-horizontal-bottom');
|
||||
}
|
||||
if (logo) {
|
||||
logo.classList.remove('logo__icon--rotate-horizontal-bottom');
|
||||
}
|
||||
}
|
||||
|
||||
function rotateLogoOnSliderMove() {
|
||||
if (slider && logo) {
|
||||
slider.on('move', function(e) {
|
||||
logo.removeEventListener('animationiteration', disableLogoRotation);
|
||||
enableLogoRotation();
|
||||
});
|
||||
slider.on('moved', function(e) {
|
||||
logo.addEventListener('animationiteration', disableLogoRotation);
|
||||
});
|
||||
}
|
||||
if (slider && logo) {
|
||||
slider.on('move', function(e) {
|
||||
logo.removeEventListener('animationiteration', disableLogoRotation);
|
||||
enableLogoRotation();
|
||||
});
|
||||
slider.on('moved', function(e) {
|
||||
logo.addEventListener('animationiteration', disableLogoRotation);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// EXHIBITION IFRAME
|
||||
|
||||
function slimDownSidebar() {
|
||||
if (sidebar && !sidebar.classList.contains('sidebar--slimmed')) {
|
||||
sidebar.classList.add('sidebar--slimmed');
|
||||
}
|
||||
if (sidebar && !sidebar.classList.contains('sidebar--slimmed')) {
|
||||
sidebar.classList.add('sidebar--slimmed');
|
||||
}
|
||||
}
|
||||
|
||||
function enableExhibitionIframeVisibility() {
|
||||
if (exhibitionIframe) {
|
||||
exhibitionIframe.classList.add('exhibition--visible');
|
||||
}
|
||||
if (exhibitionIframe) {
|
||||
exhibitionIframe.classList.add('exhibition--visible');
|
||||
}
|
||||
}
|
||||
|
||||
function disableExhibitionIframeVisibility() {
|
||||
if (exhibitionIframe) {
|
||||
exhibitionIframe.classList.remove('exhibition--visible');
|
||||
}
|
||||
if (exhibitionIframe) {
|
||||
exhibitionIframe.classList.remove('exhibition--visible');
|
||||
}
|
||||
}
|
||||
|
||||
function editBackgroundColor(sidebarNavLink) {
|
||||
if (body && sidebar) {
|
||||
if (sidebarNavLink.getAttribute('data-background') === 'feldgrau') {
|
||||
body.classList.remove('body--white-background');
|
||||
sidebar.classList.remove('sidebar--white-background');
|
||||
} else if (sidebarNavLink.getAttribute('data-background') === 'white') {
|
||||
body.classList.add('body--white-background');
|
||||
sidebar.classList.add('sidebar--white-background');
|
||||
}
|
||||
}
|
||||
if (body && sidebar) {
|
||||
if (sidebarNavLink.getAttribute('data-background') === 'feldgrau') {
|
||||
body.classList.remove('body--white-background');
|
||||
sidebar.classList.remove('sidebar--white-background');
|
||||
} else if (sidebarNavLink.getAttribute('data-background') === 'white') {
|
||||
body.classList.add('body--white-background');
|
||||
sidebar.classList.add('sidebar--white-background');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function loadExhibitionIframe() {
|
||||
if (sidebarNavLinks.length > 0 && exhibitionIframe) {
|
||||
for (let i = 0; i < sidebarNavLinks.length; i++) {
|
||||
sidebarNavLinks[i].addEventListener('click', function(e) {
|
||||
if (window.innerWidth >= convertRemToPixels(mediaQueries.remDesktopWidth)) {
|
||||
logo.removeEventListener('animationiteration', disableLogoRotation);
|
||||
enableLogoRotation();
|
||||
disableExhibitionIframeVisibility();
|
||||
exhibitionIframe.addEventListener('load', function(e) {
|
||||
logo.addEventListener('animationiteration', disableLogoRotation);
|
||||
slimDownSidebar();
|
||||
enableExhibitionIframeVisibility();
|
||||
editBackgroundColor(sidebarNavLinks[i]);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (sidebarNavLinks.length > 0 && exhibitionIframe) {
|
||||
for (let i = 0; i < sidebarNavLinks.length; i++) {
|
||||
sidebarNavLinks[i].addEventListener('click', function(e) {
|
||||
if (window.innerWidth >= convertRemToPixels(mediaQueries.remDesktopWidth)) {
|
||||
logo.removeEventListener('animationiteration', disableLogoRotation);
|
||||
enableLogoRotation();
|
||||
disableExhibitionIframeVisibility();
|
||||
exhibitionIframe.addEventListener('load', function(e) {
|
||||
logo.addEventListener('animationiteration', disableLogoRotation);
|
||||
slimDownSidebar();
|
||||
enableExhibitionIframeVisibility();
|
||||
editBackgroundColor(sidebarNavLinks[i]);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// NAV LINKS TARGET
|
||||
|
||||
function setNavLinksIframeTarget() {
|
||||
if (sidebarNavLinks) {
|
||||
for (let i = 0; i < sidebarNavLinks.length; i++) {
|
||||
sidebarNavLinks[i].setAttribute('target', 'exhibition');
|
||||
}
|
||||
}
|
||||
if (sidebarNavLinks) {
|
||||
for (let i = 0; i < sidebarNavLinks.length; i++) {
|
||||
sidebarNavLinks[i].setAttribute('target', 'exhibition');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setNavLinksBlankTarget() {
|
||||
if (sidebarNavLinks) {
|
||||
for (let i = 0; i < sidebarNavLinks.length; i++) {
|
||||
sidebarNavLinks[i].setAttribute('target', '_blank');
|
||||
}
|
||||
}
|
||||
if (sidebarNavLinks) {
|
||||
for (let i = 0; i < sidebarNavLinks.length; i++) {
|
||||
sidebarNavLinks[i].setAttribute('target', '_blank');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function editNavLinksTarget() {
|
||||
if (window.innerWidth >= convertRemToPixels(mediaQueries.remDesktopWidth)) {
|
||||
setNavLinksIframeTarget();
|
||||
} else {
|
||||
setNavLinksBlankTarget();
|
||||
}
|
||||
if (window.innerWidth >= convertRemToPixels(mediaQueries.remDesktopWidth)) {
|
||||
setNavLinksIframeTarget();
|
||||
} else {
|
||||
setNavLinksBlankTarget();
|
||||
}
|
||||
}
|
||||
|
||||
function editNavLinksTargetOnResize() {
|
||||
window.addEventListener('resize', function(e) {
|
||||
editNavLinksTarget();
|
||||
})
|
||||
window.addEventListener('resize', function(e) {
|
||||
editNavLinksTarget();
|
||||
})
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue