Skip to content

Commit

Permalink
fix generic button style
Browse files Browse the repository at this point in the history
style settings tables
  • Loading branch information
larinam committed Aug 23, 2024
1 parent 64c4653 commit eb8d877
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/CalendarComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
width: 100%;
background-color: white;
z-index: 1000;
padding: 10px;
padding: 7px;
}

/* Additional styles to ensure other elements (like buttons or icons) are properly aligned */
Expand Down Expand Up @@ -36,7 +36,7 @@
position: absolute;
left: 0;
right: 0;
bottom: -10px; /* Adjust based on your design */
bottom: -13px;
height: 20px; /* Height of the gradient effect */
background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/MonthSelector.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.monthSelector {
margin: 0px 10px;
justify-content: left;
display: inline-flex;
align-items: center;
}

.monthDisplay {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/settings/DayTypes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const DayTypes = () => {
return (
<div className="settingsDayTypesContainer">
<h2>Day Types Settings</h2>
<table>
<table className="settingsTable">
<thead>
<tr>
<th>Name</th>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/settings/InviteManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const InviteManagement = ({ refreshTrigger }) => {
return (
<div className="inviteManagementContainer">
<h3>Not accepted Invites</h3>
<table>
<table className="settingsTable">
<thead>
<tr>
<th>Email</th>
Expand Down
28 changes: 28 additions & 0 deletions frontend/src/components/settings/SettingsComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,31 @@
.closeButton {
margin: 10px 0 10px 0;
}

/*Table styles*/
.settingsTable {
width: 100%;
border-collapse: collapse;
margin-bottom: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
color: #24292f;
font-size: 14px;
line-height: 20px;
}

.settingsTable th,
.settingsTable td {
padding: 8px 16px;
text-align: left;
vertical-align: top;
border: 1px solid #d0d7de;
}

.settingsTable th {
background-color: #f6f8fa;
font-weight: 600;
}

.settingsTable tbody tr:hover {
background-color: #f6f8fa;
}
2 changes: 1 addition & 1 deletion frontend/src/components/settings/UserManagement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const UserManagement = () => {
<div className="userManagementButtons">
<button onClick={handleInviteUserClick}>Invite User</button>
</div>
<table>
<table className="settingsTable">
<thead>
<tr>
<th>Name</th>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ button {
border-radius: 6px;
border: none;
cursor: pointer;
padding: 3px;
padding: 6px;
margin: 10px;
}

Expand Down

0 comments on commit eb8d877

Please sign in to comment.