Extract style
This commit is contained in:
parent
718ec2f7b4
commit
b29caca472
@ -158,15 +158,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<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 {
|
#login-button {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
import './js/public-path'; // Must be first
|
||||||
import routes from './components/route';
|
import routes from './components/route';
|
||||||
import './js';
|
import './js';
|
||||||
|
|
||||||
@ -12,11 +13,6 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
setTimeout(langs.find(({ lang }) => lang === blessing.locale).load, 0);
|
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);
|
const route = routes.find(route => route.path === blessing.route);
|
||||||
if (route) {
|
if (route) {
|
||||||
new Vue({
|
new Vue({
|
||||||
|
@ -26,3 +26,17 @@ $(document).ready(() => {
|
|||||||
|
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[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();
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
4
resources/assets/src/js/public-path.js
Normal file
4
resources/assets/src/js/public-path.js
Normal 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/';
|
@ -1,5 +1,3 @@
|
|||||||
@import "general.styl";
|
|
||||||
|
|
||||||
.login-logo a, .register-logo a, .reset-logo a {
|
.login-logo a, .register-logo a, .reset-logo a {
|
||||||
font-family: Minecraft, Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif;
|
font-family: Minecraft, Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif;
|
||||||
transition: all .2s ease-in-out;
|
transition: all .2s ease-in-out;
|
||||||
@ -9,6 +7,6 @@
|
|||||||
color: #42a5f5;
|
color: #42a5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
#login-button {
|
.captcha {
|
||||||
margin-top: 5px;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user