This commit is contained in:
杜恒
2021-01-22 18:37:16 +08:00
parent d94a487332
commit f787c2fc52
17 changed files with 594 additions and 48 deletions

File diff suppressed because one or more lines are too long

View File

@@ -305,7 +305,7 @@
left: 0;
width: 100%;
height: 273px;
background: url('https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/img/snow.gif') no-repeat;
background: url('https://cdn.jsdelivr.net/gh/HaoOuBa/Joe/assets/img/snow.gif') no-repeat;
background-size: cover;
z-index: 3;
pointer-events: none;
@@ -933,6 +933,124 @@
}
}
.joe_detail {
background: var(--background);
border-radius: 8px;
padding: 15px;
box-shadow: var(--box-shadow);
&__category {
display: flex;
align-items: center;
margin-bottom: 15px;
.item {
color: #fff;
font-size: 12px;
padding: 3px 8px;
margin-right: 5px;
border-radius: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 120px;
transition: transform 0.35s, opacity 0.35s;
&:hover {
opacity: 0.85;
transform: translate3d(0, -3px, 0);
}
&:last-child {
margin-right: 0;
}
&-0 {
background: #0396ff;
}
&-1 {
background: #ea5455;
}
&-2 {
background: #7367f0;
}
&-3 {
background: #28c76f;
}
&-4 {
background: #9f44d3;
}
}
}
&__title {
font-size: 24px;
color: var(--main);
text-shadow: var(--text-shadow);
text-align: center;
margin-bottom: 15px;
}
&__count {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 15px;
border-bottom: 1px solid var(--classB);
&::after {
content: '';
position: absolute;
bottom: -1.5px;
left: 0;
width: 80px;
height: 3px;
border-radius: 1.5px;
background: var(--theme);
}
&-information {
display: flex;
align-items: center;
.avatar {
width: 35px;
height: 35px;
border-radius: 50%;
margin-right: 10px;
border: 1px solid var(--classA);
padding: 3px;
}
.meta {
display: flex;
flex-direction: column;
height: 35px;
justify-content: space-between;
.author {
.link {
font-weight: 500;
color: var(--theme);
&:hover {
text-decoration: underline;
}
}
}
.item {
display: flex;
align-items: center;
color: var(--minor);
font-size: 12px;
line-height: 16px;
.line {
color: var(--seat);
margin: 0 7px;
vertical-align: middle;
}
}
}
}
&-created {
font-size: 32px;
line-height: 42px;
color: var(--routine);
user-select: none;
text-shadow: var(--text-shadow);
font-family: consolas;
}
}
}
@keyframes progress {
0% {
background-position: 0 0;

File diff suppressed because one or more lines are too long

View File

@@ -28,7 +28,7 @@
width: 100%;
height: 160px;
margin-bottom: 15px;
border-radius: 5px;
border-radius: 4px;
overflow: hidden;
&:last-child {
margin-bottom: 0;
@@ -104,7 +104,7 @@
width: 100%;
height: 125px;
object-fit: cover;
border-radius: 5px 5px 0 0;
border-radius: 4px 4px 0 0;
transition: opacity 0.35s;
}
.title {
@@ -140,6 +140,35 @@
}
}
}
&__ad {
padding-top: 15px;
&-link {
display: block;
position: relative;
.image {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 4px;
transition: opacity 0.35s;
&:hover {
opacity: 0.85;
}
}
.icon {
position: absolute;
z-index: 1;
top: 10px;
right: 10px;
font-size: 12px;
background: rgba(0, 0, 0, 0.25);
padding: 2px 5px;
border-radius: 2px;
color: #ebebeb;
pointer-events: none;
}
}
}
&__title {
display: flex;
align-items: center;
@@ -171,21 +200,44 @@
transition: left 0.35s, width 0.35s;
}
}
&-notice {
display: flex;
align-items: center;
margin-left: auto;
height: 40px;
svg {
min-width: 20px;
min-height: 20px;
width: 20px;
height: 20px;
margin-right: 5px;
}
a {
color: var(--minor);
line-height: 20px;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color 0.35s;
&:hover {
color: var(--theme);
}
}
}
}
}
.swiper-container {
min-width: 0;
flex: 1;
height: 335px;
--swiper-theme-color: #fff;
border-radius: 5px;
border-radius: 4px;
.item {
display: block;
height: 335px;
border-radius: 5px;
border-radius: 4px;
.thumbnail {
width: 100%;
height: 100%;

View File

@@ -1 +1 @@
*{margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent}body{font-size:14px;background:#f5f5f5;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif}input[type='text']{-webkit-appearance:none;border-radius:0;font-size:13px;font-weight:500}textarea{resize:none;-webkit-appearance:none}li{list-style:none}a{text-decoration:none}h1,h2,h3,h4,h5,h6{font-weight:500}img{border:0;vertical-align:middle}img[src=''],img:not([src]){border:0;opacity:0}svg,canvas{vertical-align:middle}button{cursor:pointer;-webkit-appearance:none;font-size:13px}table{border-collapse:collapse;border-spacing:0}.joe_container{display:flex;max-width:1140px;margin:0 auto;padding:0 15px}.joe_main{min-width:0;flex:1;padding:15px 0}@media (max-width: 1200px){.joe_container{max-width:960px}}@media (max-width: 992px){.joe_container{max-width:720px}}@media (max-width: 768px){.joe_container{max-width:540px}}@media (max-width: 576px){.joe_container{max-width:100%}}html{--background: #fff;--theme: #f24e4e;--main: #303133;--routine: #606266;--minor: #909399;--seat: #c0c4cc;--classA: #dcdfe6;--classB: #e4e7ed;--classC: #ebeef5;--classD: #f2f6fc;--text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);--box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22)}html[dark='true']{--background: #303133;--box-shadow: none}
*{margin:0;padding:0;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{border-radius:4px;background:var(--seat)}::-webkit-scrollbar-track{background:transparent}body{font-size:14px;background:#f5f5f5;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif}input[type='text']{-webkit-appearance:none;border-radius:0;font-size:13px;font-weight:500}textarea{resize:none;-webkit-appearance:none}li{list-style:none}a{text-decoration:none}h1,h2,h3,h4,h5,h6{font-weight:500}img{border:0;vertical-align:middle}img[src=''],img:not([src]){border:0;opacity:0}svg,canvas{vertical-align:middle}button{cursor:pointer;-webkit-appearance:none;font-size:13px}table{border-collapse:collapse;border-spacing:0}.joe_container{display:flex;max-width:1140px;margin:0 auto;padding:0 15px}.joe_main{min-width:0;flex:1;padding:15px 0}@media (max-width: 1200px){.joe_container{max-width:960px}}@media (max-width: 992px){.joe_container{max-width:720px}}@media (max-width: 768px){.joe_container{max-width:540px}}@media (max-width: 576px){.joe_container{max-width:100%}}html{--background: #fff;--theme: #f24e4e;--main: #303133;--routine: #606266;--minor: #909399;--seat: #c0c4cc;--classA: #dcdfe6;--classB: #e4e7ed;--classC: #ebeef5;--classD: #f2f6fc;--text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);--box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, 0.22)}html[dark='true']{--background: #303133;--box-shadow: none}

View File

@@ -6,6 +6,19 @@
-webkit-tap-highlight-color: transparent;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
background: var(--seat);
}
::-webkit-scrollbar-track {
background: transparent;
}
body {
font-size: 14px;
background: #f5f5f5;

1
assets/css/joe.post.css Normal file
View File

@@ -0,0 +1 @@
.joe_bread{padding-top:15px}.joe_bread__bread{display:flex;align-items:center}.joe_bread__bread .line{color:var(--seat);padding:0 8px}.joe_bread__bread .item{color:var(--minor);white-space:nowrap}.joe_bread__bread .item .link{color:var(--routine);transition:color 0.35s}.joe_bread__bread .item .link:hover{color:var(--theme)}.joe_bread__bread .item .icon{width:15px;height:15px;min-width:15px;min-height:15px;fill:var(--routine);margin-right:2px}.joe_bread__bread .item:first-child{display:flex;align-items:center}

34
assets/css/joe.post.scss Normal file
View File

@@ -0,0 +1,34 @@
.joe_bread {
padding-top: 15px;
&__bread {
display: flex;
align-items: center;
.line {
color: var(--seat);
padding: 0 8px;
}
.item {
color: var(--minor);
white-space: nowrap;
.link {
color: var(--routine);
transition: color 0.35s;
&:hover {
color: var(--theme);
}
}
.icon {
width: 15px;
height: 15px;
min-width: 15px;
min-height: 15px;
fill: var(--routine);
margin-right: 2px;
}
&:first-child {
display: flex;
align-items: center;
}
}
}
}