feat: 新增样式文件
This commit is contained in:
@@ -16,6 +16,7 @@ onHide(() => {
|
||||
|
||||
<style lang="scss">
|
||||
@import "@/static/fonts/iconfont.css";
|
||||
@import "@/static/scss/index.scss";
|
||||
|
||||
/* 添加全局样式 */
|
||||
page,
|
||||
|
||||
@@ -6,7 +6,10 @@
|
||||
v-for="(item, index) in itemList"
|
||||
:key="index"
|
||||
>
|
||||
<view class="more-tips-item-title" @click="sendReply(item)">
|
||||
<view
|
||||
class="more-tips-item-title font-500 font-size-12 line-height-24 text-center"
|
||||
@click="sendReply(item)"
|
||||
>
|
||||
{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
position: relative;
|
||||
|
||||
.more-tips-item-title {
|
||||
font-weight: 500;
|
||||
font-size: $uni-font-size-sm;
|
||||
color: #00a6ff;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
8
src/static/scss/background.scss
Normal file
8
src/static/scss/background.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
// 背景颜色
|
||||
.bg-white {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.bg-gray {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
4
src/static/scss/border.scss
Normal file
4
src/static/scss/border.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
// 边框
|
||||
.border {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
17
src/static/scss/colors.scss
Normal file
17
src/static/scss/colors.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
// 字体颜色
|
||||
|
||||
.color-white {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.color-33 {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.color-66 {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.color-99 {
|
||||
color: #999;
|
||||
}
|
||||
16
src/static/scss/display.scss
Normal file
16
src/static/scss/display.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
// 显示类型
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
13
src/static/scss/ellipsis.scss
Normal file
13
src/static/scss/ellipsis.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
// 省略号
|
||||
.ellipsis-1 {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ellipsis-2 {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
20
src/static/scss/flex.scss
Normal file
20
src/static/scss/flex.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
// 弹性布局
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-items-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.flex-wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
4
src/static/scss/font-family.scss
Normal file
4
src/static/scss/font-family.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
// 字体-family
|
||||
.font-family-sans-serif {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
20
src/static/scss/font-size.scss
Normal file
20
src/static/scss/font-size.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
// 字体-size
|
||||
.font-size-12 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.font-size-14 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.font-size-16 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.font-size-18 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.font-size-20 {
|
||||
font-size: 20px;
|
||||
}
|
||||
20
src/static/scss/font-weight.scss
Normal file
20
src/static/scss/font-weight.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
// 字体-weight
|
||||
.font-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.font-400 {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.font-500 {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.font-600 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.font-700 {
|
||||
font-weight: 700;
|
||||
}
|
||||
0
src/static/scss/height.scss
Normal file
0
src/static/scss/height.scss
Normal file
19
src/static/scss/index.scss
Normal file
19
src/static/scss/index.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
@import "./background.scss";
|
||||
@import "./border.scss";
|
||||
@import "./colors.scss";
|
||||
@import "./display.scss";
|
||||
@import "./flex.scss";
|
||||
@import "./font-weight.scss";
|
||||
@import "./height.scss";
|
||||
@import "./line-height.scss";
|
||||
@import "./margin.scss";
|
||||
@import "./padding.scss";
|
||||
@import "./font-size.scss";
|
||||
@import "./font-family.scss";
|
||||
@import "./text-align.scss";
|
||||
@import "./rounded.scss";
|
||||
@import "./ellipsis.scss";
|
||||
@import "./position.scss";
|
||||
@import "./scroll.scss";
|
||||
@import "./overflow.scss";
|
||||
@import "./width.scss";
|
||||
20
src/static/scss/line-height.scss
Normal file
20
src/static/scss/line-height.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
// 行高
|
||||
.line-height-17 {
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
.line-height-18 {
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.line-height-20 {
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.line-height-21 {
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
.line-height-22 {
|
||||
line-height: 22px;
|
||||
}
|
||||
8
src/static/scss/margin.scss
Normal file
8
src/static/scss/margin.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
// 外边距-bottom
|
||||
.mb-10 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mb-12 {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
4
src/static/scss/overflow.scss
Normal file
4
src/static/scss/overflow.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
// 溢出
|
||||
.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
20
src/static/scss/padding.scss
Normal file
20
src/static/scss/padding.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
// 内边距
|
||||
.p-12 {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.pt-12 {
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.pr-12 {
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.pb-12 {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.pl-12 {
|
||||
padding-left: 12px;
|
||||
}
|
||||
8
src/static/scss/position.scss
Normal file
8
src/static/scss/position.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
// 定位
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.absolute {
|
||||
position: absolute;
|
||||
}
|
||||
16
src/static/scss/rounded.scss
Normal file
16
src/static/scss/rounded.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
// 圆角
|
||||
.rounded-4 {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.rounded-8 {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.rounded-12 {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.rounded-full {
|
||||
border-radius: 50%;
|
||||
}
|
||||
8
src/static/scss/scroll.scss
Normal file
8
src/static/scss/scroll.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
// 滚动条
|
||||
.scroll-y {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.scroll-x {
|
||||
overflow-x: auto;
|
||||
}
|
||||
12
src/static/scss/text-align.scss
Normal file
12
src/static/scss/text-align.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
// 文本-align
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
7
src/static/scss/width.scss
Normal file
7
src/static/scss/width.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.w-50 {
|
||||
width: 50%;
|
||||
}
|
||||
Reference in New Issue
Block a user