模板:GitHubContributions/style.css

来自康健生活
.mw-gh-contributions {
  color: #24292f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.mw-gh-contributions,
.mw-gh-contributions * {
  box-sizing: border-box;
}

.mw-ghc-header {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 10px;
}

.mw-ghc-total {
  margin: 0;
  color: #24292f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.mw-ghc-year {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #59636e;
  font-size: 13px;
}

.mw-ghc-year-select {
  height: 32px;
  min-width: 92px;
  padding: 0 9px;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  color: #24292f;
  background: #fff;
  font: inherit;
}

.mw-ghc-panel {
  padding: 17px 14px 14px;
  border: 1px solid #57606a;
  border-radius: 8px;
  background: #fff;
}

.mw-ghc-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.mw-ghc-calendar {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 4px;
}

.mw-ghc-weekdays {
  display: grid;
  width: 21px;
  height: 88px;
  flex: 0 0 21px;
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
  margin-top: 20px;
  color: #24292f;
  font-size: 12px;
  line-height: 10px;
}

.mw-ghc-calendar-body {
  min-width: 0;
}

.mw-ghc-months {
  position: relative;
  display: flex;
  height: 20px;
  color: #24292f;
  font-size: 12px;
}

.mw-ghc-months span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.mw-ghc-grid {
  display: grid;
  width: max-content;
  height: 88px;
  grid-auto-columns: 10px;
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
}

.mw-ghc-cell,
.mw-ghc-legend i {
  width: 10px;
  height: 10px;
  border: 1px solid #24292f;
  border-radius: 3px;
  background: #fff;
}

.mw-ghc-cell {
  cursor: default;
}

.mw-ghc-level-0 {
  background-color: #fff;
}

.mw-ghc-level-1 {
  background-color: #aceebb;
}

.mw-ghc-level-2 {
  background-color: #4ac26b;
}

.mw-ghc-level-3 {
  background-color: #2da44e;
}

.mw-ghc-level-4 {
  background-color: #116329;
}

.mw-ghc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.mw-ghc-footer a {
  color: #59636e;
  font-size: 12px;
  text-decoration: none;
}

.mw-ghc-footer a:hover {
  color: #0969da;
  text-decoration: underline;
}

.mw-ghc-legend {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: #59636e;
  font-size: 12px;
}

.mw-ghc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 600px) {
  .mw-ghc-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mw-ghc-total {
    font-size: 14px;
  }

  .mw-ghc-year {
    font-size: 11px;
  }

  .mw-ghc-panel {
    padding: 14px 10px 12px;
  }

  .mw-ghc-weekdays {
    font-size: 10px;
  }

  .mw-ghc-footer a,
  .mw-ghc-legend {
    font-size: 10px;
  }
}