195 lines
3.4 KiB
SCSS
195 lines
3.4 KiB
SCSS
@media (prefers-color-scheme: light) {
|
|
::selection {
|
|
color: #f5f5fa;
|
|
background-color: #424242;
|
|
}
|
|
::-webkit-selection {
|
|
color: #f5f5fa;
|
|
background-color: #424242;
|
|
}
|
|
::-moz-selection {
|
|
color: #f5f5fa;
|
|
background-color: #424242;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
::selection {
|
|
color: #303030;
|
|
background-color: #f5f5fa;
|
|
}
|
|
::-webkit-selection {
|
|
color: #303030;
|
|
background-color: #f5f5fa;
|
|
}
|
|
::-moz-selection {
|
|
color: #303030;
|
|
background-color: #f5f5fa;
|
|
}
|
|
}
|
|
|
|
.widget.archives {
|
|
.widget-archive--list {
|
|
border-radius: var(--card-border-radius);
|
|
box-shadow: var(--shadow-l1);
|
|
background-color: var(--card-background);
|
|
}
|
|
|
|
.status-item {
|
|
&:not(:last-of-type) {
|
|
border-bottom: 1.5px solid var(--card-separator-color);
|
|
}
|
|
font-size: 1.4rem;
|
|
padding: 18px 25px;
|
|
display: flex;
|
|
|
|
span.year {
|
|
flex: 1;
|
|
color: var(--card-text-color-main);
|
|
font-weight: bold;
|
|
}
|
|
|
|
span.count {
|
|
color: var(--card-text-color-tertiary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.links-section {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.links-section__header {
|
|
margin-bottom: 30px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 2px solid var(--card-separator-color);
|
|
|
|
h1 {
|
|
margin: 0;
|
|
color: var(--card-text-color-main);
|
|
font-size: 2.2rem;
|
|
}
|
|
}
|
|
|
|
.links-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.link-card {
|
|
min-width: 0;
|
|
min-height: 132px;
|
|
overflow: hidden;
|
|
border-radius: var(--card-border-radius);
|
|
background: var(--card-background);
|
|
box-shadow: var(--shadow-l1);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
|
|
opacity 0.2s ease;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-l2);
|
|
}
|
|
|
|
> .link-card__body {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 132px;
|
|
padding: 24px 28px;
|
|
gap: 24px;
|
|
}
|
|
}
|
|
|
|
.link-card--disabled {
|
|
.link-card__body {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&:hover {
|
|
filter: grayscale(1);
|
|
opacity: 0.65;
|
|
}
|
|
}
|
|
|
|
.link-card__details {
|
|
min-width: 0;
|
|
}
|
|
|
|
.link-card__title {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 8px;
|
|
color: var(--card-text-color-main);
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.link-card__name {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.link-card__status {
|
|
flex: 0 0 auto;
|
|
padding: 2px 7px;
|
|
border: 1px solid var(--card-text-color-tertiary);
|
|
border-radius: 4px;
|
|
color: var(--card-text-color-tertiary);
|
|
font-size: 1.1rem;
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.link-card__description {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
color: var(--card-text-color-secondary);
|
|
font-size: 1.5rem;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.link-card__image {
|
|
flex: 0 0 72px;
|
|
width: 72px;
|
|
height: 72px;
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.links-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.links-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Global font family
|
|
*/
|
|
:root {
|
|
--code-font-family: 'Maple Font Mono', Menlo, Monaco, Consolas, 'Courier New',
|
|
var(--zh-font-family), monospace;
|
|
}
|
|
|
|
// code > span.line {
|
|
// white-space : pre-wrap;
|
|
// }
|