Skip to content

Commit 22ee86d

Browse files
committed
Extract global css to it's own file
1 parent 9cd5e75 commit 22ee86d

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

src/assets/styles/global.scss

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
body {
2+
padding: 0em;
3+
margin: 0em;
4+
}
5+
6+
a:visited {
7+
color: #2c3e50;
8+
}
9+
10+
.button,
11+
button {
12+
display: flex;
13+
align-items: center;
14+
justify-content: center;
15+
width: 5em;
16+
height: 2em;
17+
margin: 0.5em;
18+
border-radius: 5px;
19+
background: linear-gradient(to right, #16c0b0, #84cf6a);
20+
font-size: 1em;
21+
color: white;
22+
border: none;
23+
outline: none;
24+
}
25+
26+
form {
27+
display: flex;
28+
align-items: center;
29+
flex-direction: column;
30+
width: 15em;
31+
margin-bottom: 2em;
32+
33+
p {
34+
color: red;
35+
}
36+
}
37+
38+
input {
39+
display: block;
40+
box-sizing: border-box;
41+
width: 100%;
42+
height: 2.6em;
43+
padding: 0.5em;
44+
margin-bottom: 1em;
45+
font: 1em 'Avenir', Helvetica, sans-serif;
46+
}
47+
48+
h1 {
49+
margin-top: 0;
50+
}

vue.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
pluginOptions: {
5+
"style-resources-loader": {
6+
preProcessor: "scss",
7+
patterns: [path.resolve(__dirname, "./src/styles/global.scss")]
8+
}
9+
}
10+
};

0 commit comments

Comments
 (0)