Skip to content

Commit

Permalink
Calendar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Polyarus committed Mar 5, 2024
1 parent 1a19777 commit 11c412c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 13 deletions.
61 changes: 49 additions & 12 deletions assets/plugins/github-calendar/dist/github-calendar-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,45 @@
--color-calendar-graph-day-L4-bg: #0a4208;
}

rect.ContributionCalendar-day[data-level='0'] {
fill: var(--color-calendar-graph-day-bg);
.ContributionCalendar-day[data-level='0'] {
background-color: var(--color-calendar-graph-day-bg);
}

rect.ContributionCalendar-day[data-level='1'] {
fill: var(--color-calendar-graph-day-L1-bg);
.ContributionCalendar-day[data-level='1'] {
background-color: var(--color-calendar-graph-day-L1-bg);
}

rect.ContributionCalendar-day[data-level='2'] {
fill: var(--color-calendar-graph-day-L2-bg);
.ContributionCalendar-day[data-level='2'] {
background-color: var(--color-calendar-graph-day-L2-bg);
}

rect.ContributionCalendar-day[data-level='3'] {
fill: var(--color-calendar-graph-day-L3-bg);
.ContributionCalendar-day[data-level='3'] {
background-color: var(--color-calendar-graph-day-L3-bg);
}

rect.ContributionCalendar-day[data-level='4'] {
fill: var(--color-calendar-graph-day-L4-bg);
.ContributionCalendar-day[data-level='4'] {
background-color: var(--color-calendar-graph-day-L4-bg);
}

table.ContributionCalendar-grid {
margin-bottom: 0pt;
}

table.ContributionCalendar-grid td {
padding: 4pt;
}

table.ContributionCalendar-grid td span.sr-only {
display: none;
}

td.ContributionCalendar-label span[aria-hidden='true'] {
font-size: 8pt;
left: -1pt;
}

tool-tip {
display: none;
}

.calendar .width-full > .float-left {
Expand All @@ -45,14 +66,18 @@ rect.ContributionCalendar-day[data-level='4'] {
fill: #aaa;
}

.contrib-legend {
div.px-md-5 {
height: 2rem;
}

div.float-right {
text-align: right;
padding: 0 14px 10px 0;
display: inline-block;
float: right;
}

.contrib-legend .legend {
div.float-right div {
display: inline-block;
list-style: none;
margin: 0 5px;
Expand All @@ -61,6 +86,10 @@ rect.ContributionCalendar-day[data-level='4'] {
padding: 0;
}

div.float-right span.sr-only {
display: none;
}

.contrib-legend .legend li {
display: inline-block;
width: 10px;
Expand Down Expand Up @@ -90,6 +119,7 @@ rect.ContributionCalendar-day[data-level='4'] {
}

.table-column {
box-sizing: border-box;
display: table-cell;
width: 1%;
padding-right: 10px;
Expand Down Expand Up @@ -192,3 +222,10 @@ text.ContributionCalendar-label {
fill: #ccc;
font-size: 11px;
}

@media screen and (max-width: 768px) {
.table-column {
display: block;
width: 100%;
}
}
Loading

0 comments on commit 11c412c

Please sign in to comment.