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

260 lines
3.9 KiB
SCSS
Raw Normal View History

2012-10-02 03:26:24 -04:00
.tree-holder {
2017-06-22 04:19:04 -04:00
.nav-block {
margin: 10px 0;
.btn .fa,
.btn svg {
color: $gl-text-color-secondary;
}
2018-04-09 11:26:28 -04:00
@include media-breakpoint-up(sm) {
2017-06-22 04:19:04 -04:00
display: flex;
.tree-ref-container {
flex: 1;
}
.tree-controls {
text-align: right;
.btn-group {
margin-left: 10px;
}
.control {
float: left;
margin-left: 10px;
}
2017-06-22 04:19:04 -04:00
}
.tree-ref-holder {
float: left;
margin-right: 15px;
}
.tree-ref-target-holder {
display: inline-block;
}
2017-06-22 04:19:04 -04:00
.repo-breadcrumb {
li:last-of-type {
position: relative;
}
}
}
}
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
2017-06-22 04:19:04 -04:00
.repo-breadcrumb {
margin-top: 10px;
position: relative;
.dropdown-menu {
min-width: 100%;
width: 100%;
left: inherit;
right: 0;
}
}
.add-to-tree-dropdown {
position: absolute;
left: 0;
right: 0;
}
.tree-controls {
margin-bottom: 10px;
.btn,
.dropdown,
.btn-group {
width: 100%;
}
.btn {
margin: 10px 0 0;
}
}
}
.file-finder {
max-width: 500px;
width: 100%;
.file-finder-input {
width: 95%;
display: inline-block;
}
}
2016-08-23 17:28:21 -04:00
.add-to-tree {
vertical-align: top;
padding: 8px;
svg {
top: 0;
}
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;
}
&:hover:not(.tree-truncated-warning) {
2012-09-03 14:53:16 -04:00
td {
background-color: $blue-50;
border-top: 1px solid $blue-200;
border-bottom: 1px solid $blue-200;
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-item-file-external-link {
margin-right: 4px;
span {
text-decoration: inherit;
}
}
.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-truncated-warning {
color: $orange-600;
background-color: $orange-100;
}
.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
}
.blob-commit-info {
list-style: none;
margin: 0;
padding: 0;
}
.blob-content-holder {
margin-top: $gl-padding;
}
.blob-upload-dropzone-previews {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
border: 2px;
border-style: dashed;
border-color: $border-color;
min-height: 200px;
}
.upload-link {
font-weight: $gl-font-weight-normal;
color: $blue-600;
}
.repo-charts {
.sub-header {
margin: 20px 0;
}
.sub-header-block.border-top {
margin-top: 20px;
padding: 0;
border-top: 1px solid $white-dark;
2017-11-02 19:59:51 -04:00
border-bottom: 0;
}
.commit-stats li {
font-size: 16px;
}
.tree-ref-header {
margin-bottom: 20px;
h4 {
margin: 0;
line-height: 36px;
}
}
}