index.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. @use './variables.scss';
  2. @use './mixin.scss';
  3. body {
  4. margin: 0;
  5. padding: 0;
  6. height: 100%;
  7. -moz-osx-font-smoothing: grayscale;
  8. -webkit-font-smoothing: antialiased;
  9. text-rendering: optimizeLegibility;
  10. font-family: Helvetica Neue,
  11. Helvetica,
  12. PingFang SC,
  13. Hiragino Sans GB,
  14. Microsoft YaHei,
  15. Arial,
  16. sans-serif;
  17. }
  18. label {
  19. font-weight: 700;
  20. }
  21. html {
  22. height: 100%;
  23. box-sizing: border-box;
  24. }
  25. ul {
  26. margin: 0;
  27. padding: 0;
  28. li {
  29. list-style: none;
  30. }
  31. }
  32. #app {
  33. height: 100%;
  34. }
  35. *,
  36. *:before,
  37. *:after {
  38. box-sizing: inherit;
  39. }
  40. *,
  41. :after,
  42. :before {
  43. --tw-translate-x: 0;
  44. --tw-translate-y: 0;
  45. --tw-rotate: 0;
  46. --tw-skew-x: 0;
  47. --tw-skew-y: 0;
  48. --tw-scale-x: 1;
  49. --tw-scale-y: 1;
  50. --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  51. --tw-border-opacity: 1;
  52. border-color: rgba(229, 231, 235, var(--tw-border-opacity));
  53. --tw-ring-offset-shadow: 0 0 #0000;
  54. --tw-ring-shadow: 0 0 #0000;
  55. --tw-shadow: 0 0 #0000;
  56. --tw-blur: var(--tw-empty);
  57. --tw-brightness: var(--tw-empty);
  58. --tw-contrast: var(--tw-empty);
  59. --tw-grayscale: var(--tw-empty,);
  60. --tw-hue-rotate: var(--tw-empty,);
  61. --tw-invert: var(--tw-empty,);
  62. --tw-saturate: var(--tw-empty,);
  63. --tw-sepia: var(--tw-empty,);
  64. --tw-drop-shadow: var(--tw-empty,);
  65. --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
  66. --tw-backdrop-blur: var(--tw-empty,);
  67. --tw-backdrop-brightness: var(--tw-empty,);
  68. --tw-backdrop-contrast: var(--tw-empty,);
  69. --tw-backdrop-grayscale: var(--tw-empty,);
  70. --tw-backdrop-hue-rotate: var(--tw-empty,);
  71. --tw-backdrop-invert: var(--tw-empty,);
  72. --tw-backdrop-opacity: var(--tw-empty,);
  73. --tw-backdrop-saturate: var(--tw-empty,);
  74. --tw-backdrop-sepia: var(--tw-empty,);
  75. --tw-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  76. }
  77. .shadowed-box {
  78. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.19);
  79. }
  80. .bg-white {
  81. --tw-bg-opacity: 1;
  82. background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
  83. }
  84. .no-padding {
  85. padding: 0 !important;
  86. }
  87. .padding-content {
  88. padding: 4px 0;
  89. }
  90. a:focus,
  91. a:active {
  92. outline: none;
  93. }
  94. a,
  95. a:focus,
  96. a:hover {
  97. cursor: pointer;
  98. color: inherit;
  99. text-decoration: none;
  100. }
  101. div:focus {
  102. outline: none;
  103. }
  104. .fr {
  105. float: right;
  106. }
  107. .fl {
  108. float: left;
  109. }
  110. .pr-5 {
  111. padding-right: 5px;
  112. }
  113. .pl-5 {
  114. padding-left: 5px;
  115. }
  116. .block {
  117. display: block;
  118. }
  119. .pointer {
  120. cursor: pointer;
  121. }
  122. .inlineBlock {
  123. display: block;
  124. }
  125. .clearfix {
  126. &:after {
  127. visibility: hidden;
  128. display: block;
  129. font-size: 0;
  130. content: ' ';
  131. clear: both;
  132. height: 0;
  133. }
  134. }
  135. aside {
  136. background: #eef1f6;
  137. padding: 8px 24px;
  138. margin-bottom: 20px;
  139. border-radius: 2px;
  140. display: block;
  141. line-height: 32px;
  142. font-size: 1rem;
  143. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
  144. Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  145. color: #2c3e50;
  146. -webkit-font-smoothing: antialiased;
  147. -moz-osx-font-smoothing: grayscale;
  148. a {
  149. color: #337ab7;
  150. cursor: pointer;
  151. &:hover {
  152. color: rgb(32, 160, 255);
  153. }
  154. }
  155. }
  156. h1:first-child,
  157. h2:first-child,
  158. h3:first-child,
  159. h4:first-child,
  160. h5:first-child {
  161. margin-top: 0;
  162. }
  163. //main-container全局样式
  164. .app-container {
  165. padding: 20px;
  166. width: 100%;
  167. height: 100%;
  168. overflow: auto;
  169. }
  170. .components-container {
  171. margin: 30px 50px;
  172. position: relative;
  173. }
  174. .text-center {
  175. text-align: center;
  176. }
  177. .to-collapse {
  178. max-height: none;
  179. }
  180. .to-expand {
  181. max-height: 500px;
  182. }
  183. .is-fullscreen {
  184. width: auto;
  185. background-color: rgb(249, 252, 255);
  186. border: none;
  187. margin: 60px 0 0 0;
  188. position: fixed;
  189. inset: 0;
  190. z-index: 130;
  191. box-shadow: rgba(52, 58, 67, 0.1) 0 0 2px,
  192. rgba(52, 58, 67, 0.08) 0 1px 2px,
  193. rgba(52, 58, 67, 0.08) 0 1px 4px;
  194. border-radius: 2px;
  195. padding-bottom: 3px;
  196. }
  197. .sub-navbar {
  198. height: 50px;
  199. line-height: 50px;
  200. position: relative;
  201. width: 100%;
  202. text-align: right;
  203. padding-right: 20px;
  204. transition: 600ms ease position;
  205. background: linear-gradient(
  206. 90deg,
  207. rgba(32, 182, 249, 1) 0%,
  208. rgba(32, 182, 249, 1) 0%,
  209. rgba(33, 120, 241, 1) 100%,
  210. rgba(33, 120, 241, 1) 100%
  211. );
  212. .subtitle {
  213. font-size: 1.2rem;
  214. color: #fff;
  215. }
  216. &.draft {
  217. background: #d0d0d0;
  218. }
  219. &.deleted {
  220. background: #d0d0d0;
  221. }
  222. }
  223. .link-type,
  224. .link-type:focus {
  225. color: #337ab7;
  226. cursor: pointer;
  227. &:hover {
  228. color: rgb(32, 160, 255);
  229. }
  230. }
  231. .filter-container {
  232. padding-bottom: 10px;
  233. .filter-item {
  234. display: inline-block;
  235. vertical-align: middle;
  236. margin-bottom: 10px;
  237. }
  238. }
  239. .sample_container {
  240. background-color: #f5f7f7;
  241. border-radius: 8px;
  242. padding: 16px 16px 0 0;
  243. label {
  244. padding-bottom: 10px;
  245. }
  246. }
  247. // 流体单选框(el)
  248. .full-radio-group {
  249. width: 100%;
  250. display: flex;
  251. justify-content: space-around;
  252. .full-radio-btn {
  253. width: 100%;
  254. .el-radio-button__inner {
  255. width: 100%;
  256. }
  257. }
  258. }
  259. .flex-col {
  260. display: flex;
  261. flex-direction: column;
  262. }
  263. .flex-row {
  264. display: flex;
  265. flex-direction: row;
  266. }
  267. .justify-start {
  268. display: flex;
  269. justify-content: flex-start;
  270. }
  271. .justify-center {
  272. display: flex;
  273. justify-content: center;
  274. }
  275. .justify-end {
  276. display: flex;
  277. justify-content: flex-end;
  278. }
  279. .justify-evenly {
  280. display: flex;
  281. justify-content: space-evenly;
  282. }
  283. .justify-around {
  284. display: flex;
  285. justify-content: space-around;
  286. }
  287. .justify-between {
  288. display: flex;
  289. justify-content: space-between;
  290. }
  291. .align-start {
  292. display: flex;
  293. align-items: flex-start;
  294. }
  295. .align-center {
  296. display: flex;
  297. align-items: center;
  298. }
  299. .align-end {
  300. display: flex;
  301. align-items: flex-end;
  302. }
  303. //refine vue-multiselect plugin
  304. .multiselect {
  305. line-height: 16px;
  306. }
  307. .multiselect--active {
  308. z-index: 1000 !important;
  309. }
  310. ::-webkit-scrollbar {
  311. width: 0.5rem;
  312. height: 0.5rem;
  313. }
  314. ::-webkit-scrollbar-track {
  315. background: transparent;
  316. border-radius: 10px;
  317. }
  318. ::-webkit-scrollbar-thumb {
  319. background: #dcdfe6;
  320. border-radius: 10px;
  321. }
  322. ::-webkit-scrollbar-thumb:hover,
  323. ::-webkit-scrollbar-thumb:active {
  324. background: #606266;
  325. }