debian-mirror-gitlab/app/assets/stylesheets/pages/tree.scss

263 lines
4 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.tree-holder {
2017-09-10 17:25:29 +05:30
@include new-style-dropdown;
.nav-block {
margin: 10px 0;
@media (min-width: $screen-sm-min) {
display: flex;
.tree-ref-container {
flex: 1;
}
.tree-controls {
text-align: right;
.btn-group {
margin-left: 10px;
}
.control {
float: left;
margin-left: 10px;
}
}
.tree-ref-holder {
float: left;
margin-right: 15px;
}
.tree-ref-target-holder {
display: inline-block;
}
.repo-breadcrumb {
li:last-of-type {
position: relative;
}
}
.add-to-tree-dropdown {
position: absolute;
left: 18px;
}
}
}
@media (max-width: $screen-xs-max) {
.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;
}
}
}
2014-09-02 18:07:02 +05:30
.file-finder {
2017-09-10 17:25:29 +05:30
max-width: 500px;
width: 100%;
2016-11-03 12:29:30 +05:30
.file-finder-input {
width: 95%;
display: inline-block;
}
}
2016-09-29 09:46:39 +05:30
.add-to-tree {
2017-09-10 17:25:29 +05:30
vertical-align: middle;
2017-08-17 22:00:37 +05:30
padding: 6px 10px;
2016-09-29 09:46:39 +05:30
}
2014-09-02 18:07:02 +05:30
.tree-table {
2015-10-24 18:46:33 +05:30
margin-bottom: 0;
2014-09-02 18:07:02 +05:30
tr {
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $white-normal;
border-top: 1px solid $white-normal;
2017-08-17 22:00:37 +05:30
td,
th {
2016-09-13 17:45:13 +05:30
line-height: 21px;
2015-10-24 18:46:33 +05:30
}
2016-09-29 09:46:39 +05:30
.last-commit {
2016-11-03 12:29:30 +05:30
@include str-truncated(506px);
2017-08-17 22:00:37 +05:30
.fa-angle-right {
margin-left: 5px;
}
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
2016-11-03 12:29:30 +05:30
@include str-truncated(450px);
}
2017-08-17 22:00:37 +05:30
2016-09-29 09:46:39 +05:30
}
.commit-history-link-spacer {
margin: 0 10px;
2017-08-17 22:00:37 +05:30
color: $white-normal;
2016-09-29 09:46:39 +05:30
}
2014-09-02 18:07:02 +05:30
&:hover {
td {
background-color: $row-hover;
border-top: 1px solid $row-hover-border;
border-bottom: 1px solid $row-hover-border;
2016-08-24 12:49:21 +05:30
cursor: pointer;
2014-09-02 18:07:02 +05:30
}
}
2014-09-02 18:07:02 +05:30
&.selected {
td {
2017-08-17 22:00:37 +05:30
background: $white-normal;
2015-10-24 18:46:33 +05:30
border-top: 1px solid $border-gray-dark;
border-bottom: 1px solid $border-gray-dark;
2014-09-02 18:07:02 +05:30
}
}
}
}
.tree-item {
2016-11-03 12:29:30 +05:30
.link-container {
padding: 0;
a {
padding: 10px $gl-padding;
display: block;
}
}
2014-09-02 18:07:02 +05:30
.tree-item-file-name {
max-width: 320px;
vertical-align: middle;
2017-08-17 22:00:37 +05:30
i,
a {
color: $gl-text-color;
2014-09-02 18:07:02 +05:30
}
img {
position: relative;
2016-06-02 11:05:42 +05:30
top: -1px;
2014-09-02 18:07:02 +05:30
}
}
.tree_commit {
max-width: 320px;
2016-09-13 17:45:13 +05:30
.str-truncated {
max-width: 100%;
}
2014-09-02 18:07:02 +05:30
}
.tree_time_ago {
min-width: 135px;
}
}
.tree_author {
padding-right: 8px;
2015-04-26 12:48:37 +05:30
.commit-author-name {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2015-04-26 12:48:37 +05:30
}
2014-09-02 18:07:02 +05:30
}
2016-09-29 09:46:39 +05:30
.tree-time-ago {
min-width: 135px;
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2016-09-29 09:46:39 +05:30
}
.tree-commit {
max-width: 320px;
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2014-09-02 18:07:02 +05:30
.tree-commit-link {
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2015-04-26 12:48:37 +05:30
2014-09-02 18:07:02 +05:30
&:hover {
text-decoration: underline;
}
}
}
}
.blob-commit-info {
list-style: none;
margin: 0;
2017-09-10 17:25:29 +05:30
padding: 0;
}
.blob-content-holder {
margin-top: $gl-padding;
2014-09-02 18:07:02 +05:30
}
2015-09-25 12:07:36 +05:30
.blob-upload-dropzone-previews {
2017-09-10 17:25:29 +05:30
display: flex;
justify-content: center;
align-items: center;
2015-09-25 12:07:36 +05:30
text-align: center;
border: 2px;
border-style: dashed;
border-color: $border-color;
min-height: 200px;
}
.upload-link {
font-weight: normal;
color: $md-link-color;
}
2017-08-17 22:00:37 +05:30
.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;
}
}
}