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

251 lines
3.8 KiB
SCSS
Raw Normal View History

2021-02-22 17:27:13 +05:30
.project-last-commit {
min-height: 4.75rem;
}
2014-09-02 18:07:02 +05:30
.tree-holder {
2017-09-10 17:25:29 +05:30
.nav-block {
2020-01-01 13:55:28 +05:30
margin: 16px 0;
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
.btn svg {
color: $gl-text-color-secondary;
}
2021-09-04 01:27:46 +05:30
.tree-ref-holder {
margin-right: 15px;
}
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;
.control {
float: left;
2021-04-29 21:17:54 +05:30
margin-left: 8px;
2017-09-10 17:25:29 +05:30
}
}
.tree-ref-holder {
float: left;
}
.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) {
2021-09-04 01:27:46 +05:30
.tree-ref-container {
justify-content: space-between;
}
2017-09-10 17:25:29 +05:30
.repo-breadcrumb {
position: relative;
.dropdown-menu {
left: inherit;
right: 0;
}
}
.add-to-tree-dropdown {
position: absolute;
left: 0;
right: 0;
}
.tree-controls {
margin-bottom: 10px;
2021-01-29 00:20:46 +05:30
.btn:not(.dropdown-toggle-split),
2017-09-10 17:25:29 +05:30
.dropdown,
.btn-group {
width: 100%;
}
.btn {
2021-02-22 17:27:13 +05:30
margin-top: 10px;
2017-09-10 17:25:29 +05:30
}
}
}
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;
2019-02-15 15:39:39 +05:30
&:last-of-type {
2020-04-22 19:07:51 +05:30
border-bottom-color: $white;
2019-02-15 15:39:39 +05:30
}
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
}
2019-02-15 15:39:39 +05:30
th {
2021-03-11 19:13:27 +05:30
border: 0;
2019-02-15 15:39:39 +05:30
}
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;
2020-04-22 19:07:51 +05:30
background-clip: padding-box;
2018-11-20 20:47:30 +05:30
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;
2020-04-22 19:07:51 +05:30
border-top: 1px solid $border-white-normal;
border-bottom: 1px solid $border-white-normal;
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
}
2018-03-17 18:26:18 +05:30
.tree-truncated-warning {
color: $orange-600;
2020-11-24 15:15:51 +05:30
background-color: $orange-50;
2018-03-17 18:26:18 +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;
}
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;
}
}
}