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

713 lines
12 KiB
SCSS
Raw Normal View History

2011-10-08 23:36:38 +02:00
// Place all the styles related to the Projects controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@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;
}
@mixin hover-color {
2011-10-08 23:36:38 +02:00
background: #fff !important;
background: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#FFF6BF)) !important;
background: -moz-linear-gradient(top,#fff,#FFF6BF) !important;
background: transparent 9 !important;
}
.diff_file {
border:1px solid #CCC;
margin-bottom:1em;
.diff_file_header {
2011-10-08 23:36:38 +02:00
padding:5px 5px;
border-bottom:1px solid #CCC;
background: #eee;
}
.diff_file_content {
2011-11-05 13:45:52 +01:00
overflow:auto;
overflow-y:hidden;
2011-10-08 23:36:38 +02:00
background:#fff;
color:#333;
font-size: 12px;
font-family: 'Courier New', 'andale mono','lucida console',monospace;
}
.diff_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;
}
}
}
#logo {
&:hover {
2011-10-08 23:36:38 +02:00
background:none;
}
}
.file_stats {
2011-10-08 23:36:38 +02:00
margin-bottom:10px;
@include round-borders-all(4px);
span {
2011-10-08 23:36:38 +02:00
border-top: 1px solid #eaeaea;
padding:5px 5px;
display:block;
&:first-child {
2011-10-08 23:36:38 +02:00
border-top:none;
}
img {
2011-10-08 23:36:38 +02:00
width:18px;
float:left;
margin-right: 6px;
}
}
}
.round-borders {
2011-10-08 23:36:38 +02:00
@include round-borders-all(4px);
padding: 4px 0px;
}
table.round-borders {
2011-10-08 23:36:38 +02:00
float:left;
}
@mixin panel-color {
2011-10-08 23:36:38 +02:00
background: #111 !important;
background: -webkit-gradient(linear,left top,left bottom,from(#333),to(#111)) !important;
background: -moz-linear-gradient(top,#333,#111) !important;
background: transparent 9 !important;
}
#header-panel {
2011-10-08 23:36:38 +02:00
@include panel-color;
height:40px;
position:fixed;
z-index:999;
top:0px;
width:100%;
margin-bottom:10px;
overflow:hidden;
.button{
color:#bbb;
border:none;
margin:0px;
height:25px;
background:transparent;
padding:10px 20px 5px 20px;
&:hover{
color:white;
}
&.current {
2011-10-08 23:36:38 +02:00
border-bottom: 3px solid #EAEAEA !important;
padding: 10px 20px 0;
color: #eaeaea;
}
}
.search-holder {
2011-10-08 23:36:38 +02:00
float:left;
width:290px;
2011-10-08 23:36:38 +02:00
input {
@include round-borders-all(4px);
width:290px;
2011-10-08 23:36:38 +02:00
border-color:#888;
padding:5px;
background:#666;
color:#222;
&:focus {
2011-10-08 23:36:38 +02:00
background:#fff;
color:#000;
}
}
}
}
#content-container{
min-height:250px;
background: #fff;
@include round-borders-bottom(8px);
borders:2px solid #eaeaea;
border-top: none;
padding:20px;
}
a {
color: #111;
}
.diff_file_content{
.old_line, .new_line {
2011-10-08 23:36:38 +02:00
background:#ECECEC;
color:#777;
2011-11-05 13:45:52 +01:00
width:30px;
2011-10-08 23:36:38 +02:00
float:left;
2011-11-05 13:45:52 +01:00
padding: 0px 5px;
2011-10-08 23:36:38 +02:00
border-right: 1px solid #ccc;
}
}
.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;
}
}
.view_file {
border:1px solid #CCC;
margin-bottom:1em;
.view_file_header {
2011-10-08 23:36:38 +02:00
padding:5px 5px;
border-bottom:1px solid #CCC;
background: #eee;
}
.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;
}
}
}
.back_small.button{
}
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;
}
.top_project_menu {
a {
2011-10-08 23:36:38 +02:00
border-right: 1px solid #FFFFFF;
box-shadow: -1px 0 #DDDDDD inset;
color: #666;
display: block;
font-size: 16px;
text-decoration: none;
line-height: 20px;
padding: 11px 26px 12px 24px;
text-shadow: 0 1px 0 #FFFFFF;
float:left;
&.current {
2011-10-08 23:36:38 +02:00
background-color: #FFFFFF;
color: #222222;
}
}
}
.top_bar {
margin-top:50px;
background-color: #F4F4F4;
@include round-borders-top(8px);
box-shadow: 0 1px #FFFFFF inset, 0 -1px #DDDDDD inset;
height: 43px;
overflow: hidden;
width:990px;
}
/** FORM INPUTS **/
.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,
.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);
}
}
.input_button {
2011-10-08 23:36:38 +02:00
//@include round-borders-all(4px);
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;
}
.top_menu_count {
2011-10-28 14:07:58 +02:00
background: none repeat scroll 0 0 white;
color: #333;
border-color: #4BB8D2;
2011-10-08 23:36:38 +02:00
padding: 2px;
2011-10-28 14:07:58 +02:00
font-size:10px;
2011-10-08 23:36:38 +02:00
border-top:none;
2011-10-28 14:07:58 +02:00
text-align:center;
float:right;
width:25px;
2011-10-08 23:36:38 +02:00
}
#logo {
color: #EAEAEA;
font-family: monospace;
font-size: 26px;
padding: 4px;
text-decoration: none;
text-shadow: #555 1px 1px;
}
2011-10-31 14:34:22 +01:00
/** FLASH **/
2011-10-08 23:36:38 +02:00
#flash_container {
2011-10-08 23:36:38 +02:00
height:40px;
position:fixed;
z-index:1009;
top:0px;
width:100%;
margin-bottom:10px;
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;
margin: 0px 5px;
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;
}
}
/** Notes **/
#notes-list {
2011-10-08 23:36:38 +02:00
display:block;
list-style:none;
margin:0px;
padding:0px;
}
.notes_count {
2011-10-08 23:36:38 +02:00
background: none repeat scroll 0 0 #FFF6BF;
border-color: #FFD324;
color: #514721;
border: 2px solid #DDDDDD;
margin-bottom: 1em;
margin-top: 3px;
padding: 2px 5px;
position: relative;
right: 6px;
top: 6px;
}
.issue_notes {
.note_content {
2011-10-08 23:36:38 +02:00
float:left;
width:400px;
}
}
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
.project_thumb {
2011-10-11 22:00:00 +02:00
margin:20px 0;
width: 250px;
float:left;
padding:20px;
text-align:center;
p, h4 {
2011-10-11 22:00:00 +02:00
text-align:left;
}
.lbutton {
2011-10-11 22:00:00 +02:00
float:left;
}
}
2011-10-15 18:56:53 +02:00
.handle:hover{
cursor: move;
}
2011-10-15 19:41:38 +02:00
.handle{
width: 12px;
height: 12px;
padding: 10px;
}
2011-10-18 16:44:43 +02:00
.recent_message_parent {
img {
2011-10-18 16:44:43 +02:00
padding-right:10px;
}
float: left;
margin: 0 20px 20px 0px;
2011-10-19 15:25:22 +02:00
padding: 5px 0px;;
2011-10-18 16:44:43 +02:00
width: 420px;
2011-10-19 15:25:22 +02:00
&.dash_wall{
border-bottom: 2px solid orange;
span {
2011-10-19 15:25:22 +02:00
background: orange;
color:black;
}
}
&.dash_issue{
border-bottom: 2px solid #ffbbbb;
span {
2011-10-19 15:25:22 +02:00
background: #ffbbbb;
}
}
&.dash_commit{
border-bottom: 2px solid #bbbbff;
span{
2011-10-19 15:25:22 +02:00
background: #bbbbff;
}
}
&.dash_snippet{
border-bottom: 2px solid #bbffbb;
span{
background: #bbffbb;
}
}
span{
border: 1px solid #aaa;
color:black;
padding:1px 4px;
}
h4 {
2011-10-18 16:44:43 +02:00
margin-bottom:3px;
}
}
2011-10-20 18:21:58 +02:00
.commit,
2011-11-04 14:37:38 +01:00
.message{
.author {
2011-10-19 15:25:22 +02:00
background: #eaeaea;
color: #333;
border: 1px solid #aaa;
padding:1px 2px;
margin-right:5px;
2011-10-18 16:44:43 +02:00
}
}
2011-10-20 18:21:58 +02:00
/* Note textare */
#note_note {
2011-10-20 18:21:58 +02:00
height:100px;
width:97%;
font-size:14px;
}
2011-11-04 16:46:51 +01:00
#new_note {
#note_note {
2011-10-20 18:21:58 +02:00
height:25px;
}
.attach_holder {
2011-10-20 18:21:58 +02:00
display:none;
}
}
2011-10-21 20:51:55 +02:00
.field_with_errors {
input[type="text"],
input[type="password"],
textarea
{
background: none repeat scroll 0 0 #FFBBBB
}
}
2011-10-25 06:34:02 +02:00
.tag {
@include round-borders-all(4px);
padding:2px 4px;
border:none;
2011-11-05 14:31:54 +01:00
text-shadow:none;
2011-10-25 06:34:02 +02:00
&.high {
2011-10-25 06:34:02 +02:00
background: #D12F19;
color:white;
}
&.today {
2011-10-25 06:34:02 +02:00
background: #44aa22;
color:white;
}
&.yours {
2011-10-25 06:34:02 +02:00
background: #4466cc;
color:white;
}
2011-10-28 11:22:09 +02:00
&.normal {
background: #2c5ca6;
color:white;
}
2011-10-25 06:34:02 +02:00
&.notes {
background: #2c5c66;
color:white;
}
}
#issues-table .issue {
&.critical {
2011-10-25 06:34:02 +02:00
td {
//background: #D12F19;
//color:#fff;
}
}
}
2011-10-26 06:34:02 +02:00
.top_panel_issues{
2011-10-31 14:34:22 +01:00
#issue_search_form {
margin:5px 0;
input {
2011-10-26 06:34:02 +02:00
border:1px solid #D3D3D3;
padding: 3px;
2011-10-26 06:44:02 +02:00
height: 28px;
2011-10-26 06:34:02 +02:00
width: 300px;
2011-10-26 06:44:02 +02:00
-webkit-appearance:none;
box-sizing: border-box;
-moz-box-sizing: border-box;
2011-10-26 06:34:02 +02:00
2011-10-31 14:34:22 +01:00
&:focus {
2011-10-26 06:34:02 +02:00
border-color:#c2e1ef;
}
}
}
}
2011-10-28 14:07:58 +02:00
.left {
float:left;
}
.right {
float:right;
}
2011-11-01 12:17:36 +01:00
.width-50p{
width:50%;
}
.width-49p{
width:49%;
}
.width-30p{
width:30%;
}
.width-65p{
width:65%;
2011-11-01 21:11:24 +01:00
}
2011-10-31 14:34:22 +01:00
pre.commit_message {
white-space: pre-wrap;
2011-11-01 12:17:36 +01:00
}
2011-11-01 21:11:24 +01:00
#container {
min-height:100%;
}
.ui-selectmenu{
@include round-borders-all(4px);
margin-right:10px;
font-size:1.5em;
height:auto;
font-weight:bold;
.ui-selectmenu-status {
padding:3px 10px;
}
}
td.code {
width: 100%;
.highlight {
margin-left: 55px;
overflow:auto;
overflow-y:hidden;
}
}
.highlight pre {
white-space: pre;
word-wrap:normal;
}
.highlighttable tr:hover {
background:white;
}
table.highlighttable pre{
line-height:16px !important;
font-size:12px !important;
}
2011-11-03 17:28:33 +01:00
.project-refs-form {
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-05 14:31:54 +01:00
.issues_filter {
margin-top:10px;
.left {
margin-right:15px;
}
}
2011-11-06 14:52:23 +01:00
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
2011-11-06 21:21:48 +01:00
body.project-page table .commit {
a.tree-commit-link {
color:gray;
&:hover {
text-decoration:underline;
}
}
}
2011-11-07 16:55:16 +01:00
#notes-list .note .delete-note { display:none; }
#notes-list .note:hover .delete-note { display:block; }
#issues-table-holder .issue .action-links {
display:none;
a {
margin-left:10px;
}
}
.issue-number {
float: left;
border-radius: 5px;
text-shadow: none;
background: rgba(0, 0, 0, 0.12);
text-align: center;
padding: 14px 8px;
width: 40px;
margin-right: 10px;
color: #444;
}
#issues-table-holder .issue:hover .action-links { display:block; }
2011-11-04 14:37:38 +01:00
body.project-page #notes-list .note {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
body.project-page #notes-list .note {padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
body.project-page #notes-list .note img{float: left; margin-right: 10px;}
body.project-page #notes-list .note span.note-title{display: block;}
body.project-page #notes-list .note span.note-title{margin-bottom: 10px}
body.project-page #notes-list .note span.note-author{color: #999; font-weight: normal; font-style: italic;}
body.project-page #notes-list .note span.note-author strong{font-weight: bold; font-style: normal;}