Files
FixIt/assets/scss/pages/single/shortcodes/_cardlink.scss
T
Cell dd6d320654 refactor!: build with Dart Sass and update Vercel deployment scripts (#746)
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741)

* chore: update .gitignore to include .vercel and .env*.local

* CI: add build script for Hugo site deployment on Vercel

* CI: update build script for Hugo site deployment on Vercel

* refactor: update SCSS layout styles and introduce page-style mixin

* refactor: reorganize SCSS files and improve layout structure

* refactor: rename copy button classes and update related styles
2026-05-10 23:02:54 +08:00

103 lines
1.9 KiB
SCSS

// Card link style
@use "core/functions" as *;
@use "core/mixins" as *;
.single .card-link {
position: relative;
display: block;
margin: 0.5rem auto;
box-sizing: border-box;
width: clamp(50%, 400px, 100%);
max-width: 100%;
overflow: hidden;
text-decoration: none;
border: none;
@include border-radius(0.75rem);
}
.cl- {
&backdrop {
position: absolute;
top: 0.75rem;
bottom: 0.75rem;
left: 0;
right: 0;
background-image: fi-var(logo-img);
background-repeat: no-repeat;
filter: blur(0.5rem);
opacity: 0.5;
background-size: contain;
background-position: center;
}
&content {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem;
background-color: light-dark(rgba(245, 245, 245, 0.88), rgba(61, 62, 65, 0.88));
}
&text {
overflow: hidden;
}
&title {
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
max-height: calc(1rem * 1.25 * 2);
font-size: 1rem;
font-weight: 500;
line-height: 1.25;
color: fi-var(global-font-color);
}
&meta {
display: flex;
align-items: center;
margin-top: 0.25rem;
font-size: 0.825rem;
color: fi-var(global-font-secondary-color);
}
&icon-link {
width: 1rem;
height: 1rem;
flex-shrink: 0;
margin-right: 0.25rem;
}
&url {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&shortcut-icon {
width: 4rem;
height: 4rem;
flex-shrink: 0;
margin-left: 0.25rem;
&:is(i) {
text-align: center;
font-size: 3rem;
display: inline-flex;
align-items: center;
justify-content: center;
}
}
&shortcut-image {
width: 4rem;
height: 4rem !important;
flex-shrink: 0;
margin-left: 0.25rem;
object-fit: cover;
@include border-radius(full);
}
}