public.scss 729 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // 禁止用户选中 鼠标变为手形
  2. %unable-select {
  3. user-select: none;
  4. cursor: pointer;
  5. }
  6. // 填满父元素
  7. // 组要父元素 position: relative | absolute;
  8. %full {
  9. position: absolute;
  10. top: 0;
  11. right: 0;
  12. left: 0;
  13. bottom: 0;
  14. }
  15. // flex 垂直水平居中
  16. %flex-center-row {
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. flex-direction: row;
  21. }
  22. %flex-center-column {
  23. display: flex;
  24. justify-content: center;
  25. align-items: center;
  26. flex-direction: column;
  27. }
  28. // 将元素模拟成卡片外观
  29. %card {
  30. border: 1px solid #dddee1;
  31. border-color: #e9eaec;
  32. background: #fff;
  33. border-radius: 4px;
  34. font-size: 14px;
  35. position: relative;
  36. }