fei.wang
2025-01-23 3aa14b30664ef3dd8977da1095e4b4d4d9b89d21
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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* 顶部 start */
.header {
  padding: 80rpx 60rpx 40rpx 60rpx;
  
  .title {
    font-size: 36rpx;
    color: $tn-font-color;
    font-weight: bold;
  }
  
  .sub-title {
    font-size: 28rpx;
    color: $tn-content-color;
    padding-top: 18rpx;
  }
  
  .tips-title {
    font-size: 24rpx;
    color: $tn-font-sub-color;
    padding-top: 5rpx;
  }
}
/* 顶部 end */
 
/* 展示内容容器 start */
.show-content-container {
  
  /* 标题容器 start */
  .title-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    min-height: 100rpx;
    
    // 标题样式
    .title {
      height: 100%;
      max-width: 100%;
      margin: 0 20rpx;
      font-size: 30rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      
      // 标题前面小点
      &:before {
        content: " ";
        background-color: $tn-main-color;
        width: 15rpx;
        height: 15rpx;
        border-radius: 10rpx;
        margin-right: 18rpx;
      }
    }
  }
  /* 标题容器 end */
  
  /* 内容 start */
  .content {
    padding: 20rpx;
  }
  /* 内容 end */
  
}
/* 展示内容容器 end */
 
/* 内容容器 start */
.demo-content-container {
  border: 1rpx dashed $tn-main-color;
  margin: 20rpx;
  margin-top: 0rpx;
  
  position: fixed;
  width: 95%;
  z-index: 10;
  
  transition: all 0.15s ease-out;
  
  &.top {
    width: 100%;
    margin: 0;
  }
  
  &.no-fixed {
    position: relative !important;
  }
  
  /* 标题容器 start */
  .title-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 100rpx;
    
    // 标题样式
    .title {
      height: 100%;
      max-width: 100%;
      margin: 0 30rpx;
      font-size: 30rpx;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  /* 标题容器 end */
  
  /* 内容 start */
  .content {
    padding: 30rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* 内容 end */
  
}
/* 内容容器 end */
 
/* 可选项内容容器 start */
.demo-section-container {
  margin: 20rpx;
  height: 100%;
  
  /* 标题容器 start */
  .title-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 100rpx;
    margin-bottom: 10rpx;
    
    // 标题样式
    .title {
      height: 100%;
      max-width: 100%;
      margin: 0 30rpx;
      font-size: 30rpx;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    &::after {
      content: " ";
      box-sizing: border-box;
      width: 90%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      border-bottom: 1rpx solid $tn-border-solid-color;
    }
  }
  /* 标题容器 end */
  
  /* 参数内容 start*/
  .content {
    padding: 0 20rpx 10rpx 20rpx;
    
    // 标题样式
    .title {
      padding-left: 20rpx;
      height: 100%;
      position: relative;
      
      &::before {
        content: " ";
        position: absolute;
        top: 50%;
        left: 0;
        width: 4rpx;
        height: 90%;
        background-color: $tn-main-color;
        border-radius: 6rpx;
        transform: translateY(-50%);
      }
    }
    
    // 参数样式
    .section {
      margin-top: 15rpx;
      margin-bottom: 20rpx;
    }
  }
  /* 参数内容 end*/
  
}
/* 可选项内容容器 end */