|
135 | 135 | flex-direction: row;
|
136 | 136 | justify-content: space-between;
|
137 | 137 | .language-title {
|
138 |
| - margin: 0 0 50px 0; |
| 138 | + margin: 0 0 10px 0; |
139 | 139 | font-size: 48px;
|
140 | 140 | font-weight: bold;
|
141 | 141 | }
|
|
149 | 149 | }
|
150 | 150 | }
|
151 | 151 | }
|
152 |
| - .library-category { |
153 |
| - padding-top: 15px; |
154 |
| - } |
155 | 152 | .library-category-title {
|
156 | 153 | margin: 0;
|
| 154 | + padding-top: 45px; |
157 | 155 | font-size: 24px;
|
158 | 156 | color: #a6a6a6;
|
159 | 157 | font-weight: bold;
|
|
163 | 161 | flex-direction: row;
|
164 | 162 | justify-content: space-between;
|
165 | 163 | margin-top: 36px;
|
166 |
| - margin-bottom: 50px; |
| 164 | + margin-bottom: 40px; |
167 | 165 | .library-details {
|
168 | 166 | width: 30%;
|
169 | 167 | .library-name {
|
|
195 | 193 | }
|
196 | 194 | .library-howto {
|
197 | 195 | width: 60%;
|
| 196 | + position: relative; |
198 | 197 | .library-howto-content {
|
| 198 | + overflow: hidden; |
| 199 | + &.not-expanded { |
| 200 | + max-height: 450px; |
| 201 | + } |
| 202 | + &.expanded { |
| 203 | + max-height: none; |
| 204 | + border-bottom-style: solid; |
| 205 | + border-bottom-color: #C4C4C4; |
| 206 | + border-bottom-width: 3px; |
| 207 | + } |
199 | 208 | p {
|
200 | 209 | margin: 0;
|
201 | 210 | }
|
202 |
| - transition: max-height 0.25s ease-in; |
203 | 211 | }
|
204 | 212 | }
|
205 | 213 | .library-howto-expand {
|
206 |
| - border-top-style: solid; |
207 |
| - border-top-color: #C4C4C4; |
208 |
| - border-top-width: 3px; |
209 |
| - background-image: url(http://github.com/static/img/downarrow.svg%3C/span%3E); |
210 |
| - background-position: center; |
211 |
| - background-repeat: no-repeat; |
212 |
| - width: 100%; |
213 |
| - min-height: 40px; |
214 |
| - display: block; |
215 | 214 | cursor: pointer;
|
| 215 | + |
| 216 | + &.not-expanded { |
| 217 | + background: -webkit-linear-gradient( |
| 218 | + top, |
| 219 | + rgba(237, 239, 240, 0), |
| 220 | + rgba(237, 239, 240, 0) 380px, |
| 221 | + #ffffff 400px |
| 222 | + ); |
| 223 | + background: linear-gradient( |
| 224 | + to bottom, |
| 225 | + rgba(237, 239, 240, 0), |
| 226 | + rgba(237, 239, 240, 0) 380px, |
| 227 | + #ffffff 400px |
| 228 | + ); |
| 229 | + box-sizing: border-box; |
| 230 | + display: block; |
| 231 | + height: 450px; |
| 232 | + padding-top: 400px; |
| 233 | + position: absolute; |
| 234 | + top: 0; |
| 235 | + right: 0; |
| 236 | + left: 0; |
| 237 | + text-align: center; |
| 238 | + .library-howto-expand-anchor { |
| 239 | + background: #ffffff; |
| 240 | + -moz-box-sizing: border-box; |
| 241 | + box-sizing: border-box; |
| 242 | + border-radius: 9pt 9pt 0 0; |
| 243 | + color: #8c8c8c; |
| 244 | + display: inline-block; |
| 245 | + max-width: 100%; |
| 246 | + overflow: hidden; |
| 247 | + padding: 10px; |
| 248 | + text-decoration: underline; |
| 249 | + text-overflow: ellipsis; |
| 250 | + white-space: nowrap; |
| 251 | + } |
| 252 | + } |
| 253 | + &.expanded { |
| 254 | + width: 100%; |
| 255 | + height: 30px; |
| 256 | + text-align: center; |
| 257 | + transform: rotate(180deg); |
| 258 | + } |
216 | 259 | }
|
217 | 260 | }
|
218 | 261 | }
|
0 commit comments