Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
b87f8e47
Commit
b87f8e47
authored
Aug 26, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式
parent
b899c591
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
11 deletions
+94
-11
App.vue
src/App.vue
+1
-11
index.scss
src/assets/style/index.scss
+6
-0
reset.scss
src/assets/style/reset.scss
+72
-0
variable.scss
src/assets/style/variable.scss
+5
-0
main.js
src/main.js
+1
-0
vue.config.js
vue.config.js
+9
-0
No files found.
src/App.vue
View file @
b87f8e47
...
...
@@ -29,17 +29,6 @@ export default {
</
script
>
<
style
lang=
"scss"
>
*
{
box-sizing
:
border-box
;
line-height
:
1
;
margin
:
0
;
padding
:
0
;
}
html
,
body
{
padding
:
0
;
margin
:
0
;
}
#app
{
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
...
...
@@ -50,6 +39,7 @@ body {
flex-direction
:
column
;
height
:
100vh
;
}
.body-container
{
flex
:
1
;
display
:
flex
;
...
...
src/assets/style/index.scss
0 → 100644
View file @
b87f8e47
// 所有样式文件的入口
@import
"./reset"
;
@import
"./variable"
;
src/assets/style/reset.scss
0 → 100644
View file @
b87f8e47
*
{
box-sizing
:
border-box
;
line-height
:
1
;
margin
:
0
;
padding
:
0
;
}
span
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
a
,
p
,
ul
,
li
{
margin
:
0
;
padding
:
0
;
}
html
,
body
{
font-size
:
14px
;
background-color
:
#fff
;
color
:
#000
;
letter-spacing
:
0
.5px
;
font-family
:
"Microsoft YaHei"
,
"微软雅黑"
,
"Source Sans Pro"
,
Arial
,
sans-serif
;
// 顺滑滚动
scroll-behavior
:
smooth
;
}
ul
,
li
{
list-style
:
none
;
}
a
,
a
:hover
,
a
:focus
,
a
:visited
{
color
:
#000
;
}
a
{
text-decoration
:
none
;
outline
:
none
;
}
/* 去掉获取焦点时的蓝色发光边框 */
input
,
textarea
,
video
,
button
{
outline
:
none
;
border
:
0
;
padding
:
0
;
margin
:
0
;
}
/*解决谷歌浏览器中的input背景色默认是黄色*/
input
:
-
webkit-autofill
{
-webkit-box-shadow
:
0
0
0px
1000px
white
inset
!
important
;
}
src/assets/style/variable.scss
0 → 100644
View file @
b87f8e47
// 样式变量文件
$color-1
:
pink
;
$bg-color
:
rgb
(
229
,
185
,
40
);
src/main.js
View file @
b87f8e47
...
...
@@ -4,6 +4,7 @@ import router from './router'
import
store
from
'./store'
import
'./registerServiceWorker'
import
axios
from
'axios'
import
'./assets/style/index.scss'
import
baseURL
from
'../config/baseUrl.js'
console
.
log
(
'baseURL:'
,
baseURL
)
...
...
vue.config.js
View file @
b87f8e47
...
...
@@ -19,5 +19,14 @@ module.exports = {
pathRewrite
:
{
'^/webapi'
:
'/'
}
}
}
},
// css 相关选项
css
:
{
/*为预处理器 loader 传递自定义选项*/
loaderOptions
:
{
sass
:
{
prependData
:
`@import "@/assets/style/index.scss";`
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment