@import "base"; .filter-repos { .btn { height: 1.9rem; } } .repo-nav { margin-left: 1rem; } .header-extension { margin-top: -1rem; margin-bottom: 1rem; background: #ddd; } pre { padding-left: 0; padding-right: 0; background: transparent; } .tree-list { display: grid; // mode name grid-template-columns: auto 1fr fit-content(40em) auto auto; svg { color: #777; } .size { text-align: right; } .name.blob a { color: $gray-900; } .name.blob { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .mode, .commit, .commit a, .date, .size { color: $gray-700; } .commit { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } & > div { padding: 0.1rem 0.5rem; background: transparent; &.id { text-align: right; } &.comments { text-align: center; } @for $i from 1 through 5 { &:nth-child(5n+#{$i}) { grid-column-start: $i; } // Striped rows &:nth-child(10n+#{$i}) { background: rgba(0,0,0,.05); } } } } .code-view { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto; .lines { grid-column-start: 1; grid-row-start: 1; border-right: 1px solid #444; text-align: right; padding-left: 0.5rem; padding-right: 0.5rem; background: #eee; a:target::before, a.selected::before { display: block; content: ""; // +3px to connect multiple selected lines height: calc(1rem + 3px); width: 100%; z-index: -1; position: absolute; background: lighten($blue, 35); } } .highlight { grid-column-start: 2; grid-row-start: 1; padding-left: 1rem; background: transparent; overflow-x: hidden; pre { background: transparent; } } .ruler { background: transparent; grid-column-start: 2; grid-row-start: 1; display: block; padding-left: calc(1rem + 4px); height: 100%; pointer-events: none; pre { background: transparent; } & > span { height: 100%; display: inline-block; border-right: 1px solid $gray-200; } } } .ref { border-width: 1px; border-style: solid; padding: 0.1rem 0.2rem; &.branch { border-color: darken($info, 20); background: $info; color: $white; } &.tag { border-color: darken($primary, 20); background: $primary; color: $white; } &.tag.annotated { border-color: darken($success, 20); background: $success; color: $white; } } .diff { .text-danger { color: darken($danger, 10) !important; } .text-success { color: darken($success, 10) !important; } } img { max-width: 100%; }