Skip to content

Commit d41319c

Browse files
committed
docs: commented contribution_map.scss for better code readabliity.
1 parent 843d8d8 commit d41319c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/contribution_map/contribution_map.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
}
1818

1919
.contribution-map-container {
20-
width: 80%; /* Set width to 80% for consistent margin with the rest of the components */
21-
margin: 0 auto;
20+
width: 80%; /* Keep the width consistent with other components */
21+
margin: 0 auto; /* Center the entire container */
2222
padding: 20px 0;
2323
color: #fff;
2424
font-family: 'RobotoMono', sans-serif;
@@ -27,7 +27,7 @@
2727
margin-top: 40px;
2828
display: flex;
2929
flex-direction: column;
30-
align-items: center; /* Center everything except the header */
30+
align-items: center; /* Center all content except the header */
3131
color: #fff;
3232

3333
h2 {
@@ -36,21 +36,21 @@
3636
color: #fff;
3737
font-family: 'RobotoMono', sans-serif;
3838
text-align: left;
39-
align-self: flex-start; /* Keep the header aligned to the left */
39+
align-self: flex-start; /* Ensure the header stays aligned to the left */
4040
width: 100%;
4141
}
4242

4343
.react-github-calendar {
44-
width: 100%;
44+
width: 100%; /* Make the contribution graph take up full width */
4545
display: flex;
46-
justify-content: center; /* Center the contribution graph */
47-
overflow-x: auto; /* Allows horizontal scroll if the graph overflows */
46+
justify-content: center; /* Center the contribution graph itself */
47+
overflow-x: auto; /* Enable horizontal scrolling if content overflows */
4848
}
4949

5050
.calendar-wrapper {
51-
width: 100%;
51+
width: 100%; /* The graph wrapper takes the full width */
5252
display: flex;
53-
justify-content: center; /* Center the content within the wrapper */
53+
justify-content: center; /* Center the contents inside the wrapper */
5454
}
5555
}
5656
}

0 commit comments

Comments
 (0)