<template>
  <div id="app">
    <transition name="fade">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive" />
      </keep-alive>
    </transition>
    <transition name="fade">
      <router-view v-if="!$route.meta.keepAlive" />
    </transition>
  </div>
</template>
<script>
export default {
  created() {
    this.chooseCss();
  },
  methods: {
    chooseCss() {
      var u = navigator.userAgent;
      let pad = u.indexOf("iPad") > -1 ? true : false;
      let url = pad === true ? "/pad.css" : "/pc.css";
      import(`./style${url}`);
    },
  },
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  min-height: 100vh;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
.headerRow{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.headerRowEnd{
  justify-content: flex-end;
}
.headerRowLeftRight{
  justify-content: space-between;
}
.mrl{
  margin-left: 10px;
}
.mrr{
  margin-right: 10px;
}
.pointers{
  cursor: pointer;
}
</style>
