index.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. @import './variables.scss';
  2. @import './mixin.scss';
  3. @import './transition.scss';
  4. @import './element-ui.scss';
  5. @import './sidebar.scss';
  6. @import './btn.scss';
  7. html {
  8. height: 100%;
  9. box-sizing: border-box;
  10. }
  11. body {
  12. height: 100%;
  13. margin: 0px;
  14. -moz-osx-font-smoothing: grayscale;
  15. -webkit-font-smoothing: antialiased;
  16. text-rendering: optimizeLegibility;
  17. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  18. }
  19. label {
  20. font-weight: 700;
  21. }
  22. ::-webkit-scrollbar-track-piece {
  23. //滚动条凹槽的颜色,还可以设置边框属性
  24. background-color:#f8f8f8;
  25. }
  26. ::-webkit-scrollbar {
  27. //滚动条的宽度
  28. width: 7px;
  29. height: 10px;
  30. }
  31. ::-webkit-scrollbar-thumb {
  32. //滚动条的设置
  33. border-radius: 30px;
  34. background-color: #ccc;
  35. background-clip: padding-box;
  36. }
  37. ::-webkit-scrollbar-thumb:hover {
  38. background-color: #A5A5A5;
  39. }
  40. #app {
  41. height: 100%;
  42. }
  43. *,
  44. *:before,
  45. *:after {
  46. box-sizing: inherit;
  47. }
  48. .no-padding {
  49. padding: 0px !important;
  50. }
  51. .padding-content {
  52. padding: 4px 0;
  53. }
  54. a:focus,
  55. a:active {
  56. outline: none;
  57. }
  58. a,
  59. a:focus,
  60. a:hover {
  61. cursor: pointer;
  62. color: inherit;
  63. text-decoration: none;
  64. }
  65. div:focus {
  66. outline: none;
  67. }
  68. .fr {
  69. float: right;
  70. }
  71. .fl {
  72. float: left;
  73. }
  74. .pr-5 {
  75. padding-right: 5px;
  76. }
  77. .pl-5 {
  78. padding-left: 5px;
  79. }
  80. .block {
  81. display: block;
  82. }
  83. .pointer {
  84. cursor: pointer;
  85. }
  86. .inlineBlock {
  87. display: block;
  88. }
  89. .clearfix {
  90. &:after {
  91. visibility: hidden;
  92. display: block;
  93. font-size: 0;
  94. content: " ";
  95. clear: both;
  96. height: 0;
  97. }
  98. }
  99. aside {
  100. background: #eef1f6;
  101. padding: 8px 24px;
  102. margin-bottom: 20px;
  103. border-radius: 2px;
  104. display: block;
  105. line-height: 32px;
  106. font-size: 16px;
  107. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  108. color: #2c3e50;
  109. -webkit-font-smoothing: antialiased;
  110. -moz-osx-font-smoothing: grayscale;
  111. a {
  112. color: #337ab7;
  113. cursor: pointer;
  114. &:hover {
  115. color: rgb(32, 160, 255);
  116. }
  117. }
  118. }
  119. //main-container全局样式
  120. .app-container {
  121. padding: 20px;
  122. }
  123. .components-container {
  124. margin: 30px 50px;
  125. position: relative;
  126. }
  127. /*.pagination-container {
  128. margin-top: 30px;
  129. }*/
  130. .text-center {
  131. text-align: center
  132. }
  133. .sub-navbar {
  134. height: 50px;
  135. line-height: 50px;
  136. position: relative;
  137. width: 100%;
  138. text-align: right;
  139. padding-right: 20px;
  140. transition: 600ms ease position;
  141. 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%);
  142. .subtitle {
  143. font-size: 20px;
  144. color: #fff;
  145. }
  146. &.draft {
  147. background: #d0d0d0;
  148. }
  149. &.deleted {
  150. background: #d0d0d0;
  151. }
  152. }
  153. .link-type,
  154. .link-type:focus {
  155. color: #337ab7;
  156. cursor: pointer;
  157. transition: all .3s;
  158. &:hover {
  159. color: rgb(32, 160, 255);
  160. text-decoration: underline;
  161. }
  162. }
  163. .filter-container {
  164. padding-bottom: 10px;
  165. .filter-item {
  166. display: inline-block;
  167. vertical-align: middle;
  168. margin-bottom: 10px;
  169. }
  170. }
  171. //refine vue-multiselect plugin
  172. .multiselect {
  173. line-height: 16px;
  174. }
  175. .multiselect--active {
  176. z-index: 1000 !important;
  177. }
  178. .center {
  179. text-align: center;
  180. }
  181. .right {
  182. text-align: right;
  183. }
  184. .el-table thead {
  185. color: #333;
  186. th {
  187. background-color: #FFFAEA;
  188. }
  189. }
  190. .el-form-item.flex-item,
  191. .flex-item {
  192. display: flex;
  193. align-items: center;
  194. .el-form-item__content {
  195. flex: 1;
  196. margin-left: 0 !important;
  197. .el-select {
  198. width: 100%;
  199. }
  200. }
  201. }
  202. .flex {
  203. display: flex;
  204. align-items: flex-start !important;
  205. }
  206. .flexl {
  207. display: flex;
  208. flex-direction: column !important;
  209. }
  210. .flexc {
  211. display: flex;
  212. align-items: center !important;
  213. }
  214. .flexcc {
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. }
  219. .flexcw {
  220. display: flex;
  221. align-items: center;
  222. justify-content: space-between;
  223. }
  224. .flexr {
  225. display: flex;
  226. flex-wrap: wrap;
  227. }
  228. .flexcr {
  229. display: flex;
  230. flex-wrap: wrap;
  231. align-items: center;
  232. }
  233. .flexccr {
  234. display: flex;
  235. flex-wrap: wrap;
  236. align-items: center;
  237. justify-content: center;
  238. }
  239. .flexcwr {
  240. display: flex;
  241. flex-wrap: wrap;
  242. align-items: center;
  243. justify-content: space-between;
  244. }
  245. .flex1 {
  246. flex: 1;
  247. }
  248. .flex2 {
  249. flex: 2;
  250. }
  251. .flex3 {
  252. flex: 3;
  253. }
  254. .el-message-box {
  255. width: 100%;
  256. max-width: 420px;
  257. }
  258. .el-button.cancel-button,
  259. .el-button.el-button--primary.cancel-button {
  260. color: #555;
  261. background: #FFFFFF;
  262. border: 1px solid $--color-primary;
  263. box-sizing: border-box;
  264. border-radius: 4px;
  265. transition: all .3s;
  266. span {
  267. color: #555;
  268. }
  269. }
  270. .el-button.cancel-button:hover,
  271. .el-button.el-button--primary.cancel-button:hover {
  272. background: #e0e0e0;
  273. }
  274. .update-by {
  275. flex: 1;
  276. padding: 10px 0;
  277. margin-left: 20px;
  278. }
  279. .filter-view {
  280. display: flex;
  281. flex-wrap: wrap;
  282. align-items: center;
  283. }
  284. .filter-view > * {
  285. margin: 10px 5px;
  286. }
  287. .filter-view .el-form-item {
  288. margin: 10px 5px !important;
  289. }
  290. .filter-flex-button {
  291. flex: 1;
  292. text-align: right;
  293. margin-bottom: 0;
  294. }