index.wxss 1.64 KB
/* pages/add_record/index.wxss */

@import "../home/teacher/index.wxss"

/*LXSegmentedControl容器*/
.segmentedControl {
  /*水平居中*/
  margin: 10px auto;
  /*边框为2px 主色调为蓝*/
  border: 1px solid #f9aa76;
  /*圆角6px*/
  border-radius: 6px;
  /*控件宽度*/
  width: calc(100vw - 20px);
  /*控件高度*/
  height: 30px;
}

/*普通文本*/

.segmentedControl text {
  /*水平排列*/
  float: left;
  /*宽度为控件宽度的1/3 再减去2px的右边框*/
  width: calc((100vw - 20px) / 3 - 1px);
  /*字体大小*/
  font-size: 14px;
  /*主色调*/
  color: #f9aa76;
  /*行高,与控件高度相等*/
  line-height: 30px;
  /*文本水平居中*/
  text-align: center;
  /*右边距*/
  border-right: 1px solid #f9aa76;
}

/*选中状态文本*/

.segmentedControl text.selected {
  /*同主色调*/
  background-color: #f9aa76;
  /*前景色为白色*/
  color: white;
}

/*最后一个分组按钮*/

.segmentedControl text.last {
  /*不必右边框*/
  border-right: 0;
  /*高度也不必减少2px,就是控件高度的1/3*/
  width: calc((100vw - 20px) / 3);
}

.category {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20rpx 20rpx 0rpx;
  margin-right: -40rpx;
  justify-content: flex-start;
}

.add_picture_view {
  position: relative;
  width: calc(100vw / 4 + 20rpx);
  height: calc(100vw / 4 + 20rpx);
  margin-right: 30rpx;
}

.add_picture {
  border-width: 1rxp;
  position: absolute;
  left: 0rpx;
  bottom: 0rpx;
  width: calc(100vw / 4);
  height: calc(100vw / 4);
}

.delete {
  position: absolute;
  /* background:#ccc; */
  opacity: 1;
  top: 0rpx;
  right: 0rpx;
  width: 60rpx;
  height: 60rpx;
}