|
1 | | -// M |
2 | | -@media screen and (min-width: 601px) and (max-width: 1000px) { |
| 1 | +// L - Large screens: three cards per row |
| 2 | +@media screen and (min-width: 1101px) { |
3 | 3 | .tools { |
4 | | - & > :nth-child(1), |
5 | | - & > :nth-child(2) { |
6 | | - max-width: 60% !important; |
7 | | - min-width: 40% !important; |
8 | | - width: 50%; |
| 4 | + .tool { |
| 5 | + min-width: calc(33.33% - 21.33px); |
| 6 | + max-width: calc(33.33% - 21.33px); |
| 7 | + flex: 0 0 calc(33.33% - 21.33px); |
9 | 8 | } |
10 | | - & > .tool:not(:nth-child(-n + 2)) { |
11 | | - min-width: 30% !important; |
12 | | - max-width: 33% !important; |
| 9 | + } |
| 10 | +} |
| 11 | + |
| 12 | +// M - Medium screens: two cards per row |
| 13 | +@media screen and (min-width: 601px) and (max-width: 1100px) { |
| 14 | + .tools { |
| 15 | + .tool { |
| 16 | + min-width: calc(50% - 16px); |
| 17 | + max-width: calc(50% - 16px); |
| 18 | + flex: 0 0 calc(50% - 16px); |
13 | 19 | } |
14 | 20 | } |
15 | 21 | } |
16 | 22 |
|
17 | | -// S |
| 23 | +// S - Small screens: one card per row |
18 | 24 | @media screen and (max-width: 600px) { |
19 | 25 | .tools { |
20 | 26 | flex-direction: column; |
| 27 | + .tool { |
| 28 | + width: 100%; |
| 29 | + } |
21 | 30 | } |
22 | 31 | } |
23 | 32 |
|
24 | 33 | :global { |
25 | 34 | html:not(.dark) { |
26 | 35 | --rs-tool-stack-shadow-color: #f9f9f9; |
27 | 36 | --rs-tool-stack-title-color: #0b0c0e; |
28 | | - --rs-tool-stack-desc-color: #6b7075; |
| 37 | + --rs-tool-stack-desc-color: #8fa1b9; |
29 | 38 |
|
30 | | - --rs-tool-stack-card-stroke: rgba(226, 232, 240, 0.5); |
| 39 | + --rs-tool-stack-card-stroke: rgba(143, 161, 185, 0.3); |
31 | 40 | --rs-tool-stack-card-gradient: linear-gradient( |
32 | 41 | 135deg, |
33 | 42 | rgba(255, 255, 255, 1), |
34 | 43 | rgba(249, 249, 249, 0.5) |
35 | 44 | ); |
| 45 | + --rs-tools-stack-url-color: #f93920; |
36 | 46 | } |
37 | 47 | html.dark { |
38 | 48 | --rs-tool-stack-shadow-color: #23272f; |
39 | 49 | --rs-tool-stack-title-color: white; |
40 | | - --rs-tool-stack-desc-color: #c6cacd; |
| 50 | + --rs-tool-stack-desc-color: #8fa1b9; |
41 | 51 | --rs-tool-stack-card-stroke: #23272f; |
42 | 52 | --rs-tool-stack-card-gradient: linear-gradient( |
43 | 53 | 135deg, |
44 | 54 | rgba(255, 255, 255, 0), |
45 | 55 | rgba(255, 255, 255, 0.03) |
46 | 56 | ); |
| 57 | + --rs-tools-stack-url-color: #f93920; |
47 | 58 | } |
48 | 59 | } |
49 | 60 |
|
|
52 | 63 | align-items: center; |
53 | 64 | justify-content: center; |
54 | 65 | flex-wrap: wrap; |
55 | | - gap: 16px; |
| 66 | + gap: 32px; |
56 | 67 | } |
57 | 68 |
|
58 | 69 | .tool { |
|
61 | 72 |
|
62 | 73 | display: flex; |
63 | 74 | flex: 1 1 0; |
64 | | - padding: 24px 16px; |
| 75 | + padding: 24px; |
65 | 76 | box-sizing: border-box; |
66 | 77 |
|
67 | 78 | flex-direction: column; |
68 | | - align-items: center; |
69 | | - gap: 16px; |
| 79 | + align-items: start; |
| 80 | + gap: 8px; |
70 | 81 | align-self: stretch; |
71 | 82 |
|
72 | 83 | // style |
73 | 84 | border-radius: 10px; |
74 | 85 | border: 1px solid var(--rs-tool-stack-card-stroke); |
75 | 86 | background: var(--rs-tool-stack-card-gradient); |
76 | | - box-shadow: 0px -2px 10px 0px var(--rs-tool-stack-shadow-color); |
77 | 87 | transition: all 0.2s ease-out; |
| 88 | + |
78 | 89 | &:hover { |
79 | | - transform: scale3d(1.04, 1.04, 1.04); |
| 90 | + transform: scale3d(1.03, 1.03, 1.03); |
80 | 91 | } |
81 | 92 |
|
82 | 93 | .logo { |
83 | | - height: 90px; |
| 94 | + width: 52px; |
| 95 | + height: 52px; |
| 96 | + object-fit: contain; |
84 | 97 | flex-shrink: 0; |
85 | 98 | } |
86 | 99 |
|
| 100 | + .toolContent { |
| 101 | + display: flex; |
| 102 | + flex-direction: column; |
| 103 | + align-items: flex-start; |
| 104 | + gap: 8px; |
| 105 | + } |
| 106 | + |
87 | 107 | .toolTitle { |
88 | 108 | color: var(--rs-tool-stack-title-color); |
89 | 109 | text-align: center; |
90 | 110 |
|
91 | | - font-size: 22px; |
| 111 | + font-size: 19px; |
92 | 112 | font-style: normal; |
93 | 113 | font-weight: 600; |
94 | | - line-height: 32px; /* 145.455% */ |
| 114 | + line-height: 24px; |
| 115 | + margin-top: 4px; |
95 | 116 | } |
96 | 117 |
|
97 | 118 | .toolDescription { |
98 | 119 | color: var(--rs-tool-stack-desc-color); |
99 | | - text-align: center; |
| 120 | + text-align: left; |
| 121 | + height: 48px; |
100 | 122 |
|
101 | 123 | font-size: 14px; |
102 | 124 | font-style: normal; |
103 | 125 | font-weight: 400; |
104 | 126 | line-height: 24px; |
| 127 | + margin: 0; |
| 128 | + } |
| 129 | + |
| 130 | + .toolUrl { |
| 131 | + color: var(--rs-tools-stack-url-color); |
| 132 | + font-size: 15px; |
| 133 | + font-style: normal; |
| 134 | + font-weight: 400; |
| 135 | + line-height: 24px; |
| 136 | + text-decoration: none; |
| 137 | + display: block; |
| 138 | + text-align: left; |
| 139 | + width: 100%; |
| 140 | + } |
| 141 | +} |
| 142 | + |
| 143 | +@keyframes rotate { |
| 144 | + 100% { |
| 145 | + transform: rotate(1turn); |
105 | 146 | } |
106 | 147 | } |
0 commit comments