sticky.scss 382 B

1234567891011121314151617181920212223242526272829303132
  1. .cl-sticky {
  2. /* #ifndef APP-PLUS-NVUE */
  3. position: -webkit-sticky;
  4. /* #endif */
  5. position: sticky;
  6. /* #ifdef H5 */
  7. top: 44px;
  8. /* #endif */
  9. /* #ifndef H5 */
  10. top: 0;
  11. /* #endif */
  12. z-index: 99;
  13. width: 100%;
  14. &.is-flex {
  15. display: flex;
  16. align-items: center;
  17. }
  18. &.is-topbar {
  19. /* #ifdef H5 */
  20. top: 0;
  21. /* #endif */
  22. }
  23. &.is-white {
  24. background-color: #fff;
  25. }
  26. }