init
This commit is contained in:
28
common/style/layout.css
Normal file
28
common/style/layout.css
Normal file
@@ -0,0 +1,28 @@
|
||||
page {
|
||||
background-color: #f6f6f6 !important;
|
||||
min-height: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
uni-page-body {
|
||||
background-color: #f6f6f6 !important;
|
||||
min-height: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
uni-button:after {
|
||||
border: none;
|
||||
}
|
||||
/** iconfont */
|
||||
@font-face {
|
||||
font-family: 'iconfont';
|
||||
src: url('@/static/iconfont/iconfont.woff2?t=1665454521636') format('woff2'),
|
||||
url('@/static/iconfont/iconfont.woff?t=1665454521636') format('woff'),
|
||||
url('@/static/iconfont/iconfont.ttf?t=1665454521636') format('truetype');
|
||||
}
|
||||
.iconfont {
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 50rpx;
|
||||
color: #000;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
51
common/style/mixin.styl
Normal file
51
common/style/mixin.styl
Normal file
@@ -0,0 +1,51 @@
|
||||
$red = #ff6a00
|
||||
$green = #6CBE8B
|
||||
$yellow = #E9B451
|
||||
$blue = #6798ef
|
||||
$gray = #c9c9c9
|
||||
$fc1 = #323232
|
||||
|
||||
.bgred
|
||||
background-color: $red !important
|
||||
.bggreen
|
||||
background-color: $green !important
|
||||
.bgyellow
|
||||
background-color: $yellow !important
|
||||
.bgblue
|
||||
background-color: $blue !important
|
||||
.bggray
|
||||
background-color: $gray !important
|
||||
|
||||
//宽高
|
||||
_wh(w, h)
|
||||
width: w
|
||||
height: h
|
||||
|
||||
//字体大小、行高、颜色
|
||||
_font(size,height,color=$fc1,weight=normal,align=left)
|
||||
font-size: size
|
||||
line-height: height
|
||||
color: color
|
||||
font-weight: weight
|
||||
text-align: align
|
||||
|
||||
//flex 布局和 子元素 对其方式
|
||||
_fj(x=space-between,y=center,r=row,n=nowrap)
|
||||
display: flex
|
||||
justify-content: x
|
||||
align-items: y
|
||||
flex-direction: r
|
||||
flex-wrap: n
|
||||
|
||||
// 背景图片地址和大小
|
||||
_bis(url,w,h=auto,x=center,y=center)
|
||||
background-position: x y
|
||||
background-size: w h
|
||||
background-image: url(url)
|
||||
background-repeat: no-repeat
|
||||
|
||||
// 定位上下居中
|
||||
_ct()
|
||||
position: absolute
|
||||
top: 50%
|
||||
transform: translateY(-50%)
|
||||
43
common/style/reset.css
Normal file
43
common/style/reset.css
Normal file
@@ -0,0 +1,43 @@
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
font-style: normal;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-family: uniicons, Arial, "Microsoft Yahei", "Helvetica Neue", Helvetica, sans-serif;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
body, html {
|
||||
-webkit-user-select: auto;
|
||||
-ms-user-select: auto;
|
||||
user-select: auto;
|
||||
}
|
||||
|
||||
input[type="button"], input[type="submit"], input[type="search"], input[type="reset"], textarea, select{
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
.vhide {
|
||||
visibility:hidden;
|
||||
}
|
||||
.show {
|
||||
display: block;
|
||||
}
|
||||
.ellipsis{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
12
common/style/uni.css
Normal file
12
common/style/uni.css
Normal file
@@ -0,0 +1,12 @@
|
||||
@font-face {
|
||||
font-family: uniicons;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
src: url('~@/static/uni.ttf') format('truetype');
|
||||
}
|
||||
.iconfont{
|
||||
font-family: uni;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user