Skip to content

Commit 4feb1c4

Browse files
committed
Add global style, reset default style
1 parent 806a8e4 commit 4feb1c4

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

projects/live-hub-frontend/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {createApp} from 'vue'
22
import App from './App.vue';
33
import router from './router'
44
import i18n from './locales'
5+
import './style/main.scss'
56

67
const app = createApp(App)
78
app.use(router)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
@import './_variable';
2+
3+
* {
4+
margin: 0;
5+
padding: 0;
6+
box-sizing: border-box;
7+
}
8+
9+
html, body {
10+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
11+
-webkit-font-smoothing: antialiased;
12+
-moz-osx-font-smoothing: grayscale;
13+
font-size: 16px;
14+
line-height: 1.5;
15+
color: $text-color-primary;
16+
background-color: $background-color;
17+
}
18+
19+
ul, ol {
20+
list-style: none;
21+
}
22+
23+
a {
24+
text-decoration: none;
25+
color: inherit;
26+
}
27+
28+
button {
29+
border: none;
30+
background: none;
31+
cursor: pointer;
32+
font: inherit;
33+
color: inherit;
34+
padding: 0;
35+
}
36+
37+
img {
38+
max-width: 100%;
39+
height: auto;
40+
display: block;
41+
}
42+
43+
input, textarea {
44+
font: inherit;
45+
border: none;
46+
outline: none;
47+
}
48+
49+
::selection {
50+
background-color: $primary-color;
51+
color: white;
52+
}

0 commit comments

Comments
 (0)