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

272 lines
4.1 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.tree-holder {
2017-09-10 17:25:29 +05:30
.nav-block {
margin: 10px 0;
2018-03-17 18:26:18 +05:30
.btn .fa,
.btn svg {
color: $gl-text-color-secondary;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-09-10 17:25:29 +05:30
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;
}
}
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-09-10 17:25:29 +05:30
.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 {
2018-03-17 18:26:18 +05:30
vertical-align: top;
padding: 8px;
svg {
top: 0;
}
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;
2018-12-23 12:14:25 +05:30
&:last-of-type {
border-bottom-color: $white-light;
}
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
}
2018-12-23 12:14:25 +05:30
th {
border-top-color: $gray-light;
}
td {
border-color: $border-color;
}
2018-03-17 18:26:18 +05:30
&:hover:not(.tree-truncated-warning) {
2014-09-02 18:07:02 +05:30
td {
2018-11-20 20:47:30 +05:30
background-color: $blue-50;
border-top: 1px solid $blue-200;
border-bottom: 1px solid $blue-200;
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
}
}
2018-03-17 18:26:18 +05:30
.tree-item-file-external-link {
margin-right: 4px;
span {
text-decoration: inherit;
}
}
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
}
2018-03-17 18:26:18 +05:30
.tree-truncated-warning {
color: $orange-600;
background-color: $orange-100;
}
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 {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2018-11-20 20:47:30 +05:30
color: $blue-600;
2015-09-25 12:07:36 +05:30
}
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;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
2017-08-17 22:00:37 +05:30
}
.commit-stats li {
font-size: 16px;
}
.tree-ref-header {
margin-bottom: 20px;
h4 {
margin: 0;
line-height: 36px;
}
}
}