This commit is contained in:
2023-03-28 18:04:49 +08:00
commit 947f9418ad
52 changed files with 18283 additions and 0 deletions

46
src/assets/css/normalize.css vendored Executable file
View File

@@ -0,0 +1,46 @@
*{
padding: 0;
margin: 0;
color: #555;
font-family: '微软雅黑';
font-weight: 400;
}
body {
margin: 0 auto;
/* 最小宽度 */
min-width: 320px;
/* 最大宽度因为原稿为750px需要把宽度直接限定死*/
max-width: 749px;
/* 原稿750px flexible把屏幕给我们划分为10等份转为rem所以是10rem */
/* width: 10rem; */
}
/* 如果屏幕超过了750px那么我们就让他默认为750px不能超过750px。 */
@media screen and (min-width: 750px) {
html {
font-size: 75px !important;
}
}
a{
text-decoration: none;
}
ol,ul{
list-style: none;
}
/* 单行省略 */
.oneEllipsis{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
/* 多行省略(2行) */
.moreEllipsis{
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}

314
src/assets/css/public.scss Executable file
View File

@@ -0,0 +1,314 @@
// 热门版块标签
.hot-box {
padding: .34rem 0 0.3rem;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
margin: 0 0.35rem;
.hot-label {
border: 0.013333rem solid rgba(215, 215, 215, 1);
border-radius: 0.16rem;
font-size: 0.3rem;
margin: 0 .16rem .24rem 0;
padding: 0 0.15rem;
height: 0.72rem;
line-height: 0.72rem;
text-align: center;
&.active {
border: 0.02rem solid #62B1FF;
color: #62B1FF;
}
}
}
//路径
.path-box {
display: flex;
flex-direction: row;
height: 1.28rem;
line-height: 1.28rem;
margin: 0.2rem 0.35rem 0;
padding: 0 0.25rem;
border-radius: 1.68rem 1.68rem 0 1.68rem;
background-color: #fff;
font-size: 0.32rem;
-webkit-box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
position: relative;
div {
color: #7F7F7F;
max-width: 2.5rem;
&::before {
content: "/";
width: 0.2rem;
padding: 0 0.07rem;
color: #7F7F7F;
}
&:last-child {
max-width: 50%;
color: #000;
font-weight: bold;
}
&:first-child::before {
content: "";
}
}
&::after {
content: "";
width: 0;
height: 0;
position: absolute;
bottom: 0;
right: 0;
border-top: 0.24rem solid rgba(98, 177, 255, 1);
border-left: 0.24rem solid transparent;
transform: rotateX(180deg);
margin: 0 0.09rem 0.09rem 0;
}
}
//内容层
section {
padding-top: 0.45rem;
margin: 0 0.35rem;
}
//帖子内容层
.card-box {
background-color: #fff;
padding: 0.4rem;
border-radius: 0.32rem;
box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.1);
margin-bottom: 0.32rem;
position: relative;
// 帖子标题
.top {
width: 95%;
max-height: 1.31rem;
text-align: left;
.top-label {
display: inline-block;
background-color: #000;
color: #fff;
height: 0.52rem;
line-height: 0.52rem;
font-size: 0.28rem;
border-radius: 0.16rem;
padding: 0 0.12rem;
margin-right: 0.11rem;
}
.top-title {
display: inline;
font-size: 0.373333rem;
line-height: 0.65rem;
color: #000;
}
}
// 帖子内容
.center {
padding: 0.3rem 0 0.6rem;
.center-text {
font-size: 0.3rem;
color: #7F7F7F;
max-height: 1rem;
line-height: 0.53rem;
}
// 回复可见
.center-text-visible {
border-radius: 0.16rem;
background-color: rgba(242, 242, 242, 0.7);
padding: 0.28rem;
text-align: center;
margin-top: 0.25rem;
}
}
// 帖子头像、消息、浏览量
.bottom {
display: flex;
flex-direction: row;
justify-content: space-between;
.bottom-box {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
.icon-head {
width: 0.64rem;
height: 0.64rem;
border-radius: 0.32rem;
}
.bottom-name {
margin-left: 0.15rem;
font-size: 0.32rem;
}
.bottom-right {
display: flex;
flex-direction: row;
align-items: center;
padding-left: 0.25rem;
&:last-child {
margin-left: 0.133333rem;
}
div {
margin-left: 0.1rem;
font-size: 0.28rem;
}
.icon-look {
width: 0.32rem;
height: 0.3rem;
}
.icon-msg {
width: 0.32rem;
height: 0.28rem;
}
}
}
}
// 精华
.rightTop {
width: 2rem;
height: 2rem;
position: absolute;
top: 0;
right: 0;
&:before {
content: "";
display: block;
border-radius: 0.8rem 0.8rem 0 0;
width: 0.24rem;
height: 0.053333rem;
position: absolute;
top: -0.053333rem;
right: 0.98rem;
background: #7474ff;
}
&:after {
content: "";
display: block;
border-radius: 0 0.11rem 0.11rem 0;
width: 0.053333rem;
height: 0.24rem;
position: absolute;
right: -0.053333rem;
top: 0.98rem;
background: #7474ff;
}
div {
overflow: hidden;
width: 2rem;
height: 2rem;
position: absolute;
top: -0.09rem;
right: -0.09rem;
}
// 丝带
span {
display: inline-block;
text-align: center;
width: 2.5rem;
height: 0.45rem;
line-height: 0.45rem;
font-size: 0.3rem;
color: #fff;
position: absolute;
top: 0.25rem;
right: -0.8rem;
z-index: 2;
overflow: hidden;
transform: rotate(45deg);
-ms-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
box-shadow: 0 0 0.09rem rgba(151, 151, 255, 0.5);
background-image: linear-gradient(to bottom right, #7474ff, rgba(190, 190, 255, 1));
}
}
}
// 广告
.banner-box {
border-radius: 0.32rem;
margin-bottom: 0.2rem;
// 广告图
.banner {
width: 100%;
display: block;
border-radius: 0.32rem;
}
}
// 分页
.paging-box {
margin: 0 auto;
display: flex;
justify-content: center;
margin-bottom: 0.4rem;
// element组件修改
.el-pagination {
padding: 0;
display: flex;
align-items: center;
button {
&:disabled {
background-color: transparent;
opacity: 0.5;
}
}
.btn-next,
.btn-prev {
background-color: transparent;
.el-icon {
font-size: 0.5rem;
}
}
}
.el-pager li {
background-color: transparent;
font-weight: lighter;
min-width: 0.48rem;
height: 0.48rem;
line-height: 0.48rem;
border-radius: 0.4rem;
&.active {
color: #fff;
background-color: rgba(98, 177, 255, 1) !important;
}
}
}