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.

828 lines
13 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;
2017-09-10 17:25:29 +05:30
line-height: 34px;
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;
margin-bottom: $gl-padding-8;
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-11 14:41:01 +05:30
pre.light-well {
2017-08-17 22:00:37 +05:30
border-color: $well-light-border;
2015-09-11 14:41:01 +05:30
}
2015-09-25 12:07:36 +05:30
/*
* Projects list rendered on dashboard and user page
*/
.projects-list {
@include basic-list;
2017-08-17 22:00:37 +05:30
display: flex;
flex-direction: column;
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
// Disable Flexbox for admin page
2019-12-21 20:55:43 +05:30
&.admin-projects,
&.group-settings-projects {
2017-08-17 22:00:37 +05:30
display: block;
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
.project-row {
display: block;
2019-12-21 20:55:43 +05:30
.description > p {
margin-bottom: 0;
}
2015-09-25 12:07:36 +05:30
}
2017-08-17 22:00:37 +05:30
}
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
.project-row {
2017-09-10 17:25:29 +05:30
@include basic-list-stats;
2017-08-17 22:00:37 +05:30
display: flex;
align-items: center;
2019-12-04 20:38:33 +05:30
padding: $gl-padding-12 0;
2019-02-15 15:39:39 +05:30
&.no-description {
@include media-breakpoint-up(sm) {
.avatar-container {
align-self: center;
}
.metadata-info {
margin-bottom: 0;
}
}
}
2017-08-17 22:00:37 +05:30
}
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
h2 {
2019-12-04 20:38:33 +05:30
font-size: $gl-font-size;
2019-02-15 15:39:39 +05:30
font-weight: $gl-font-weight-bold;
margin-bottom: 0;
@include media-breakpoint-up(sm) {
.namespace-name {
font-weight: $gl-font-weight-normal;
}
}
2017-08-17 22:00:37 +05:30
}
.avatar-container {
2019-02-15 15:39:39 +05:30
flex: 0 0 auto;
2017-08-17 22:00:37 +05:30
align-self: flex-start;
2015-09-25 12:07:36 +05:30
}
2017-08-17 22:00:37 +05:30
.project-details {
min-width: 0;
2019-02-15 15:39:39 +05:30
line-height: $gl-line-height;
.flex-wrapper {
min-width: 0;
margin-top: -$gl-padding-8; // negative margin required for flex-wrap
2019-03-02 22:35:43 +05:30
flex: 1 1 100%;
.project-title {
line-height: 20px;
}
2019-02-15 15:39:39 +05:30
}
2017-08-17 22:00:37 +05:30
p,
.commit-row-message {
@include str-truncated(100%);
margin-bottom: 0;
}
2019-02-15 15:39:39 +05:30
.user-access-role {
margin: 0;
}
2019-03-02 22:35:43 +05:30
.description {
line-height: 1.5;
2019-12-04 20:38:33 +05:30
color: $gl-text-color-secondary;
2019-02-15 15:39:39 +05:30
}
@include media-breakpoint-down(md) {
.user-access-role {
line-height: $gl-line-height-14;
}
}
2017-08-17 22:00:37 +05:30
}
.ci-status-link {
display: inline-block;
line-height: 17px;
vertical-align: middle;
&:hover {
text-decoration: none;
}
2015-09-25 12:07:36 +05:30
}
2019-02-15 15:39:39 +05:30
.controls {
2019-03-02 22:35:43 +05:30
@include media-breakpoint-down(xs) {
margin-top: $gl-padding-8;
}
2019-02-15 15:39:39 +05:30
2019-03-02 22:35:43 +05:30
@include media-breakpoint-up(sm) {
2019-02-15 15:39:39 +05:30
margin-top: 0;
}
2019-03-02 22:35:43 +05:30
@include media-breakpoint-up(lg) {
flex: 1 1 40%;
2019-02-15 15:39:39 +05:30
}
.icon-wrapper {
color: inherit;
margin-right: $gl-padding;
@include media-breakpoint-down(md) {
margin-right: 0;
margin-left: $gl-padding-8;
}
@include media-breakpoint-down(xs) {
&:first-child {
margin-left: 0;
}
}
}
2019-12-21 20:55:43 +05:30
&:not(.with-pipeline-status) {
.icon-wrapper:first-of-type {
@include media-breakpoint-up(lg) {
margin-left: $gl-padding-32;
}
}
}
2019-02-15 15:39:39 +05:30
.ci-status-link {
display: inline-flex;
}
}
.icon-container {
@include media-breakpoint-down(xs) {
margin-right: $gl-padding-8;
}
}
&.compact {
.project-row {
padding: $gl-padding 0;
}
h2 {
font-size: $gl-font-size;
}
.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;
}
}
.controls {
@include media-breakpoint-up(sm) {
margin-top: 0;
}
}
.updated-note {
@include media-breakpoint-up(sm) {
margin-top: $gl-padding-8;
}
}
.icon-wrapper {
margin-left: $gl-padding-8;
margin-right: 0;
@include media-breakpoint-down(xs) {
&:first-child {
margin-left: 0;
}
}
}
.user-access-role {
line-height: $gl-line-height-14;
}
}
@include media-breakpoint-down(md) {
h2 {
font-size: $gl-font-size;
}
.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 {
margin-top: $gl-padding-8;
text-align: right;
}
}
.forks,
.pipeline-status,
.updated-note {
display: flex;
}
@include media-breakpoint-down(md) {
&:not(.explore) {
.forks {
display: none;
}
}
&.explore {
.pipeline-status,
.updated-note {
display: none !important;
}
}
}
@include media-breakpoint-down(xs) {
.updated-note {
margin-top: 0;
text-align: left;
}
}
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
2018-03-17 18:26:18 +05:30
.new-protected-branch,
2017-09-10 17:25:29 +05:30
.new-protected-tag {
2016-09-13 17:45:13 +05:30
label {
margin-top: 6px;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2016-09-13 17:45:13 +05:30
}
}
2017-08-17 22:00:37 +05:30
.protected-branches-list,
.protected-tags-list {
margin-bottom: 30px;
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
.gl-new-dropdown-button-text {
@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-13 17:45:13 +05:30
.clearable-input {
position: relative;
.clear-icon {
display: none;
position: absolute;
2020-11-24 15:15:51 +05:30
right: 9px;
top: 9px;
2016-09-13 17:45:13 +05:30
}
&.has-value {
.clear-icon {
cursor: pointer;
display: block;
}
}
}
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;
}
}
}
}
2019-07-31 22:56:46 +05:30
.project-filters {
.btn svg {
2020-11-24 15:15:51 +05:30
color: $gray-700;
2019-07-31 22:56:46 +05:30
}
.button-filter-group {
.btn {
width: 96px;
}
a {
color: $black;
}
.active {
background: $btn-active-gray;
}
}
.filtered-search-dropdown-label {
min-width: 68px;
@include media-breakpoint-down(xs) {
min-width: 60px;
}
}
.filtered-search {
min-width: 30%;
flex-basis: 0;
.project-filter-form .project-filter-form-field {
padding-right: $gl-padding-8;
}
.filtered-search,
.filtered-search-nav,
.filtered-search-dropdown {
flex-basis: 0;
}
@include media-breakpoint-down(lg) {
min-width: 15%;
.project-filter-form-field {
min-width: 150px;
}
}
@include media-breakpoint-down(md) {
min-width: 30%;
}
}
.filtered-search-box {
border-radius: 3px 0 0 3px;
}
.dropdown-menu-toggle {
margin-left: $gl-padding-8;
}
@include media-breakpoint-down(md) {
.extended-filtered-search-box {
min-width: 55%;
}
.filtered-search-dropdown {
width: 50%;
.dropdown-menu-toggle {
width: 100%;
}
}
}
@include media-breakpoint-down(xs) {
.filtered-search-dropdown {
width: 100%;
}
}
}
2020-10-24 23:57:45 +05:30
@include media-breakpoint-down(xs) {
.fork-filtered-search {
width: 100%;
margin: $gl-spacing-scale-2 0;
}
}