michal/tit

Browse tree · Show commit · Download archive

Blob: assets/style.css

Raw · Blame

:root {
  color-scheme: light dark;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  line-height: 1.5;
  background: Canvas;
  color: CanvasText;
}

* {
  box-sizing: border-box;
}

body {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid GrayText;
}

.brand {
  color: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  min-height: 65vh;
  padding: 2rem 0;
}

footer {
  padding: 1rem 0;
  border-top: 1px solid GrayText;
}

form {
  max-width: 32rem;
}

details {
  margin-block: 1.5rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.repository-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.repository-header h1 {
  margin-block: 0.5rem;
}

.repository-header nav {
  justify-content: flex-end;
  font-size: 0.875rem;
}

.repository-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-block: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.repository-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(23rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.repository-summary-main > section,
.repository-sidebar > section {
  margin-bottom: 2rem;
}

.repository-panel {
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.repository-panel > h2:first-child {
  margin-top: 0;
}

.repository-file-panel {
  padding: 0;
  overflow: hidden;
}

.repository-file-panel > h2 {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid GrayText;
}

.repository-file-panel th,
.repository-file-panel td {
  padding: 0.6rem 1rem;
}

.repository-file-panel tbody tr:last-child > * {
  border-bottom: 0;
}

.repository-file-list th:first-child {
  width: 100%;
}

.repository-sidebar dd {
  overflow-x: auto;
  overflow-wrap: normal;
  white-space: nowrap;
}

.repository-recent-list {
  padding-left: 1.5rem;
}

.repository-recent-list li {
  margin-block: 0.5rem;
}

.repository-readme {
  margin-block: 2rem;
}

.site-header nav,
.repository-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.25rem 1rem;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

th,
td {
  padding: 0.4rem;
  border-bottom: 1px solid GrayText;
  text-align: left;
  vertical-align: top;
}

pre {
  max-width: 100%;
  padding: 1rem;
  overflow: auto;
  border: 0.125rem solid GrayText;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.commit-list code,
.blame-list code {
  overflow-wrap: anywhere;
}

.field {
  margin-block: 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

input,
textarea,
select,
button {
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
  background: Canvas;
  color: CanvasText;
  font: inherit;
}

input {
  width: 100%;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

textarea {
  width: 100%;
  resize: vertical;
}

button {
  cursor: pointer;
  font-weight: 700;
}

a {
  color: LinkText;
}

:focus-visible {
  outline: 0.2rem solid Highlight;
  outline-offset: 0.2rem;
}

.error {
  padding: 0.75rem;
  border-left: 0.25rem solid #b42318;
}

.comment-card {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.comment-card > h3 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid GrayText;
}

.key-list {
  padding: 0;
  list-style: none;
}

.key-card {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.key-card > h3 {
  margin-top: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: start;
}

.profile-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 44rem) {
  .two-column,
  .repository-summary-layout {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.confirmation {
  margin-block: 0.75rem;
  border: 1px solid GrayText;
}

.confirmation label {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 400;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: 0.5rem;
  background: Canvas;
}