Working on dashboard restyle and events refactoring

This commit is contained in:
Dmitriy Zaporozhets 2012-09-24 12:32:51 +03:00
parent a6f58b9c43
commit d23022c6f6
11 changed files with 194 additions and 170 deletions

View file

@ -1,7 +1,7 @@
.commit-box {
@extend .main_box;
.commit-head {
.commit-head {
@extend .top_box_content;
.commit-title {
@ -29,11 +29,11 @@
.sha-block {
text-align:right;
&:first-child {
&:first-child {
padding-bottom:6px;
}
a {
a {
border-bottom: 1px solid #aaa;
margin-left: 9px;
}
@ -54,7 +54,7 @@
}
/**
*
*
* COMMIT SHOw
*
*/
@ -71,7 +71,7 @@
background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
span {
span {
font-size:14px;
}
}
@ -111,8 +111,8 @@
}
}
&.img_compared {
img {
&.img_compared {
img {
max-width:300px;
}
}
@ -120,12 +120,12 @@
}
.diff_file_content{
table {
table {
border:none;
margin:0px;
padding:0px;
tr {
td {
td {
font-size:12px;
}
}
@ -145,29 +145,29 @@
moz-user-select: none;
-khtml-user-select: none;
user-select: none;
a {
a {
float:left;
width:35px;
font-weight:normal;
color:#666;
&:hover {
&:hover {
text-decoration:underline;
}
}
}
.line_content {
white-space:pre;
.line_content {
white-space:pre;
height:14px;
margin:0px;
padding:0px;
border:none;
&.new {
&.new {
background: #CFD;
}
&.old {
&.old {
background: #FDD;
}
&.matched {
&.matched {
color:#ccc;
background:#fafafa;
}
@ -182,32 +182,32 @@
/** COMMIT ROW **/
.commit {
.commit {
@extend .wll;
.browse_code_link_holder {
.browse_code_link_holder {
@extend .span2;
float:right;
}
.committed_ago {
.committed_ago {
float:right;
@extend .cgray;
}
code {
code {
background:#FCEEC1;
color:$style_color;
}
.commit_short_id {
.commit_short_id {
float:left;
@extend .lined;
min-width:65px;
font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace;
}
.commit-author-name {
.commit-author-name {
color: #777;
}
}

View file

@ -0,0 +1,105 @@
/**
* Events labels
*
*/
.event_label {
/*@extend .label;*/
/*background-color: #999;*/
/*&.pushed {*/
/*background-color: #4A97BD;*/
/*}*/
/*&.opened {*/
/*background-color: #469847;*/
/*}*/
/*&.closed {*/
/*background-color: #B94A48;*/
/*}*/
/*&.merged {*/
/*background-color: #2A2;*/
/*}*/
/*&.joined {*/
/*background-color: #1ca9dd;*/
/*}*/
/*&.left {*/
/*background-color: #888;*/
/*float:none;*/
/*}*/
}
/**
* Dashboard events feed
*
*/
.event-item {
min-height:40px;
border-bottom:1px solid #eee;
.event-title {
color:#333;
font-weight: bold;
.author_name {
color:#777;
}
}
.event-body {
p {
color:#666;
}
}
.avatar {
width:32px;
}
.event_icon {
float: right;
border: 1px solid #EEE;
padding: 5px;
@include border-radius(5px);
background: #F9F9F9;
img {
width:20px;
}
}
ul {
margin-left:50px;
margin-bottom:5px;
.avatar {
width:22px;
}
}
padding: 15px 5px;
&:last-child { border:none }
.wll:hover { background:none }
.event_commits {
margin-top: 5px;
li.commit {
background: transparent;
padding:5px;
border:none;
}
}
}
/**
* Push event widget
*
*/
.event_lp {
@extend .ui-box;
color:#777;
margin-bottom:20px;
padding:8px;
@include border-radius(4px);
min-height:22px;
.avatar {
width:24px;
}
}