Skip to content

Commit 4f86d5c

Browse files
authored
Update button styles in index.html
Refactor button styles to use CSS variables and simplify properties.
1 parent 533fe25 commit 4f86d5c

File tree

1 file changed

+19
-84
lines changed

1 file changed

+19
-84
lines changed

index.html

Lines changed: 19 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -278,93 +278,28 @@
278278
max-width: none;
279279
}
280280
.btn {
281+
height: calc(var(--base, 8px) * 6.5);
282+
min-width: calc(var(--base, 8px) * 9);
283+
padding: 0 calc(var(--base, 8px) * 4);
284+
font-size: .95rem;
285+
border-radius: var(--c-button-border-radius, var(--radius-md, var(--base, 8px)/2));
286+
background-color: var(--c-button-primary-color, var(--color-primary, #ae0b05));
287+
color: var(--c-button-primary-color-contrasting, var(--color-primary-contrasting, var(--color-white, #ffffff)));
288+
display: inline-flex;
289+
vertical-align: middle;
281290
align-items: center;
282-
appearance: none;
283-
background-color: rgb(118, 35, 47);
284-
border-bottom-color: rgb(255, 255, 255);
285-
border-bottom-left-radius: 3px;
286-
border-bottom-right-radius: 3px;
287-
border-bottom-style: none;
288-
border-bottom-width: 0px;
289-
border-image-outset: 0;
290-
border-image-repeat: stretch;
291-
border-image-slice: 100%;
292-
border-image-source: none;
293-
border-image-width: 1;
294-
border-left-color: rgb(255, 255, 255);
295-
border-left-style: none;
296-
border-left-width: 0px;
297-
border-right-color: rgb(255, 255, 255);
298-
border-right-style: none;
299-
border-right-width: 0px;
300-
border-top-color: rgb(255, 255, 255);
301-
border-top-left-radius: 3px;
302-
border-top-right-radius: 3px;
303-
border-top-style: none;
304-
border-top-width: 0px;
305-
box-sizing: border-box;
306-
color: rgb(255, 255, 255);
307-
cursor: pointer;
308-
display: flex;
309-
filter: drop-shadow(rgba(117, 35, 48, 0.05) 0px 2px 3px);
310-
var(--drop-shadow-1, drop-shadow(0px calc(4px * var(--drop-shadow-amount, .7)) calc(6px * var(--drop-shadow-amount, .7)) var(--drop-shadow-color, rgba(0, 0, 0, .1)))).c-button__filled
311-
font-family: Roboto;
312-
font-feature-settings: normal;
313-
font-kerning: auto;
314-
font-optical-sizing: auto;
315-
font-size: 15.2px;
316-
font-size-adjust: none;
317-
font-style: normal;
318-
font-variant-alternates: normal;
319-
font-variant-caps: normal;
320-
font-variant-east-asian: normal;
321-
font-variant-ligatures: normal;
322-
font-variant-numeric: normal;
323-
font-variant-position: normal;
324-
font-variation-settings: normal;
325-
font-weight: 500;
326-
font-width: 100%;
327-
height: 52px;
328-
hyphens: auto;
329291
justify-content: center;
330-
letter-spacing: normal;
331-
line-height: 17.48px;
332-
margin-bottom: 0px;
333-
margin-left: 8px;
334-
margin-right: 0px;
335-
margin-top: 0px;
336-
max-width: 100%;
337-
min-width: 72px;
338-
overflow-wrap: break-word;
339-
overflow-x: visible;
340-
overflow-y: visible;
341-
padding-block-end: 0px;
342-
padding-block-start: 0px;
343-
padding-bottom: 0px;
344-
padding-inline-end: 32px;
345-
padding-inline-start: 32px;
346-
padding-left: 32px;
347-
padding-right: 32px;
348-
padding-top: 0px;
349-
position: relative;
350-
text-align: center;
351-
text-decoration-color: rgb(255, 255, 255);
352-
text-decoration-line: none;
353-
text-decoration-style: solid;
354-
text-decoration-thickness: auto;
355-
text-indent: 0px;
356-
text-shadow: none;
357-
text-transform: none;
358-
transition-behavior: normal;
359-
transition-delay: 0s;
360-
transition-duration: 0.2s;
361-
transition-property: filter;
362-
transition-timing-function: ease-in-out;
363-
vertical-align: middle;
364-
width: 128.0625px;
365-
will-change: filter;
366-
word-spacing: 0px;
292+
text-decoration: none;
293+
cursor: pointer;
294+
font-weight: var(--c-button-font-weight, var(--font-weight-button, 500));
295+
font-family: var(--c-button-font-family, var(--font-family-button, var(--font-family-base, "Roboto", sans-serif)));
296+
text-transform: var(--c-button-text-transform, var(--text-transform-button, none));
297+
background-color: transparent;
298+
border: none;
367299
-webkit-user-select: none;
300+
user-select: none;
301+
position: relative;
302+
max-width: 100%;
368303
}
369304
.button-wrapper a, .button-wrapper a:link, .button-wrapper a:visited, .button-wrapper a:focus, .button-wrapper a:hover, .button-wrapper a:active {
370305
color: unset;

0 commit comments

Comments
 (0)