|
1 | 1 | .card {
|
2 | 2 | position: relative;
|
3 |
| - overflow: hidden; |
| 3 | + /* border: 0.75px solid #cccccc; */ |
| 4 | + transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and box-shadow */ |
4 | 5 | cursor: pointer;
|
5 |
| - transition: transform 0.3s ease, box-shadow 0.3s ease; /* Maintain smooth transition for transform and box-shadow */ |
6 |
| - box-shadow: var(--mantine-shadow-xl); |
7 |
| - border: 3px solid transparent; /* Ensures layout stability */ |
8 |
| - /* Apply zoom effect */ |
9 |
| - transform: scale(1); /* Default scale */ |
10 |
| -} |
11 |
| - |
12 |
| -/* Initial state for top/left border */ |
13 |
| -.card::before { |
14 |
| - content: ""; |
15 |
| - position: absolute; |
16 |
| - left: 0; |
17 |
| - top: 0; |
18 |
| - width: 100%; /* Full width to cover the top edge */ |
19 |
| - height: 100%; /* Full height to cover the left edge */ |
20 |
| - border-top: 3px solid var(--cc-green); /* Top border */ |
21 |
| - border-left: 3px solid var(--cc-green); /* Left border */ |
22 |
| - transition: transform 0.3s ease-out; /* Smooth transition for border */ |
23 |
| - transform-origin: top left; |
24 |
| - transform: scaleX(0); /* Start with top border fully retracted */ |
25 |
| -} |
26 |
| - |
27 |
| -/* Initial state for bottom/right border */ |
28 |
| -.card::after { |
29 |
| - content: ""; |
30 |
| - position: absolute; |
31 |
| - right: 0; |
32 |
| - bottom: 0; |
33 |
| - width: 100%; /* Full width to cover the bottom edge */ |
34 |
| - height: 100%; /* Full height to cover the right edge */ |
35 |
| - border-bottom: 3px solid var(--cc-green); /* Bottom border */ |
36 |
| - border-right: 3px solid var(--cc-green); /* Right border */ |
37 |
| - transition: transform 0.3s ease-out 0.3s; /* Delay bottom/right animation for a sequential effect */ |
38 |
| - transform-origin: bottom right; |
39 |
| - transform: scaleY(0); /* Start with right border fully retracted */ |
40 | 6 | }
|
41 | 7 |
|
42 | 8 | .card:hover {
|
43 | 9 | /* Enhance zoom effect on hover */
|
44 | 10 | transform: scale(1.03); /* Slightly larger scale for zoom effect */
|
45 | 11 | box-shadow: none; /* Optionally remove the box-shadow for focus on the border animation */
|
| 12 | + border: 1px solid var(--cc-green); |
| 13 | +} |
| 14 | + |
| 15 | +.cardImage { |
| 16 | + position: relative; |
| 17 | + object-fit: inherit; |
| 18 | + min-height: 300px; |
46 | 19 | }
|
47 | 20 |
|
48 |
| -.card:hover::before { |
49 |
| - transform: scaleY(1); /* Expand left border downwards after delay */ |
| 21 | +.viewProjectbutton { |
| 22 | + background-color: var(--cc-green); |
| 23 | + width: 250px; |
| 24 | + &:hover { |
| 25 | + background-color: var(--cc-light-green); |
| 26 | + } |
50 | 27 | }
|
51 | 28 |
|
52 |
| -.card:hover::after { |
53 |
| - transform: scaleX(1); /* Expand bottom border to the right */ |
| 29 | +.closeButton { |
| 30 | + width: 250px; |
| 31 | + background-color: var(--cc-green); |
| 32 | + &:hover { |
| 33 | + background-color: var(--cc-light-green); |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +/* for image carousel */ |
| 38 | +.indicator { |
| 39 | + width: rem(12px); |
| 40 | + height: rem(4px); |
| 41 | + transition: width 250ms ease; |
| 42 | + |
| 43 | + &[data-active] { |
| 44 | + width: rem(40px); |
| 45 | + } |
54 | 46 | }
|
0 commit comments