Skip to content

Commit

Permalink
style: added style for calendar reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-zelger committed Oct 25, 2024
1 parent 3db133b commit 7c0daac
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/dropdown-button/DropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DropdownButton = ({ title, buttonContent, children }: Props) => {

return (
<div className="dropdown-container" ref={dropdownRef}>
<button className="btn-primary dropdown-button" onClick={toggleDropdown}>
<button className="btn btn-primary dropdown-button" onClick={toggleDropdown}>
{!!title ? (
title
) : (!!buttonContent ? (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/calendar/components/CalendarForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function CalendarForm() {

<div className="btn-group">
{hasActiveCache() &&
<button className="download-btn" style={{ margin: '0 auto 0 0' }}
<button className="btn" style={{ margin: '0 auto 0 0' }}
onClick={resetValues}>
{t('calendarPage.resetValues')}
</button>
Expand Down
33 changes: 19 additions & 14 deletions src/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ li {

p,
ul,
li,
h2 .btn {
li {
font-size: 16.25px;
}
}
Expand All @@ -127,8 +126,7 @@ li {

p,
ul,
li,
h2 .btn {
li {
font-size: 17.5px;
}
}
Expand All @@ -148,8 +146,7 @@ li {

p,
ul,
li,
h2 .btn {
li {
font-size: 18.75px;
}
}
Expand All @@ -165,8 +162,7 @@ li {

p,
ul,
li,
h2 .btn {
li {
font-size: 20px;
}
}
Expand Down Expand Up @@ -216,22 +212,31 @@ table {
margin-bottom: 2rem;
}

button.btn-primary,
a.btn-primary {
button.btn {
padding: 0.4em 0.5em;
line-height: normal;
border: none;
color: white;
background: @color-primary-light;
border-radius: 4px;
display: flex;
align-items: center;
gap: 0.4em;
font-size: 1.1rem;
cursor: pointer;

border: 1px solid @color-primary-light;
color: @color-primary-light;
background: #fff;

&:hover {
color: white;
opacity: 0.5;
}
}

button.btn-primary,
a.btn-primary {
color: white;
background: @color-primary-light;

&:hover {
color: white;
}
}

0 comments on commit 7c0daac

Please sign in to comment.