common.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*flex布局类的css新定义一下,tailwindcss写起来还是太长了,其它的定义暂时不动*/
  2. /*比如要单个定义justify或者align,又或是self,用tailwind差别也不大,当两个要连写时,用下面的还是能精简不少*/
  3. $justifies: (
  4. sta: flex-start,
  5. start: flex-start,
  6. end: flex-end,
  7. cen: center,
  8. center: center,
  9. bet: space-between,
  10. between: space-between,
  11. aro: space-around,
  12. around: space-around
  13. );
  14. $aligns: (
  15. sta: flex-start,
  16. start: flex-start,
  17. end: flex-end,
  18. cen: center,
  19. center: center,
  20. base: baseline,
  21. stretch: stretch,
  22. default: stretch,
  23. def: stretch
  24. );
  25. @each $jcName, $jcValue in $justifies {
  26. @each $aiName, $aiValue in $aligns {
  27. .fx-#{$jcName}-#{$aiName} {
  28. justify-content: $jcValue;
  29. align-items: $aiValue;
  30. }
  31. }
  32. }
  33. .fx-row {
  34. display: flex;
  35. flex-direction: row;
  36. }
  37. .fx-col {
  38. display: flex;
  39. flex-direction: column;
  40. }
  41. body {
  42. font-size: 15px; // 与tailwindcss text-base保持一致
  43. }
  44. .page-content {
  45. display: flex;
  46. flex-direction: column;
  47. width: 100vw;
  48. background-color: #f8fcff;
  49. min-height: calc(100vh - var(--window-bottom));
  50. }
  51. .uv-text {
  52. /* 控制icon与内容之间的小间隔 */
  53. column-gap: 3px;
  54. }
  55. .uv-tabs__wrapper__nav__item__text {
  56. /* 保持uv-tabs的标题不换行 */
  57. word-break: keep-all;
  58. }
  59. .mx-question-content img,
  60. .mx-question-content table,
  61. .mx-question img,
  62. .mx-question table,
  63. .mx-question-parse img,
  64. .mx-question-parse table {
  65. max-width: 100%;
  66. vertical-align: middle;
  67. }
  68. mjx-container {
  69. > svg {
  70. /* 公式超长时,强制不超出容器,虽然有缩小,但比看不见要好! */
  71. max-width: 100%;
  72. }
  73. }
  74. /* 如果tabs-swiper中的内容想支持滚动,请使用此类 */
  75. .tabs-swiper-content {
  76. height: 100%;
  77. box-sizing: border-box;
  78. overflow: auto;
  79. }
  80. .keep-all {
  81. word-break: keep-all;
  82. white-space: nowrap;
  83. }
  84. .highlight-major {
  85. background-color: #3a84f9;
  86. color: #fff;
  87. }
  88. uni-modal {
  89. z-index: 99999;
  90. }
  91. .uv-loading-page .uv-loading-page__img {
  92. width: 180px !important;
  93. height: 180px !important;
  94. }
  95. @font-face {
  96. font-family: "FZBangSKJW";
  97. src: url("https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/app/fonts/FZBangSKJW.ttf");
  98. font-style: normal;
  99. font-weight: 300;
  100. }
  101. @font-face {
  102. font-family: "PingFang";
  103. src: url("https://mingxuejingbang.oss-cn-beijing.aliyuncs.com/ie/app/fonts/PingFang-Normal.ttf");
  104. font-style: normal;
  105. font-weight: normal;
  106. }