topbar.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .cl-topbar {
  2. display: flex;
  3. align-items: center;
  4. height: 44px;
  5. width: 100%;
  6. position: relative;
  7. padding-top: env(safe-area-inset-top);
  8. &__content {
  9. width: 100%;
  10. }
  11. &__text {
  12. display: flex;
  13. flex-direction: column;
  14. justify-content: center;
  15. text-align: center;
  16. }
  17. &__title {
  18. font-size: 32rpx;
  19. }
  20. &__description {
  21. font-size: 22rpx;
  22. color: #999;
  23. }
  24. &__prepend,
  25. &__append {
  26. display: flex;
  27. align-items: center;
  28. height: 44px;
  29. position: absolute;
  30. /* #ifdef MP */
  31. & > view {
  32. display: flex;
  33. }
  34. /* #endif */
  35. }
  36. &__prepend {
  37. left: 0;
  38. }
  39. &__append {
  40. right: 0;
  41. }
  42. &__icon {
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. height: 100%;
  47. width: 80rpx;
  48. font-size: 40rpx;
  49. &:active {
  50. opacity: 0.8;
  51. }
  52. .cl-icon-arrow-left {
  53. font-size: 44rpx;
  54. }
  55. }
  56. &.is-border {
  57. border-bottom: 1rpx solid #f7f7f7;
  58. }
  59. &.is-android {
  60. padding-top: 44rpx;
  61. &__prepend,
  62. &__append {
  63. top: 44rpx;
  64. }
  65. }
  66. &.is-fixed {
  67. position: fixed;
  68. top: 0;
  69. left: 0;
  70. z-index: 3000;
  71. }
  72. &.is-sticky {
  73. position: sticky;
  74. top: 0;
  75. }
  76. }