aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scss/tree.scss94
1 files changed, 49 insertions, 45 deletions
diff --git a/scss/tree.scss b/scss/tree.scss
index c951fc1..05828dc 100644
--- a/scss/tree.scss
+++ b/scss/tree.scss
@@ -1,4 +1,4 @@
-// This code includes software originally developed by Dustin Sallings.
+// This code includes software originally developed by Drew DeVault.
//
// Copyright 2017 Drew DeVault <sir@cmpwn.com>
//
@@ -28,60 +28,64 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.tree-list {
- display: grid;
- // mode name
- grid-template-columns: auto 1fr fit-content(40em) auto auto;
- font-family: $font-family-monospace;
+ display: grid;
+ // mode name
+ grid-template-columns: auto 1fr fit-content(40em) auto auto;
+ font-family: $font-family-monospace;
- svg {
- color: #777;
- }
+ svg {
+ color: #777;
+ }
- .size {
- text-align: right;
- }
+ .size {
+ text-align: right;
+ }
- .name.blob a {
- color: $gray-900;
- }
+ .name.blob a {
+ color: $gray-900;
+ }
- .mode, .commit, .commit a, .date, .size {
- color: $gray-700;
- }
+ .mode,
+ .commit,
+ .commit a,
+ .date,
+ .size {
+ color: $gray-700;
+ }
- .name.blob {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
+ .name.blob {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
- .commit {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
+ .commit {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+ }
- & > div {
- padding: 0.1rem 0.5rem;
- background: transparent;
+ &>div {
+ padding: 0.1rem 0.5rem;
+ background: transparent;
- &.id {
- text-align: right;
- }
+ &.id {
+ text-align: right;
+ }
- &.comments {
- text-align: center;
- }
+ &.comments {
+ text-align: center;
+ }
- @for $i from 1 through 5 {
- &:nth-child(5n+#{$i}) {
- grid-column-start: $i;
- }
+ @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);
- }
+ // Striped rows
+ &:nth-child(10n+#{$i}) {
+ background: rgba(0, 0, 0, .05);
+ }
+ }
}
- }
}