gitlab-org--gitlab-foss/app/assets/stylesheets/pages/projects.scss

1051 lines
16 KiB
SCSS
Raw Normal View History

.alert_holder {
margin: -16px;
.alert-link {
font-weight: normal;
}
}
.new_project,
2017-08-03 06:37:08 -04:00
.edit-project,
.import-project {
2016-11-22 09:51:49 -05:00
.sharing-and-permissions {
.header {
padding-top: $gl-vert-padding;
}
2016-11-22 09:51:49 -05:00
.label-light {
margin-bottom: 0;
}
2016-11-22 09:51:49 -05:00
.help-block {
margin-top: 0;
}
.form-group {
margin-bottom: 5px;
}
> .form-group {
padding-left: 0;
}
select option[disabled] {
display: none;
}
}
select {
background: transparent;
transition: background 2s ease-out;
&.highlight-changes {
background: $highlight-changes-color;
transition: none;
}
}
.help-block {
margin-bottom: 10px;
}
.project-path .form-control {
border-radius: $border-radius-base;
}
.input-group > div {
&:last-child {
padding-right: 0;
}
}
@media (max-width: $screen-xs-max) {
.input-group > div {
margin-bottom: 14px;
&:last-child {
margin-bottom: 0;
}
}
fieldset > .form-group:first-child {
padding-right: 0;
}
}
.input-group-addon {
&.static-namespace {
height: 35px;
border-radius: 3px;
2016-11-30 08:25:25 -05:00
border: 1px solid $border-color;
}
+ .select2 a {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}
2012-08-25 16:39:01 -04:00
.project-home-panel,
.group-home-panel {
2016-06-29 08:07:12 -04:00
padding-top: 24px;
padding-bottom: 24px;
2016-06-29 09:22:24 -04:00
@media (min-width: $screen-sm-min) {
border-bottom: 1px solid $border-color;
}
2016-05-19 11:11:54 -04:00
.project-avatar,
.group-avatar {
2016-06-29 08:07:12 -04:00
float: none;
margin: 0 auto;
&.identicon {
border-radius: 50%;
}
}
.project-title,
.group-title {
2016-06-29 08:07:12 -04:00
margin-top: 10px;
margin-bottom: 10px;
font-size: 24px;
font-weight: 400;
line-height: 1;
2017-02-16 06:39:28 -05:00
word-wrap: break-word;
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
.fa {
margin-left: 2px;
font-size: 12px;
vertical-align: middle;
}
2016-05-19 11:11:54 -04:00
}
.project-home-desc,
.group-home-desc {
2016-06-29 09:16:47 -04:00
margin-left: auto;
margin-right: auto;
margin-bottom: 0;
max-width: 700px;
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
> p {
margin-bottom: 0;
}
}
.notifications-btn {
.fa-bell,
.fa-spinner {
margin-right: 6px;
}
.fa-angle-down {
margin-left: 6px;
}
}
2016-06-29 08:07:12 -04:00
}
2016-11-18 13:07:18 -05:00
.nav > .project-repo-buttons {
margin-top: 0;
}
2015-12-18 14:17:19 -05:00
.project-repo-buttons,
.group-buttons {
2016-06-29 08:07:12 -04:00
.btn {
@include btn-gray;
padding: 3px 10px;
&:last-child {
margin-left: 0;
}
2016-06-29 08:07:12 -04:00
.fa {
color: $layout-link-gray;
}
2016-07-15 10:23:41 -04:00
svg {
path {
fill: $layout-link-gray;
}
use {
stroke: $layout-link-gray;
}
}
2016-06-29 08:07:12 -04:00
.fa-caret-down {
margin-left: 3px;
2016-05-19 11:11:54 -04:00
}
2016-06-29 08:07:12 -04:00
}
2016-05-19 11:11:54 -04:00
2016-12-16 10:46:24 -05:00
.project-action-button {
margin: 15px 5px 0;
vertical-align: top;
2016-06-29 08:07:12 -04:00
}
2016-05-19 11:11:54 -04:00
.notification-dropdown .dropdown-menu {
@extend .dropdown-menu-align-right;
}
.download-button {
2016-12-01 00:27:58 -05:00
@media (max-width: $screen-md-max) {
margin-left: 0;
}
}
2016-06-29 08:07:12 -04:00
.count-buttons {
display: inline-block;
vertical-align: top;
2016-12-16 10:46:24 -05:00
margin-top: 15px;
2016-06-29 08:07:12 -04:00
}
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
.project-clone-holder {
display: inline-block;
2016-12-16 10:46:24 -05:00
margin: 15px 5px 0 0;
2016-06-29 08:07:12 -04:00
input {
height: 28px;
2015-12-18 14:17:19 -05:00
}
2016-06-29 08:07:12 -04:00
}
2016-06-29 08:07:12 -04:00
.count-with-arrow {
display: inline-block;
position: relative;
margin-left: 4px;
.arrow {
2016-10-24 16:58:50 -04:00
&::before {
2016-06-29 08:07:12 -04:00
content: '';
2015-03-29 21:15:54 -04:00
display: inline-block;
2016-06-29 08:07:12 -04:00
position: absolute;
width: 0;
height: 0;
border-color: transparent;
2015-12-18 14:17:19 -05:00
border-style: solid;
2016-06-29 08:07:12 -04:00
top: 50%;
left: 0;
margin-top: -6px;
border-width: 7px 5px 7px 0;
2016-11-30 08:25:25 -05:00
border-right-color: $count-arrow-border;
2016-06-29 08:07:12 -04:00
pointer-events: none;
2015-03-29 21:15:54 -04:00
}
2016-05-19 11:11:54 -04:00
2016-10-24 16:58:50 -04:00
&::after {
2016-06-29 08:07:12 -04:00
content: '';
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
top: 50%;
left: 1px;
margin-top: -9px;
border-width: 10px 7px 10px 0;
2016-11-30 08:25:25 -05:00
border-right-color: $white-light;
2016-06-29 08:07:12 -04:00
pointer-events: none;
}
2016-05-19 11:11:54 -04:00
}
2016-06-29 08:07:12 -04:00
.count {
@include btn-gray;
display: inline-block;
2016-11-30 08:25:25 -05:00
background: $white-light;
2016-06-29 08:07:12 -04:00
border-radius: 2px;
border-width: 1px;
border-style: solid;
font-size: 13px;
font-weight: 600;
line-height: 13px;
letter-spacing: .4px;
padding: 6px 14px;
2016-06-29 08:07:12 -04:00
text-align: center;
vertical-align: middle;
touch-action: manipulation;
background-image: none;
white-space: nowrap;
margin: 0 10px 0 4px;
a {
color: inherit;
}
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
&:hover {
2016-11-30 08:25:25 -05:00
background: $white-light;
2016-06-29 08:07:12 -04:00
}
2016-05-19 11:11:54 -04:00
}
}
}
.project-repo-buttons {
.project-action-button .dropdown-menu {
max-height: 250px;
overflow-y: auto;
}
}
.split-one {
display: inline-table;
margin-right: 12px;
> a {
margin: -1px;
}
}
.project-visibility-level-holder {
.radio {
margin-bottom: 10px;
i {
margin: 2px 0;
font-size: 20px;
}
.option-title {
font-weight: normal;
display: inline-block;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
.option-descr {
margin-left: 29px;
2016-11-30 08:25:25 -05:00
color: $project-option-descr-color;
}
}
}
.save-project-loader {
margin-top: 50px;
margin-bottom: 50px;
2016-11-30 08:25:25 -05:00
color: $save-project-loader-color;
}
.transfer-project .select2-container {
min-width: 200px;
}
.deploy-key-content {
@media (min-width: $screen-sm-min) {
float: left;
&:last-child {
float: right;
}
}
}
.deploy-key-projects {
@media (min-width: $screen-sm-min) {
line-height: 42px;
}
}
a.deploy-project-label {
padding: 5px;
margin-right: 5px;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
background-color: $row-hover;
&:hover {
color: $gl-link-color;
}
}
.vs-public {
2015-03-06 22:02:12 -05:00
color: $gl-primary;
}
.vs-internal {
2015-03-06 22:02:12 -05:00
color: $gl-warning;
}
.vs-private {
2015-03-06 22:02:12 -05:00
color: $gl-success;
}
.lfs-enabled {
color: $gl-success;
}
.lfs-disabled {
color: $gl-warning;
}
.breadcrumb.repo-breadcrumb {
flex: 1;
padding: 0;
background: transparent;
border: none;
2017-06-22 04:19:04 -04:00
line-height: 34px;
margin: 0;
2016-10-24 16:58:50 -04:00
> li + li::before {
padding: 0 3px;
2016-11-30 08:25:25 -05:00
color: $project-breadcrumb-color;
}
a {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
.dropdown-menu {
width: 240px;
}
}
.fork-namespaces {
2016-06-30 00:18:49 -04:00
.row {
-webkit-flex-wrap: wrap;
display: -webkit-flex;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
.fork-thumbnail {
2016-09-09 12:59:36 -04:00
border-radius: $border-radius-base;
2016-06-30 00:18:49 -04:00
background-color: $white-light;
border: 1px solid $border-white-light;
height: 202px;
margin: $gl-padding;
text-align: center;
width: 169px;
&:hover,
&.forked {
2016-07-15 15:05:15 -04:00
background-color: $row-hover;
border-color: $row-hover-border;
2016-06-30 00:18:49 -04:00
}
2016-07-06 22:44:57 -04:00
.no-avatar {
width: 100px;
height: 100px;
background-color: $gray-light;
2016-12-12 17:26:21 -05:00
border: 1px solid $white-normal;
2016-07-06 22:44:57 -04:00
margin: 0 auto;
2016-09-09 12:59:36 -04:00
border-radius: 50%;
2016-07-06 22:44:57 -04:00
i {
font-size: 100px;
2016-12-12 17:26:21 -05:00
color: $white-normal;
2016-07-06 22:44:57 -04:00
}
}
2016-06-30 00:18:49 -04:00
a {
display: block;
width: 100%;
height: 100%;
padding-top: $gl-padding;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-06-30 00:18:49 -04:00
.caption {
min-height: 30px;
padding: $gl-padding 0;
}
}
2016-06-30 00:18:49 -04:00
img {
2016-09-09 12:59:36 -04:00
border-radius: 50%;
2016-06-30 00:18:49 -04:00
max-width: 100px;
}
}
}
}
2017-07-31 12:33:10 -04:00
.project-template,
.project-import {
.form-group {
margin-bottom: 5px;
}
.import-buttons {
padding-left: 0;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
.btn {
padding: 8px;
2017-07-31 12:33:10 -04:00
margin-right: 10px;
}
.blank-option {
min-width: 70px;
}
.btn-template-icon {
2017-07-31 12:33:10 -04:00
height: 24px;
width: inherit;
display: block;
margin: 2px auto 5px;
2017-07-30 06:56:40 -04:00
font-size: 24px;
}
2017-08-03 06:37:08 -04:00
@media (max-width: $screen-xs-max) {
.btn-template-icon {
2017-07-31 12:33:10 -04:00
display: inline-block;
2017-08-01 11:20:10 -04:00
height: 14px;
2017-07-31 12:33:10 -04:00
font-size: 14px;
margin: 0;
}
}
.icon-rails path {
fill: #C00;
}
.icon-node-express path {
fill: #353535;
}
.icon-java-spring path {
fill: #70AD51;
}
> div {
margin-bottom: 10px;
padding-left: 0;
}
2017-07-31 12:33:10 -04:00
}
}
2017-08-03 06:37:08 -04:00
.create-project-options {
display: flex;
@media (max-width: $screen-xs-max) {
display: block;
}
.first-column {
@media(min-width: $screen-xs-min) {
max-width: 50%;
width: 50%;
}
@media(max-width: $screen-xs-max) {
max-width: 100%;
width: 100%;
2017-07-31 12:33:10 -04:00
}
}
2017-08-03 06:37:08 -04:00
.second-column {
@media(min-width: $screen-xs-min) {
width: 50%;
flex: 1;
padding-left: 30px;
position: relative;
}
@media(max-width: $screen-xs-max) {
max-width: 100%;
width: 100%;
padding-left: 0;
position: relative;
}
// Mobile
@media (max-width: $screen-xs-max) {
padding-top: 30px;
}
&::before {
content: "OR";
position: absolute;
left: 0px;
top: 40%;
z-index: 10;
padding: 8px 0;
text-align: center;
background-color: $white-light;
color: $gl-text-color-tertiary;
transform: translateX(-50%);
font-size: 12px;
font-weight: bold;;
line-height: 20px;
// Mobile
@media (max-width: $screen-xs-max) {
left: 50%;
top: 10px;
transform: translateY(-50%);
padding: 0px 8px;
}
}
2017-08-01 11:20:10 -04:00
2017-08-03 06:37:08 -04:00
&::after {
content: "";
position: absolute;
background-color: $border-color;
2017-08-01 11:20:10 -04:00
bottom: 0;
2017-08-03 06:37:08 -04:00
left: 0;
2017-08-01 11:20:10 -04:00
right: auto;
height: 100%;
width: 1px;
2017-08-03 06:37:08 -04:00
top: 0;
// Mobile
@media (max-width: $screen-xs-max) {
top: 10px;
left: 10px;
right: 10px;
height: 1px;
width: auto;
}
2017-07-31 12:33:10 -04:00
}
}
2017-07-30 06:56:40 -04:00
}
2017-08-03 06:37:08 -04:00
.project-stats {
2016-05-19 11:11:54 -04:00
font-size: 0;
2016-12-16 10:46:24 -05:00
text-align: center;
2017-07-03 05:14:40 -04:00
max-width: 100%;
border-bottom: 1px solid $border-color;
2016-06-29 08:07:12 -04:00
.nav {
2016-07-05 04:19:01 -04:00
padding-top: 12px;
padding-bottom: 12px;
}
2016-06-29 08:07:12 -04:00
.nav > li {
display: inline-block;
2016-06-29 08:07:12 -04:00
&:not(:last-child) {
margin-right: $gl-padding;
}
2016-06-29 09:16:47 -04:00
&.right {
vertical-align: top;
margin-top: 0;
@media (min-width: $screen-lg-min) {
2016-06-29 09:16:47 -04:00
float: right;
}
}
}
.nav > li > a {
2016-06-29 08:07:12 -04:00
padding: 0;
background-color: transparent;
2016-12-02 14:43:33 -05:00
font-size: 14px;
2016-06-29 08:07:12 -04:00
line-height: 29px;
2016-05-19 11:11:54 -04:00
color: $notes-light-color;
2016-06-29 08:07:12 -04:00
&:hover,
&:focus {
color: $gl-text-color;
2016-06-29 08:07:12 -04:00
}
}
li.missing {
2016-12-12 17:26:21 -05:00
border: 1px dashed $border-gray-normal;
2016-06-19 19:52:19 -04:00
border-radius: $border-radius-default;
a {
padding-left: 10px;
padding-right: 10px;
2016-06-19 19:52:19 -04:00
color: $notes-light-color;
display: block;
}
&:hover {
2016-06-19 19:52:19 -04:00
background-color: $gray-normal;
}
}
}
pre.light-well {
2016-11-30 08:25:25 -05:00
border-color: $well-light-border;
}
.git-empty {
margin: 0 7px 7px;
h5 {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
.light-well {
2016-09-09 12:59:36 -04:00
border-radius: 2px;
2016-11-30 08:25:25 -05:00
color: $well-light-text-color;
font-size: 13px;
line-height: 1.6em;
}
}
.project-footer {
margin-top: 20px;
.btn-remove {
@include btn-middle;
@include btn-red;
float: left !important;
}
}
/*
* Projects list rendered on dashboard and user page
*/
.projects-list {
@include basic-list;
display: flex;
flex-direction: column;
2017-03-29 16:01:45 -04:00
// Disable Flexbox for admin page
&.admin-projects {
display: block;
2017-03-29 16:01:45 -04:00
.project-row {
display: block;
}
2017-03-29 16:01:45 -04:00
}
.project-row {
2017-07-12 00:59:39 -04:00
@include basic-list-stats;
display: flex;
align-items: center;
}
h3 {
font-size: $gl-font-size;
}
a {
color: $gl-text-color;
}
2016-07-11 13:59:23 -04:00
.avatar-container,
.controls {
flex: 0 0 auto;
}
2016-07-19 14:14:23 -04:00
.avatar-container {
align-self: flex-start;
> a {
width: 100%;
}
}
.project-details {
min-width: 0;
2016-07-19 14:14:23 -04:00
p,
.commit-row-message {
@include str-truncated(100%);
margin-bottom: 0;
}
}
.controls {
margin-left: auto;
2017-01-02 20:55:26 -05:00
text-align: right;
}
.ci-status-link {
display: inline-block;
line-height: 17px;
vertical-align: middle;
&:hover {
text-decoration: none;
}
}
}
.panel .projects-list li {
padding: 10px 15px;
margin: 0;
}
.commits-search-form {
.input-short {
min-width: 200px;
}
}
.git-clone-holder {
2016-06-29 08:07:12 -04:00
width: 380px;
.btn-clipboard {
border: 1px solid $border-color;
}
.clone-options {
display: table-cell;
a.btn {
width: 100%;
}
}
.form-control {
@extend .monospace;
2016-11-30 08:25:25 -05:00
background: $white-light;
font-size: 14px;
margin-left: -1px;
cursor: auto;
width: 101%;
}
}
.cannot-be-merged,
.cannot-be-merged:hover {
2016-11-30 08:25:25 -05:00
color: $error-exclamation-point;
margin-top: 2px;
}
.private-forks-notice .private-fork-icon {
2016-01-20 00:07:40 -05:00
i:nth-child(1) {
2016-11-30 08:25:25 -05:00
color: $project-private-forks-notice-odd;
}
2016-01-20 00:07:40 -05:00
i:nth-child(2) {
2016-11-30 08:25:25 -05:00
color: $white-light;
}
}
2016-04-26 10:50:31 -04:00
.new_protected_branch,
.new-protected-tag {
label {
margin-top: 6px;
font-weight: normal;
}
}
.create-new-protected-branch-button,
.create-new-protected-tag-button {
@include dropdown-link;
width: 100%;
background-color: transparent;
border: 0;
text-align: left;
}
.protected-branches-list,
.protected-tags-list {
margin-bottom: 30px;
2016-04-26 10:50:31 -04:00
a {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-04-26 10:50:31 -04:00
&:hover {
color: $gl-link-color;
}
&.is-active {
font-weight: 600;
}
2016-04-26 10:50:31 -04:00
}
.settings-message {
margin: 0;
border-radius: 0 0 1px 1px;
padding: 20px 0;
border: none;
}
.table-bordered {
border-radius: 1px;
th:not(:last-child),
td:not(:last-child) {
border-right: solid 1px transparent;
}
}
2016-04-26 10:50:31 -04:00
}
2017-07-19 08:45:58 -04:00
.protected-tags-list,
.protected-branches-list {
.dropdown-menu-toggle {
2017-04-06 09:39:48 -04:00
width: 100%;
max-width: 300px;
}
2017-04-07 08:48:58 -04:00
.flash-container {
padding: 0;
}
}
.custom-notifications-form {
.is-loading {
.custom-notification-event-loading {
display: inline-block;
}
}
}
.custom-notification-event-loading {
display: none;
margin-left: 5px;
&.is-done {
color: $gl-text-green;
}
}
2016-06-07 09:40:21 -04:00
.project-refs-form .dropdown-menu,
.dropdown-menu-projects {
width: 300px;
@media (min-width: $screen-sm-min) {
width: 500px;
}
a {
white-space: normal;
2016-06-07 09:40:21 -04:00
}
}
.compare-form-group {
.dropdown-menu,
.inline-input-group {
2016-12-15 12:14:04 -05:00
width: 100%;
@media (min-width: $screen-sm-min) {
width: 300px;
}
}
+ .compare-ellipsis {
width: 100%;
vertical-align: middle;
text-align: center;
margin-top: -20px;
@media (min-width: $screen-sm-min) {
margin-top: 0;
width: auto;
}
}
}
.clearable-input {
position: relative;
.clear-icon {
@extend .fa-times;
display: none;
position: absolute;
right: 7px;
top: 7px;
color: $location-icon-color;
2016-10-24 16:58:50 -04:00
&::before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
}
}
&.has-value {
.clear-icon {
cursor: pointer;
display: block;
}
}
}
.project-path {
2016-09-20 06:19:08 -04:00
.form-control {
min-width: 100px;
}
.select2-choice {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
.project-home-empty {
border-top: 0;
.container-fluid {
background: none;
}
p {
margin-left: auto;
margin-right: auto;
max-width: 650px;
}
}
2016-11-22 09:51:49 -05:00
.project-feature {
padding-top: 10px;
@media (min-width: $screen-sm-min) {
padding-left: 45px;
}
2016-11-22 09:51:49 -05:00
&.nested {
@media (min-width: $screen-sm-min) {
padding-left: 90px;
}
}
}
.project-repo-select {
&.disabled {
opacity: 0.5;
pointer-events: none;
}
}
.variables-table {
2017-01-24 09:02:02 -05:00
table-layout: fixed;
&.table-responsive {
border: none;
}
.variable-key {
2017-04-17 13:06:21 -04:00
max-width: 120px;
overflow: hidden;
word-wrap: break-word;
2017-04-17 12:54:31 -04:00
white-space: nowrap;
text-overflow: ellipsis;
}
.variable-value {
2017-04-17 12:26:20 -04:00
max-width: 150px;
overflow: hidden;
word-wrap: break-word;
2017-04-17 12:54:31 -04:00
white-space: nowrap;
text-overflow: ellipsis;
}
.variable-menu {
text-align: right;
}
}
.services-installation-info .row {
margin-bottom: 10px;
}
.service-installation {
padding: 32px;
margin: 32px;
border-radius: 3px;
background-color: $white-light;
h3 {
margin-top: 0;
}
hr {
margin: 32px 0;
border-color: $border-color;
}
}