|
29 | 29 | justify-content: center;
|
30 | 30 | position: relative;
|
31 | 31 | width: 100%;
|
32 |
| - min-height: min(40rem, calc(100svh - var(--nav-height))); |
| 32 | + min-height: min(50vw, calc(100dvh - var(--header-height))); |
33 | 33 | }
|
34 | 34 |
|
35 |
| -.carousel .carousel-slide:has(.carousel-slide-content[data-align="center"]) { |
| 35 | +.carousel .carousel-slide:has(.carousel-slide-content[data-align='center']) { |
36 | 36 | align-items: center;
|
37 | 37 | }
|
38 | 38 |
|
39 |
| -.carousel .carousel-slide:has(.carousel-slide-content[data-align="right"]) { |
| 39 | +.carousel .carousel-slide:has(.carousel-slide-content[data-align='right']) { |
40 | 40 | align-items: flex-end;
|
41 | 41 | }
|
42 | 42 |
|
|
53 | 53 |
|
54 | 54 | .carousel .carousel-slide .carousel-slide-content {
|
55 | 55 | z-index: 1;
|
56 |
| - padding: 1rem; |
57 |
| - margin: 1.5rem 3rem; |
| 56 | + margin: 68px; |
| 57 | + padding: 16px; |
58 | 58 | color: white;
|
59 |
| - background-color: rgba(0 0 0 / 50%); |
| 59 | + background-color: rgba(19 19 19 / 75%); |
60 | 60 | position: relative;
|
61 | 61 | width: var(--slide-content-width, auto);
|
62 | 62 | }
|
63 | 63 |
|
64 | 64 | .carousel .carousel-slide-indicators {
|
65 | 65 | display: flex;
|
| 66 | + flex-wrap: wrap; |
66 | 67 | justify-content: center;
|
67 |
| - gap: 0.5rem; |
| 68 | + gap: 6px 12px; |
| 69 | + padding: 12px; |
| 70 | + background-color: var(--light-color); |
| 71 | + line-height: 0; |
68 | 72 | }
|
69 | 73 |
|
70 | 74 | .carousel .carousel-slide-indicator button {
|
71 |
| - width: 1rem; |
72 |
| - height: 1rem; |
| 75 | + width: 24px; |
| 76 | + height: 24px; |
| 77 | + margin: 0; |
73 | 78 | padding: 0;
|
74 |
| - border-radius: 1rem; |
75 |
| - background-color: rgba(0 0 0 / 25%); |
| 79 | + border-radius: 50%; |
| 80 | + background-color: #dadada; |
| 81 | + transition: background-color 0.2s; |
76 | 82 | }
|
77 | 83 |
|
78 | 84 | .carousel .carousel-slide-indicator button:disabled,
|
79 | 85 | .carousel .carousel-slide-indicator button:hover,
|
80 | 86 | .carousel .carousel-slide-indicator button:focus-visible {
|
81 |
| - background-color: rgba(0 0 0 / 80%); |
82 |
| -} |
83 |
| - |
84 |
| -.carousel .carousel-slide-indicator span, |
85 |
| -.carousel .carousel-navigation-buttons span { |
86 |
| - border: 0; |
87 |
| - clip: rect(0 0 0 0); |
88 |
| - clip-path: inset(50%); |
89 |
| - height: 1px; |
90 |
| - margin: -1px; |
91 |
| - overflow: hidden; |
92 |
| - padding: 0; |
93 |
| - position: absolute; |
94 |
| - width: 1px; |
95 |
| - white-space: nowrap; |
| 87 | + background-color: var(--text-color); |
96 | 88 | }
|
97 | 89 |
|
98 | 90 | .carousel .carousel-navigation-buttons {
|
99 | 91 | position: absolute;
|
100 | 92 | top: 50%;
|
101 | 93 | transform: translateY(-50%);
|
102 |
| - left: 0.5rem; |
103 |
| - right: 0.5rem; |
| 94 | + left: 12px; |
| 95 | + right: 12px; |
104 | 96 | display: flex;
|
105 | 97 | align-items: center;
|
106 | 98 | justify-content: space-between;
|
|
109 | 101 |
|
110 | 102 | /* stylelint-disable-next-line no-descending-specificity */
|
111 | 103 | .carousel .carousel-navigation-buttons button {
|
112 |
| - border-radius: 8px; |
| 104 | + position: relative; |
| 105 | + width: 44px; |
| 106 | + height: 44px; |
113 | 107 | margin: 0;
|
| 108 | + border-radius: 50%; |
114 | 109 | padding: 0;
|
115 |
| - width: 2rem; |
116 |
| - height: 2rem; |
117 |
| - position: relative; |
118 |
| - background-color: rgba(0 0 0 / 25%); |
| 110 | + background-color: rgba(19 19 19 / 25%); |
| 111 | + transition: background-color 0.2s; |
119 | 112 | }
|
120 | 113 |
|
121 | 114 | .carousel .carousel-navigation-buttons button:hover,
|
122 | 115 | .carousel .carousel-navigation-buttons button:focus-visible {
|
123 |
| - background-color: rgba(0 0 0 / 80%); |
| 116 | + background-color: rgba(19 19 19 / 75%); |
124 | 117 | }
|
125 | 118 |
|
126 | 119 | .carousel .carousel-navigation-buttons button::after {
|
127 | 120 | display: block;
|
128 |
| - content: ""; |
129 |
| - border: 3px white solid; |
| 121 | + content: ''; |
| 122 | + border: 2px solid; |
130 | 123 | border-bottom: 0;
|
131 | 124 | border-left: 0;
|
132 |
| - height: 0.75rem; |
133 |
| - width: 0.75rem; |
| 125 | + height: 12px; |
| 126 | + width: 12px; |
134 | 127 | position: absolute;
|
135 | 128 | top: 50%;
|
136 |
| - left: calc(50% + 3px); |
| 129 | + left: calc(50% + 2px); |
137 | 130 | transform: translate(-50%, -50%) rotate(-135deg);
|
138 | 131 | }
|
139 | 132 |
|
140 | 133 | .carousel .carousel-navigation-buttons button.slide-next::after {
|
141 |
| - transform: translate(-50%, -50%) rotate(45deg); |
142 |
| - left: calc(50% - 3px); |
| 134 | + transform: translate(-50%, -50%) rotate(45deg); |
| 135 | + left: calc(50% - 2px); |
143 | 136 | }
|
144 | 137 |
|
145 | 138 | @media (width >= 600px) {
|
146 | 139 | .carousel .carousel-navigation-buttons {
|
147 |
| - left: 1rem; |
148 |
| - right: 1rem; |
149 |
| - } |
150 |
| - |
151 |
| - .carousel .carousel-navigation-buttons button { |
152 |
| - width: 3rem; |
153 |
| - height: 3rem; |
154 |
| - } |
155 |
| - |
156 |
| - .carousel .carousel-navigation-buttons button::after { |
157 |
| - width: 1rem; |
158 |
| - height: 1rem; |
| 140 | + left: 24px; |
| 141 | + right: 24px; |
159 | 142 | }
|
160 | 143 |
|
161 | 144 | .carousel .carousel-slide .carousel-slide-content {
|
162 |
| - --slide-content-width: 50%; |
| 145 | + --slide-content-width: calc((100% - 184px) / 2); |
163 | 146 |
|
164 |
| - margin: 2.5rem 5rem; |
| 147 | + margin: 92px; |
165 | 148 | }
|
166 | 149 |
|
167 |
| - .carousel .carousel-slide .carousel-slide-content[data-align="justify"] { |
| 150 | + .carousel .carousel-slide .carousel-slide-content[data-align='justify'] { |
168 | 151 | --slide-content-width: auto;
|
169 | 152 | }
|
170 | 153 | }
|
0 commit comments