团队冲刺第二阶段2

今天做了分类后的展示部分

  用CSS改变单选框的样式,以展示图片。

程序可以识别文件夹或者是文件,文件夹的名字展示在下拉框位置。

下面是CSS文件内容:

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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
ul {   
    padding0;
    margin0;
 
}
 
li {   
    list-style-typenone;
 
}
 
input[type='radio']{   
    width:1000px;
    displaynone;
}
 
label {   
    cursorpointer;
}
::-webkit-scrollbar {   
    displaynone;
}
 
 
.swanky_wrapper {
    width100%;
     
    heightauto;
     
    overflowhidden;
     
    border-radius: 4px;
    
     background#c0c0c0;
     
     margin:60px auto;
 
    }
 
.swanky_wrapper label {  
padding25px;
     
floatleft;
     
height72px;
     
border-bottom1px solid #293649;
     
positionrelative;
     
width100%;
     
color#eff4fa;
     
transition: text-indent 0.15s, height 0.3s;
    
 box-sizing: border-box;
}
 
 .swanky_wrapper label img {   
 margin-right10px;
    
  positionrelative;
    
top2px;
   
}
 
.swanky_wrapper label span {   
    positionrelative;
    width:100%;
    top-3px;
 
}
 
.swanky_wrapper label:hover {   
    background#c0c0c0;
    
     border-bottom1px solid #2a394f;
     
     text-indent4px;
 
}
 
.swanky_wrapper label:hover .bar {   
    width100%;
 
}
 
.swanky_wrapper label .bar {   
    width0px;
     
    transition: width 0.15s;
     
    height2px;
    
    positionabsolute;
   
    displayblock;
  
    background#c0c0c0;
   
    bottom0;
     
    left0;
 
    }
 
    .swanky_wrapper label .lil_arrow {   
    width5px;
     
    height5px;
     
    transition: -webkit-transform 0.8s;
     
    transition: transform 0.8s;
     
    transition: transform 0.8s, -webkit-transform 0.8s;
     
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
     
    border-top2px solid white;
     
    border-right2px solid white;
     
    floatright;
    
     positionrelative;
     
     top6px;
     
     right2px;
     
     -webkit-transform: rotate(45deg);
    
      transform: rotate(45deg);
 
    }
 
    .swanky_wrapper__content {   
    positionabsolute;
    displaynone;
    overflowhidden;
    left0;
    width100%;
    }
    .swanky_wrapper__content img{
    height99px;
    widthauto;
    }
     
     
 
   
    .swanky_wrapper__content .clear {  
    clearboth;
}
 
    input[type='radio']:checked + label .swanky_wrapper__content {   
    displayblock;
    top68px;
    border-bottom1px solid #212e41;
}
 
    input[type='radio']:checked + label >.lil_arrow {   
    transition: -webkit-transform 0.8s;
    transition: transform 0.8s;
    transition: transform 0.8s, -webkit-transform 0.8s;
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    border-top2px solid #14a3f9;
    border-right2px solid #14a3f9;
}
input[type='radio']:checked + label {  
    height325px;
    background#c0c0c0;
    text-indent4px;
    transition-property: height;
    transition-duration: 0.6s;
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
}
       input[type='radio']:checked + label .bar {   
       width0;
}
input[type='radio']:checked + label li:nth-of-type(1) {  
    -webkit-animation: in 0.150.575s forwards;
    animation: in 0.150.575s forwards;
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
    -moz-animation: in 0.150.575s forwards;
    -moz-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
}
input[type='radio']:checked + label li:nth-of-type(2) {
    -webkit-animation: in 0.150.7s forwards;
    animation: in 0.150.7s forwards;
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
    -moz-animation: in 0.150.7s forwards;
    -moz-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
}
input[type='radio']:checked + label li:nth-of-type(3) {   
    -webkit-animation: in 0.150.825s forwards;
    animation: in 0.150.825s forwards;
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
    -moz-animation: in 0.150.825s forwards;
    -moz-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
}
input[type='radio']:checked + label li:nth-of-type(4) {   
    -webkit-animation: in 0.150.95s forwards;
    animation: in 0.150.95s forwards;
    -webkit-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
    -moz-animation: in 0.150.95s forwards;
    -moz-transition-timing-function: cubic-bezier(0.68-0.550.2651.55);
}
@-webkit-keyframes in {    from {       
left-100%;
        opacity: 0;
    }
    to {       
    left0;
        opacity: 1;
    }
}
@keyframes in {    from {       
left-100%;
        opacity: 0;
    }
    to {        left0;
        opacity: 1;
    }
}
原文地址:https://www.cnblogs.com/1329197745a/p/14905673.html