common.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. $header-height: 120rpx;
  2. $header-top-height: 50rpx;
  3. /* 通用flex布局 */
  4. .flex-col {
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. .flex-row {
  9. display: flex;
  10. flex-direction: row;
  11. }
  12. .flex-wrap {
  13. display: flex;
  14. flex-wrap: wrap;
  15. }
  16. .justify-start {
  17. display: flex;
  18. justify-content: flex-start;
  19. }
  20. .justify-center {
  21. display: flex;
  22. justify-content: center;
  23. }
  24. .justify-end {
  25. display: flex;
  26. justify-content: flex-end;
  27. }
  28. .justify-evenly {
  29. display: flex;
  30. justify-content: space-evenly;
  31. }
  32. .justify-around {
  33. display: flex;
  34. justify-content: space-around;
  35. }
  36. .justify-between {
  37. display: flex;
  38. justify-content: space-between;
  39. }
  40. .align-start {
  41. display: flex;
  42. align-items: flex-start;
  43. }
  44. .align-center {
  45. display: flex;
  46. align-items: center;
  47. }
  48. .align-end {
  49. display: flex;
  50. align-items: flex-end;
  51. }
  52. .color-yellow{
  53. color: #F0BC23;
  54. }
  55. .color-red{
  56. color: #E7000D;
  57. }
  58. .color-green{
  59. color: #45BA00;
  60. }
  61. .color-blue{
  62. color: #004098;
  63. }
  64. /* 允许单词内换行,强制换行 */
  65. .word-break-all {
  66. word-wrap: break-word;
  67. word-break: break-all;
  68. min-width: unset;
  69. }
  70. /* 仅在单词间隙换行,更适合中文文本 */
  71. .word-break-normal {
  72. word-wrap: break-word;
  73. word-break: normal;
  74. white-space: normal;
  75. min-width: unset;
  76. }