demo.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. html, body {
  2. width: 100%;
  3. height: 100%;
  4. }
  5. body {
  6. margin: 0;
  7. font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
  8. -webkit-font-smoothing: antialiased;
  9. -moz-osx-font-smoothing: grayscale;
  10. font-size: 16px;
  11. color: $text;
  12. }
  13. [class^="rt-icon-"],
  14. [class*=" rt-icon-"] {
  15. font-family: "rtfont" !important;
  16. font-size: 16px;
  17. font-style: normal;
  18. -webkit-font-smoothing: antialiased;
  19. -moz-osx-font-smoothing: grayscale;
  20. }
  21. a:link {
  22. transition: color .3s ease-in-out;
  23. }
  24. .app-ct {
  25. display: flex;
  26. flex-direction: column;
  27. width: 100%;
  28. height: 100%;
  29. .app-hd {
  30. flex: none;
  31. display: flex;
  32. position: relative;
  33. z-index: 99;
  34. height: 50px;
  35. box-shadow: 0 0 8px rgba(0,0,0,.2);
  36. align-items: center;
  37. .site-logo {
  38. $s: 1.3rem;
  39. margin: 0 .5rem 0 1.5rem;
  40. width: $s;
  41. height: $s;
  42. }
  43. .site-title {
  44. margin: 0;
  45. font-weight: 400;
  46. font-size: 1.3rem;
  47. line-height: 1;
  48. a {
  49. font-weight: 600;
  50. text-decoration: none;
  51. color: $text;
  52. &:hover {
  53. color: $color;
  54. }
  55. }
  56. }
  57. }
  58. .app-bd {
  59. display: flex;
  60. flex: auto;
  61. }
  62. }
  63. .app-sd {
  64. flex: 0 0 200px;
  65. padding-top: 2rem;
  66. border-right: 1px solid #eaecef;
  67. > .menu-group {
  68. margin-bottom: 1rem;
  69. }
  70. .menu-group {
  71. .menu-title {
  72. padding: 0 1.25rem;
  73. margin-top: 0;
  74. margin-bottom: .5rem;
  75. font-size: 1.1em;
  76. font-weight: 700;
  77. }
  78. .menu-list {
  79. margin: 0;
  80. padding: 0;
  81. }
  82. .menu-item {
  83. padding: .35rem 1rem .35rem 1.25rem;
  84. list-style: none;
  85. font-size: 15px;
  86. > a {
  87. color: #2c3e50;
  88. text-decoration: none;
  89. cursor: pointer;
  90. &.router-link-active,
  91. &:hover {
  92. color: $color;
  93. }
  94. &.router-link-active {
  95. font-weight: 700;
  96. }
  97. }
  98. .menu-group .router-link-active {
  99. font-weight: 400;
  100. }
  101. }
  102. }
  103. }
  104. .app-main {
  105. flex: auto;
  106. overflow: hidden;
  107. }
  108. .app-page {
  109. padding: 15px;
  110. font-size: 14px;
  111. line-height: 1.5;
  112. }