drawer.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. /* BEM support Func
  2. -------------------------- */
  3. /* Element Chalk Variables */
  4. /* Transition
  5. -------------------------- */
  6. /* Color
  7. -------------------------- */
  8. /* 53a8ff */
  9. /* 66b1ff */
  10. /* 79bbff */
  11. /* 8cc5ff */
  12. /* a0cfff */
  13. /* b3d8ff */
  14. /* c6e2ff */
  15. /* d9ecff */
  16. /* ecf5ff */
  17. /* Link
  18. -------------------------- */
  19. /* Border
  20. -------------------------- */
  21. /* Fill
  22. -------------------------- */
  23. /* Typography
  24. -------------------------- */
  25. /* Size
  26. -------------------------- */
  27. /* z-index
  28. -------------------------- */
  29. /* Disable base
  30. -------------------------- */
  31. /* Icon
  32. -------------------------- */
  33. /* Checkbox
  34. -------------------------- */
  35. /* Radio
  36. -------------------------- */
  37. /* Select
  38. -------------------------- */
  39. /* Alert
  40. -------------------------- */
  41. /* MessageBox
  42. -------------------------- */
  43. /* Message
  44. -------------------------- */
  45. /* Notification
  46. -------------------------- */
  47. /* Input
  48. -------------------------- */
  49. /* Cascader
  50. -------------------------- */
  51. /* Group
  52. -------------------------- */
  53. /* Tab
  54. -------------------------- */
  55. /* Button
  56. -------------------------- */
  57. /* cascader
  58. -------------------------- */
  59. /* Switch
  60. -------------------------- */
  61. /* Dialog
  62. -------------------------- */
  63. /* Table
  64. -------------------------- */
  65. /* Pagination
  66. -------------------------- */
  67. /* Popup
  68. -------------------------- */
  69. /* Popover
  70. -------------------------- */
  71. /* Tooltip
  72. -------------------------- */
  73. /* Tag
  74. -------------------------- */
  75. /* Tree
  76. -------------------------- */
  77. /* Dropdown
  78. -------------------------- */
  79. /* Badge
  80. -------------------------- */
  81. /* Card
  82. --------------------------*/
  83. /* Slider
  84. --------------------------*/
  85. /* Steps
  86. --------------------------*/
  87. /* Menu
  88. --------------------------*/
  89. /* Rate
  90. --------------------------*/
  91. /* DatePicker
  92. --------------------------*/
  93. /* Loading
  94. --------------------------*/
  95. /* Scrollbar
  96. --------------------------*/
  97. /* Carousel
  98. --------------------------*/
  99. /* Collapse
  100. --------------------------*/
  101. /* Transfer
  102. --------------------------*/
  103. /* Header
  104. --------------------------*/
  105. /* Footer
  106. --------------------------*/
  107. /* Main
  108. --------------------------*/
  109. /* Timeline
  110. --------------------------*/
  111. /* Backtop
  112. --------------------------*/
  113. /* Link
  114. --------------------------*/
  115. /* Calendar
  116. --------------------------*/
  117. /* Form
  118. -------------------------- */
  119. /* Avatar
  120. --------------------------*/
  121. /* Break-point
  122. --------------------------*/
  123. /* Break-points
  124. -------------------------- */
  125. /* Scrollbar
  126. -------------------------- */
  127. /* Placeholder
  128. -------------------------- */
  129. /* BEM
  130. -------------------------- */
  131. /* Element Chalk Variables */
  132. /* Transition
  133. -------------------------- */
  134. /* Color
  135. -------------------------- */
  136. /* 53a8ff */
  137. /* 66b1ff */
  138. /* 79bbff */
  139. /* 8cc5ff */
  140. /* a0cfff */
  141. /* b3d8ff */
  142. /* c6e2ff */
  143. /* d9ecff */
  144. /* ecf5ff */
  145. /* Link
  146. -------------------------- */
  147. /* Border
  148. -------------------------- */
  149. /* Fill
  150. -------------------------- */
  151. /* Typography
  152. -------------------------- */
  153. /* Size
  154. -------------------------- */
  155. /* z-index
  156. -------------------------- */
  157. /* Disable base
  158. -------------------------- */
  159. /* Icon
  160. -------------------------- */
  161. /* Checkbox
  162. -------------------------- */
  163. /* Radio
  164. -------------------------- */
  165. /* Select
  166. -------------------------- */
  167. /* Alert
  168. -------------------------- */
  169. /* MessageBox
  170. -------------------------- */
  171. /* Message
  172. -------------------------- */
  173. /* Notification
  174. -------------------------- */
  175. /* Input
  176. -------------------------- */
  177. /* Cascader
  178. -------------------------- */
  179. /* Group
  180. -------------------------- */
  181. /* Tab
  182. -------------------------- */
  183. /* Button
  184. -------------------------- */
  185. /* cascader
  186. -------------------------- */
  187. /* Switch
  188. -------------------------- */
  189. /* Dialog
  190. -------------------------- */
  191. /* Table
  192. -------------------------- */
  193. /* Pagination
  194. -------------------------- */
  195. /* Popup
  196. -------------------------- */
  197. /* Popover
  198. -------------------------- */
  199. /* Tooltip
  200. -------------------------- */
  201. /* Tag
  202. -------------------------- */
  203. /* Tree
  204. -------------------------- */
  205. /* Dropdown
  206. -------------------------- */
  207. /* Badge
  208. -------------------------- */
  209. /* Card
  210. --------------------------*/
  211. /* Slider
  212. --------------------------*/
  213. /* Steps
  214. --------------------------*/
  215. /* Menu
  216. --------------------------*/
  217. /* Rate
  218. --------------------------*/
  219. /* DatePicker
  220. --------------------------*/
  221. /* Loading
  222. --------------------------*/
  223. /* Scrollbar
  224. --------------------------*/
  225. /* Carousel
  226. --------------------------*/
  227. /* Collapse
  228. --------------------------*/
  229. /* Transfer
  230. --------------------------*/
  231. /* Header
  232. --------------------------*/
  233. /* Footer
  234. --------------------------*/
  235. /* Main
  236. --------------------------*/
  237. /* Timeline
  238. --------------------------*/
  239. /* Backtop
  240. --------------------------*/
  241. /* Link
  242. --------------------------*/
  243. /* Calendar
  244. --------------------------*/
  245. /* Form
  246. -------------------------- */
  247. /* Avatar
  248. --------------------------*/
  249. /* Break-point
  250. --------------------------*/
  251. @-webkit-keyframes el-drawer-fade-in {
  252. 0% {
  253. opacity: 0; }
  254. 100% {
  255. opacity: 1; } }
  256. @keyframes el-drawer-fade-in {
  257. 0% {
  258. opacity: 0; }
  259. 100% {
  260. opacity: 1; } }
  261. @-webkit-keyframes rtl-drawer-in {
  262. 0% {
  263. -webkit-transform: translate(100%, 0px);
  264. transform: translate(100%, 0px); }
  265. 100% {
  266. -webkit-transform: translate(0px, 0px);
  267. transform: translate(0px, 0px); } }
  268. @keyframes rtl-drawer-in {
  269. 0% {
  270. -webkit-transform: translate(100%, 0px);
  271. transform: translate(100%, 0px); }
  272. 100% {
  273. -webkit-transform: translate(0px, 0px);
  274. transform: translate(0px, 0px); } }
  275. @-webkit-keyframes rtl-drawer-out {
  276. 0% {
  277. -webkit-transform: translate(0px, 0px);
  278. transform: translate(0px, 0px); }
  279. 100% {
  280. -webkit-transform: translate(100%, 0px);
  281. transform: translate(100%, 0px); } }
  282. @keyframes rtl-drawer-out {
  283. 0% {
  284. -webkit-transform: translate(0px, 0px);
  285. transform: translate(0px, 0px); }
  286. 100% {
  287. -webkit-transform: translate(100%, 0px);
  288. transform: translate(100%, 0px); } }
  289. @-webkit-keyframes ltr-drawer-in {
  290. 0% {
  291. -webkit-transform: translate(-100%, 0px);
  292. transform: translate(-100%, 0px); }
  293. 100% {
  294. -webkit-transform: translate(0px, 0px);
  295. transform: translate(0px, 0px); } }
  296. @keyframes ltr-drawer-in {
  297. 0% {
  298. -webkit-transform: translate(-100%, 0px);
  299. transform: translate(-100%, 0px); }
  300. 100% {
  301. -webkit-transform: translate(0px, 0px);
  302. transform: translate(0px, 0px); } }
  303. @-webkit-keyframes ltr-drawer-out {
  304. 0% {
  305. -webkit-transform: translate(0px, 0px);
  306. transform: translate(0px, 0px); }
  307. 100% {
  308. -webkit-transform: translate(-100%, 0px);
  309. transform: translate(-100%, 0px); } }
  310. @keyframes ltr-drawer-out {
  311. 0% {
  312. -webkit-transform: translate(0px, 0px);
  313. transform: translate(0px, 0px); }
  314. 100% {
  315. -webkit-transform: translate(-100%, 0px);
  316. transform: translate(-100%, 0px); } }
  317. @-webkit-keyframes ttb-drawer-in {
  318. 0% {
  319. -webkit-transform: translate(0px, -100%);
  320. transform: translate(0px, -100%); }
  321. 100% {
  322. -webkit-transform: translate(0px, 0px);
  323. transform: translate(0px, 0px); } }
  324. @keyframes ttb-drawer-in {
  325. 0% {
  326. -webkit-transform: translate(0px, -100%);
  327. transform: translate(0px, -100%); }
  328. 100% {
  329. -webkit-transform: translate(0px, 0px);
  330. transform: translate(0px, 0px); } }
  331. @-webkit-keyframes ttb-drawer-out {
  332. 0% {
  333. -webkit-transform: translate(0px, 0px);
  334. transform: translate(0px, 0px); }
  335. 100% {
  336. -webkit-transform: translate(0px, -100%);
  337. transform: translate(0px, -100%); } }
  338. @keyframes ttb-drawer-out {
  339. 0% {
  340. -webkit-transform: translate(0px, 0px);
  341. transform: translate(0px, 0px); }
  342. 100% {
  343. -webkit-transform: translate(0px, -100%);
  344. transform: translate(0px, -100%); } }
  345. @-webkit-keyframes btt-drawer-in {
  346. 0% {
  347. -webkit-transform: translate(0px, 100%);
  348. transform: translate(0px, 100%); }
  349. 100% {
  350. -webkit-transform: translate(0px, 0px);
  351. transform: translate(0px, 0px); } }
  352. @keyframes btt-drawer-in {
  353. 0% {
  354. -webkit-transform: translate(0px, 100%);
  355. transform: translate(0px, 100%); }
  356. 100% {
  357. -webkit-transform: translate(0px, 0px);
  358. transform: translate(0px, 0px); } }
  359. @-webkit-keyframes btt-drawer-out {
  360. 0% {
  361. -webkit-transform: translate(0px, 0);
  362. transform: translate(0px, 0); }
  363. 100% {
  364. -webkit-transform: translate(0px, 100%);
  365. transform: translate(0px, 100%); } }
  366. @keyframes btt-drawer-out {
  367. 0% {
  368. -webkit-transform: translate(0px, 0);
  369. transform: translate(0px, 0); }
  370. 100% {
  371. -webkit-transform: translate(0px, 100%);
  372. transform: translate(0px, 100%); } }
  373. .el-drawer {
  374. position: absolute;
  375. -webkit-box-sizing: border-box;
  376. box-sizing: border-box;
  377. background-color: #FFFFFF;
  378. display: -webkit-box;
  379. display: -ms-flexbox;
  380. display: flex;
  381. -webkit-box-orient: vertical;
  382. -webkit-box-direction: normal;
  383. -ms-flex-direction: column;
  384. flex-direction: column;
  385. -webkit-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2), 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12);
  386. box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2), 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12);
  387. overflow: hidden; }
  388. .el-drawer.rtl {
  389. -webkit-animation: rtl-drawer-out 0.3s;
  390. animation: rtl-drawer-out 0.3s; }
  391. .el-drawer__open .el-drawer.rtl {
  392. -webkit-animation: rtl-drawer-in 0.3s 1ms;
  393. animation: rtl-drawer-in 0.3s 1ms; }
  394. .el-drawer.ltr {
  395. -webkit-animation: ltr-drawer-out 0.3s;
  396. animation: ltr-drawer-out 0.3s; }
  397. .el-drawer__open .el-drawer.ltr {
  398. -webkit-animation: ltr-drawer-in 0.3s 1ms;
  399. animation: ltr-drawer-in 0.3s 1ms; }
  400. .el-drawer.ttb {
  401. -webkit-animation: ttb-drawer-out 0.3s;
  402. animation: ttb-drawer-out 0.3s; }
  403. .el-drawer__open .el-drawer.ttb {
  404. -webkit-animation: ttb-drawer-in 0.3s 1ms;
  405. animation: ttb-drawer-in 0.3s 1ms; }
  406. .el-drawer.btt {
  407. -webkit-animation: btt-drawer-out 0.3s;
  408. animation: btt-drawer-out 0.3s; }
  409. .el-drawer__open .el-drawer.btt {
  410. -webkit-animation: btt-drawer-in 0.3s 1ms;
  411. animation: btt-drawer-in 0.3s 1ms; }
  412. .el-drawer__wrapper {
  413. position: fixed;
  414. top: 0;
  415. right: 0;
  416. bottom: 0;
  417. left: 0;
  418. overflow: hidden;
  419. margin: 0; }
  420. .el-drawer__header {
  421. -webkit-box-align: center;
  422. -ms-flex-align: center;
  423. align-items: center;
  424. color: #72767b;
  425. display: -webkit-box;
  426. display: -ms-flexbox;
  427. display: flex;
  428. margin-bottom: 32px;
  429. padding: 20px;
  430. padding-bottom: 0; }
  431. .el-drawer__header > :first-child {
  432. -webkit-box-flex: 1;
  433. -ms-flex: 1;
  434. flex: 1; }
  435. .el-drawer__title {
  436. margin: 0;
  437. -webkit-box-flex: 1;
  438. -ms-flex: 1;
  439. flex: 1;
  440. line-height: inherit;
  441. font-size: 1rem; }
  442. .el-drawer__close-btn {
  443. border: none;
  444. cursor: pointer;
  445. font-size: 20px;
  446. color: inherit;
  447. background-color: transparent; }
  448. .el-drawer__body {
  449. -webkit-box-flex: 1;
  450. -ms-flex: 1;
  451. flex: 1; }
  452. .el-drawer__body > * {
  453. -webkit-box-sizing: border-box;
  454. box-sizing: border-box; }
  455. .el-drawer.ltr, .el-drawer.rtl {
  456. height: 100%;
  457. top: 0;
  458. bottom: 0; }
  459. .el-drawer.ttb, .el-drawer.btt {
  460. width: 100%;
  461. left: 0;
  462. right: 0; }
  463. .el-drawer.ltr {
  464. left: 0; }
  465. .el-drawer.rtl {
  466. right: 0; }
  467. .el-drawer.ttb {
  468. top: 0; }
  469. .el-drawer.btt {
  470. bottom: 0; }
  471. .el-drawer__container {
  472. position: relative;
  473. left: 0;
  474. right: 0;
  475. top: 0;
  476. bottom: 0;
  477. height: 100%;
  478. width: 100%; }
  479. .el-drawer-fade-enter-active {
  480. -webkit-animation: el-drawer-fade-in .3s;
  481. animation: el-drawer-fade-in .3s; }
  482. .el-drawer-fade-leave-active {
  483. animation: el-drawer-fade-in .3s reverse; }