Skip to content

Instantly share code, notes, and snippets.

@andrei0x309
Created March 5, 2023 00:33
Show Gist options
  • Save andrei0x309/66e683941c15f3cf6a1c90f5625d0b1a to your computer and use it in GitHub Desktop.
Save andrei0x309/66e683941c15f3cf6a1c90f5625d0b1a to your computer and use it in GitHub Desktop.
CSS For GitHub contibution table
.github-contributions {
--color-workflow-card-connector: var(--color-scale-gray-5);
--color-workflow-card-connector-bg: var(--color-scale-gray-5);
--color-workflow-card-connector-inactive: var(--color-border-default);
--color-workflow-card-connector-inactive-bg: var(--color-border-default);
--color-workflow-card-connector-highlight: var(--color-scale-blue-5);
--color-workflow-card-connector-highlight-bg: var(--color-scale-blue-5);
--color-workflow-card-bg: var(--color-scale-gray-7);
--color-workflow-card-inactive-bg: var(--color-canvas-inset);
--color-workflow-card-header-shadow: rgba(27, 31, 35, 0.04);
--color-workflow-card-progress-complete-bg: var(--color-scale-blue-5);
--color-workflow-card-progress-incomplete-bg: var(--color-scale-gray-6);
--color-discussions-state-answered-icon: var(--color-scale-green-3);
--color-bg-discussions-row-emoji-box: var(--color-scale-gray-6);
--color-notifications-button-text: var(--color-scale-white);
--color-notifications-button-hover-text: var(--color-scale-white);
--color-notifications-button-hover-bg: var(--color-scale-blue-4);
--color-notifications-row-read-bg: var(--color-canvas-default);
--color-notifications-row-bg: var(--color-canvas-subtle);
--color-icon-directory: var(--color-fg-muted);
--color-checks-step-error-icon: var(--color-scale-red-4);
--color-calendar-halloween-graph-day-L1-bg: #631c03;
--color-calendar-halloween-graph-day-L2-bg: #bd561d;
--color-calendar-halloween-graph-day-L3-bg: #fa7a18;
--color-calendar-halloween-graph-day-L4-bg: #fddf68;
--color-calendar-winter-graph-day-L1-bg: #0A3069;
--color-calendar-winter-graph-day-L2-bg: #0969DA;
--color-calendar-winter-graph-day-L3-bg: #54AEFF;
--color-calendar-winter-graph-day-L4-bg: #B6E3FF;
--color-calendar-graph-day-bg: #161b22;
--color-calendar-graph-day-border: rgba(27, 31, 35, 0.06);
// --color-calendar-graph-day-L1-bg: #0e4429;
// --color-calendar-graph-day-L2-bg: #006d32;
// --color-calendar-graph-day-L3-bg: #26a641;
// --color-calendar-graph-day-L4-bg: #39d353;
--color-calendar-graph-day-L1-bg: #0A3069;
--color-calendar-graph-day-L2-bg: #0969DA;
--color-calendar-graph-day-L3-bg: #54AEFF;
--color-calendar-graph-day-L4-bg: #B6E3FF;
--color-calendar-graph-day-L1-border: rgba(255, 255, 255, 0.05);
--color-calendar-graph-day-L2-border: rgba(255, 255, 255, 0.05);
--color-calendar-graph-day-L3-border: rgba(255, 255, 255, 0.05);
--color-calendar-graph-day-L4-border: rgba(255, 255, 255, 0.05);
--color-user-mention-fg: var(--color-scale-yellow-0);
--color-user-mention-bg: var(--color-scale-yellow-8);
--color-text-white: var(--color-scale-white);
--color-calendar-graph-day-bg: #161b22;
width: 94%;
.position-relative {
position: relative;
}
.float-right {
float: right;
}
.f4 {
font-size: 1.1rem;
}
.mb-2 {
margin-bottom: var(--base-size-8, 8px);
}
.d-flex {
display: flex;
}
.height-full {
height: 100% ;
}
.overflow-hidden {
overflow: hidden;
}
.flex-items-end {
align-items: flex-end;
}
.flex-column {
flex-direction: column;
}
svg:not(:root) {
overflow: hidden;
}
.ContributionCalendar-day, .ContributionCalendar-day[data-level="0"] {
fill: var(--color-calendar-graph-day-bg);
shape-rendering: geometricPrecision;
background-color: var(--color-calendar-graph-day-bg);
border-radius: 2px;
outline: 1px solid var(--color-calendar-graph-day-border);
outline-offset: -1px;
}
.ContributionCalendar-label {
padding: 0.125em 0.5em 0.125em 0;
font-size: 12px;
font-weight: var(--base-text-weight-normal, 400);
color: var(--color-fg-default);
text-align: left;
fill: var(--color-fg-default);
}
.ContributionCalendar-day, .ContributionCalendar-day[data-level="0"] {
fill: var(--color-calendar-graph-day-bg);
shape-rendering: geometricPrecision;
background-color: var(--color-calendar-graph-day-bg);
border-radius: 2px;
outline: 1px solid var(--color-calendar-graph-day-border);
outline-offset: -1px;
}
.ContributionCalendar-day[data-level="1"] {
fill: var(--color-calendar-graph-day-L1-bg);
background-color: var(--color-calendar-graph-day-L1-bg);
outline: 1px solid var(--color-calendar-graph-day-L1-border);
}
.ContributionCalendar-day[data-level="2"] {
fill: var(--color-calendar-graph-day-L2-bg);
background-color: var(--color-calendar-graph-day-L2-bg);
outline: 1px solid var(--color-calendar-graph-day-L2-border);
}
.ContributionCalendar-day[data-level="3"] {
fill: var(--color-calendar-graph-day-L3-bg);
background-color: var(--color-calendar-graph-day-L3-bg);
outline: 1px solid var(--color-calendar-graph-day-L3-border);
}
.ContributionCalendar-day[data-level="4"] {
fill: var(--color-calendar-graph-day-L4-bg);
background-color: var(--color-calendar-graph-day-L4-bg);
outline: 1px solid var(--color-calendar-graph-day-L4-border);
}
.f6 {
font-size: 0.875rem;
}
.width-full {
width: 100%;
}
.d-inline-block {
display: inline-block;
}
.flex-wrap {
flex-wrap: wrap;
}
.css-truncate .css-truncate-target, .css-truncate.css-truncate-target {
display: inline-block;
max-width: 125px;
vertical-align: top;
}
.css-truncate .css-truncate-overflow, .css-truncate .css-truncate-target, .css-truncate.css-truncate-overflow, .css-truncate.css-truncate-target {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.subnav-item:first-child {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
.rounded-2 {
border-radius: var(--primer-borderRadius-medium, 6px) !important;
}
.subnav-item {
position: relative;
float: left;
padding: 5px 16px;
font-weight: var(--base-text-weight-medium, 500);
line-height: 20px;
color: var(--color-fg-default);
border: 1px solid var(--color-border-default);
}
a {
color: var(--color-accent-fg);
text-decoration: none;
}
a {
background-color: transparent;
}
.subnav::before {
display: table;
content: "";
}
.avatar {
background-color: var(--color-avatar-bg);
border-radius: var(--primer-borderRadius-medium, 6px);
box-shadow: 0 0 0 1px var(--color-avatar-border);
display: inline-block;
flex-shrink: 0;
line-height: 1;
overflow: hidden;
vertical-align: middle;
}
.mr-1 {
margin-right: var(--base-size-4, 4px) !important;
}
img {
border-style: none;
}
.text-normal {
font-weight: var(--base-text-weight-normal, 400) !important;
}
.mb-3 {
margin-bottom: var(--base-size-16, 16px) !important;
}
h5 {
font-size: var(--h5-size, 14px);
font-weight: var(--base-text-weight-semibold, 600);
}
.wb-break-word {
word-break: break-word !important;
word-wrap: break-word !important;
overflow-wrap: break-word !important;
}
.float-left {
float: left !important;
}
div.activity-overview-box {
font-size: 0.9rem;
width: 90%;
margin-left:auto;
margin-right:auto;
margin-top: -1.2rem;
}
.pr-lg-5 {
margin-top: -1rem;
margin-bottom: 1.3rem;
margin-left:auto;
margin-right:auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment