trying to do a bit of fancy styling

This commit is contained in:
Martin Donnelly 2018-02-12 13:32:47 +00:00
parent dc7f6a9889
commit b77689b427
3 changed files with 16 additions and 1 deletions

View File

@ -101,6 +101,17 @@ li {
font-size:125%;
}
#trains {
overflow-y: auto;
transition: all 0.5s;
}
.sliced {
height:300px;
}
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
visibility: hidden; /* Hidden by default. Visible on click */

View File

@ -234,8 +234,12 @@ ${nrMessages}
<th class="mui--text-center">Platform</th></tr></thead>`;
ws = `${thead}${ws}</table>`;
this.$traintext.empty().html(ws);
this.$traintext.removeClass('mui--hide').addClass('mui--show');
if (!this.$trains.hasClass('sliced'))
this.$trains.addClass('sliced');
},
'initView': function () {

View File

@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
const CACHE_VERSION = 2;
const CACHE_VERSION = 3;
const dataCacheName = 'traintimesData-v1';
const cacheName = 'traintimePWA-final-1';
const filesToCache = [