-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: break last example into two sections
- Loading branch information
Showing
4 changed files
with
68 additions
and
53 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
66 changes: 66 additions & 0 deletions
66
projects/demo/src/modules/experimental/surface/examples/6/surface.less
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.card { | ||
border-radius: 1.25rem; | ||
padding: 1rem; | ||
background-position: right; | ||
background-color: currentColor; | ||
box-shadow: inset -4rem 0 3rem -2rem; | ||
|
||
&:hover { | ||
box-shadow: inset 0 0 3rem -2rem; | ||
transform: scale(1.1); | ||
} | ||
|
||
&:active:before { | ||
backdrop-filter: brightness(0.9); | ||
} | ||
} | ||
|
||
.restaurant { | ||
border-radius: 1.25rem; | ||
padding: 1rem; | ||
box-shadow: inset 0 10rem 7rem -5rem #000; | ||
background-image: url('/assets/images/restaurant-1.jpg'); | ||
|
||
&:hover { | ||
background-image: url('/assets/images/restaurant-2.jpg'); | ||
} | ||
} | ||
|
||
.blur { | ||
background-image: url(/assets/images/restaurant-2.jpg); | ||
border-radius: 0; | ||
clip-path: inset(0 round 5rem); // for crisp edges | ||
|
||
&:before { | ||
backdrop-filter: blur(1rem); | ||
mix-blend-mode: multiply; // Fix for https://bugs.chromium.org/p/chromium/issues/detail?id=1486408 | ||
} | ||
} | ||
|
||
.reviews { | ||
// tuiSurface="elevated" preset | ||
} | ||
|
||
.mask { | ||
border-radius: 0; | ||
background: #333 radial-gradient(circle at 80% 70%, #aff218 -20%, transparent 60%); | ||
mask: linear-gradient( | ||
180deg, | ||
#222222 77.89%, | ||
rgba(36, 36, 36, 0.991353) 79.36%, | ||
rgba(42, 42, 42, 0.96449) 80.84%, | ||
rgba(52, 52, 52, 0.91834) 82.31%, | ||
rgba(67, 67, 67, 0.852589) 83.79%, | ||
rgba(85, 85, 85, 0.768225) 85.26%, | ||
rgba(107, 107, 107, 0.668116) 86.73%, | ||
rgba(132, 132, 132, 0.557309) 88.21%, | ||
rgba(157, 157, 157, 0.442691) 89.68%, | ||
rgba(182, 182, 182, 0.331884) 91.16%, | ||
rgba(204, 204, 204, 0.231775) 92.63%, | ||
rgba(222, 222, 222, 0.147411) 94.1%, | ||
rgba(237, 237, 237, 0.0816599) 95.58%, | ||
rgba(247, 247, 247, 0.03551) 97.05%, | ||
rgba(253, 253, 253, 0.0086472) 98.53%, | ||
rgba(255, 255, 255, 0) 100% | ||
); | ||
} |
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