index.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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. ::selection {
  23. color: #FFFFFF;
  24. background-color: rgba($--color-primary, 0.8);
  25. }
  26. ::-webkit-scrollbar-track-piece {
  27. //滚动条凹槽的颜色,还可以设置边框属性
  28. background-color:#f8f8f8;
  29. }
  30. ::-webkit-scrollbar {
  31. //滚动条的宽度
  32. width: 7px;
  33. height: 10px;
  34. }
  35. ::-webkit-scrollbar-thumb {
  36. //滚动条的设置
  37. transition: all .4s;
  38. border-radius: 30px;
  39. background-color: rgba($--color-primary, 0.3);
  40. background-clip: padding-box;
  41. }
  42. ::-webkit-scrollbar-thumb:hover {
  43. background-color: rgba($--color-primary, 0.6);
  44. }
  45. #app {
  46. height: 100%;
  47. }
  48. *,
  49. *:before,
  50. *:after {
  51. box-sizing: inherit;
  52. }
  53. .no-padding {
  54. padding: 0px !important;
  55. }
  56. .padding-content {
  57. padding: 4px 0;
  58. }
  59. a:focus,
  60. a:active {
  61. outline: none;
  62. }
  63. a,
  64. a:focus,
  65. a:hover {
  66. cursor: pointer;
  67. color: inherit;
  68. text-decoration: none;
  69. }
  70. div:focus {
  71. outline: none;
  72. }
  73. .fr {
  74. float: right;
  75. }
  76. .fl {
  77. float: left;
  78. }
  79. .pr-5 {
  80. padding-right: 5px;
  81. }
  82. .pl-5 {
  83. padding-left: 5px;
  84. }
  85. .block {
  86. display: block;
  87. }
  88. .pointer {
  89. cursor: pointer;
  90. }
  91. .inlineBlock {
  92. display: block;
  93. }
  94. .clearfix {
  95. &:after {
  96. visibility: hidden;
  97. display: block;
  98. font-size: 0;
  99. content: " ";
  100. clear: both;
  101. height: 0;
  102. }
  103. }
  104. aside {
  105. background: #eef1f6;
  106. padding: 8px 24px;
  107. margin-bottom: 20px;
  108. border-radius: 2px;
  109. display: block;
  110. line-height: 32px;
  111. font-size: 16px;
  112. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  113. color: #2c3e50;
  114. -webkit-font-smoothing: antialiased;
  115. -moz-osx-font-smoothing: grayscale;
  116. a {
  117. color: #337ab7;
  118. cursor: pointer;
  119. &:hover {
  120. color: rgb(32, 160, 255);
  121. }
  122. }
  123. }
  124. //main-container全局样式
  125. .app-container {
  126. padding: 20px;
  127. }
  128. .components-container {
  129. margin: 30px 50px;
  130. position: relative;
  131. }
  132. /*.pagination-container {
  133. margin-top: 30px;
  134. }*/
  135. .text-center {
  136. text-align: center
  137. }
  138. .sub-navbar {
  139. height: 50px;
  140. line-height: 50px;
  141. position: relative;
  142. width: 100%;
  143. text-align: right;
  144. padding-right: 20px;
  145. transition: 600ms ease position;
  146. 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%);
  147. .subtitle {
  148. font-size: 20px;
  149. color: #fff;
  150. }
  151. &.draft {
  152. background: #d0d0d0;
  153. }
  154. &.deleted {
  155. background: #d0d0d0;
  156. }
  157. }
  158. .link-type,
  159. .link-type:focus {
  160. color: #337ab7;
  161. cursor: pointer;
  162. display: inline-block;
  163. position: relative;
  164. transition: all .3s;
  165. &::before {
  166. top: auto;
  167. left: 0px;
  168. right: 0px;
  169. bottom: 0px;
  170. height: 1px;
  171. content: " ";
  172. position: absolute;
  173. transform: scaleX(0);
  174. transition: all .2s;
  175. background-color: #3179E4;
  176. backface-visibility: hidden;
  177. }
  178. &:hover::before {
  179. transform: scaleX(1);
  180. }
  181. }
  182. .link-detail {
  183. color: #337ab7;
  184. cursor: pointer;
  185. transition: all .3s;
  186. text-decoration: none;
  187. }
  188. .link-detail:active,
  189. .link-detail:hover {
  190. color: #ff5500;
  191. text-decoration: underline;
  192. }
  193. .underline {
  194. cursor: pointer;
  195. text-decoration: underline;
  196. }
  197. .filter-container {
  198. padding-bottom: 10px;
  199. .filter-item {
  200. display: inline-block;
  201. vertical-align: middle;
  202. margin-bottom: 10px;
  203. }
  204. }
  205. //refine vue-multiselect plugin
  206. .multiselect {
  207. line-height: 16px;
  208. }
  209. .multiselect--active {
  210. z-index: 1000 !important;
  211. }
  212. .center {
  213. text-align: center;
  214. }
  215. .right {
  216. text-align: right;
  217. }
  218. .el-table thead {
  219. color: #333;
  220. th {
  221. background-color: #FFFAEA;
  222. }
  223. }
  224. .el-form-item.flex-item,
  225. .flex-item {
  226. display: flex;
  227. align-items: center;
  228. .el-form-item__content {
  229. flex: 1;
  230. margin-left: 0 !important;
  231. .el-select {
  232. width: 100%;
  233. }
  234. }
  235. }
  236. .flex {
  237. display: flex;
  238. align-items: flex-start !important;
  239. }
  240. .flexl {
  241. display: flex;
  242. flex-direction: column !important;
  243. }
  244. .flexc {
  245. display: flex;
  246. align-items: center !important;
  247. }
  248. .flexcc {
  249. display: flex;
  250. align-items: center;
  251. justify-content: center;
  252. }
  253. .flexcw {
  254. display: flex;
  255. align-items: center;
  256. justify-content: space-between;
  257. }
  258. .flexr {
  259. display: flex;
  260. flex-wrap: wrap;
  261. }
  262. .flexcr {
  263. display: flex;
  264. flex-wrap: wrap;
  265. align-items: center;
  266. }
  267. .flexccr {
  268. display: flex;
  269. flex-wrap: wrap;
  270. align-items: center;
  271. justify-content: center;
  272. }
  273. .flexcwr {
  274. display: flex;
  275. flex-wrap: wrap;
  276. align-items: center;
  277. justify-content: space-between;
  278. }
  279. .flex1 {
  280. flex: 1;
  281. }
  282. .flex2 {
  283. flex: 2;
  284. }
  285. .flex3 {
  286. flex: 3;
  287. }
  288. .bold {
  289. font-weight: bold;
  290. }
  291. .el-message-box {
  292. width: 100%;
  293. max-width: 420px;
  294. }
  295. .el-button.cancel-button,
  296. .el-button.el-button--primary.cancel-button {
  297. color: #555;
  298. background: #FFFFFF;
  299. border: 1px solid $--color-primary;
  300. box-sizing: border-box;
  301. border-radius: 4px;
  302. transition: all .3s;
  303. span {
  304. color: #555;
  305. }
  306. }
  307. .el-button.cancel-button:hover,
  308. .el-button.el-button--primary.cancel-button:hover {
  309. background: #e0e0e0;
  310. }
  311. .update-by {
  312. flex: 1;
  313. padding: 10px 0;
  314. margin-left: 20px;
  315. }
  316. .filter-view {
  317. display: flex;
  318. margin: 0 -5px;
  319. flex-wrap: wrap;
  320. align-items: center;
  321. }
  322. .filter-view > * {
  323. margin: 5px;
  324. }
  325. .filter-view .el-form-item {
  326. margin: 5px !important;
  327. }
  328. .filter-view-item {
  329. min-width: 200px;
  330. &.el-select {
  331. min-width: 120px;
  332. max-width: 200px;
  333. }
  334. }
  335. .filter-flex-button {
  336. flex: 1;
  337. text-align: right;
  338. }
  339. .icon-action {
  340. padding: 10px;
  341. transform: rotate(90deg);
  342. }
  343. .el-dropdown-menu.el-popper {
  344. margin-top: 6px;
  345. }
  346. input:-webkit-autofill,
  347. input:-webkit-autofill:hover,
  348. input:-webkit-autofill:focus,
  349. input:-webkit-autofill:active {
  350. -webkit-box-shadow: 0 0 0 68px white inset;
  351. }
  352. .el-table thead {
  353. color: #000 !important;
  354. th {
  355. background-color: rgba($--color-primary, 0.2);
  356. }
  357. }
  358. .el-table.no-border:before {
  359. height: 0 !important;
  360. }
  361. .el-checkbox-button.is-focus:not(.is-checked) {
  362. .el-checkbox-button__inner {
  363. border-color: #DCDFE6;
  364. }
  365. }