-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: TenzDelek <[email protected]>
- Loading branch information
Showing
6 changed files
with
250 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,98 @@ | ||
.case-card { | ||
min-height: 280px; | ||
min-width: 35px; | ||
border-radius: 10px; | ||
border: 1px solid rgba(0, 0, 0, 0.06); | ||
display: grid; | ||
grid-template-areas: | ||
"title desc" | ||
"hr desc" | ||
"sub desc" | ||
"sub desc" | ||
"date btn"; | ||
grid-template-columns: 6fr 5fr; | ||
grid-template-rows: auto auto auto 1fr; | ||
grid-column-gap: 40px; | ||
padding: 36px; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
background: var(--ifm-card-background-color); | ||
border-radius: 12px; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
cursor: pointer; | ||
overflow: hidden; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
max-width: 400px; | ||
margin: 0 auto; | ||
|
||
.title { | ||
grid-area: title; | ||
color: #fff; | ||
font-size: 36px; | ||
margin-bottom: 18px; | ||
cursor: pointer; | ||
&:hover { | ||
transform: translateY(-1px); | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
hr { | ||
grid-area: hr; | ||
background: #fff; | ||
height: 4px !important; | ||
width: 40px !important; | ||
margin: 0; | ||
.image-wrapper { | ||
width: 100%; | ||
height: 160px; | ||
overflow: hidden; | ||
|
||
.cover-image { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
} | ||
|
||
.sub { | ||
grid-area: sub; | ||
font-size: 30px; | ||
color: #62a1ff; | ||
margin-top: 20px; | ||
.content { | ||
padding: 1.5rem; | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
} | ||
|
||
.date { | ||
grid-area: date; | ||
color: #fff; | ||
display: flex; | ||
align-items: flex-end; | ||
.title { | ||
font-size: 1.25rem; | ||
font-weight: 700; | ||
color: var(--ifm-heading-color); | ||
margin-bottom: 0.5rem; | ||
line-height: 1.3; | ||
} | ||
|
||
.desc { | ||
grid-area: desc; | ||
font-size: 16px; | ||
color: #fff; | ||
letter-spacing: 0.02em; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
.subtitle { | ||
font-size: 1rem; | ||
font-weight: 600; | ||
color: var(--ifm-color-emphasis-700); | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.description { | ||
font-size: 0.9rem; | ||
line-height: 1.5; | ||
color: var(--ifm-color-emphasis-700); | ||
margin-bottom: 1.5rem; | ||
flex-grow: 1; | ||
} | ||
|
||
.card-footer { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 0.75rem; | ||
margin-top: auto; | ||
} | ||
|
||
.date { | ||
font-size: 12px; | ||
font-size: 0.875rem; | ||
color: var(--ifm-color-emphasis-600); | ||
} | ||
|
||
a { | ||
grid-area: btn; | ||
font-size: 16px; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
background-color: #1c77c8; | ||
.read-more { | ||
background: var(--ifm-color-primary); | ||
color: white; | ||
border: none; | ||
border-radius: 6px; | ||
padding: 0.5rem 1rem; | ||
font-size: 0.875rem; | ||
font-weight: 500; | ||
cursor: pointer; | ||
transition: background-color 0.2s ease; | ||
|
||
&:hover { | ||
background: var(--ifm-color-primary-dark); | ||
} | ||
} | ||
} | ||
|
||
html[data-theme="dark"] { | ||
.case-card { | ||
background-color: #242526; | ||
border: 1px solid rgba(255, 255, 255, 0.06); | ||
html[data-theme='dark'] .case-card { | ||
background: var(--ifm-card-background-color); | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); | ||
|
||
&:hover { | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.