初始化移动端提交
This commit is contained in:
354
sheep/scss/_main.scss
Normal file
354
sheep/scss/_main.scss
Normal file
File diff suppressed because it is too large
Load Diff
61
sheep/scss/_mixins.scss
Normal file
61
sheep/scss/_mixins.scss
Normal file
@@ -0,0 +1,61 @@
|
||||
@mixin bg-square {
|
||||
background: {
|
||||
color: #fff;
|
||||
image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%),
|
||||
linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);
|
||||
size: 40rpx 40rpx;
|
||||
position: 0 0, 20rpx 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin flex($direction: row) {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
flex-direction: $direction;
|
||||
}
|
||||
@mixin flex-bar {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
@mixin flex-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@mixin arrow {
|
||||
content: '';
|
||||
height: 0;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
}
|
||||
@mixin arrow-top {
|
||||
@include arrow;
|
||||
// border-color: transparent transparent $ui-BG;
|
||||
border-style: none solid solid;
|
||||
border-width: 0 20rpx 20rpx;
|
||||
}
|
||||
|
||||
@mixin arrow-right {
|
||||
@include arrow;
|
||||
// border-color: transparent $ui-BG transparent;
|
||||
border-style: solid solid solid none;
|
||||
border-width: 20rpx 20rpx 20rpx 0;
|
||||
}
|
||||
@mixin position-center {
|
||||
position: absolute !important;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
@mixin blur {
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
backdrop-filter: blur(20px);
|
||||
color: var(--ui-TC);
|
||||
}
|
||||
286
sheep/scss/_tools.scss
Normal file
286
sheep/scss/_tools.scss
Normal file
File diff suppressed because it is too large
Load Diff
165
sheep/scss/_var.scss
Normal file
165
sheep/scss/_var.scss
Normal file
File diff suppressed because it is too large
Load Diff
BIN
sheep/scss/font/OPPOSANS-M-subfont.ttf
Normal file
BIN
sheep/scss/font/OPPOSANS-M-subfont.ttf
Normal file
Binary file not shown.
1340
sheep/scss/icon/_coloricon.scss
Normal file
1340
sheep/scss/icon/_coloricon.scss
Normal file
File diff suppressed because one or more lines are too long
185
sheep/scss/icon/_icon.scss
Normal file
185
sheep/scss/icon/_icon.scss
Normal file
File diff suppressed because one or more lines are too long
94
sheep/scss/icon/_sheepicon.scss
Normal file
94
sheep/scss/icon/_sheepicon.scss
Normal file
File diff suppressed because one or more lines are too long
43
sheep/scss/icon/_style.scss
Normal file
43
sheep/scss/icon/_style.scss
Normal file
@@ -0,0 +1,43 @@
|
||||
@import './icon'; //核心图标库
|
||||
@import './coloricon'; //扩展图标库
|
||||
@import './sheepicon';
|
||||
.icon-spin {
|
||||
animation: icon-spin 2s infinite linear;
|
||||
}
|
||||
|
||||
.icon-pulse {
|
||||
animation: icon-spin 1s infinite steps(8);
|
||||
}
|
||||
|
||||
@keyframes icon-spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
.icon-90 {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.icon-180 {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.icon-270 {
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
.icon-x {
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
.icon-y {
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
.icon-fw {
|
||||
width: calc(18em / 14);
|
||||
text-align: center;
|
||||
}
|
||||
@each $class, $value in $iconsize {
|
||||
.icon-#{$class} {
|
||||
transform: scale(#{$value});
|
||||
}
|
||||
}
|
||||
28
sheep/scss/index.scss
Normal file
28
sheep/scss/index.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
@import './tools';
|
||||
@import './ui';
|
||||
@import './tabbar-fix';
|
||||
|
||||
/* 字体文件 */
|
||||
@font-face {
|
||||
font-family: OPPOSANS;
|
||||
src: url('~@/sheep/scss/font/OPPOSANS-M-subfont.ttf');
|
||||
}
|
||||
.font-OPPOSANS {
|
||||
font-family: OPPOSANS;
|
||||
}
|
||||
page {
|
||||
-webkit-overflow-scrolling: touch; // 解决ios滑动不流畅
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
// font-family: OPPOSANS;
|
||||
word-break: break-all; //英文文本不换行
|
||||
white-space: normal;
|
||||
background-color: $bg-page;
|
||||
color: $dark-3;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
display: none;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user