Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
61ed4fdd
Commit
61ed4fdd
authored
Sep 16, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'环境搭建'
parent
e225c91d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
12423 deletions
+94
-12423
ionic.less
src/less/ionic.less
+0
-12421
home.vue
src/pages/home.vue
+9
-2
app.core.less
src/styles/app.core.less
+1
-0
mixin.less
src/styles/mixin.less
+84
-0
No files found.
src/less/ionic.less
deleted
100644 → 0
View file @
e225c91d
This diff is collapsed.
Click to expand it.
src/pages/home.vue
View file @
61ed4fdd
<
template
>
<h-view
id=
"home"
>
<h-content>
首页
<section
class=
"home-content"
>
这是首页
</section>
</h-content>
>
</h-view>
</
template
>
...
...
@@ -20,5 +22,10 @@ export default {
}
</
script
>
<
style
lang=
"less"
scoped
type=
"text/less"
>
@import "../styles/mixin";
.home-content{
.wh(100%,100%);
.sc();
.fja()
}
</
style
>
src/styles/app.core.less
View file @
61ed4fdd
...
...
@@ -6,3 +6,4 @@
//@import "ionic-public-style";
//@import "platform-iosx";
//@import "platform-ios";
src/styles/mixin.less
0 → 100644
View file @
61ed4fdd
.setTopLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px; /*no*/
border-top: 1px solid @c; /*no*/
color: @c;
transform-origin: 0 0;
transform: scaleY(0.5);
}
.setBottomLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px; /*no*/
border-bottom: 1px solid @c; /*no*/
color: @c;
transform-origin: 0 100%;
transform: scaleY(0.5);
}
.setLeftLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
left: 0;
top: 0;
width: 1px; /*no*/
bottom: 0;
border-left: 1px solid @c; /*no*/
color: @c;
transform-origin: 0 0;
transform: scaleX(0.5);
}
.setRightLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
right: 0;
top: 0;
width: 1px; /*no*/
bottom: 0;
border-right: 1px solid @c; /*no*/
color: @c;
transform-origin: 100% 0;
transform: scaleX(0.5);
}
.setLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
left: 0;
top: 0;
width: 200%;
border: 1px solid @c; /*no*/
color: @c;
height: 200%;
transform-origin: left top;
transform: scale(0.5);
}
// 宽高
.wh(@width,@height){
width: @width;
height: @height;
}
// 字体大小,颜色
.sc(@size:12px, @color:#ccc){
font-size: @size;
color: @color;
}
//flex 布局和子元素水平垂直对齐方式
.fja(@jtype:center,@atype:center){
display: flex;
justify-content: @jtype;
align-items: @atype;
}
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