mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireExplorer.git
synced 2026-07-16 10:11:34 +08:00
787 lines
23 KiB
SCSS
787 lines
23 KiB
SCSS
.single-plugin-card,
|
|
.single-theme-card {
|
|
max-width: 1200px !important;
|
|
box-sizing: border-box;
|
|
gap: 16px;
|
|
font-size: 16px;
|
|
line-height: 20px;
|
|
color: #333333;
|
|
margin: 0 auto;
|
|
|
|
banner {
|
|
display: block;
|
|
margin: 0 0 20px;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
object-fit: cover;
|
|
object-position: center;
|
|
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
|
|
max-height: 388px;
|
|
|
|
&.theme-banner {
|
|
aspect-ratio: 1.33 / 1;
|
|
max-height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin: 0 0 30px;
|
|
|
|
.entry-thumbnail {
|
|
width: 96px;
|
|
|
|
.plugin-icon,
|
|
.theme-icon {
|
|
width: 96px;
|
|
height: 96px;
|
|
}
|
|
}
|
|
|
|
.entry-title {
|
|
flex: 1;
|
|
|
|
.plugin-title,
|
|
.theme-title {
|
|
margin: 0 0 5px;
|
|
font-size: 26px;
|
|
line-height: 32px;
|
|
font-weight: 600;
|
|
|
|
a {
|
|
color: #192b48;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.plugin-author,
|
|
.theme-author {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.plugin-version,
|
|
.theme-version {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.plugin-fair {
|
|
background: #4caf50;
|
|
color: white;
|
|
padding: 2px 10px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
margin: 0 -15px -10px 0;
|
|
letter-spacing: 1px;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.entry-preview,
|
|
.entry-download {
|
|
width: 140px;
|
|
|
|
a.button {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background-color: #192b48;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
margin: 0;
|
|
vertical-align: bottom;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
|
|
.dashicons {
|
|
font-size: 1.2em;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: #005177;
|
|
}
|
|
}
|
|
|
|
&.entry-preview {
|
|
a.button {
|
|
background-color: #6eb9e3;
|
|
|
|
&:hover {
|
|
background-color: #4fa3d1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.entry-main {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 30px;
|
|
flex-wrap: wrap;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
|
|
article {
|
|
margin: 0 0 30px;
|
|
flex: 0 0 calc(100% - 442px);
|
|
max-width: 100%;
|
|
width: calc(100% - 442px);
|
|
|
|
input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
input {
|
|
display: none;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
padding: 1em;
|
|
background: #f5f5f5;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
border-left: 1px solid #ddd;
|
|
border-right: 1px solid #ddd;
|
|
}
|
|
|
|
label:hover {
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
details {
|
|
summary {
|
|
padding: 1em;
|
|
background: #f5f5f5;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
border-left: 1px solid #ddd;
|
|
border-right: 1px solid #ddd;
|
|
border-top: 1px solid #ddd;
|
|
outline: none;
|
|
|
|
&:hover {
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
&:focus {
|
|
background: #e0e0e0;
|
|
}
|
|
}
|
|
|
|
.details-content {
|
|
max-height: 500px;
|
|
overflow-y: scroll;
|
|
padding: 20px 20px 30px;
|
|
border-left: 1px solid #ddd;
|
|
border-right: 1px solid #ddd;
|
|
background: #fff;
|
|
transition: max-height 0.3s ease;
|
|
border-top: 1px solid #ccc;
|
|
|
|
&::last-child {
|
|
border-bottom: 1px solid #ccc;
|
|
}
|
|
|
|
a,
|
|
abbr,
|
|
acronym,
|
|
b,
|
|
blockquote,
|
|
cite,
|
|
code,
|
|
del,
|
|
em,
|
|
i,
|
|
q,
|
|
strike,
|
|
strong,
|
|
br,
|
|
p,
|
|
ul,
|
|
ol,
|
|
li,
|
|
hr,
|
|
img,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
pre {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
font-size: 100%;
|
|
font: inherit;
|
|
vertical-align: baseline;
|
|
background: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
margin: 0 0 1em 1.5em;
|
|
padding: 0;
|
|
list-style: disc inside;
|
|
}
|
|
|
|
li {
|
|
margin: 0 0 0.5em 0;
|
|
padding: 0;
|
|
}
|
|
|
|
dt {
|
|
font-weight: bold;
|
|
margin: 1.5em 0 0.5em 0;
|
|
font-size: 1.1em;
|
|
line-height: 1.4;
|
|
padding: 0;
|
|
position: relative;
|
|
display: block;
|
|
|
|
// Style all direct children of dt (not just p)
|
|
>* {
|
|
font-weight: normal;
|
|
margin: 0.5em 0 0 0;
|
|
font-size: 1em;
|
|
line-height: 1.7;
|
|
color: #444;
|
|
display: block;
|
|
}
|
|
|
|
// Optional: tweak for common inline elements
|
|
>a,
|
|
>strong,
|
|
>em,
|
|
>code {
|
|
display: inline;
|
|
margin: 0;
|
|
font-size: 1em;
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
font-weight: 700;
|
|
margin: 0 0 0.67em 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5em;
|
|
font-weight: 700;
|
|
margin: 0 0 0.75em 0;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.17em;
|
|
font-weight: 700;
|
|
margin: 0 0 0.83em 0;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 1em;
|
|
font-weight: 700;
|
|
margin: 0 0 1.12em 0;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 0.83em;
|
|
font-weight: 700;
|
|
margin: 0 0 1.5em 0;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 0.67em;
|
|
font-weight: 700;
|
|
margin: 0 0 1.67em 0;
|
|
}
|
|
|
|
b,
|
|
strong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
i,
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 1em 0;
|
|
padding-left: 1em;
|
|
border-left: 4px solid #eee;
|
|
color: #666;
|
|
background: none;
|
|
font-style: italic;
|
|
}
|
|
|
|
pre,
|
|
code {
|
|
font-family: monospace, monospace;
|
|
font-size: 1em;
|
|
background: #f5f5f5;
|
|
padding: 0.2em 0.4em;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
hr {
|
|
border: none;
|
|
border-top: 1px solid #ccc;
|
|
height: 0;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
a {
|
|
color: #0073aa;
|
|
text-decoration: underline;
|
|
font-weight: 400;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
color: #005177;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: inline-block;
|
|
border: none;
|
|
}
|
|
|
|
&#details-content-screenshots {
|
|
ol {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 24px;
|
|
|
|
li {
|
|
background: #fafbfc;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
padding: 16px;
|
|
margin: 0;
|
|
flex: 1 1 320px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
transition: box-shadow 0.2s;
|
|
|
|
&:hover {
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
}
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
margin-bottom: 12px;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
|
|
transition: box-shadow 0.2s;
|
|
|
|
&:hover {
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
}
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
border-radius: 6px;
|
|
background: #e9ecef;
|
|
}
|
|
|
|
p {
|
|
margin: 12px 0 0 0;
|
|
font-size: 1em;
|
|
color: #222;
|
|
text-align: center;
|
|
}
|
|
|
|
strong {
|
|
font-weight: 700;
|
|
color: #222;
|
|
}
|
|
}
|
|
}
|
|
|
|
&#details-content-reviews {
|
|
.review {
|
|
background: #f9fafb;
|
|
border: 1px solid #e3e6ea;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
margin: 0 0 32px 0;
|
|
padding: 24px 24px 18px 24px;
|
|
font-size: 1em;
|
|
color: #222;
|
|
position: relative;
|
|
|
|
.review-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: 12px;
|
|
|
|
.reviewer-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
width: 100%;
|
|
|
|
.review-title-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
|
|
.review-title {
|
|
margin: 0;
|
|
font-size: 1.15em;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.star-rating {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
margin-left: 8px;
|
|
|
|
.wporg-ratings {
|
|
font-size: 1.1em;
|
|
color: #ffb900;
|
|
|
|
.star {
|
|
display: inline-block;
|
|
margin-right: 0.25em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.reviewer {
|
|
margin: 0;
|
|
font-size: 0.97em;
|
|
color: #666;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
|
|
.avatar {
|
|
border-radius: 50%;
|
|
margin-right: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.reviewer-name {
|
|
font-weight: 500;
|
|
color: #0073aa;
|
|
text-decoration: none;
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.review-date {
|
|
color: #999;
|
|
font-size: 0.95em;
|
|
margin-left: 4px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.review-body {
|
|
margin-top: 8px;
|
|
|
|
p {
|
|
margin: 0 0 1em 0;
|
|
line-height: 1.7;
|
|
color: #222;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
aside {
|
|
flex: 0 0 410px;
|
|
max-width: 100%;
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 30px;
|
|
|
|
li {
|
|
margin: 0 0 3px;
|
|
padding: 10px;
|
|
background: #f5f5f5;
|
|
border-radius: 4px;
|
|
text-align: right;
|
|
text-transform: capitalize;
|
|
|
|
a {
|
|
color: #333;
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
|
|
&:hover {
|
|
color: #6eb9e3;
|
|
}
|
|
}
|
|
|
|
strong {
|
|
float: left;
|
|
max-width: 50%;
|
|
font-weight: 600;
|
|
}
|
|
|
|
code {
|
|
font-family: monospace, monospace;
|
|
background: #e0e0e0;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
font-size: 0.95em;
|
|
user-select: all
|
|
}
|
|
}
|
|
}
|
|
|
|
.ratings {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
padding: 24px 20px 18px 20px;
|
|
margin-bottom: 32px;
|
|
font-size: 1em;
|
|
color: #222;
|
|
|
|
.rating-summary {
|
|
font-size: 1.15em;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
margin-bottom: 18px;
|
|
text-align: left;
|
|
}
|
|
|
|
.ratings-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.rating-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
margin-bottom: 8px;
|
|
padding: 0;
|
|
font-size: 1em;
|
|
background: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.rating-count {
|
|
display: none;
|
|
}
|
|
|
|
.dashicons {
|
|
font-size: 1.1em;
|
|
color: #ffb900;
|
|
margin-right: 0;
|
|
vertical-align: middle;
|
|
|
|
&.dashicons-star-empty {
|
|
color: #e0e0e0;
|
|
}
|
|
}
|
|
|
|
.rating-bar {
|
|
flex: 1 1 80px;
|
|
height: 10px;
|
|
background: #f1f1f1;
|
|
border-radius: 5px;
|
|
margin: 0 10px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-width: 80px;
|
|
max-width: 160px;
|
|
display: block;
|
|
|
|
.rating-bar-inner {
|
|
display: block;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #6eb9e3 0%, #4fa3d1 100%);
|
|
border-radius: 5px;
|
|
transition: width 0.3s;
|
|
}
|
|
}
|
|
|
|
.rating-absolute {
|
|
margin-left: 10px;
|
|
font-size: 0.98em;
|
|
color: #666;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.entry-tags {
|
|
margin-bottom: 32px;
|
|
|
|
ul.plugin-tags,
|
|
ul.theme-tags {
|
|
display: flex;
|
|
flex-flow: wrap;
|
|
gap: 8px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
|
|
.plugin-tag,
|
|
.theme-tag {
|
|
font-size: 0.85em;
|
|
padding: 3px 9px 4px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
box-shadow: 0 1px 4px rgba(110, 185, 227, 0.1);
|
|
border: 1.5px solid #e3e6ea;
|
|
transition:
|
|
background 0.2s,
|
|
color 0.2s,
|
|
border 0.2s;
|
|
|
|
/*&:hover {
|
|
background: #6eb9e3;
|
|
color: #fff;
|
|
border-color: #6eb9e3;
|
|
}*/
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
padding: 0 3vw;
|
|
font-size: 15px;
|
|
|
|
.entry-main {
|
|
gap: 18px;
|
|
display: block;
|
|
|
|
article {
|
|
margin: 0 0 30px;
|
|
flex: 1;
|
|
max-width: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
aside {
|
|
flex: 1;
|
|
max-width: 100%;
|
|
width: 100%;
|
|
|
|
ul li {
|
|
padding: 7px;
|
|
font-size: 0.97em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.details-content {
|
|
padding: 0 3vw;
|
|
|
|
&#details-content-screenshots {
|
|
ol {
|
|
gap: 10px;
|
|
|
|
li {
|
|
padding: 6px;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&#details-content-reviews {
|
|
.review {
|
|
padding: 10px 6px 10px 6px;
|
|
font-size: 0.97em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
padding: 0 2vw;
|
|
font-size: 14px;
|
|
|
|
.entry-main {
|
|
gap: 12px;
|
|
|
|
article {
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
aside {
|
|
ul li {
|
|
padding: 5px;
|
|
font-size: 0.96em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.details-content {
|
|
padding: 0 2vw;
|
|
|
|
&#details-content-screenshots {
|
|
ol {
|
|
gap: 6px;
|
|
|
|
li {
|
|
padding: 4px;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&#details-content-reviews {
|
|
.review {
|
|
padding: 8px 2px 8px 2px;
|
|
font-size: 0.96em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|