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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

671 lines
11 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.new_project,
2017-09-10 17:25:29 +05:30
.edit-project,
.import-project {
2018-11-08 19:23:39 +05:30
.form-text.text-muted {
2016-08-24 12:49:21 +05:30
margin-bottom: 10px;
}
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
.project-path .form-control {
border-radius: $border-radius-base;
}
2016-11-03 12:29:30 +05:30
2018-05-09 12:01:36 +05:30
.input-group {
> div {
&:last-child {
padding-right: 0;
}
2016-08-24 12:49:21 +05:30
}
}
2016-11-03 12:29:30 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2016-08-24 12:49:21 +05:30
.input-group > div {
&:last-child {
margin-bottom: 0;
2016-06-02 11:05:42 +05:30
}
}
2016-11-03 12:29:30 +05:30
2016-08-24 12:49:21 +05:30
fieldset > .form-group:first-child {
padding-right: 0;
}
}
2018-11-08 19:23:39 +05:30
.input-group-prepend,
.input-group-append {
2018-05-09 12:01:36 +05:30
overflow: hidden;
text-overflow: ellipsis;
line-height: unset;
width: unset;
max-width: 50%;
text-align: left;
2017-08-17 22:00:37 +05:30
2016-08-24 12:49:21 +05:30
&.static-namespace {
height: 35px;
border-radius: 3px;
2017-08-17 22:00:37 +05:30
border: 1px solid $border-color;
2018-05-09 12:01:36 +05:30
max-width: 100%;
flex-grow: 1;
2016-08-24 12:49:21 +05:30
}
2016-11-03 12:29:30 +05:30
2018-03-17 18:26:18 +05:30
+ .btn-default {
2018-05-09 12:01:36 +05:30
border-radius: 0 $border-radius-base $border-radius-base 0;
2016-08-24 12:49:21 +05:30
}
}
2016-08-24 12:49:21 +05:30
}
2015-04-26 12:48:37 +05:30
2014-09-02 18:07:02 +05:30
.save-project-loader {
margin-top: 50px;
margin-bottom: 50px;
2020-11-24 15:15:51 +05:30
color: $gray-700;
2014-09-02 18:07:02 +05:30
}
2018-10-15 14:42:47 +05:30
.deploy-key {
// Ensure that the fingerprint does not overflow on small screens
.fingerprint {
word-break: break-all;
white-space: normal;
}
.deploy-project-label,
.key-created-at {
svg {
vertical-align: text-top;
2016-06-02 11:05:42 +05:30
}
}
2018-10-15 14:42:47 +05:30
.btn svg {
vertical-align: top;
}
.key-created-at {
line-height: unset;
2016-06-02 11:05:42 +05:30
}
}
2018-10-15 14:42:47 +05:30
.deploy-project-list {
margin-bottom: -$gl-padding-4;
a.deploy-project-label {
margin-right: $gl-padding-4;
margin-bottom: $gl-padding-4;
color: $gl-text-color-secondary;
2020-06-23 00:09:42 +05:30
background-color: $gray-50;
2018-10-15 14:42:47 +05:30
line-height: $gl-btn-line-height;
2016-06-02 11:05:42 +05:30
2018-10-15 14:42:47 +05:30
&:hover {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2018-10-15 14:42:47 +05:30
}
2016-06-02 11:05:42 +05:30
}
2014-09-02 18:07:02 +05:30
}
.vs-public {
2018-11-20 20:47:30 +05:30
color: $blue-500;
2014-09-02 18:07:02 +05:30
}
.vs-internal {
2018-11-20 20:47:30 +05:30
color: $orange-500;
2014-09-02 18:07:02 +05:30
}
.vs-private {
2018-11-20 20:47:30 +05:30
color: $green-500;
2014-09-02 18:07:02 +05:30
}
2016-09-29 09:46:39 +05:30
.lfs-enabled {
2018-11-20 20:47:30 +05:30
color: $green-500;
2016-09-29 09:46:39 +05:30
}
.lfs-disabled {
2018-11-20 20:47:30 +05:30
color: $orange-500;
2016-09-29 09:46:39 +05:30
}
2014-09-02 18:07:02 +05:30
.breadcrumb.repo-breadcrumb {
2017-09-10 17:25:29 +05:30
flex: 1;
2015-09-11 14:41:01 +05:30
padding: 0;
2015-09-25 12:07:36 +05:30
background: transparent;
2018-03-17 18:26:18 +05:30
border: 0;
2023-03-17 16:20:25 +05:30
line-height: $gl-line-height-32;
2015-09-25 12:07:36 +05:30
margin: 0;
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
a {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-02 11:05:42 +05:30
}
2016-09-29 09:46:39 +05:30
.dropdown-menu {
width: 240px;
}
2014-09-02 18:07:02 +05:30
}
2015-04-26 12:48:37 +05:30
2018-03-17 18:26:18 +05:30
.project-template {
> .form-group {
margin-bottom: 0;
}
2018-11-18 11:00:15 +05:30
.tab-pane {
padding-top: 0;
padding-bottom: 0;
}
2018-03-17 18:26:18 +05:30
.template-option {
2018-11-18 11:00:15 +05:30
padding: 16px 0;
2018-03-17 18:26:18 +05:30
&:not(:first-child) {
border-top: 1px solid $border-color;
}
2018-11-08 19:23:39 +05:30
2018-11-18 11:00:15 +05:30
.controls {
margin-left: auto;
2018-11-08 19:23:39 +05:30
}
2018-03-17 18:26:18 +05:30
}
2018-11-18 11:00:15 +05:30
.choose-template {
2018-03-17 18:26:18 +05:30
input {
position: absolute;
clip: rect(0, 0, 0, 0);
}
}
.project-fields-form {
display: none;
&.selected {
display: block;
padding: $gl-padding;
}
}
.template-input-group {
2018-11-08 19:23:39 +05:30
.input-group-prepend {
2018-03-17 18:26:18 +05:30
flex: 1;
}
2016-11-03 12:29:30 +05:30
2018-11-08 19:23:39 +05:30
.input-group-text {
width: 100%;
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-03-17 18:26:18 +05:30
}
2016-11-03 12:29:30 +05:30
2018-03-17 18:26:18 +05:30
.selected-icon {
2019-03-02 22:35:43 +05:30
img {
2018-03-17 18:26:18 +05:30
display: none;
height: 20px;
width: 20px;
2016-08-24 12:49:21 +05:30
}
2015-04-26 12:48:37 +05:30
}
}
}
2018-03-17 18:26:18 +05:30
.gitlab-tab-content {
.import-project-pane {
padding-bottom: 6px;
}
}
2016-08-24 12:49:21 +05:30
.project-import {
2018-03-17 18:26:18 +05:30
.import-btn-container {
margin-bottom: 0;
}
.toggle-import-form {
padding-bottom: 10px;
2016-08-24 12:49:21 +05:30
}
.import-buttons {
padding-left: 0;
display: flex;
flex-wrap: wrap;
.btn {
2018-11-20 20:47:30 +05:30
padding: $gl-padding-8;
2017-09-10 17:25:29 +05:30
margin-right: 10px;
}
.btn-template-icon {
height: 24px;
width: inherit;
display: block;
margin: 0 auto 4px;
font-size: 24px;
2018-11-08 19:23:39 +05:30
@media (min-width: map-get($grid-breakpoints, sm)-1) {
2017-09-10 17:25:29 +05:30
top: 0;
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-09-10 17:25:29 +05:30
.btn-template-icon {
display: inline-block;
height: 14px;
font-size: 14px;
margin: 0;
}
}
2016-08-24 12:49:21 +05:30
> div {
2017-08-17 22:00:37 +05:30
margin-bottom: 10px;
2016-08-24 12:49:21 +05:30
padding-left: 0;
}
}
2015-04-26 12:48:37 +05:30
}
2015-09-11 14:41:01 +05:30
2018-11-18 11:00:15 +05:30
.repository-languages-bar {
2018-11-20 20:47:30 +05:30
height: 8px;
2023-03-04 22:38:38 +05:30
margin-bottom: $gl-padding;
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-11-20 20:47:30 +05:30
border-radius: $border-radius-default;
.progress-bar {
margin-right: 2px;
padding: 0 $gl-padding-4;
&:last-child {
margin-right: 0;
}
}
2018-11-18 11:00:15 +05:30
}
2018-12-05 23:21:45 +05:30
.repository-language-bar-tooltip-language {
font-weight: $gl-font-weight-bold;
}
.repository-language-bar-tooltip-share {
2020-10-24 23:57:45 +05:30
color: $gray-200;
2018-12-05 23:21:45 +05:30
}
2015-09-25 12:07:36 +05:30
/*
* Projects list rendered on dashboard and user page
*/
2022-11-25 23:54:43 +05:30
.project-row {
.description p {
margin-bottom: 0;
color: $gl-text-color-secondary;
2023-01-13 00:05:48 +05:30
@include str-truncated(100%);
2022-11-25 23:54:43 +05:30
}
}
2015-09-25 12:07:36 +05:30
.projects-list {
@include basic-list;
2023-01-13 00:05:48 +05:30
@include gl-display-table;
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
.project-row {
2023-01-13 00:05:48 +05:30
@include gl-display-table-row;
2017-08-17 22:00:37 +05:30
}
2016-04-02 18:10:28 +05:30
2023-01-13 00:05:48 +05:30
.project-cell {
@include gl-display-table-cell;
@include gl-vertical-align-top;
@include gl-py-4;
2023-06-20 00:43:36 +05:30
border-bottom: 1px solid $gray-50;
2017-08-17 22:00:37 +05:30
}
2023-01-13 00:05:48 +05:30
.project-row:last-of-type {
.project-cell {
@include gl-border-none;
}
2015-09-25 12:07:36 +05:30
}
2019-02-15 15:39:39 +05:30
2023-01-13 00:05:48 +05:30
&.admin-projects,
&.group-settings-projects {
.project-row {
@include basic-list-stats;
2019-03-02 22:35:43 +05:30
2023-01-13 00:05:48 +05:30
.description > p {
@include gl-mb-0;
2019-03-02 22:35:43 +05:30
}
2019-02-15 15:39:39 +05:30
}
2017-08-17 22:00:37 +05:30
2023-01-13 00:05:48 +05:30
.controls {
@include gl-line-height-42;
}
}
.project-details {
max-width: 625px;
2017-08-17 22:00:37 +05:30
p,
.commit-row-message {
2023-01-13 00:05:48 +05:30
@include gl-mb-0;
2017-08-17 22:00:37 +05:30
@include str-truncated(100%);
2019-02-15 15:39:39 +05:30
}
2019-03-02 22:35:43 +05:30
.description {
line-height: 1.5;
2023-01-13 00:05:48 +05:30
max-height: $gl-spacing-scale-8;
2019-02-15 15:39:39 +05:30
}
2017-08-17 22:00:37 +05:30
}
.ci-status-link {
2023-01-13 00:05:48 +05:30
@include gl-text-decoration-none;
2015-09-25 12:07:36 +05:30
}
2019-02-15 15:39:39 +05:30
2023-01-13 00:05:48 +05:30
&:not(.compact) {
.controls {
@include media-breakpoint-up(lg) {
@include gl-justify-content-start;
@include gl-pr-9;
&:not(.with-pipeline-status) {
.icon-wrapper:first-of-type {
@include media-breakpoint-up(lg) {
@include gl-ml-7;
}
}
}
}
2019-03-02 22:35:43 +05:30
}
2019-02-15 15:39:39 +05:30
2023-01-13 00:05:48 +05:30
.project-details {
p,
.commit-row-message {
@include gl-white-space-normal;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
/* stylelint-disable-next-line value-no-vendor-prefix */
display: -webkit-box;
}
2019-02-15 15:39:39 +05:30
}
2023-01-13 00:05:48 +05:30
}
2019-02-15 15:39:39 +05:30
2023-01-13 00:05:48 +05:30
.controls {
@include media-breakpoint-up(sm) {
@include gl-justify-content-end;
2019-02-15 15:39:39 +05:30
}
.icon-wrapper {
@include media-breakpoint-down(md) {
2023-01-13 00:05:48 +05:30
@include gl-mr-0;
@include gl-ml-3;
2019-02-15 15:39:39 +05:30
}
@include media-breakpoint-down(xs) {
&:first-child {
2023-01-13 00:05:48 +05:30
@include gl-ml-0;
2019-12-21 20:55:43 +05:30
}
}
}
2019-02-15 15:39:39 +05:30
.ci-status-link {
2023-01-13 00:05:48 +05:30
@include gl-display-inline-flex;
2019-02-15 15:39:39 +05:30
}
}
.icon-container {
2023-01-13 00:05:48 +05:30
@include media-breakpoint-up(lg) {
margin-right: $gl-spacing-scale-7;
2019-02-15 15:39:39 +05:30
}
}
&.compact {
2023-01-13 00:05:48 +05:30
.description {
@include gl-w-full;
@include gl-display-table;
@include gl-table-layout-fixed;
2019-02-15 15:39:39 +05:30
}
.avatar-container {
@include avatar-size(40px, 10px);
min-height: 40px;
min-width: 40px;
2019-03-02 22:35:43 +05:30
.identicon.s48 {
2019-02-15 15:39:39 +05:30
font-size: 16px;
}
}
.updated-note {
@include media-breakpoint-up(sm) {
2023-01-13 00:05:48 +05:30
@include gl-mt-2;
2019-02-15 15:39:39 +05:30
}
}
.icon-wrapper {
2023-01-13 00:05:48 +05:30
@include gl-ml-3;
@include gl-mr-0;
2019-02-15 15:39:39 +05:30
}
.user-access-role {
line-height: $gl-line-height-14;
}
}
@include media-breakpoint-down(md) {
.avatar-container {
@include avatar-size(40px, 10px);
min-height: 40px;
min-width: 40px;
.identicon.s64 {
font-size: 16px;
}
}
}
@include media-breakpoint-down(md) {
.updated-note {
2023-01-13 00:05:48 +05:30
@include gl-mt-3;
@include gl-text-right;
2019-02-15 15:39:39 +05:30
}
}
.forks,
.pipeline-status,
.updated-note {
2023-01-13 00:05:48 +05:30
@include gl-display-flex;
2019-02-15 15:39:39 +05:30
}
@include media-breakpoint-down(md) {
&.explore {
.pipeline-status,
.updated-note {
display: none !important;
}
}
}
@include media-breakpoint-down(xs) {
.updated-note {
2023-01-13 00:05:48 +05:30
@include gl-mt-0;
@include gl-text-left;
2019-02-15 15:39:39 +05:30
}
}
2015-09-25 12:07:36 +05:30
}
2018-11-08 19:23:39 +05:30
.card .projects-list li {
2015-09-25 12:07:36 +05:30
padding: 10px 15px;
margin: 0;
}
.git-clone-holder {
.clone-options {
display: table-cell;
2016-11-03 12:29:30 +05:30
a.btn {
width: 100%;
}
}
.form-control {
2021-04-29 21:17:54 +05:30
@include gl-font-monospace;
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-11-08 19:23:39 +05:30
border-color: $border-color;
font-size: 14px;
margin-left: -1px;
cursor: auto;
}
}
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
.protected-branches-list,
.protected-tags-list {
2023-03-17 16:20:25 +05:30
margin-bottom: 32px;
2017-08-17 22:00:37 +05:30
2016-09-13 17:45:13 +05:30
.settings-message {
margin: 0;
border-radius: 0 0 1px 1px;
padding: 20px 0;
2018-03-17 18:26:18 +05:30
border: 0;
2016-09-13 17:45:13 +05:30
}
.table-bordered {
border-radius: 1px;
2017-08-17 22:00:37 +05:30
th:not(:last-child),
td:not(:last-child) {
2016-09-13 17:45:13 +05:30
border-right: solid 1px transparent;
}
2016-04-02 18:10:28 +05:30
}
2016-06-22 15:30:34 +05:30
2017-08-17 22:00:37 +05:30
.flash-container {
padding: 0;
}
}
2021-09-04 01:27:46 +05:30
.project-refs-form .dropdown-menu {
2016-09-29 09:46:39 +05:30
width: 300px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2016-09-29 09:46:39 +05:30
width: 500px;
}
a {
white-space: normal;
2016-06-22 15:30:34 +05:30
}
}
2016-08-24 12:49:21 +05:30
.compare-form-group {
2017-09-10 17:25:29 +05:30
.dropdown-menu,
.inline-input-group {
2017-08-17 22:00:37 +05:30
width: 100%;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-08-17 22:00:37 +05:30
width: 300px;
}
}
+ .compare-ellipsis {
width: 100%;
vertical-align: middle;
text-align: center;
margin-top: -20px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
margin: 0 $gl-padding-8;
2017-08-17 22:00:37 +05:30
width: auto;
}
}
2021-03-11 19:13:27 +05:30
// Remove once gitlab/ui solution is implemented:
// https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1157
// https://gitlab.com/gitlab-org/gitlab/-/issues/300405
.gl-search-box-by-type-input {
width: 100%;
}
// Remove once gitlab/ui solution is implemented
// https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1158
// https://gitlab.com/gitlab-org/gitlab/-/issues/300405
2023-03-04 22:38:38 +05:30
.gl-dropdown-button-text {
2021-03-11 19:13:27 +05:30
@include str-truncated;
}
2016-08-24 12:49:21 +05:30
}
2016-09-13 17:45:13 +05:30
2021-04-17 20:07:23 +05:30
.compare-revision-cards {
@media (min-width: $breakpoint-lg) {
.gl-card {
width: calc(50% - 15px);
}
.compare-ellipsis {
width: 30px;
}
}
}
2016-09-29 09:46:39 +05:30
.project-path {
.form-control {
min-width: 100px;
}
2016-11-03 12:29:30 +05:30
2018-03-17 18:26:18 +05:30
&.form-group {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2018-03-17 18:26:18 +05:30
margin-bottom: 0;
}
}
2016-11-03 12:29:30 +05:30
}
.project-home-empty {
border-top: 0;
.container-fluid {
background: none;
}
p {
margin-left: auto;
margin-right: auto;
max-width: 650px;
}
}
2017-08-17 22:00:37 +05:30
.project-feature {
padding-top: 10px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2016-11-03 12:29:30 +05:30
padding-left: 45px;
}
2017-08-17 22:00:37 +05:30
&.nested {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-08-17 22:00:37 +05:30
padding-left: 90px;
}
}
2016-11-03 12:29:30 +05:30
}
2017-08-17 22:00:37 +05:30
.services-installation-info .row {
margin-bottom: 10px;
}
2018-05-09 12:01:36 +05:30
.project-badge {
opacity: 0.9;
&:hover {
opacity: 1;
}
}
2019-02-15 15:39:39 +05:30
.project-mirror-settings {
.btn-show-advanced {
min-width: 135px;
.label-show {
display: none;
}
.label-hide {
display: inline;
}
&.show-advanced {
.label-show {
display: inline;
}
.label-hide {
display: none;
}
}
}
}
2023-07-09 08:55:56 +05:30
.projects-list-item {
.description {
max-height: $gl-spacing-scale-8;
p {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
/* stylelint-disable-next-line value-no-vendor-prefix */
display: -webkit-box;
}
}
}