forked from fxhash/fxhash-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fxhash#824 from fxhash/dev
Dev -> Staging
- Loading branch information
Showing
15 changed files
with
241 additions
and
367 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,160 +1,45 @@ | ||
@import "../../styles/Variables"; | ||
|
||
.card { | ||
border: 3px solid var(--color-border); | ||
width: 100%; | ||
aspect-ratio: 293 / 286; | ||
border-radius: 4px; | ||
padding: 12px 20px; | ||
position: relative; | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
color: white; | ||
background-size: cover; | ||
background-position: center center; | ||
.card_body { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
gap: 0 16px; | ||
} | ||
.card_verso { | ||
position: absolute; | ||
z-index: 2; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
background: var(--color-gray-vvvvlight); | ||
color: var(--color-black); | ||
text-decoration: none !important; | ||
.cardHeader { | ||
aspect-ratio: 293 / 286; | ||
height: 150px; | ||
width: 100%; | ||
background-size: cover; | ||
background-position: center center; | ||
} | ||
.cardBody { | ||
padding: var(--spacing); | ||
display: flex; | ||
flex-direction: column; | ||
background: var(--color-white); | ||
color: var(--color-black); | ||
transform: translateY(101%); | ||
will-change: transform; | ||
transition: transform 0.2s $timing-cubic; | ||
} | ||
&:hover { | ||
.card_verso { | ||
transform: translateY(0); | ||
} | ||
justify-content: space-between; | ||
flex-grow: 1; | ||
} | ||
} | ||
.card_title { | ||
font-size: 24px; | ||
.title { | ||
font-size: 16px; | ||
font-weight: 700; | ||
line-height: 20px; | ||
margin-bottom: var(--spacing-xl); | ||
} | ||
.card_date { | ||
font-size: 19px; | ||
font-weight: 600; | ||
line-height: 1.26; | ||
} | ||
.card_text { | ||
opacity: 0.8; | ||
font-size: var(--font-size-small); | ||
} | ||
.card_artists { | ||
flex: 1; | ||
background-color: var(--color-gray-vvvlight); | ||
padding: 8px 20px; | ||
overflow: auto; | ||
|
||
& > div > a { | ||
display: block; | ||
} | ||
& > div + div { | ||
margin-top: 8px; | ||
} | ||
} | ||
.cta_view_event { | ||
font-size: 19px; | ||
line-height: 1.3; | ||
color: var(--color-black); | ||
font-weight: 600; | ||
padding: 12px 20px; | ||
} | ||
.card_header { | ||
padding: 12px 20px 8px; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
.card_infos { | ||
flex: 1; | ||
} | ||
.cta_calendar { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: flex-end; | ||
width: 40px; | ||
height: 40px; | ||
font-size: 26px; | ||
color: currentColor; | ||
border: none; | ||
background: none; | ||
box-shadow: none; | ||
cursor: pointer; | ||
padding: 0; | ||
transition: 0.2s color ease-out; | ||
&:hover { | ||
color: var(--color-secondary); | ||
} | ||
} | ||
} | ||
.artists { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
& > span { | ||
font-weight: 600; | ||
font-size: 20px; | ||
} | ||
& > i { | ||
display: flex; | ||
font-size: 32px; | ||
} | ||
.date, .location { | ||
font-size: 14px; | ||
font-weight: 400; | ||
line-height: 18px; | ||
} | ||
.timer { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
font-size: var(--font-size-small); | ||
.label { | ||
opacity: 0.8; | ||
} | ||
} | ||
.dot { | ||
height: 10px; | ||
width: 10px; | ||
background-color: var(--color-error); | ||
border-radius: 50%; | ||
margin-right: 8px; | ||
position: relative; | ||
&.dot_active { | ||
background-color: var(--color-success); | ||
&::before { | ||
content: ""; | ||
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; | ||
position: absolute; | ||
height: 100%; | ||
width: 100%; | ||
border-radius: 50%; | ||
background-color: var(--color-success); | ||
} | ||
} | ||
.location { | ||
color: var(--color-gray); | ||
} | ||
|
||
@media (max-width: $breakpoint-sm) { | ||
.card, .card_artists, .cta_view_event { | ||
padding-left: 16px; | ||
padding-right: 16px; | ||
} | ||
.card_title { | ||
font-size: 22px; | ||
} | ||
.card_date { | ||
font-size: 17px; | ||
.card { | ||
} | ||
} |
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
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.