index.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. @use './mixin.scss';
  2. @use './transition.scss';
  3. @use './element-ui.scss';
  4. @use './sidebar.scss';
  5. @use './btn.scss';
  6. @use './ruoyi.scss';
  7. body {
  8. height: 100%;
  9. margin: 0;
  10. -moz-osx-font-smoothing: grayscale;
  11. -webkit-font-smoothing: antialiased;
  12. text-rendering: optimizeLegibility;
  13. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  14. }
  15. label {
  16. font-weight: 700;
  17. }
  18. html {
  19. height: 100%;
  20. box-sizing: border-box;
  21. }
  22. #app {
  23. height: 100%;
  24. }
  25. *,
  26. *:before,
  27. *:after {
  28. box-sizing: inherit;
  29. }
  30. .no-padding {
  31. padding: 0px !important;
  32. }
  33. .padding-content {
  34. padding: 4px 0;
  35. }
  36. a:focus,
  37. a:active {
  38. outline: none;
  39. }
  40. a,
  41. a:focus,
  42. a:hover {
  43. cursor: pointer;
  44. color: inherit;
  45. text-decoration: none;
  46. }
  47. div:focus {
  48. outline: none;
  49. }
  50. .fr {
  51. float: right;
  52. }
  53. .fl {
  54. float: left;
  55. }
  56. .pr-5 {
  57. padding-right: 5px;
  58. }
  59. .pl-5 {
  60. padding-left: 5px;
  61. }
  62. .block {
  63. display: block;
  64. }
  65. .pointer {
  66. cursor: pointer;
  67. }
  68. .inlineBlock {
  69. display: block;
  70. }
  71. .clearfix {
  72. &:after {
  73. visibility: hidden;
  74. display: block;
  75. font-size: 0;
  76. content: " ";
  77. clear: both;
  78. height: 0;
  79. }
  80. }
  81. aside {
  82. background: #eef1f6;
  83. padding: 8px 24px;
  84. margin-bottom: 20px;
  85. border-radius: 2px;
  86. display: block;
  87. line-height: 32px;
  88. font-size: 16px;
  89. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  90. color: #2c3e50;
  91. -webkit-font-smoothing: antialiased;
  92. -moz-osx-font-smoothing: grayscale;
  93. a {
  94. color: #337ab7;
  95. cursor: pointer;
  96. &:hover {
  97. color: rgb(32, 160, 255);
  98. }
  99. }
  100. }
  101. //main-container全局样式
  102. .app-container {
  103. padding: 20px;
  104. }
  105. .components-container {
  106. margin: 30px 50px;
  107. position: relative;
  108. }
  109. .text-center {
  110. text-align: center
  111. }
  112. .sub-navbar {
  113. height: 50px;
  114. line-height: 50px;
  115. position: relative;
  116. width: 100%;
  117. text-align: right;
  118. padding-right: 20px;
  119. transition: 600ms ease position;
  120. background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  121. .subtitle {
  122. font-size: 20px;
  123. color: #fff;
  124. }
  125. &.draft {
  126. background: #d0d0d0;
  127. }
  128. &.deleted {
  129. background: #d0d0d0;
  130. }
  131. }
  132. .link-type,
  133. .link-type:focus {
  134. color: #337ab7;
  135. cursor: pointer;
  136. &:hover {
  137. color: rgb(32, 160, 255);
  138. }
  139. }
  140. .filter-container {
  141. padding-bottom: 10px;
  142. .filter-item {
  143. display: inline-block;
  144. vertical-align: middle;
  145. margin-bottom: 10px;
  146. }
  147. }
  148. .app-page {
  149. min-height: 100%;
  150. display: flex;
  151. flex-direction: column;
  152. padding: 16px;
  153. }