Files
taurusxin-blog/assets/scss/custom.scss
2026-06-18 19:52:27 +08:00

164 lines
2.8 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;
&:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-l2);
}
> a {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 132px;
padding: 24px 28px;
gap: 24px;
}
}
.link-card__details {
min-width: 0;
}
.link-card__title {
margin: 0 0 8px;
overflow: hidden;
color: var(--card-text-color-main);
font-size: 1.8rem;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.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;
// }