custom-style.md 9.3 KB

Style personnalisé pour l'affichage

Personnalisez le style de votre affichage dynamique modulaire made in EASYDK.

Créez la feuille de style custom-style.css et téléchargez-la dans le dossier Documents de votre Cloud:

L'affichage dynamique ViVid prend en charge l'orientation de l'écran paysage (horizontal) et portrait (vertical). Par conséquent, votre feuille de style custom-style.css s'appliquera soit sur

Vous ne serez limité que par votre imagination.

Exemples

Feuille de style par défaut pour l'affichage horizontal (paysage)

/* Vivid Horizontal (landscape screen) */
@import url("/static/css/default.css");

html, body {
    background-color: black;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    border-color: white;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
}

.vue-wrapper {
    display: grid;
    flex-direction: column;
    grid-gap: 0;
}

#main {
    min-height: 100vh;
    padding-top: 0;
    font-size: 2vh;
}

/* Background */
.background-view {
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: black;
    background-size: cover;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Welcome */
.welcome-view {
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: white;
    background-size: cover;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.welcome-view img.logo {
    margin-top: 2vh;
    margin-bottom: 2vh;
    height: 40vh;  /* logo must be square */
    width: 40vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#scrolling-message {
    z-index: 3;
    height: 120px;
    padding-top: 0;
    font-family: "DejaVu Sans", Helvetica, sans-serif, MS PGothic;
    font-size: 80px;
    position: absolute;
    top: calc(100vh - 120px);
}

/* Video */
.videorama-view, .video-view {
    display: grid;
    grid-template-columns: 100vw;
    justify-items: center;
    align-items: center;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: white;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

div#player {
    width: 100vw;
    height: 100vh;
}

video#mediaplayer {
    width: auto;
    height: 100vh;
}

/* Photo */
.photorama-view {
    display: grid;
    grid-template-columns: 100vw;
    justify-items: center;
    align-items: center;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* voir https://fr.vuejs.org/v2/guide/transitions.html#Classes-de-transition */
.photorama-fade-enter-active {
  transition: opacity 2.8s 0.4s;
}

.photorama-fade-leave-active {
  transition: opacity 0.5s;
}

.photorama-fade-enter {
  opacity: 0;
}

.photorama-fade-leave-to {
  opacity: 0;
}

.photorama-fade-enter-to, .photorama-fade-leave {
  opacity: 1;
}

.photo-view {
    display: grid;
    grid-template-columns: 100vw;
    justify-items: center;
    align-items: center;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

img#photo {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

/* Template */
.template-view {
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Immo+ */
.immoplus-view {
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Web */
.web-view {
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.webduo-view {
    display: grid;
    grid-template-areas: "web1 web2";
    grid-gap: 0;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.webduo-item {
    border: none;
    width: 50vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.manager-web-view {
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Immo+ */
.immoplus-view {
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Twitter */
.twitter-view iframe#twitt {
    margin-left: 18vw
}

Feuille de style par défaut pour l'affichage vertical (portrait)

/* Vivid Vertical (portrait screen) */
@import url("/static/css/default.css");

html, body {
    background-color: black;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    border-color: white;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
}

.vue-wrapper {
    display: grid;
    flex-direction: column;
    grid-gap: 0;
    align-items: center;
}

#main {
    min-height: 100vh;
    padding-top: 0;
    font-size: 2vh;
}

/* Background */
.background-view {
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: black;
    background-size: cover;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Welcome */
.welcome-view {
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: white;
    background-size: cover;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.welcome-view img.logo {
    margin-top: 2vh;
    margin-bottom: 2vh;
    height: 16vh;  /* logo must be square */
    width: 16vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#scrolling-message {
    z-index: 3;
    height: 120px;
    padding-top: 0;
    font-family: "DejaVu Sans", Helvetica, sans-serif, MS PGothic;
    font-size: 80px;
    position: absolute;
    top: calc(100vh - 120px);
}

/* Video */
.videorama-view, .video-view {
    display: grid;
    grid-template-columns: 100vw;
    justify-items: center;
    align-items: center;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: white;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

div#player {
    width: 100vw;
    height: 100vh;
    display: grid;
    align-items: center;
}

video {
    width: 1080px !important;
    height: auto;
}

/* Photo */
.photorama-view {
    display: grid;
    grid-template-columns: 100vw;
    justify-items: center;
    align-items: center;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* voir https://fr.vuejs.org/v2/guide/transitions.html#Classes-de-transition */
.photorama-fade-enter-active {
  transition: opacity 2.8s 0.4s;
}

.photorama-fade-leave-active {
  transition: opacity 0.5s;
}

.photorama-fade-enter {
  opacity: 0;
}

.photorama-fade-leave-to {
  opacity: 0;
}

.photorama-fade-enter-to, .photorama-fade-leave {
  opacity: 1;
}

.photo-view {
    display: grid;
    grid-template-columns: 100vw;
    justify-items: center;
    align-items: center;
    font-family: "DejaVu Sans", Helvetica, Arial-Unicode, Arial, Sans-serif;
    color: black;
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

img#photo {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

/* Template */
.template-view {
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Immo+ */
.immoplus-view {
    background-color: black;
    border: none;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Web */
.web-view {
    border: none;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.webduo-view {
    display: grid;
    grid-template-areas: "web1 web2";
    grid-gap: 0;
    border: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.webduo-item {
    border: none;
    width: 50vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.manager-web-view {
    border: none;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}


/* Immo+ */
.immoplus-view {
    border: none;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Twitter */
.twitter-view iframe#twitt {
    margin: 0
}