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

208 lines
3.3 KiB
SCSS
Raw Normal View History

2022-11-25 23:54:43 +05:30
@import 'mixins_and_variables_and_functions';
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
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
}
2022-07-16 23:28:13 +05:30
table.tree-table {
2015-10-24 18:46:33 +05:30
margin-bottom: 0;
2014-09-02 18:07:02 +05:30
tr {
2022-11-25 23:54:43 +05:30
border-bottom: 1px solid var(--gray-50, $gray-50);
border-top: 1px solid var(--gray-50, $gray-50);
2019-02-15 15:39:39 +05:30
&:last-of-type {
2022-11-25 23:54:43 +05:30
border-bottom-color: transparent;
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 {
2022-11-25 23:54:43 +05:30
border-color: var(--border-color, $border-color);
2019-02-15 15:39:39 +05:30
}
2018-03-17 18:26:18 +05:30
&:hover:not(.tree-truncated-warning) {
2014-09-02 18:07:02 +05:30
td {
2022-11-25 23:54:43 +05:30
background-color: var(--blue-50, $blue-50);
2020-04-22 19:07:51 +05:30
background-clip: padding-box;
2022-11-25 23:54:43 +05:30
border-top: 1px solid var(--blue-200, $blue-200);
border-bottom: 1px solid var(--blue-200, $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 {
2022-11-25 23:54:43 +05:30
background: var(--gray-50, $gray-50);
border-top: 1px solid var(--border-color, $border-color);
border-bottom: 1px solid var(--border-color, $border-color);
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 {
2022-11-25 23:54:43 +05:30
color: var(--gl-text-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 {
2022-11-25 23:54:43 +05:30
color: var(--orange-600, $orange-600);
background-color: var(--orange-50, $orange-50);
2018-03-17 18:26:18 +05:30
}
2016-09-29 09:46:39 +05:30
.tree-time-ago {
min-width: 135px;
}
.tree-commit {
max-width: 320px;
2014-09-02 18:07:02 +05:30
.tree-commit-link {
&: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
}