gitlab-org--gitlab-foss/app/assets/stylesheets/pages/tree.scss

197 lines
3 KiB
SCSS
Raw Normal View History

2012-10-02 03:26:24 -04:00
.tree-holder {
> .nav-block {
margin: 11px 0;
}
.file-finder {
width: 50%;
.file-finder-input {
width: 95%;
display: inline-block;
}
}
2016-08-23 17:28:21 -04:00
.add-to-tree {
vertical-align: top;
padding: 6px 10px;
2016-08-23 17:28:21 -04:00
}
2012-10-02 03:26:24 -04:00
.tree-table {
margin-bottom: 0;
tr {
2016-12-12 17:26:21 -05:00
border-bottom: 1px solid $white-normal;
border-top: 1px solid $white-normal;
2016-06-01 15:46:30 -04:00
td,
th {
line-height: 21px;
}
.last-commit {
@include str-truncated(506px);
2016-10-24 15:23:40 -04:00
.fa-angle-right {
margin-left: 5px;
}
2016-12-01 00:42:16 -05:00
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
@include str-truncated(450px);
}
2016-10-24 15:23:40 -04:00
}
.commit-history-link-spacer {
margin: 0 10px;
2016-12-12 17:26:21 -05:00
color: $white-normal;
}
2012-09-03 14:53:16 -04:00
&:hover {
td {
2016-06-01 15:46:30 -04:00
background-color: $row-hover;
border-top: 1px solid $row-hover-border;
border-bottom: 1px solid $row-hover-border;
cursor: pointer;
2012-09-03 14:53:16 -04:00
}
2012-04-07 10:30:00 -04:00
}
2016-06-01 15:46:30 -04:00
&.selected {
td {
2016-12-12 17:26:21 -05:00
background: $white-normal;
border-top: 1px solid $border-gray-dark;
border-bottom: 1px solid $border-gray-dark;
}
}
2012-02-11 16:22:33 -05:00
}
2012-04-07 10:30:00 -04:00
}
2012-01-29 05:45:51 -05:00
2012-09-03 14:53:16 -04:00
.tree-item {
2016-09-09 12:26:33 -04:00
.link-container {
padding: 0;
a {
padding: 10px $gl-padding;
display: block;
}
}
2012-09-03 14:53:16 -04:00
.tree-item-file-name {
max-width: 320px;
vertical-align: middle;
i,
a {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
2012-09-03 14:53:16 -04:00
img {
position: relative;
top: -1px;
}
2012-01-29 05:45:51 -05:00
}
.tree_commit {
max-width: 320px;
.str-truncated {
max-width: 100%;
}
}
.tree_time_ago {
min-width: 135px;
}
2012-01-29 05:04:09 -05:00
}
2012-02-12 12:47:37 -05:00
2012-10-18 14:53:35 -04:00
.tree_author {
padding-right: 8px;
.commit-author-name {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
2012-02-12 12:47:37 -05:00
}
2012-02-14 16:48:42 -05:00
.tree-time-ago {
min-width: 135px;
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
}
.tree-commit {
max-width: 320px;
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2012-10-18 14:53:35 -04:00
.tree-commit-link {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2015-03-10 03:51:16 -04:00
2012-10-18 14:53:35 -04:00
&:hover {
text-decoration: underline;
}
}
}
2012-02-20 14:38:59 -05:00
}
2013-03-14 13:50:57 -04:00
.tree-ref-holder {
float: left;
margin-right: 15px;
}
.blob-commit-info {
list-style: none;
margin: 0;
padding: 0;
}
.blob-content-holder {
margin-top: $gl-padding;
}
.blob-upload-dropzone-previews {
text-align: center;
border: 2px;
border-style: dashed;
border-color: $border-color;
min-height: 200px;
}
.upload-link {
font-weight: normal;
color: $md-link-color;
}
.tree-controls {
float: right;
2017-02-14 12:46:36 -05:00
position: relative;
z-index: 2;
.project-action-button {
margin-left: $btn-side-margin;
}
}
.repo-charts {
.sub-header {
margin: 20px 0;
}
.sub-header-block.border-top {
margin-top: 20px;
padding: 0;
border-top: 1px solid $white-dark;
border-bottom: none;
}
.commit-stats li {
font-size: 16px;
}
.tree-ref-header {
margin-bottom: 20px;
h4 {
margin: 0;
line-height: 36px;
}
}
}