index.wxss 1.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
/* static/nativeComponents/CubeNav/index.wxss */
.clearfix:after {
    display: block;
    clear: both;
    content: "";
    visibility: hidden;
    height: 0;
}

.clearfix {
    zoom: 1;
}
.cube-nav{
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-size: 16rpx;
}
.cube1,.cube2,.cube3{
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.cube-item{
  float: left;
}
.cube-item .item-img{
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
}
.cube-item .item-img image{
  width: 100%;
  height: 100%;
  position: absolute;
  margin: auto;
  top: -9999px;
  right: -9999px;
  bottom: -9999px;
  left: -9999px;
  object-fit: contain;
}
.cube-item .item-bg {
  background-image: linear-gradient(#8bd3fb, #4e98f8);
  background-image: -webkit-linear-gradient(#8bd3fb, #4e98f8);
}
.item-title {
  width: 100%;
  text-align: center;
  margin-top: 16rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cube2::-webkit-scrollbar {
    display: none;
}

.nav-wrap {
    width: 100%;
    position: absolute;
    text-align: center;
    bottom: 8rpx;
}
 .nav {
      width: 120rpx;
      height: 8rpx;
      border-radius: 4rpx;
      position: relative;
      overflow: hidden;
      margin: 0 auto;
      background-color: #ccc;
      
    }
    .inner-nav {
        width: 60rpx;
        height: 8rpx;
        border-radius: 4px;
        position: absolute;
        background-color: var(--main-color);
        top: 0;
      }