Commit d62200ca authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

clean-up code

  * Remove trailing whitespace
  * Converts hard-tabs into two-space soft-tabs
  * Remove consecutive blank lines
parent ac7ff77f5f30
......@@ -8,7 +8,7 @@ $(document).ready(function(){
e.stopPropagation();
$(this).find("td.tree-item-file-name a").click();
return false;
}
}
});
$("#projects-list .project").live('click', function(e){
......
......@@ -3,5 +3,5 @@
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require_tree .
*= require_tree .
*/
@mixin round-borders-all($radius) {
@mixin round-borders-all($radius) {
border: 1px solid #eaeaea;
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
......@@ -28,11 +28,11 @@ td.linenos{
.highlight pre{
}
.linenodiv pre {
.linenodiv pre {
white-space:pre-line;
}
td.linenos {
td.linenos {
background:#ECECEC;
color:#777;
padding:10px 0px 0px 10px;
......@@ -42,7 +42,7 @@ td.linenos {
}
td.code .highlight {
td.code .highlight {
overflow: auto;
}
table.highlighttable pre{
......@@ -53,9 +53,8 @@ table.highlighttable pre{
text-align:left;
}
.git-empty .highlight {
@include round-borders-all(4px);
@include round-borders-all(4px);
background:#eee;
padding:5px;
//overflow-x:scroll;
......@@ -71,10 +70,9 @@ table.highlighttable pre{
.shadow{
-webkit-box-shadow:0 5px 15px #000;
-moz-box-shadow:0 5px 15px #000;
box-shadow:0 5px 15px #000;
box-shadow:0 5px 15px #000;
}
.hll { background-color: #ffffff }
.c { color: #888888; font-style: italic } /* Comment */
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
......@@ -105,7 +103,7 @@ table.highlighttable pre{
.highlight .nb{color:#0086B3;} /* Name.Builtin */
.highlight .nc{color:#458;font-weight:bold;} /* Name.Class */
.highlight .no{color:#008080;} /* Name.Constant */
.highlight .ni{color:#800080;}
.highlight .ni{color:#800080;}
.highlight .ne{color:#900;font-weight:bold;} /* Name.Exception */
.highlight .nf{color:#900;font-weight:bold;} /* Name.Function */
.highlight .nn{color:#005;font-weight:bold;} /* Name.Namespace */
......
......@@ -3,7 +3,7 @@
.ui-selectmenu { background:none; font-size:12px;display: block; display: inline-block; position: relative; height: 2.2em; vertical-align: middle; text-decoration: none; overflow: hidden; zoom: 1; }
.ui-selectmenu-icon { position:absolute; right:6px; margin-top:-8px; top: 50%; }
.ui-selectmenu-menu { padding:0; margin:0; position:absolute; top: 0; display: none; z-index: 1005;} /* z-index: 1005 to make selectmenu work with dialog */
.ui-selectmenu-menu ul { padding:0; margin:0; list-style:none; position: relative; overflow: auto; overflow-y: auto ; overflow-x: hidden; }
.ui-selectmenu-menu ul { padding:0; margin:0; list-style:none; position: relative; overflow: auto; overflow-y: auto ; overflow-x: hidden; }
.ui-selectmenu-open { display: block; }
.ui-selectmenu.ui-widget { background:none; }
.ui-selectmenu-menu-popup { margin-top: -1px; }
......
......@@ -2,7 +2,7 @@
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@mixin round-borders-bottom($radius) {
@mixin round-borders-bottom($radius) {
border-top: 1px solid #eaeaea;
-moz-border-radius-bottomright: $radius;
......@@ -15,7 +15,7 @@
-webkit-border-bottom-right-radius: $radius;
}
@mixin round-borders-top($radius) {
@mixin round-borders-top($radius) {
border-top: 1px solid #eaeaea;
-moz-border-radius-topright: $radius;
......@@ -28,14 +28,14 @@
-webkit-border-top-right-radius: $radius;
}
@mixin round-borders-all($radius) {
@mixin round-borders-all($radius) {
border: 1px solid #eaeaea;
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
border-radius: $radius;
}
@mixin hover-color {
@mixin hover-color {
background: #fff !important;
background: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#FFF6BF)) !important;
background: -moz-linear-gradient(top,#fff,#FFF6BF) !important;
......@@ -46,47 +46,47 @@
border:1px solid #CCC;
margin-bottom:1em;
.diff_file_header {
.diff_file_header {
padding:5px 5px;
border-bottom:1px solid #CCC;
background: #eee;
}
.diff_file_content {
.diff_file_content {
overflow-x: scroll;
background:#fff;
color:#333;
font-size: 12px;
font-family: 'Courier New', 'andale mono','lucida console',monospace;
}
.diff_file_content_image {
.diff_file_content_image {
background:#eee;
text-align:center;
img {
img {
padding:100px;
max-width:300px;
}
}
}
#logo {
&:hover {
#logo {
&:hover {
background:none;
}
}
.file_stats {
.file_stats {
margin-bottom:10px;
@include round-borders-all(4px);
span {
span {
border-top: 1px solid #eaeaea;
padding:5px 5px;
display:block;
&:first-child {
&:first-child {
border-top:none;
}
img {
img {
width:18px;
float:left;
margin-right: 6px;
......@@ -94,15 +94,15 @@
}
}
.round-borders {
.round-borders {
@include round-borders-all(4px);
padding: 4px 0px;
}
table.round-borders {
table.round-borders {
float:left;
}
.day-commits-table {
.day-commits-table {
@include round-borders-all(4px);
padding: 4px 0px;
margin-bottom:10px;
......@@ -110,55 +110,54 @@ table.round-borders {
width:100%;
background: #E6F1F6;
.day-header {
.day-header {
padding:10px;
h3 {
margin:0px;
}
}
ul {
ul {
display:block;
list-style:none;
margin:0px;
padding:0px;
li.commit {
li.commit {
display:list-item;
padding:8px;
margin:0px;
background: #F7FBFC;
border-top: 1px solid #E2EAEE;
&:first-child {
&:first-child {
border-top: 1px solid #E2EAEE;
}
&:nth-child(2n+1) {
background: white;
}
a.button {
a.button {
width:85px;
padding:10px;
margin:0px;
float:right;
}
p {
p {
margin-bottom: 3px;
font-size: 13px;
}
}
}
}
@mixin panel-color {
@mixin panel-color {
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 {
#header-panel {
@include panel-color;
height:40px;
position:fixed;
......@@ -178,23 +177,23 @@ table.round-borders {
color:white;
}
&.current {
&.current {
border-bottom: 3px solid #EAEAEA !important;
padding: 10px 20px 0;
color: #eaeaea;
}
}
.search-holder {
.search-holder {
float:left;
width:290px;
width:290px;
input {
@include round-borders-all(4px);
width:290px;
width:290px;
border-color:#888;
padding:5px;
background:#666;
color:#222;
&:focus {
&:focus {
background:#fff;
color:#000;
}
......@@ -211,7 +210,7 @@ table.round-borders {
padding:20px;
}
body {
body {
background: #eaeaea;
}
......@@ -220,7 +219,7 @@ a {
}
.diff_file_content{
.old_line, .new_line {
.old_line, .new_line {
background:#ECECEC;
color:#777;
width:15px;
......@@ -230,9 +229,8 @@ a {
}
}
.view_file_content{
.old_line, .new_line {
.old_line, .new_line {
background:#ECECEC;
color:#777;
width:15px;
......@@ -249,20 +247,20 @@ a {
border:1px solid #CCC;
margin-bottom:1em;
.view_file_header {
.view_file_header {
padding:5px 5px;
border-bottom:1px solid #CCC;
background: #eee;
}
.view_file_content {
.view_file_content {
background:#fff;
color:#514721;
font-size: 11px;
}
.view_file_content_image {
.view_file_content_image {
background:#eee;
text-align:center;
img {
img {
padding:100px;
max-width:300px;
}
......@@ -273,7 +271,7 @@ a {
}
input.ssh_project_url {
input.ssh_project_url {
padding:5px;
margin:0px;
float:right;
......@@ -281,12 +279,10 @@ input.ssh_project_url {
text-align:center;
}
.day-commits-table li.commit {
.day-commits-table li.commit {
cursor:pointer;
&:hover {
&:hover {
@include hover-color;
}
}
......@@ -295,39 +291,39 @@ input.ssh_project_url {
#FFF6BF
#FFD324
*/
#tree-slider tr.tree-item {
#tree-slider tr.tree-item {
cursor:pointer;
&:hover {
&:hover {
@include hover-color;
td {
td {
@include hover-color;
}
}
}
#projects-list .project {
#projects-list .project {
height:50px;
}
#projects-list .project,
#snippets-table .snippet,
#issues-table .issue{
#issues-table .issue{
cursor:pointer;
&:hover {
&:hover {
@include hover-color;
td {
td {
@include hover-color;
}
}
}
.clear {
.clear {
clear: both;
}
.top_project_menu {
a {
.top_project_menu {
a {
border-right: 1px solid #FFFFFF;
box-shadow: -1px 0 #DDDDDD inset;
color: #666;
......@@ -339,7 +335,7 @@ input.ssh_project_url {
text-shadow: 0 1px 0 #FFFFFF;
float:left;
&.current {
&.current {
background-color: #FFFFFF;
color: #222222;
}
......@@ -363,11 +359,11 @@ input.ssh_project_url {
.new_project,
.new_snippet,
.edit_snippet,
.edit_project {
.edit_project {
input[type='text'],
input[type='email'],
input[type='password'],
textarea {
textarea {
width:400px;
padding:8px;
font-size:14px;
......@@ -375,7 +371,7 @@ input.ssh_project_url {
}
}
.input_button {
.input_button {
//@include round-borders-all(4px);
padding:8px;
font-size:14px;
......@@ -393,7 +389,7 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
border-bottom: 1px solid #E2EAEE;
}
.top_menu_count {
.top_menu_count {
background: none repeat scroll 0 0 #FFF6BF;
border-color: #FFD324;
color: #514721;
......@@ -417,7 +413,7 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
/** FALSH **/
#flash_container {
#flash_container {
height:40px;
position:fixed;
z-index:1009;
......@@ -429,7 +425,7 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
cursor:pointer;
border-bottom:1px solid #777;
h4 {
h4 {
color:#444;
font-size:22px;
padding-top:5px;
......@@ -460,50 +456,50 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
color: #0099FF;
}
&.hm {
&.hm {
margin: 0px 0px;
}
&.vm {
&.vm {
margin: 5px 0px;
}
}
/** Notes **/
#notes-list {
#notes-list {
display:block;
list-style:none;
margin:0px;
padding:0px;
li {
li {
display:list-item;
padding:8px;
margin:0px;
background: #F7FBFC;
border-top: 1px solid #E2EAEE;
&:first-child {
&:first-child {
border-top: none;
}
&:nth-child(2n+1) {
background: white;
}
p {
p {
margin-bottom: 4px;
font-size: 13px;
color:#111;
}
}
cite {
&.ago {
cite {
&.ago {
color:#666;
}
}
}
.notes_count {
.notes_count {
background: none repeat scroll 0 0 #FFF6BF;
border-color: #FFD324;
color: #514721;
......@@ -515,36 +511,36 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
right: 6px;
top: 6px;
}
.note_author {
.note_author {
float:left;
width:60px;
}
.note_content {
.note_content {
float:left;
width:650px;
}
.issue_notes {
.note_content {
.issue_notes {
.note_content {
float:left;
width:400px;
}
}
#user_projects_limit{
width: 60px;
width: 60px;
}
.project_thumb {
.project_thumb {
margin:20px 0;
width: 250px;
float:left;
padding:20px;
text-align:center;
p, h4 {
p, h4 {
text-align:left;
}
.lbutton {
.lbutton {
float:left;
}
}
......@@ -559,8 +555,8 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
padding: 10px;
}
.recent_message_parent {
img {
.recent_message_parent {
img {
padding-right:10px;
}
......@@ -571,7 +567,7 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
&.dash_wall{
border-bottom: 2px solid orange;
span {
span {
background: orange;
color:black;
}
......@@ -579,14 +575,14 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
&.dash_issue{
border-bottom: 2px solid #ffbbbb;
span {
span {
background: #ffbbbb;
}
}
&.dash_commit{
border-bottom: 2px solid #bbbbff;
span{
span{
background: #bbbbff;
}
}
......@@ -594,27 +590,26 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
&.dash_snippet{
border-bottom: 2px solid #bbffbb;
span{
span{
background: #bbffbb;
}
}
span{
span{
border: 1px solid #aaa;
color:black;
padding:1px 4px;
}