Skip to content
Snippets Groups Projects
App.vue 2.26 KiB
Newer Older
Florent Lavelle's avatar
Florent Lavelle committed

Florent Lavelle's avatar
Florent Lavelle committed
        :class="{ active: loader.isLoading }"
        class="ui inverted dimmer"
Florent Lavelle's avatar
Florent Lavelle committed
        <div class="ui text loader">
          {{ loader.message }}
Florent Lavelle's avatar
Florent Lavelle committed
      <!-- //* Les views sont injectées ici -->
Florent Lavelle's avatar
Florent Lavelle committed
    </div>

    <AppFooter />
Florent Lavelle's avatar
Florent Lavelle committed
<script
  type="application/javascript"
  :src="
    baseUrl +
      'resources/leaflet-control-geocoder-1.13.0/Control.Geocoder.js'
  "
/>

import { mapState } from 'vuex';
Florent Lavelle's avatar
Florent Lavelle committed
import AppHeader from '@/components/AppHeader';
import AppFooter from '@/components/AppFooter';

  name: 'App',
Florent Lavelle's avatar
Florent Lavelle committed
  components: {
    AppHeader,
    AppFooter,
DESPRES Damien's avatar
DESPRES Damien committed
      baseUrl: this.$store.state.configuration.BASE_URL,
      width: window.innerWidth > 0 ? window.innerWidth : screen.width,
    ...mapState([
Timothee P's avatar
Timothee P committed
      'user',
      'USER_LEVEL_PROJECTS',
      'configuration',
      'messages',
      'loader',
Florent Lavelle's avatar
Florent Lavelle committed
    ...mapState('projects', [
Florent Lavelle's avatar
Florent Lavelle committed
    ])
  },
};
</script>

<style>
.vertical {
  flex-direction: column;
  justify-content: center;
}

.leaflet-container {
  background: white !important;
}

.flex {
  display: flex;
}

/* keep above loader */
#menu-dropdown {
  z-index: 1001;
}

Florent Lavelle's avatar
Florent Lavelle committed
@media screen and (max-width: 985px) {
  .abstract{
    display: none !important;
  }
}

Florent Lavelle's avatar
Florent Lavelle committed
@media screen and (min-width: 560px) {
  .mobile {
    display: none !important;
  }
Florent Lavelle's avatar
Florent Lavelle committed
  #app-header {
    min-width: 560px;
  }
  .menu.container {
    width: auto !important;
  }
  .push-right-desktop {
    margin-left: auto;
  }
}
Florent Lavelle's avatar
Florent Lavelle committed
@media screen and (max-width: 590px) {
  .desktop {
    display: none !important;
  }
    left: -70px !important; /* should be the same than belows */
  .menu.container a.header {
    width: 70px;
  }
  .menu.container a.header > img {
    margin: 0;
  }
  #menu-dropdown {
    width: calc(100vw - 70px);
    justify-content: space-between;
  }
  #menu-dropdown > span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }