added toast messages
This commit is contained in:
parent
daf80b5c0b
commit
94dda91dd1
2
sass
2
sass
@ -1 +1 @@
|
|||||||
sass src/scss/style.scss build/style.css
|
sass --style=compressed src/scss/style.scss build/style.css
|
||||||
|
@ -33,5 +33,6 @@
|
|||||||
|
|
||||||
<div id="react"></div>
|
<div id="react"></div>
|
||||||
<script src="{{ url_for('static', filename='js/app.bundle.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/app.bundle.js') }}"></script>
|
||||||
|
<div id="snackbar">toast</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,6 +1,8 @@
|
|||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
|
import showMessage from "../Toast.js"
|
||||||
|
|
||||||
class Functions extends Component {
|
class Functions extends Component {
|
||||||
|
|
||||||
constructor(props){
|
constructor(props){
|
||||||
@ -12,7 +14,7 @@ class Functions extends Component {
|
|||||||
runAllUsers(event){
|
runAllUsers(event){
|
||||||
axios.get('/api/playlist/run/users')
|
axios.get('/api/playlist/run/users')
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error running all users (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
|
import showMessage from "../Toast.js"
|
||||||
|
|
||||||
class Lock extends Component {
|
class Lock extends Component {
|
||||||
|
|
||||||
constructor(props){
|
constructor(props){
|
||||||
@ -22,6 +24,9 @@ class Lock extends Component {
|
|||||||
accounts: response.data.accounts,
|
accounts: response.data.accounts,
|
||||||
isLoading: false
|
isLoading: false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
showMessage(`error getting users info (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,7 +35,8 @@ class Lock extends Component {
|
|||||||
username: username,
|
username: username,
|
||||||
locked: to_state
|
locked: to_state
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
var lockMessage = to_state ? 'locking' : 'unlocking';
|
||||||
|
showMessage(`error ${lockMessage} ${username} (${error.response.status})`);
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
});
|
});
|
||||||
|
@ -6,19 +6,6 @@ class Index extends Component{
|
|||||||
constructor(props){
|
constructor(props){
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {}
|
this.state = {}
|
||||||
// this.pingPlaylists();
|
|
||||||
}
|
|
||||||
|
|
||||||
pingPlaylists(){
|
|
||||||
var self = this;
|
|
||||||
axios.get('/api/playlists')
|
|
||||||
.then((response) => {
|
|
||||||
console.log(response)
|
|
||||||
});
|
|
||||||
axios.get('/api/user')
|
|
||||||
.then((response) => {
|
|
||||||
console.log(response)
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
|
@ -2,15 +2,15 @@ import React, { Component } from "react";
|
|||||||
import { BrowserRouter as Redirect } from "react-router-dom";
|
import { BrowserRouter as Redirect } from "react-router-dom";
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
|
import showMessage from "../Toast.js"
|
||||||
|
|
||||||
class NewPlaylist extends Component {
|
class NewPlaylist extends Component {
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
name: '',
|
name: '',
|
||||||
type: 'normal',
|
type: 'normal'
|
||||||
error: false,
|
|
||||||
errorText: null
|
|
||||||
}
|
}
|
||||||
this.handleInputChange = this.handleInputChange.bind(this);
|
this.handleInputChange = this.handleInputChange.bind(this);
|
||||||
this.handleSubmit = this.handleSubmit.bind(this);
|
this.handleSubmit = this.handleSubmit.bind(this);
|
||||||
@ -25,25 +25,25 @@ class NewPlaylist extends Component {
|
|||||||
handleSubmit(event){
|
handleSubmit(event){
|
||||||
axios.get('/api/playlists')
|
axios.get('/api/playlists')
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
var sameName = response.data.playlists.filter((i) => {i.name == this.state.name ? true : false});
|
var sameName = response.data.playlists.includes(this.state.name);
|
||||||
if(sameName.length == 0){
|
if(sameName.length == false){
|
||||||
axios.put('/api/playlist', {
|
axios.put('/api/playlist', {
|
||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
parts: [],
|
parts: [],
|
||||||
playlist_references: [],
|
playlist_references: [],
|
||||||
shuffle: false,
|
shuffle: false,
|
||||||
type: this.state.type,
|
type: this.state.type,
|
||||||
|
}).then((response) => {
|
||||||
|
showMessage(`${this.state.name} created`);
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error creating playlist (${error.response.status})`);
|
||||||
}).finally(() => {
|
|
||||||
window.location.href = "/app/playlists";
|
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
this.setState({
|
showMessage('named playlist already exists');
|
||||||
error: true,
|
|
||||||
errorText: 'name already exists'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
showMessage(`error getting playlists (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,12 +80,6 @@ class NewPlaylist extends Component {
|
|||||||
<input type="submit" className="button full-width" onClick={this.handleSubmit} value="create" />
|
<input type="submit" className="button full-width" onClick={this.handleSubmit} value="create" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{ this.state.error &&
|
|
||||||
<tr>
|
|
||||||
<td colSpan="2">
|
|
||||||
<p className="full-width" style={{color: 'red'}}>{this.state.errorText}</p>
|
|
||||||
</td>
|
|
||||||
</tr>}
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
);
|
);
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
|
import showMessage from "../Toast.js"
|
||||||
|
|
||||||
class PlaylistView extends Component{
|
class PlaylistView extends Component{
|
||||||
|
|
||||||
constructor(props){
|
constructor(props){
|
||||||
@ -11,8 +13,6 @@ class PlaylistView extends Component{
|
|||||||
playlists: [],
|
playlists: [],
|
||||||
playlist_references: [],
|
playlist_references: [],
|
||||||
type: null,
|
type: null,
|
||||||
error: false,
|
|
||||||
error_text: null,
|
|
||||||
|
|
||||||
day_boundary: '',
|
day_boundary: '',
|
||||||
recommendation_sample: '',
|
recommendation_sample: '',
|
||||||
@ -37,14 +37,24 @@ class PlaylistView extends Component{
|
|||||||
componentDidMount(){
|
componentDidMount(){
|
||||||
axios.all([this.getPlaylistInfo(), this.getPlaylists()])
|
axios.all([this.getPlaylistInfo(), this.getPlaylists()])
|
||||||
.then(axios.spread((info, playlists) => {
|
.then(axios.spread((info, playlists) => {
|
||||||
|
|
||||||
|
info.data.parts.sort(function(a, b){
|
||||||
|
if(a < b) { return -1; }
|
||||||
|
if(a > b) { return 1; }
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
info.data.playlist_references.sort(function(a, b){
|
||||||
|
if(a < b) { return -1; }
|
||||||
|
if(a > b) { return 1; }
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
this.setState(info.data);
|
this.setState(info.data);
|
||||||
this.setState({playlists: playlists.data.playlists});
|
this.setState({playlists: playlists.data.playlists});
|
||||||
}))
|
}))
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.setState({
|
showMessage(`error getting playlist info (${error.response.status})`);
|
||||||
error: true,
|
|
||||||
error_text: "error pulling playlist info"
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +67,6 @@ class PlaylistView extends Component{
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleInputChange(event){
|
handleInputChange(event){
|
||||||
console.log(event.target.name + event.target.value);
|
|
||||||
this.setState({
|
this.setState({
|
||||||
[event.target.name]: event.target.value
|
[event.target.name]: event.target.value
|
||||||
});
|
});
|
||||||
@ -75,7 +84,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
day_boundary: parseInt(boundary)
|
day_boundary: parseInt(boundary)
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error updating boundary value (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,7 +93,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
recommendation_sample: parseInt(sample)
|
recommendation_sample: parseInt(sample)
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error updating rec. sample value (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +105,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
shuffle: event.target.checked
|
shuffle: event.target.checked
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error updating shuffle value (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +117,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
include_recommendations: event.target.checked
|
include_recommendations: event.target.checked
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error updating rec. value (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,7 +145,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
parts: parts
|
parts: parts
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error adding part (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -165,7 +174,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
playlist_references: playlist_references
|
playlist_references: playlist_references
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error adding reference (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -185,7 +194,7 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
parts: parts
|
parts: parts
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error removing part (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,14 +213,17 @@ class PlaylistView extends Component{
|
|||||||
name: this.state.name,
|
name: this.state.name,
|
||||||
playlist_references: playlist_references
|
playlist_references: playlist_references
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error removing reference (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRun(event){
|
handleRun(event){
|
||||||
axios.get('/api/playlist/run', {params: {name: this.state.name}})
|
axios.get('/api/playlist/run', {params: {name: this.state.name}})
|
||||||
|
.then((reponse) => {
|
||||||
|
showMessage(`${this.state.name} ran`);
|
||||||
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error running ${this.state.name} (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@ import React, { Component } from "react";
|
|||||||
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
|
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
|
import showMessage from "../Toast.js"
|
||||||
|
|
||||||
class PlaylistsView extends Component {
|
class PlaylistsView extends Component {
|
||||||
|
|
||||||
constructor(props){
|
constructor(props){
|
||||||
@ -32,29 +34,39 @@ class PlaylistsView extends Component {
|
|||||||
playlists: playlists,
|
playlists: playlists,
|
||||||
isLoading: false
|
isLoading: false
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
showMessage(`error getting playlists (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRunPlaylist(name, event){
|
handleRunPlaylist(name, event){
|
||||||
axios.get('/api/playlist/run', {params: {name: name}})
|
axios.get('/api/playlist/run', {params: {name: name}})
|
||||||
.catch((error) => {this
|
.then((response) => {
|
||||||
console.log(error);
|
showMessage(`${name} ran`);
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
showMessage(`error running ${name} (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDeletePlaylist(name, event){
|
handleDeletePlaylist(name, event){
|
||||||
axios.delete('/api/playlist', { params: { name: name } })
|
axios.delete('/api/playlist', { params: { name: name } })
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
showMessage(`${name} deleted`);
|
||||||
this.getPlaylists();
|
this.getPlaylists();
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error deleting ${name} (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRunAll(event){
|
handleRunAll(event){
|
||||||
axios.get('/api/playlist/run/user')
|
axios.get('/api/playlist/run/user')
|
||||||
|
.then((response) => {
|
||||||
|
showMessage("all playlists ran");
|
||||||
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
showMessage(`error running all (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ import Admin from "./Admin/Admin.js";
|
|||||||
|
|
||||||
import NotFound from "./Error/NotFound.js";
|
import NotFound from "./Error/NotFound.js";
|
||||||
|
|
||||||
|
import showMessage from "./Toast.js"
|
||||||
|
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
class PlaylistManager extends Component {
|
class PlaylistManager extends Component {
|
||||||
@ -41,6 +43,9 @@ class PlaylistManager extends Component {
|
|||||||
type: response.data.type,
|
type: response.data.type,
|
||||||
spotify_linked: response.data.spotify_linked
|
spotify_linked: response.data.spotify_linked
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
showMessage(`error getting user info (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
|
|
||||||
|
import showMessage from "../Toast.js"
|
||||||
|
|
||||||
class SpotifyLink extends Component {
|
class SpotifyLink extends Component {
|
||||||
|
|
||||||
constructor(props){
|
constructor(props){
|
||||||
@ -19,6 +21,9 @@ class SpotifyLink extends Component {
|
|||||||
spotify_linked: response.data.spotify_linked,
|
spotify_linked: response.data.spotify_linked,
|
||||||
isLoading: false
|
isLoading: false
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
showMessage(`error getting user info (${error.response.status})`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
src/js/Toast.js
Normal file
9
src/js/Toast.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
function showToast(message) {
|
||||||
|
var x = document.getElementById("snackbar");
|
||||||
|
x.innerHTML = message;
|
||||||
|
x.className = "show";
|
||||||
|
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default showToast;
|
@ -3,6 +3,7 @@ $background-colour: #202124;
|
|||||||
$ui-colour: #131313;
|
$ui-colour: #131313;
|
||||||
$light-ui: #575757;
|
$light-ui: #575757;
|
||||||
$text-colour: white;
|
$text-colour: white;
|
||||||
|
$ui-element: #505050;
|
||||||
|
|
||||||
$pad-px: 20px;
|
$pad-px: 20px;
|
||||||
|
|
||||||
@ -48,7 +49,7 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
background-color: #505050;
|
background-color: $ui-element;
|
||||||
color: $text-colour;
|
color: $text-colour;
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -63,18 +64,12 @@ p {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
box-shadow: 0 9px #383838;
|
box-shadow: 0 9px #383838;
|
||||||
/*-webkit-transition-duration: 0.4s;
|
|
||||||
transition-duration: 0.4s;*/
|
|
||||||
|
|
||||||
text: {
|
text: {
|
||||||
align: center;
|
align: center;
|
||||||
decoration: none;
|
decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// &:hover {
|
|
||||||
// box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
|
|
||||||
// }
|
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
box-shadow: 0 5px #383838;
|
box-shadow: 0 5px #383838;
|
||||||
transform: translateY(4px);
|
transform: translateY(4px);
|
||||||
@ -83,7 +78,7 @@ p {
|
|||||||
|
|
||||||
input[type=text], input[type=password], input[type=number], select {
|
input[type=text], input[type=password], input[type=number], select {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #505050;
|
background-color: $ui-element;
|
||||||
border: black;
|
border: black;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: white;
|
color: white;
|
||||||
@ -237,12 +232,8 @@ ul.navbar {
|
|||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
// float: left;
|
|
||||||
// position: -webkit-sticky;
|
|
||||||
// position: sticky;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
// padding: 10px;
|
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
|
||||||
@ -252,18 +243,9 @@ ul.navbar {
|
|||||||
|
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
// margin-top: 10px;
|
|
||||||
// margin-bottom: 10px;
|
|
||||||
// margin: auto;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
// display: block;
|
|
||||||
color: $text-colour;
|
color: $text-colour;
|
||||||
// text-align: center;
|
|
||||||
// vertical-align: center;
|
|
||||||
// margin: 25px;
|
|
||||||
// padding: 14px 16px;
|
|
||||||
// border-radius: 5px;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -324,6 +306,48 @@ footer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#snackbar {
|
||||||
|
visibility: hidden;
|
||||||
|
min-width: 250px;
|
||||||
|
margin-left: -125px;
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
padding: 16px;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 30px;
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#snackbar.show {
|
||||||
|
visibility: visible;
|
||||||
|
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
|
animation: fadein 0.5s, fadeout 0.5s 2.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes fadein {
|
||||||
|
from {bottom: 0; opacity: 0;}
|
||||||
|
to {bottom: 30px; opacity: 1;}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadein {
|
||||||
|
from {bottom: 0; opacity: 0;}
|
||||||
|
to {bottom: 30px; opacity: 1;}
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes fadeout {
|
||||||
|
from {bottom: 30px; opacity: 1;}
|
||||||
|
to {bottom: 0; opacity: 0;}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeout {
|
||||||
|
from {bottom: 30px; opacity: 1;}
|
||||||
|
to {bottom: 0; opacity: 0;}
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 768px) {
|
@media only screen and (max-width: 768px) {
|
||||||
ul.navbar li.right,
|
ul.navbar li.right,
|
||||||
ul.navbar li {float: none;}
|
ul.navbar li {float: none;}
|
||||||
|
Loading…
Reference in New Issue
Block a user