index.wxss 1.95 KB
Newer Older
张杰's avatar
张杰 committed
1 2
/* pages/add_record/index.wxss */

张杰's avatar
张杰 committed
3 4
@import "../home/teacher/index.wxss"

张杰's avatar
张杰 committed
5 6
/*LXSegmentedControl容器*/
.segmentedControl {
张杰's avatar
张杰 committed
7 8 9 10 11 12 13 14 15 16
  /*水平居中*/
  margin: 10px auto;
  /*边框为2px 主色调为蓝*/
  border: 1px solid #f9aa76;
  /*圆角6px*/
  border-radius: 6px;
  /*控件宽度*/
  width: calc(100vw - 20px);
  /*控件高度*/
  height: 30px;
张杰's avatar
张杰 committed
17 18 19
}

/*普通文本*/
张杰's avatar
张杰 committed
20

张杰's avatar
张杰 committed
21
.segmentedControl text {
张杰's avatar
张杰 committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35
  /*水平排列*/
  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;
张杰's avatar
张杰 committed
36 37 38
}

/*选中状态文本*/
张杰's avatar
张杰 committed
39

张杰's avatar
张杰 committed
40
.segmentedControl text.selected {
张杰's avatar
张杰 committed
41 42 43 44
  /*同主色调*/
  background-color: #f9aa76;
  /*前景色为白色*/
  color: white;
张杰's avatar
张杰 committed
45 46 47
}

/*最后一个分组按钮*/
张杰's avatar
张杰 committed
48

张杰's avatar
张杰 committed
49
.segmentedControl text.last {
张杰's avatar
张杰 committed
50 51 52 53
  /*不必右边框*/
  border-right: 0;
  /*高度也不必减少2px,就是控件高度的1/3*/
  width: calc((100vw - 20px) / 3);
张杰's avatar
张杰 committed
54 55 56
}

.category {
张杰's avatar
张杰 committed
57 58 59 60 61 62
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20rpx 20rpx 0rpx;
  margin-right: -40rpx;
  justify-content: flex-start;
张杰's avatar
张杰 committed
63 64
}

张杰's avatar
张杰 committed
65 66
.add_picture_view {
  position: relative;
张杰's avatar
张杰 committed
67 68
  width: calc(100vw / 2.5 + 20rpx);
  height: calc(100vw / 2.5 + 20rpx);
张杰's avatar
张杰 committed
69 70 71 72 73 74 75 76
  margin-right: 30rpx;
}

.add_picture {
  border-width: 1rxp;
  position: absolute;
  left: 0rpx;
  bottom: 0rpx;
张杰's avatar
张杰 committed
77 78
  width: calc(100vw / 2.5);
  height: calc(100vw / 2.5);
张杰's avatar
张杰 committed
79
}
张杰's avatar
张杰 committed
80

张杰's avatar
张杰 committed
81 82 83 84 85 86 87 88 89
.delete {
  position: absolute;
  /* background:#ccc; */
  opacity: 1;
  top: 0rpx;
  right: 0rpx;
  width: 60rpx;
  height: 60rpx;
}
张杰's avatar
张杰 committed
90 91 92 93 94 95 96

.add_remark {
  height:200rpx;
  width: auto;
  margin:20rpx 16rpx;
  background-color: #f1f1f1;
  border-radius: 5px;
张杰's avatar
张杰 committed
97
}
张杰's avatar
张杰 committed
98

张杰's avatar
张杰 committed
99 100 101 102 103 104 105 106
.img_title {
  margin-left: 20rpx;
  margin-top: 20rpx;
  margin-bottom: 20rpx;
  background-color: #f9aa76;
  color: white;
  font-size: 14px;
  width: calc((100vw - 20px) / 3 - 1px);
张杰's avatar
张杰 committed
107
}