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

706 lines
11 KiB
SCSS
Raw Normal View History

.alert_holder {
margin: -16px;
.alert-link {
font-weight: normal;
}
}
.no-ssh-key-message, .project-limit-message {
background-color: #f28d35;
margin-bottom: 0;
}
.new_project,
2016-05-16 11:42:29 -04:00
.edit-project {
fieldset {
&.features .control-label {
font-weight: normal;
}
.form-group {
margin-bottom: 5px;
}
&> .form-group {
padding-left: 0;
}
}
.help-block {
margin-bottom: 10px;
}
.project-path {
padding-right: 0;
.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;
border: 1px solid #e5e5e5;
}
&+ .select2 a {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}
2012-08-25 16:39:01 -04:00
2013-10-21 06:05:20 -04:00
.project-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
2016-06-29 08:07:12 -04:00
.project-avatar {
float: none;
margin-left: auto;
margin-right: auto;
&.identicon {
border-radius: 50%;
}
}
2016-06-29 08:07:12 -04:00
.project-title {
margin-top: 10px;
margin-bottom: 10px;
font-size: 24px;
font-weight: 400;
line-height: 1;
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
}
2016-06-29 08:07:12 -04:00
.project-home-desc {
2016-06-29 09:16:47 -04:00
margin-left: auto;
margin-right: auto;
2016-06-29 08:07:12 -04:00
margin-bottom: 15px;
2016-06-29 09:16:47 -04:00
max-width: 480px;
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-06-29 08:07:12 -04:00
.project-repo-buttons {
font-size: 0;
2015-12-18 14:17:19 -05:00
2016-06-29 08:07:12 -04:00
.btn {
@include btn-gray;
padding: 3px 10px;
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-06-29 08:07:12 -04:00
.project-repo-btn-group,
.notification-dropdown {
margin-left: 10px;
}
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
.count-buttons {
display: inline-block;
vertical-align: top;
}
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
.project-clone-holder {
display: inline-block;
input {
height: 29px;
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 {
&:before {
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;
border-right-color: #dce0e5;
pointer-events: none;
2015-03-29 21:15:54 -04:00
}
2016-05-19 11:11:54 -04:00
2016-06-29 08:07:12 -04:00
&:after {
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;
border-right-color: #fff;
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;
background: white;
border-radius: 2px;
border-width: 1px;
border-style: solid;
font-size: 13px;
font-weight: 600;
line-height: 13px;
padding: $gl-vert-padding $gl-padding;
letter-spacing: .4px;
padding: 7px 14px;
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 {
background: #fff;
}
2016-05-19 11:11:54 -04:00
}
}
}
.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-04-25 16:02:15 -04:00
color: $gl-gray-dark;
}
.option-descr {
margin-left: 29px;
color: #54565b;
}
}
}
.save-project-loader {
margin-top: 50px;
margin-bottom: 50px;
color: #555;
}
.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;
color: $gl-gray;
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;
}
.breadcrumb.repo-breadcrumb {
padding: 0;
background: transparent;
border: none;
line-height: 36px;
margin: 0;
> li + li:before {
padding: 0 3px;
color: #999;
}
a {
color: $gl-dark-link-color;
}
}
.last-push-widget {
margin-top: -1px;
}
.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 {
@include border-radius($border-radius-base);
background-color: $white-light;
border: 1px solid $border-white-light;
height: 202px;
margin: $gl-padding;
text-align: center;
width: 169px;
2016-07-15 15:05:15 -04:00
&:hover, &.forked {
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;
border: 1px solid $gray-dark;
margin: 0 auto;
@include border-radius(50%);
i {
font-size: 100px;
color: $gray-dark;
}
}
2016-06-30 00:18:49 -04:00
a {
display: block;
width: 100%;
height: 100%;
padding-top: $gl-padding;
color: $gl-gray;
.caption {
min-height: 30px;
padding: $gl-padding 0;
}
}
2016-06-30 00:18:49 -04:00
img {
@include border-radius(50%);
max-width: 100px;
}
}
}
}
.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 {
margin: 0 10px 10px 0;
padding: 8px;
}
> div {
padding-left: 0;
&:last-child {
margin-bottom: 0;
.btn {
margin-right: 0;
}
}
}
}
}
.project-stats {
2016-05-19 11:11:54 -04:00
font-size: 0;
2016-06-29 08:07:12 -04:00
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
&.project-repo-buttons-right {
margin-top: 10px;
@media (min-width: $screen-md-min) {
float: right;
margin-top: 0;
}
}
}
.nav > li > a {
2016-06-29 08:07:12 -04:00
padding: 0;
background-color: transparent;
2016-05-19 11:11:54 -04:00
font-size: 15px;
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: darken($notes-light-color, 15%);
}
}
li.missing {
2016-06-19 19:52:19 -04:00
border: 1px dashed $border-gray-light;
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 {
border-color: #f1f1f1;
}
.git-empty {
margin: 0 7px 7px;
h5 {
color: #5c5d5e;
}
.light-well {
@include border-radius (2px);
color: #5b6169;
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;
.project-row {
2015-10-19 05:19:45 -04:00
border-color: $table-border-color;
&.no-description {
.project {
line-height: 40px;
}
}
.project-full-name {
@include str-truncated;
}
.controls {
line-height: 40px;
a:hover {
text-decoration: none;
}
2016-07-11 13:59:23 -04:00
> span {
margin-left: 10px;
}
2016-07-19 14:14:23 -04:00
svg {
position: relative;
top: 2px;
}
}
}
.bottom {
padding-top: $gl-padding;
padding-bottom: 0;
}
}
.panel .projects-list li {
padding: 10px 15px;
margin: 0;
}
2016-06-03 14:09:45 -04:00
.activity-filter-block {
.controls {
2016-06-17 10:29:25 -04:00
padding-bottom: 7px;
margin-top: 8px;
2016-06-03 14:09:45 -04:00
border-bottom: 1px solid $border-color;
}
}
.project-last-commit {
2016-06-29 09:22:24 -04:00
@media (min-width: $screen-sm-min) {
margin-top: $gl-padding;
}
2016-06-29 08:07:12 -04:00
&.container-fluid {
padding-top: 12px;
padding-bottom: 12px;
background-color: $background-color;
border: 1px solid $border-color;
2016-06-29 09:22:24 -04:00
border-right-width: 0;
border-left-width: 0;
@media (min-width: $screen-sm-min) {
border-right-width: 1px;
border-left-width: 1px;
}
2016-06-29 08:07:12 -04:00
}
&.container-limited {
@media (min-width: 1281px) {
border-radius: $border-radius-base;
}
}
.ci-status {
2016-06-29 09:16:47 -04:00
margin-right: $gl-padding;
}
.commit-row-message {
color: $gl-gray;
}
.commit_short_id {
2016-06-29 09:16:47 -04:00
margin-right: 5px;
color: $gl-link-color;
font-weight: 600;
}
.commit-author-link {
.commit-author-name {
font-weight: 600;
}
}
}
.project-show-readme .readme-holder {
padding: $gl-padding 0;
border-top: 0;
2015-10-22 11:11:21 -04:00
.edit-project-readme {
2016-05-19 11:11:54 -04:00
z-index: 2;
2015-10-22 11:11:21 -04:00
position: relative;
}
2016-05-19 11:11:54 -04:00
.wiki h1 {
border-bottom: none;
padding: 0;
}
}
.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;
background: #fff;
font-size: 14px;
margin-left: -1px;
cursor: auto;
width: 101%;
}
}
.cannot-be-merged,
.cannot-be-merged:hover {
color: #e62958;
margin-top: 2px;
}
.private-forks-notice .private-fork-icon {
2016-01-20 00:07:40 -05:00
i:nth-child(1) {
color: #2aa056;
}
2016-01-20 00:07:40 -05:00
i:nth-child(2) {
color: #fff;
}
}
2016-04-26 10:50:31 -04:00
.protected-branches-list {
a {
color: $gl-gray;
&:hover {
color: $gl-link-color;
}
&.is-active {
font-weight: 600;
}
2016-04-26 10:50:31 -04:00
}
}
.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 {
width: 300px;
}
}
.compare-form-group {
.dropdown-menu {
width: 300px;
}
}