statusBar.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .statusBar {
  28. position: fixed;
  29. z-index: 10;
  30. }
  31. .statusBar .nav {
  32. width: 750rpx;
  33. position: relative;
  34. background-color: #FFFFFF;
  35. position: -webkit-sticky;
  36. position: sticky;
  37. top: 0;
  38. }
  39. .statusBar .nav .backBtnSty {
  40. width: 40rpx;
  41. height: 40rpx;
  42. margin-left: 15rpx;
  43. margin-top: 50rpx;
  44. }
  45. .statusBar .nav .backBtnSty image {
  46. width: 40rpx;
  47. height: 40rpx;
  48. }
  49. .statusBar .nav .navTit {
  50. width: 260rpx;
  51. height: 44px;
  52. margin: auto;
  53. color: #ffffff;
  54. text-align: center;
  55. display: flex;
  56. justify-content: space-around;
  57. }
  58. .statusBar .nav .navTit .postTit {
  59. height: 40px;
  60. color: #000;
  61. font-weight: bold;
  62. display: inline-block;
  63. /* 将容器设置为行内块元素 */
  64. vertical-align: bottom;
  65. /* 将文字垂直对齐到底部 */
  66. }
  67. .statusBar .tab-item-active {
  68. color: #FFFFFF !important;
  69. font-size: 18px;
  70. font-weight: bold;
  71. }