Skip to content

Commit 3e35fa5

Browse files
committed
hide sub title
1 parent ecf05a1 commit 3e35fa5

7 files changed

Lines changed: 16 additions & 7 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20170601114303
2+
# Build: 20170601115243
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

‎static/app/resources/css/style.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ html, body {
247247
.main-title h1.animated span:nth-child(6) {
248248
color: #d50f25;
249249
transition-delay: 950ms; }
250+
.main-title h5 {
251+
max-height: 300px;
252+
transition: all 250ms ease-in-out;
253+
overflow: hidden; }
250254

251255
.search-form {
252256
padding: 1rem 0; }

‎static/app/scss/_main.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
}
5252
}
5353
}
54+
h5 {
55+
max-height: 300px;
56+
transition: all 250ms ease-in-out;
57+
overflow: hidden;
58+
}
5459
}
5560

5661
.search-form {

‎static/app/src/AppBundle.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
renderTitle();
400400
renderDonate();
401401
renderBaiduShare();
402-
els.subTitle.hide();
402+
els.subTitle.css({'max-height': 0});
403403
}
404404

405405
function renderSearchBtn(str) {

‎static/app/src/view/View.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function renderSearchResult(data) {
343343
renderTitle();
344344
renderDonate();
345345
renderBaiduShare();
346-
els.subTitle.hide();
346+
els.subTitle.css({'max-height': 0});
347347
}
348348

349349
function renderSearchBtn(str) {

‎sw.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ self.addEventListener('install', function(event) {
66
// long install takes, and if it failed
77
event.waitUntil(
88
// We open a cache…
9-
caches.open('20170601114303').then(function(cache) {
9+
caches.open('20170601115243').then(function(cache) {
1010
// And add resources to it
1111
return cache.addAll(["./",
1212
"resources/fonts/Dressedless_Three.svg",

0 commit comments

Comments
 (0)