Skip to content

Commit

Permalink
Merge pull request #329 from uasoft-indonesia/bugfix/v1/move-css
Browse files Browse the repository at this point in the history
Move import css from app.js to style.scss
  • Loading branch information
rizkiheryandi authored Aug 16, 2021
2 parents fd34d32 + 1a5780e commit 9b97ec3
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
7 changes: 2 additions & 5 deletions src/Commands/BadasoSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,8 @@ protected function updateWebpackMix()
<<<'EOT'
// Badaso
mix
.js(
"vendor/badaso/core/src/resources/js/app.js",
"public/js/badaso.js"
)
mix.js("vendor/badaso/core/src/resources/js/app.js", "public/js/badaso.js")
.sass("vendor/badaso/core/src/resources/js/assets/scss/style.scss", "public/css/badaso.css");
EOT;

$this->file->append($mix_file, $data);
Expand Down
5 changes: 0 additions & 5 deletions src/resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { Datetime } from "vue-datetime";
import Vuelidate from "vuelidate";
import VueGtag from "vue-gtag";

import "vuesax/dist/vuesax.css"; //Vuesax styles
import "material-icons/iconfont/material-icons.css";
import "vue-datetime/dist/vue-datetime.css";
import "./assets/scss/style.scss";

import api from "./api/index";
import handleError from "./api/handle-error";
import resource from "./api/resource";
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/assets/scss/layout/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
display: flex;
}
.datetime-input {
width: -webkit-fill-available;
width: -webkit-stretch;
}
.datetime-icon-box {
border: 1px solid rgba(0, 0, 0, 0.2);
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/assets/scss/module/_date.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

&__input {
width: -webkit-fill-available;
width: -webkit-stretch;

& .vdatetime-overlay {
z-index: 25000;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/assets/scss/module/_datetime.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

&__input {
width: -webkit-fill-available;
width: -webkit-stretch;

& .vdatetime-overlay {
z-index: 25000;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/assets/scss/module/_time.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

&__input {
width: -webkit-fill-available;
width: -webkit-stretch;

.vdatetime-input {
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/resources/js/assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import "~vuesax/dist/vuesax.css";
@import "~material-icons/iconfont/material-icons.scss";
@import "~vue-datetime/dist/vue-datetime.css";

@import "variable";
@import "./layout/layout";
@import "./layout/custom";
Expand Down
1 change: 1 addition & 0 deletions src/resources/views/admin-panel/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@else
<link rel="shortcut icon" href="{{ asset('storage' . $favicon) }}" type="image/png">
@endif
<link rel="stylesheet" href="{{ mix('css/badaso.css') }}">
</head>
<body>
<div id="app"></div>
Expand Down

0 comments on commit 9b97ec3

Please sign in to comment.