Skip to content

Commit 46abee3

Browse files
author
Irfan Maulana
committed
add normalize
1 parent a5f08a9 commit 46abee3

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

demo/App.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div id="app" class="VueSelectImage">
2+
<div id="app" class="app">
33

44
<header role="header" class="site__header header">
55
<div class="header__wrapper">
@@ -18,7 +18,7 @@
1818
</div>
1919
</header>
2020

21-
<div class="app">
21+
<main class="main-app">
2222

2323
<div class="grid__row centered hero">
2424
<h1 class="centered">
@@ -94,14 +94,12 @@
9494

9595
</div>
9696

97-
</div>
97+
</main>
9898

99-
<div class="grid__row content centered">
99+
<footer class="grid__row content centered">
100100
<h2>Contribute</h2>
101101
<p>Feel free to fork <i class="fa fa-code-fork"></i> on <a href="https://github.com/mazipan/vue-ionicons" target="_blank">GitHub <i class="fa fa-github"></i></a> if you have any features <i class="fa fa-cart-plus"></i> or bugs <i class="fa fa-bug"></i>!</p>
102-
</div>
103102

104-
<div class="grid__row content centered">
105103
<h2>Contact Developer</h2>
106104
<p>
107105
<a href="https://github.com/mazipan">
@@ -120,11 +118,9 @@
120118
<LogoLinkedinIcon w="30px" h="30px" />
121119
</a>
122120
</p>
123-
</div>
124121

125-
<div class="grid__row content centered">
126122
<p>Copyright © 2017 <a href="https://mazipanneh.com/blog/">Irfan Maulana</a>, All Rights Reserved.</p>
127-
</div>
123+
</footer>
128124

129125
</div>
130126
</template>
@@ -183,8 +179,10 @@ export default {
183179
</script>
184180

185181
<style lang="scss">
182+
@import "./normalize.scss";
183+
186184
// import ionicons global scss
187-
@import '../ionicons.scss';
185+
@import "../ionicons.scss";
188186
189187
@mixin bg-gradient() {
190188
background: #4776e6;

demo/normalize.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */button,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-block}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}

webpack.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ module.exports = {
3434
exclude: /node_modules/,
3535
options: {
3636
loaders: {
37+
css: ExtractTextPlugin.extract({
38+
use: 'css-loader',
39+
fallback: 'vue-style-loader'
40+
}),
3741
scss: ExtractTextPlugin.extract({
3842
use: 'css-loader!sass-loader',
3943
fallback: 'vue-style-loader'
@@ -52,6 +56,14 @@ module.exports = {
5256
loader: 'babel-loader',
5357
exclude: /node_modules/
5458
},
59+
{
60+
test: /\.css$/,
61+
exclude: /node_modules/,
62+
use: ExtractTextPlugin.extract({
63+
fallback: "style-loader",
64+
use: "css-loader"
65+
})
66+
},
5567
{
5668
test: /\.(png|jpg|gif|svg)$/,
5769
loader: 'file-loader',

0 commit comments

Comments
 (0)