初始化仓库
This commit is contained in:
388
unpackage/dist/dev/mp-weixin/common/main.wxss
vendored
Normal file
388
unpackage/dist/dev/mp-weixin/common/main.wxss
vendored
Normal file
@ -0,0 +1,388 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
page {
|
||||
/* 定义一些主题色及基础样式 */
|
||||
font-family: PingFang SC, Arial, Hiragino Sans GB, Microsoft YaHei, sans-serif;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
.flexnone {
|
||||
flex: none;
|
||||
}
|
||||
.wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
/* 定义字体颜色 */
|
||||
.primary {
|
||||
color: #FF2C3C;
|
||||
}
|
||||
.bg-primary {
|
||||
background-color: #FF2C3C;
|
||||
}
|
||||
.bg-white {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.bg-body {
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.bg-gray {
|
||||
background-color: #E5E5E5;
|
||||
}
|
||||
.black {
|
||||
color: #101010;
|
||||
}
|
||||
.white {
|
||||
color: #ffffff;
|
||||
}
|
||||
.normal {
|
||||
color: #333333;
|
||||
}
|
||||
.lighter {
|
||||
color: #666666;
|
||||
}
|
||||
.muted {
|
||||
color: #999999;
|
||||
}
|
||||
/* 定义字体大小 */
|
||||
.xxl {
|
||||
font-size: 36rpx;
|
||||
}
|
||||
.xl {
|
||||
font-size: 34rpx;
|
||||
}
|
||||
.lg {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.md {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.nr {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.sm {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.xs {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.xxs {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
/* 定义常用外边距 */
|
||||
.ml5 {
|
||||
margin-left: 5rpx;
|
||||
}
|
||||
.ml10 {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.ml20 {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.ml30 {
|
||||
margin-left: 30rpx;
|
||||
}
|
||||
.mr5 {
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.mr10 {
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.mr20 {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.mr30 {
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
.mt5 {
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
.mt10 {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.mt20 {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.mt30 {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.mb5 {
|
||||
margin-bottom: 5rpx;
|
||||
}
|
||||
.mb10 {
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.mb20 {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.mb30 {
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
/* 定义常用的弹性布局 */
|
||||
.wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.row-start {
|
||||
display: flex;
|
||||
}
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.row-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.row-end {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.row-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.row-around {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.column-center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.column-around {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.column-end {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.column-between {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
/* 超出隐藏 */
|
||||
.line1 {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.line2 {
|
||||
word-break: break-all;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* 中划线 */
|
||||
.line-through {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
/* br60 */
|
||||
.br60 {
|
||||
border-radius: 60rpx;
|
||||
}
|
||||
/* 初始化按钮 */
|
||||
page button {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
font-size: 28rpx;
|
||||
overflow: unset;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
page button::after {
|
||||
border: none;
|
||||
}
|
||||
page input {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
button[type=primary] {
|
||||
background-color: #FF2C3C;
|
||||
}
|
||||
.button-hover[type=primary] {
|
||||
background-color: #FF2C3C;
|
||||
}
|
||||
/* 按钮大小 */
|
||||
button[size="xs"] {
|
||||
line-height: 58rpx;
|
||||
height: 58rpx;
|
||||
font-size: 26rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
button[size="sm"] {
|
||||
line-height: 62rpx;
|
||||
height: 62rpx;
|
||||
font-size: 28rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
button[size="md"] {
|
||||
line-height: 70rpx;
|
||||
height: 70rpx;
|
||||
font-size: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
button[size="lg"] {
|
||||
line-height: 80rpx;
|
||||
height: 80rpx;
|
||||
font-size: 32rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.icon-xs {
|
||||
min-height: 28rpx;
|
||||
min-width: 28rpx;
|
||||
height: 28rpx;
|
||||
width: 28rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon-sm {
|
||||
min-height: 30rpx;
|
||||
min-width: 30rpx;
|
||||
height: 30rpx;
|
||||
width: 30rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon {
|
||||
min-height: 34rpx;
|
||||
min-width: 34rpx;
|
||||
height: 34rpx;
|
||||
width: 34rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon-md {
|
||||
min-height: 44rpx;
|
||||
min-width: 44rpx;
|
||||
height: 44rpx;
|
||||
width: 44rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon-lg {
|
||||
min-height: 52rpx;
|
||||
min-width: 52rpx;
|
||||
height: 52rpx;
|
||||
width: 52rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon-xl {
|
||||
min-height: 64rpx;
|
||||
min-width: 64rpx;
|
||||
height: 64rpx;
|
||||
width: 64rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.icon-xxl {
|
||||
min-height: 120rpx;
|
||||
min-width: 120rpx;
|
||||
height: 120rpx;
|
||||
width: 120rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.img-null {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
}
|
||||
/* 隐藏滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
}
|
||||
/* 单选 */
|
||||
radio .uni-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
radio .uni-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
radio .uni-radio-input.uni-radio-input-checked {
|
||||
border: 1px solid #FF2C3C !important;
|
||||
background-color: #FF2C3C !important;
|
||||
}
|
||||
/* 多选 */
|
||||
checkbox .uni-checkbox-input {
|
||||
border-radius: 50%;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
checkbox .uni-checkbox-input.uni-checkbox-input-checked {
|
||||
border: 1px solid #FF2C3C !important;
|
||||
background-color: #FF2C3C !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
|
||||
font-size: 35rpx;
|
||||
}
|
||||
/* 单选 */
|
||||
radio .wx-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
radio .wx-radio-input {
|
||||
border-radius: 50%;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
radio .wx-radio-input.wx-radio-input-checked {
|
||||
border: 1px solid #FF2C3C !important;
|
||||
background-color: #FF2C3C !important;
|
||||
}
|
||||
/* 多选 */
|
||||
checkbox .wx-checkbox-input {
|
||||
border-radius: 50%;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
|
||||
border: 1px solid #FF2C3C !important;
|
||||
background-color: #FF2C3C !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
|
||||
font-size: 35rpx;
|
||||
}
|
||||
/*每个页面公共css */
|
||||
|
||||
Reference in New Issue
Block a user