app.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. @import 'vars.css';
  2. page{
  3. width: 100%;
  4. height: 100%;
  5. color: #2B303A;
  6. font-size: var(--global-size);
  7. box-sizing: border-box;
  8. }
  9. view,text,scroll-view{
  10. box-sizing: border-box;
  11. }
  12. icon{
  13. display: inline-flex;
  14. align-items: center;
  15. justify-content: center;
  16. }
  17. >>> ax-custom-title .title{
  18. font-size: 18px;
  19. }
  20. #root{
  21. width: 100%;
  22. height: 100%;
  23. background-color: var(--global-background);
  24. color: var(--font-main);
  25. overflow: auto;
  26. }
  27. /* 占位符样式 */
  28. .app-placeholder,
  29. .app-placeholder::placeholder{
  30. color: #ccc;
  31. }
  32. /* 分组标题 */
  33. .app-group-title{
  34. padding: 10px;
  35. text-align: center;
  36. color: var(--font-des);
  37. }
  38. /* 状态栏 */
  39. .app-status-bar{
  40. min-height: 34px;
  41. background-color: var(--global-background);
  42. }
  43. /* 弹性盒子模型 */
  44. .app-flex-one{
  45. flex: 1;
  46. }
  47. .app-flex{
  48. display: flex;
  49. }
  50. .app-flex.middle{
  51. align-items: center;
  52. }
  53. .app-flex.c-center{
  54. align-items: center;
  55. justify-content: center;
  56. }
  57. .app-flex.c-between{
  58. align-items: center;
  59. justify-content: space-between;
  60. }
  61. .app-flex.c-around{
  62. align-items: center;
  63. justify-content: space-around;
  64. }
  65. .app-flex.column{
  66. flex-direction: column;
  67. }
  68. /* 标题栏 */
  69. .app-title-bar{
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. height: 50px;
  74. padding: 0 15px 0 10px;
  75. color: #333;
  76. background-color: var(--global-background);
  77. font-size: 16px;
  78. }
  79. .app-title-bar .icon-item{
  80. display: inline-flex;
  81. align-items: center;
  82. justify-content: center;
  83. font-size: 22px;
  84. width: 30px;
  85. height: 30px;
  86. }
  87. .app-title-bar .icon-item.back{
  88. font-size: 24px;
  89. transform: scaleX(-100%);
  90. }
  91. /* 隐藏滚动条 */
  92. scroll-view.app-hide-scrollbar >>> ::-webkit-scrollbar,
  93. .app-hide-scrollbar::-webkit-scrollbar{
  94. display: none;
  95. }
  96. /* 不可选择 */
  97. .app-unselectable{
  98. user-select: none;
  99. }