gitlabhq/app/assets/stylesheets/projects.css.scss

696 lines
15 KiB
SCSS
Raw Normal View History

2011-11-12 13:45:32 +01:00
/** MIXINS **/
@mixin round-borders-bottom($radius) {
2011-10-08 23:36:38 +02:00
border-top: 1px solid #eaeaea;
-moz-border-radius-bottomright: $radius;
-moz-border-radius-bottomleft: $radius;
border-bottom-right-radius: $radius;
border-bottom-left-radius: $radius;
-webkit-border-bottom-left-radius: $radius;
-webkit-border-bottom-right-radius: $radius;
}
@mixin round-borders-top($radius) {
2011-10-08 23:36:38 +02:00
border-top: 1px solid #eaeaea;
-moz-border-radius-topright: $radius;
-moz-border-radius-topleft: $radius;
border-top-right-radius: $radius;
border-top-left-radius: $radius;
-webkit-border-top-left-radius: $radius;
-webkit-border-top-right-radius: $radius;
}
@mixin round-borders-all($radius) {
2011-10-08 23:36:38 +02:00
border: 1px solid #eaeaea;
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
border-radius: $radius;
}
2011-11-12 12:04:43 +01:00
/** File stat **/
.file_stats {
span {
img {
2011-12-02 11:57:18 +01:00
width:14px;
2011-10-08 23:36:38 +02:00
float:left;
margin-right: 6px;
2011-12-02 11:57:18 +01:00
padding:2px 0;
2011-10-08 23:36:38 +02:00
}
}
}
.round-borders {
2011-10-08 23:36:38 +02:00
@include round-borders-all(4px);
padding: 4px 0px;
}
2011-11-12 13:45:32 +01:00
table.round-borders {
2011-10-08 23:36:38 +02:00
float:left;
2011-11-18 20:19:55 +01:00
text-align: left;
2011-10-08 23:36:38 +02:00
}
a {
color: #111;
}
2011-11-12 13:45:32 +01:00
/** FILE CONTENT VIEW **/
2011-10-08 23:36:38 +02:00
.view_file_content{
.old_line, .new_line {
2011-10-08 23:36:38 +02:00
background:#ECECEC;
color:#777;
width:15px;
float:left;
padding: 0px 10px;
border-right: 1px solid #ccc;
}
.old_line{
display:none;
}
}
2011-12-12 17:42:07 +01:00
.view_file .view_file_header,
.diff_file .diff_file_header {
2011-11-22 12:59:20 +01:00
background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.076, #fefefe), to(#F6F7F8));
background-image: -webkit-linear-gradient(#fefefe 7.6%, #F6F7F8);
background-image: -moz-linear-gradient(#fefefe 7.6%, #F6F7F8);
background-image: -o-linear-gradient(#fefefe 7.6%, #F6F7F8);
margin: 0;
font-weight: normal;
font-weight: bold;
text-align: left;
color: #666;
border-bottom: 1px solid #DEE2E3;
padding: 7px 10px;
}
.view_file {
border:1px solid #CCC;
margin-bottom:1em;
.view_file_content {
2011-10-08 23:36:38 +02:00
background:#fff;
color:#514721;
font-size: 11px;
}
.view_file_content_image {
2011-10-08 23:36:38 +02:00
background:#eee;
text-align:center;
img {
2011-10-08 23:36:38 +02:00
padding:100px;
max-width:300px;
}
}
}
2011-11-15 09:34:30 +01:00
td.code {
2011-11-12 13:45:32 +01:00
width: 100%;
2011-11-15 09:34:30 +01:00
.highlight {
2011-11-12 13:45:32 +01:00
margin-left: 55px;
overflow:auto;
overflow-y:hidden;
2011-11-22 12:59:20 +01:00
border-left: 1px solid #DEE2E3;
background: white;
2011-11-12 13:45:32 +01:00
}
}
2011-11-15 09:34:30 +01:00
.highlight pre {
2011-11-12 13:45:32 +01:00
white-space: pre;
word-wrap:normal;
}
2011-10-08 23:36:38 +02:00
2011-12-12 17:42:07 +01:00
table.highlighttable {
2011-11-22 12:59:20 +01:00
border: none;
background: #F7F7F7;
2011-11-12 13:45:32 +01:00
}
2011-11-22 12:59:20 +01:00
body.project-page table.highlighttable td { border: none }
table.highlighttable tr:hover { background:none;}
2011-11-15 09:34:30 +01:00
table.highlighttable pre{
2011-11-12 13:45:32 +01:00
line-height:16px !important;
font-size:12px !important;
2011-10-08 23:36:38 +02:00
}
2011-11-12 13:45:32 +01:00
table.highlighttable .linenodiv pre {
text-align: right;
padding-right: 4px;
2011-10-08 23:36:38 +02:00
}
2011-11-12 13:45:32 +01:00
/** PROJECTS **/
input.ssh_project_url {
2011-10-08 23:36:38 +02:00
padding:5px;
margin:0px;
float:right;
width:400px;
text-align:center;
}
#projects-list .project {
2011-10-08 23:36:38 +02:00
height:50px;
}
2011-11-05 14:31:54 +01:00
#tree-slider .tree-item,
2011-10-08 23:36:38 +02:00
#projects-list .project,
2011-10-16 23:07:10 +02:00
#snippets-table .snippet,
#issues-table .issue{
2011-10-08 23:36:38 +02:00
cursor:pointer;
}
.clear {
2011-10-08 23:36:38 +02:00
clear: both;
}
/** FORM INPUTS **/
2011-11-28 08:39:43 +01:00
.new_merge_request,
.edit_merge_request,
2011-10-08 23:36:38 +02:00
.user_new,
2011-11-06 23:24:09 +01:00
.new_key,
.new_issue,
.new_note,
2011-10-08 23:36:38 +02:00
.edit_user,
2011-11-24 14:08:20 +01:00
.edit_issue,
2011-10-08 23:36:38 +02:00
.new_project,
2011-10-16 23:07:10 +02:00
.new_snippet,
.edit_snippet,
.edit_project {
2011-10-08 23:36:38 +02:00
input[type='text'],
input[type='email'],
input[type='password'],
textarea {
2011-10-08 23:36:38 +02:00
width:400px;
padding:8px;
font-size:14px;
@include round-borders-all(4px);
}
}
2012-01-04 01:07:56 +01:00
.text_field {
width:400px;
padding:8px;
font-size:14px;
@include round-borders-all(4px);
}
.input_button {
2011-10-08 23:36:38 +02:00
padding:8px;
font-size:14px;
cursor:pointer;
background-color: #F5F5F5;
border-color: #EEEEEE #DEDEDE #DEDEDE #EEEEEE;
border-right: 1px solid #DEDEDE;
border-style: solid;
border-width: 1px;
}
2011-10-31 14:34:22 +01:00
/** FLASH **/
#flash_container {
2011-11-20 19:30:00 +01:00
height:45px;
2011-10-08 23:36:38 +02:00
position:fixed;
2011-11-20 19:30:00 +01:00
z-index:10001;
2011-10-08 23:36:38 +02:00
top:0px;
width:100%;
2011-11-20 19:30:00 +01:00
margin-bottom:15px;
2011-10-08 23:36:38 +02:00
overflow:hidden;
background:white;
cursor:pointer;
border-bottom:1px solid #777;
h4 {
2011-10-08 23:36:38 +02:00
color:#444;
font-size:22px;
padding-top:5px;
2011-10-28 17:25:00 +02:00
margin:2px;
2011-10-08 23:36:38 +02:00
}
}
/** Buttons **/
.lbutton,
.lite_button {
display:block;
float:left;
2011-11-18 22:31:06 +01:00
margin: 0px 5px 0px 0px;
2011-10-08 23:36:38 +02:00
padding:5px 10px;
font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;
border:1px solid #D3D3D3;
background:white;
2011-10-09 23:23:33 +02:00
font-size:12px !important;
2011-10-08 23:36:38 +02:00
line-height:130%;
text-decoration:none;
font-weight:bold;
color:#565656;
cursor:pointer;
&:hover {
border:1px solid #C2E1EF;
color: #0099FF;
}
&.hm {
2011-10-08 23:36:38 +02:00
margin: 0px 0px;
}
&.vm {
2011-10-08 23:36:38 +02:00
margin: 5px 0px;
}
}
2011-10-09 20:15:01 +02:00
#user_projects_limit{
width: 60px;
2011-10-09 20:15:01 +02:00
}
2011-10-11 22:00:00 +02:00
2011-10-15 18:56:53 +02:00
.handle:hover{
cursor: move;
}
2011-10-15 19:41:38 +02:00
2011-11-15 09:34:30 +01:00
.project-refs-form {
2011-11-03 17:28:33 +01:00
span {
background: none !important;
position:static !important;
width:auto !important;
height: auto !important;
}
}
.project-refs-select {
width:200px;
}
2011-11-04 14:37:38 +01:00
2011-11-09 00:56:10 +01:00
.filter .left { margin-right:15px; }
2011-11-15 09:34:30 +01:00
body.project-page table .commit {
a.tree-commit-link {
2011-11-06 21:21:48 +01:00
color:gray;
2011-11-15 09:34:30 +01:00
&:hover {
2011-11-06 21:21:48 +01:00
text-decoration:underline;
}
}
}
2011-11-08 18:23:13 +01:00
/** NEW PROJECT **/
2011-11-15 09:34:30 +01:00
.new-project-hodler {
2011-11-12 13:45:32 +01:00
.icon span { background-position: -31px -70px; }
td { border-bottom: 1px solid #DEE2E3; }
2011-11-08 18:23:13 +01:00
}
2011-11-09 00:56:10 +01:00
2011-11-12 13:45:32 +01:00
/** Feed entry **/
2011-11-09 12:37:01 +01:00
.commit,
2011-11-12 11:41:34 +01:00
.snippet,
2011-11-15 09:34:30 +01:00
.message {
.title {
2011-11-09 12:37:01 +01:00
color:#666;
2011-11-12 13:45:32 +01:00
a { color:#666 !important; }
p { margin-top:0px; }
2011-11-09 12:37:01 +01:00
}
2011-11-12 13:45:32 +01:00
.author { color: #999 }
2011-11-09 12:37:01 +01:00
}
2011-11-07 16:55:16 +01:00
2011-11-12 13:45:32 +01:00
/** JQuery UI **/
2011-11-12 12:04:43 +01:00
.ui-autocomplete { @include round-borders-all(5px); }
.ui-menu-item { cursor: pointer }
2011-11-12 13:45:32 +01:00
.ui-selectmenu{
@include round-borders-all(4px);
margin-right:10px;
font-size:1.5em;
height:auto;
font-weight:bold;
2011-11-15 09:34:30 +01:00
.ui-selectmenu-status {
2011-11-12 13:45:32 +01:00
padding:3px 10px;
}
}
2011-11-15 09:34:30 +01:00
2011-11-12 13:45:32 +01:00
/** Snippets **/
2011-11-15 09:34:30 +01:00
.new_snippet textarea,
.edit_snippet textarea {
2011-11-12 13:45:32 +01:00
height:300px;
padding: 8px;
width: 95%;
}
.snippet .action-links {
2011-11-15 09:34:30 +01:00
display:none;
a {
2011-11-07 16:55:16 +01:00
margin-left:10px;
}
}
2011-11-12 11:41:34 +01:00
.snippet:hover .action-links { display:block; }
2011-11-12 13:45:32 +01:00
/** ISSUES TAGS **/
.tag {
@include round-borders-all(4px);
padding:2px 4px;
border:none;
text-shadow:none;
2011-11-08 18:23:13 +01:00
2011-12-12 17:42:07 +01:00
&.inline {
2011-11-28 19:30:35 +01:00
display:inline;
}
&.high, &.closed {
2011-11-12 13:45:32 +01:00
background: #D12F19;
color:white;
2011-11-08 18:23:13 +01:00
}
2011-11-09 12:37:01 +01:00
2011-11-28 19:30:35 +01:00
&.today, &.open {
2011-11-12 13:45:32 +01:00
background: #44aa22;
color:white;
2011-11-09 12:37:01 +01:00
}
2011-11-12 13:45:32 +01:00
&.yours {
background: #4466cc;
color:white;
}
&.normal {
background: #2c5ca6;
color:white;
}
&.notes {
background: #2c5c66;
color:white;
}
2011-11-12 15:19:34 +01:00
&.note {
background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.076, #fefefe), to(#F6F7F8));
background-image: -webkit-linear-gradient(#fefefe 7.6%, #F6F7F8);
background-image: -moz-linear-gradient(#fefefe 7.6%, #F6F7F8);
background-image: -o-linear-gradient(#fefefe 7.6%, #F6F7F8);
color: #777;
border: 1px solid #DEDFE1;
2011-11-12 15:19:34 +01:00
}
2011-11-15 09:34:30 +01:00
&.issue {
background: #D12F19;
color:white;
}
2011-11-15 09:34:30 +01:00
&.commit {
2011-12-07 23:31:04 +01:00
background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.076, #fefefe), to(#F6F7F8));
background-image: -webkit-linear-gradient(#fefefe 7.6%, #F6F7F8);
background-image: -moz-linear-gradient(#fefefe 7.6%, #F6F7F8);
background-image: -o-linear-gradient(#fefefe 7.6%, #F6F7F8);
color: #777;
border: 1px solid #DEDFE1;
2011-11-09 12:37:01 +01:00
}
}
2011-11-12 12:04:43 +01:00
2011-11-13 12:58:45 +01:00
#holder {
border: solid 1px #999;
cursor: move;
height: 70%;
2011-11-13 14:12:52 +01:00
overflow: hidden;
2011-11-13 12:58:45 +01:00
}
2011-11-12 15:19:34 +01:00
/* Project Dashboard Page */
html, body { height: 100%; }
body.dashboard.project-page .news-feed h2{float: left;}
body.dashboard.project-page .news-feed .project-updates {margin-bottom: 20px; display: block; width: 100%;}
body.dashboard.project-page .news-feed .project-updates .data{ padding: 0}
body.dashboard.project-page .news-feed .project-updates a.project-update {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
body.dashboard.project-page .news-feed .project-updates a.project-update:last-child{border-bottom: 0}
body.dashboard.project-page .news-feed .project-updates a.project-update img{float: left; margin-right: 10px;}
body.dashboard.project-page .news-feed .project-updates a.project-update span.update-title, .dashboard-page .news-feed .project-updates li a span.update-author{display: block;}
body.dashboard.project-page .news-feed .project-updates a.project-update span.update-title{margin-bottom: 10px}
body.dashboard.project-page .news-feed .project-updates a.project-update span.update-author{color: #999; font-weight: normal; font-style: italic;}
body.dashboard.project-page .news-feed .project-updates a.project-update span.update-author strong{font-weight: bold; font-style: normal;}
/* eo Dashboard Page */
2011-11-28 08:39:43 +01:00
/** Merge requests */
body.project-page .merge-request-commits {margin-bottom: 20px; display: block; width: 100%;}
body.project-page .merge-request-commits .data{ padding: 0}
body.project-page .merge-request-commits a.commit {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
body.project-page .merge-request-commits a.commit:last-child{border-bottom: 0}
body.project-page .merge-request-commits a.commit img{float: left; margin-right: 10px;}
body.project-page .merge-request-commits a.commit span.update-title, .dashboard-page .news-feed .project-updates li a span.update-author{display: block;}
body.project-page .merge-request-commits a.commit span.update-title{margin-bottom: 10px}
body.project-page .merge-request-commits a.commit span.update-author{color: #999; font-weight: normal; font-style: italic;}
body.project-page .merge-request-commits a.commit span.update-author strong{font-weight: bold; font-style: normal;}
2011-11-28 19:30:35 +01:00
/** Update entry **/
.update-data { padding: 0 }
.update-data { width:100%; }
.update-data.ui-box .data { padding:0; }
a.update-item {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
a.update-item:last-child{border-bottom: 0}
a.update-item img{float: left; margin-right: 10px;}
a.update-item span.update-title, .dashboard-page .news-feed .project-updates li a span.update-author{display: block;}
a.update-item span.update-title{margin-bottom: 10px}
a.update-item span.update-author{color: #999; font-weight: normal; font-style: italic;}
a.update-item span.update-author strong{font-weight: bold; font-style: normal;}
body.project-page .team_member_new .span-6, .team_member_edit .span-6{ padding:10px 0; }
2011-11-22 13:50:47 +01:00
body.projects-page input.text.git-url.project_list_url { width:165px; }
body.project-page table.no-borders tr,
2011-12-12 17:42:07 +01:00
body.project-page table.no-borders td{
border:none;
}
2011-11-28 21:16:57 +01:00
2011-12-12 17:42:07 +01:00
.ajax-tab-loading {
2011-11-28 21:38:11 +01:00
padding:40px;
display:none;
}
2011-12-01 15:16:53 +01:00
#tree-content-holder { float:left; width:100%; }
2011-12-08 00:35:57 +01:00
2011-12-12 17:42:07 +01:00
#tree-readme-holder {
float:left;
width:100%;
.readme {
@include round-borders-all(4px);
padding: 4px 15px;
background:#F7F7F7;
}
}
2011-12-08 00:35:57 +01:00
/* Commit Page */
.entity-info {float: right;}
.entity-button{
background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.192, #fff), to(#f4f4f4));
background-image: -webkit-linear-gradient(#fff 19.2%, #f4f4f4);
background-image: -moz-linear-gradient(#fff 19.2%, #f4f4f4);
background-image: -o-linear-gradient(#fff 19.2%, #f4f4f4);
box-shadow: 0 -1px 0 white inset;
display: block;
border: 1px solid #eee;
border-radius: 5px;
margin-bottom: 2px;
position: relative;
padding: 4px 10px;
font-size: 11px;
padding-right: 20px;
}
.entity-button i{
background: url('images.png') no-repeat -138px -27px;
width: 6px;
height: 9px;
float: right;
position: absolute;
top: 6px;
right: 5px;
}
2011-12-08 20:17:53 +01:00
.box-arrow{float: right; background: #E3E5EA; padding: 10px; border-radius: 5px; margin-top: 2px; text-shadow: none; color: #999; margin: 1.5em 0;}
2011-12-12 08:38:37 +01:00
h4.dash-tabs {
margin: 0;
border-bottom: 1px solid #ccc;
padding: 10px 10px;
font-size: 11px;
padding-left:20px;
font-weight: bold; text-transform: uppercase;
background: #F7F7F7;
margin-bottom:20px;
height:13px;
2011-12-12 08:38:37 +01:00
}
.dash-button {
border-right: 1px solid #ddd;
2011-12-12 08:38:37 +01:00
background:none;
padding: 10px 15px;
float:left;
position:relative;
top:-10px;
left:0px;
height:13px;
2011-12-12 08:38:37 +01:00
&:first-child {
border-left: 1px solid #ddd;
}
2011-12-12 08:38:37 +01:00
&.active {
background: #eaeaea;
}
}
2011-12-12 18:22:01 +01:00
h4.middle-panel {
margin: 0;
border-bottom: 1px solid #ccc;
2011-12-12 22:17:28 +01:00
padding: 10px 20px;
2011-12-12 18:22:01 +01:00
font-size: 11px;
background: #F7F7F7;
height:30px;
.project_name {
float:left;
width:160px;
margin-right:30px;
font-size:16px;
font-weight:bold;
padding:5px 7px;
color:#777;
}
.git_url_wrapper {
padding:0px;
margin:0px;
float:left;
.git-url {
padding:0px;
margin:0px;
font-size: 12px;
border-radius: 5px;
color: #666;
box-shadow: 0 1px 2px rgba(0,0,0,.2) inset;
padding: 7px 0 5px 30px;
background: white url('images.png') no-repeat 8px -40px;
width: 250px;
}
}
}
2011-12-12 23:08:15 +01:00
.dashboard-loader {
float:right;
margin-right:30px;
display:none;
}
2011-12-13 09:07:52 +01:00
2011-12-13 19:40:45 +01:00
.merge-tabs {
2011-12-13 09:07:52 +01:00
margin: 0;
border: 1px solid #ccc;
2011-12-13 22:24:31 +01:00
padding: 5px;
font-size: 12px;
2011-12-13 09:07:52 +01:00
background: #F7F7F7;
margin-bottom:20px;
2011-12-13 22:24:31 +01:00
height:26px;
2011-12-13 09:07:52 +01:00
2011-12-13 22:24:31 +01:00
.tab {
font-weight: bold;
border-right: 1px solid #ddd;
2011-12-13 09:07:52 +01:00
background:none;
2011-12-13 22:24:31 +01:00
padding: 10px;
min-width:60px;
2011-12-13 22:24:31 +01:00
float:left;
position:relative;
top:-5px;
left:-5px;
height:16px;
padding-left:34px;
span {
width: 20px;
height: 20px;
display: inline-block;
position: absolute;
left: 8px;
top: 8px;
}
2011-12-13 09:07:52 +01:00
&.active {
background: #eaeaea;
}
}
}
2011-12-31 12:12:10 +01:00
.merge-tabs.repository .tab span{ background: url("images.png") no-repeat -38px -77px; }
.activities-tab span { background: url("images.png") no-repeat -161px -1px; }
2011-12-30 07:54:42 +01:00
.stat-tab span,
.team-tab span,
.snippets-tab span { background: url("images.png") no-repeat -38px -77px; }
.files-tab span { background: url("images.png") no-repeat -112px -23px; }
2011-12-13 19:40:45 +01:00
2011-12-13 22:24:31 +01:00
.merge-notes-tab span { background: url("images.png") no-repeat -161px -1px; }
.merge-commits-tab span { background: url("images.png") no-repeat -86px 1px; }
.merge-diffs-tab span { background: url("images.png") no-repeat -118px 1px; }
.merge-tabs .dashboard-loader { padding:8px; }
2011-12-13 19:40:45 +01:00
.user-mention {
color: #2FA0BB;
font-weight: bold;
}
2011-12-13 22:24:31 +01:00
.author {
color: #999;
}
.red-button{
border-radius: 5px;
font-size: 12px;
font-weight: bold;
padding: 5px 17px;
border: 1px solid #999;
color: #666;
display: inline-block;
box-shadow: 0 1px 2px rgba(0,0,0,.3);
background: #D12F19;
color: white;
}
.positive-button{
border-radius: 5px;
font-size: 12px;
font-weight: bold;
padding: 5px 17px;
border: 1px solid #999;
color: #666;
display: inline-block;
box-shadow: 0 1px 2px rgba(0,0,0,.3);
background: #4A2;
color: white;
}
.rss-icon {
margin:0 15px;
padding:5px;
border:1px solid #ccc;
border-radius:3px;
float:left;
}
2011-12-20 07:59:14 +01:00
body.project-page h2.icon.loading {
span {
background-position: 0px 0px;
background: url("ajax-loader-tree.gif") no-repeat;
}
}
.dark_scheme_box {
padding:20px 0;
label {
float:left;
box-shadow: 0 0px 5px rgba(0,0,0,.3);
img {
}
}
}
a.project-update.titled {
position: relative;
2012-01-04 21:19:41 +01:00
padding-left: 235px !important;
2012-01-04 21:19:41 +01:00
.title-block {
padding: 10px;
2012-01-04 21:19:41 +01:00
width: 205px;
background: #f5f5f5;
position: absolute;
2012-01-04 21:19:41 +01:00
left: 0;
top: 0;
}
}