index.wxss 2.91 KB
Newer Older
1
/* static/nativeComponents/CubeNav/index.wxss */
李嘉林 committed
2 3 4
.cubeNav image{
  height: auto;
}
5
.clearfix:after {
李嘉林 committed
6 7 8 9 10
  display: block;
  clear: both;
  content: "";
  visibility: hidden;
  height: 0;
11 12 13
}

.clearfix {
李嘉林 committed
14
  zoom: 1;
15
}
李嘉林 committed
16
.cube-nav {
17 18
  box-sizing: border-box;
  font-size: 16rpx;
李嘉林 committed
19
  overflow: hidden;
20
}
李嘉林 committed
21
.cube-bg {
李嘉林 committed
22 23 24
  float: left;
  box-sizing: border-box;
}
李嘉林 committed
25 26 27
.cube1,
.cube2,
.cube3 {
28 29 30 31 32
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
李嘉林 committed
33 34 35
.cube2{
  padding-bottom: 10px;
}
李嘉林 committed
36 37 38 39
.cube-item {
  width: 100%;
  box-sizing: border-box;
}
李嘉林 committed
40 41
.cube2 .cube-item,
.cube3 .cube-item {
李嘉林 committed
42
  width: 100%;
43 44
  float: left;
}
李嘉林 committed
45
.cube-item .item-img {
46 47 48 49 50 51
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
}
李嘉林 committed
52
.cube-item .item-img image {
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
  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 {
李嘉林 committed
76
  display: none;
77 78 79
}

.nav-wrap {
李嘉林 committed
80 81 82
  width: 100%;
  position: absolute;
  text-align: center;
李嘉林 committed
83
  bottom: 20rpx;
李嘉林 committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
}
.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;
}
.navList {
  display: flex;
  align-items: center;
  border-radius: var(--box-border-radius);
  overflow: hidden;
  margin: var(--box-margin-y) var(--box-margin-x);
  background: var(--box-bg-color);
}
.navList>view{
  flex: 1;
  box-sizing: border-box;
  align-self: stretch;
}
.navList-item{
  background-color: var(--box-bg-color);
  background-size: cover;
  background-position: center;
  margin: var(--item-margin);
  padding: var(--item-padding);
  border-radius: var(--item-border-radius);
  overflow: hidden;
}
.navList-item .title{
  font-size: var(--t-font-size);
  color: var(--t-color);
  font-weight: var(--t-weight);
}
.navList-item .subTitle{
  margin-top: 6px;
  font-size: var(--sub-t-font-size);
  color: var(--sub-t-color);
  font-weight: var(--sub-t-weight);
}
.figure{
  margin: 20px auto 0;
  width: var(--figure-size);
  overflow: hidden;
}
.figure image{
  border-radius: var(--figure-border-radius);
  width: 100%;
}
.navList-left{
  margin-right: var(--item-margin-y);
}
.navList-left .navList-item{
  margin-right: 0;
}
.navList-right{
  display: flex;
  flex-direction: column;
}
.navList-right .navList-right-bottom {
  margin-top: 0;
}
.navList-right>view{
  flex: 1;
  display: flex;
}
.navList-right-top{
}
.navList-right-top-left{
  flex-shrink: 0;
  margin-right: 10px;
}
.navList-right-bottom{
}