App.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <style lang="scss">
  7. $theme-color: red;
  8. #app {
  9. font-family: Avenir, Helvetica, Arial, sans-serif;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. // text-align: center;
  13. color: #2c3e50;
  14. height: 100vh;
  15. width: 100%;
  16. background: #f4f7f9;
  17. overflow-y: auto;
  18. }
  19. #nav {
  20. padding: 30px;
  21. a {
  22. font-weight: bold;
  23. color: #2c3e50;
  24. &.router-link-exact-active {
  25. color: #42b983;
  26. }
  27. }
  28. }
  29. /* 滚动槽 */
  30. ::-webkit-scrollbar {
  31. width: 6px;
  32. height: 6px;
  33. }
  34. /* 滚动条导轨 */
  35. ::-webkit-scrollbar-track {
  36. border-radius: 0px;
  37. background: rgba(0, 0, 0, 0.06);
  38. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
  39. // position: fixed;
  40. }
  41. /* 滚动条滑块 */
  42. ::-webkit-scrollbar-thumb {
  43. border-radius: 0px;
  44. background: rgba(0, 0, 0, 0.12);
  45. -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  46. // position: fixed;
  47. }
  48. @media screen and (max-width: 1280px) {
  49. body {
  50. width: 1280px;
  51. }
  52. }
  53. </style>