Extract style

This commit is contained in:
Pig Fang 2018-08-12 09:18:45 +08:00
parent 718ec2f7b4
commit b29caca472
5 changed files with 21 additions and 18 deletions

View File

@ -158,15 +158,6 @@ export default {
</script>
<style lang="stylus">
.login-logo a {
font-family: Minecraft, Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif;
transition: all .2s ease-in-out;
}
.login-logo a:hover {
color: #42a5f5;
}
#login-button {
margin-top: 5px;
}

View File

@ -1,4 +1,5 @@
import Vue from 'vue';
import './js/public-path'; // Must be first
import routes from './components/route';
import './js';
@ -12,11 +13,6 @@ if (process.env.NODE_ENV === 'development') {
setTimeout(langs.find(({ lang }) => lang === blessing.locale).load, 0);
}
// eslint-disable-next-line no-undef
__webpack_public_path__ = process.env.NODE_ENV === 'development'
? 'http://127.0.0.1:8080/public/'
: blessing.base_url + '/public/';
const route = routes.find(route => route.path === blessing.route);
if (route) {
new Vue({

View File

@ -26,3 +26,17 @@ $(document).ready(() => {
$('[data-toggle="tooltip"]').tooltip();
});
(() => {
const list = [
{
path: 'auth',
styl: () => import('../stylus/auth.styl')
},
];
const style = list.find(({ path }) => blessing.route.startsWith(path));
if (style) {
style.styl();
}
})();

View File

@ -0,0 +1,4 @@
// eslint-disable-next-line no-undef
__webpack_public_path__ = process.env.NODE_ENV === 'development'
? 'http://127.0.0.1:8080/public/'
: blessing.base_url + '/public/';

View File

@ -1,5 +1,3 @@
@import "general.styl";
.login-logo a, .register-logo a, .reset-logo a {
font-family: Minecraft, Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif;
transition: all .2s ease-in-out;
@ -9,6 +7,6 @@
color: #42a5f5;
}
#login-button {
margin-top: 5px;
.captcha {
cursor: pointer;
}