gitlabhq/app/assets/stylesheets/common.scss

643 lines
9.3 KiB
SCSS
Raw Normal View History

2012-02-11 22:22:33 +01:00
a {
color: $link_color;
&:hover {
text-decoration:none;
color: $style_color;
}
2012-02-26 23:41:53 +01:00
&.btn {
color: $style_color;
}
2012-02-11 22:22:33 +01:00
}
2012-02-15 22:51:04 +01:00
.vlink {
color: $link_color !important;
}
2012-02-18 13:12:48 +01:00
.pills a:hover {
background-color:#ccc;
}
2012-02-11 22:22:33 +01:00
.pills .active a {
2012-02-18 13:12:48 +01:00
background-color: #aaa;
2012-02-11 22:22:33 +01:00
}
.label {
background-color: #474D57;
}
.tabs > li > a, .pills > li > a {
color:$style_color;
}
.diff_file_header a,
.file_stats a {
color:$style_color;
}
2012-01-16 20:07:57 +01:00
/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
2012-02-15 22:51:04 +01:00
.cblack { color:#111; }
.cwhite { color:#fff !important }
2012-01-16 20:07:57 +01:00
/** COMMON STYLES **/
.left {
float:left;
}
.right {
2012-02-26 21:06:40 +01:00
float:right !important;
2012-01-16 20:07:57 +01:00
}
.width-50p{
width:50%;
}
.width-49p{
width:49%;
}
.width-30p{
width:30%;
}
.width-65p{
width:65%;
}
.width-100p{
width:100%;
}
.append-bottom-10 {
margin-bottom:10px;
}
.append-bottom-20 {
margin-bottom:20px;
}
.prepend-top-10 {
margin-top:10px;
}
.no-borders {
border:none;
}
table.no-borders {
border:none;
tr, td { border:none }
}
2012-01-16 20:07:57 +01:00
.no-padding {
padding:0 !important;
}
2012-01-27 07:57:55 +01:00
.underlined {
border-bottom: 1px solid $border_color;
}
2012-01-16 20:07:57 +01:00
2012-01-26 18:25:35 +01:00
/** LAYOUT **/
2012-01-16 20:07:57 +01:00
.container {
width:$min_app_width;
2012-02-19 15:31:11 +01:00
padding-top:0;
z-index:5;
}
.container .content {
margin:0 $app_padding;
2012-01-26 18:25:35 +01:00
}
.container .sidebar {
2012-02-19 15:31:11 +01:00
width: 200px;
2012-01-26 23:13:19 +01:00
height:100%;
2012-01-27 00:46:32 +01:00
min-height:450px;
float:right;
}
2012-01-27 23:51:02 +01:00
img.avatar {
float:left;
2012-01-28 15:47:55 +01:00
margin-right:15px;
width:40px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
2012-01-27 23:51:02 +01:00
}
img.lil_av {
padding-left: 5px;
position: relative;
top: 3px;
}
2012-01-28 10:54:11 +01:00
.media-grid {
h3, h2 , h4 {
&.media_h {
padding-left:10px;
float:left;
}
}
}
2012-01-28 15:47:55 +01:00
.wll {
background-color: #FFF;
2012-02-11 22:22:33 +01:00
padding: 10px 5px;
2012-01-28 15:47:55 +01:00
min-height: 20px;
border-bottom: 1px solid #eee;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
2012-02-11 22:22:33 +01:00
cursor:pointer;
&:hover {
background:$hover;
}
2012-01-28 15:47:55 +01:00
&:last-child { border:none }
2012-02-11 22:22:33 +01:00
p { padding-top:5px; margin:0; color:$style_color;}
.author { color: #999; }
p {
2012-02-18 13:12:48 +01:00
color:#222;
2012-02-11 22:22:33 +01:00
margin-bottom: 0;
img {
position:relative;
top:3px;
}
}
2012-01-28 15:47:55 +01:00
}
.visible_link,
2012-01-29 11:04:09 +01:00
.author_link {
2012-02-11 22:22:33 +01:00
color: $link_color;
2012-01-29 11:04:09 +01:00
}
2012-02-11 18:56:18 +01:00
.entry {
position: relative;
padding: 7px 15px;
margin-bottom: 18px;
color: #404040;
filter:none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
2012-01-29 11:04:09 +01:00
2012-02-11 18:56:18 +01:00
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
2012-01-26 18:25:35 +01:00
2012-02-11 18:56:18 +01:00
background:#F1F1F1;
border: 1px solid #ccc;
2012-02-11 22:22:33 +01:00
2012-02-11 18:56:18 +01:00
p {
2012-02-11 22:22:33 +01:00
color:$style_color;
2012-02-11 18:56:18 +01:00
margin-bottom: 0;
img {
position:relative;
top:3px;
}
}
}
.widget {
@include shade;
2012-02-11 18:56:18 +01:00
padding:20px;
margin-bottom:20px;
2012-02-18 13:12:48 +01:00
border: 1px solid #DDD;
border-radius: 5px;
background:#fafafa;
2012-02-18 13:12:48 +01:00
.link_holder {
background:#eee;
position:relative;
left:-20px;
top:20px;
padding:10px 20px;
width:100%;
border-top:1px solid #ccc;
a {
font-size:14px;
color:#666;
}
}
2012-02-11 18:56:18 +01:00
}
2012-01-26 18:25:35 +01:00
2012-02-12 23:12:18 +01:00
.ui-box {
margin-bottom: 40px;
@include round-borders-all(4px);
2012-02-20 18:59:39 +01:00
@include shade;
2012-02-12 23:12:18 +01:00
border-color:#ddd;
ul {
margin:0;
}
2012-02-18 13:12:48 +01:00
h5, .title {
2012-02-14 22:48:42 +01:00
padding: 0 10px;
2012-02-12 23:12:18 +01:00
background:#f5f5f5;
2012-02-19 20:30:31 +01:00
border-bottom: 1px solid #eee;
2012-02-14 22:48:42 +01:00
@include round-borders-top(4px);
border-top:none;
2012-02-18 13:12:48 +01:00
form {
padding-top:16px;
}
2012-02-12 23:12:18 +01:00
}
.row_title {
font-weight:bold;
color:#444;
&:hover {
text-decoration:underline;
}
}
2012-02-18 13:12:48 +01:00
li, .wll {
2012-02-12 23:12:18 +01:00
padding:10px;
2012-02-14 22:48:42 +01:00
&:first-child {
@include round-borders-top(4px);
border-top:none;
}
&:last-child {
@include round-borders-bottom(4px);
border:none;
}
2012-02-12 23:12:18 +01:00
}
2012-02-14 22:48:42 +01:00
2012-02-12 23:12:18 +01:00
}
2012-02-15 22:51:04 +01:00
.help li { color:#111 }
2012-02-18 13:12:48 +01:00
.back_link {
text-decoration:underline;
font-size:14px;
font-weight:bold;
padding:10px 0;
padding-bottom:0;
}
2012-02-18 13:43:35 +01:00
.info_link {
margin-right:5px;
float:left;
img {
width:20px;
}
}
2012-02-18 14:59:01 +01:00
.borders {
border: 1px solid #ccc;
2012-02-20 20:38:59 +01:00
@include shade;
2012-02-18 14:59:01 +01:00
}
2012-02-19 15:31:11 +01:00
.download_repo_link {
background: url("images.png") no-repeat 0 -48px;
padding-left:20px;
}
.number {
border-radius: 4px;
text-shadow: none;
background: rgba(0,0,0,.12);
text-align: center;
padding: 2px 4px;
line-height:20px;
margin-left:2px;
}
table a code {
position: relative;
top: -2px;
margin-right: 3px;
}
.span12 hr{
margin-top: 5px;
}
2012-02-21 22:09:46 +01:00
.btn.padded {
margin-right:3px;
}
.loading {
margin:20px auto;
background: url(ajax-loader-facebook.gif) no-repeat center center;
width:40px;
height:40px;
}
2012-02-26 23:41:53 +01:00
/** FLASH message **/
#flash_container {
height:45px;
position:fixed;
z-index:10001;
top:0px;
width:100%;
margin-bottom:15px;
overflow:hidden;
background:white;
cursor:pointer;
border-bottom:1px solid #777;
h4 {
color:#444;
font-size:22px;
padding-top:5px;
margin:2px;
}
}
.git_url_wrapper {
margin-right:50px
}
.file_stats {
span {
img {
width:14px;
float:left;
margin-right:6px;
padding:2px 0;
}
}
}
.handle:hover {
cursor:move;
}
span.update-author {
display:block;
}
span.update-author {
color:#999;
font-weight:normal;
font-style:italic;
}
span.update-author strong {
font-weight:bold;
font-style: normal;
}
/** UPDATE ITEM **/
span.update-author {
display:block;
}
/** END UPDATE ITEM **/
.ajax-tab-loading {
padding:40px;
display:none;
}
.dashboard-loader {
float:left;
margin:10px;
display:none;
}
.user-mention {
color:#2FA0BB;
font-weight:bold;
}
a.project-update.titled {
position:relative;
padding-left:35% !important;
.title-block {
padding:10px;
width:35%;
position:absolute;
left:0;
top:0;
}
}
/**
* Project graph
*/
#holder {
cursor: move;
height: 70%;
overflow: hidden;
}
input.git_clone_url {
width:475px;
}
.team_member_row {
img {
width:60px;
}
}
.merge-request-form-holder {
select {
width:300px;
}
}
/** Issues **/
#issue_assignee_id {
width:300px;
}
#new_issue_dialog textarea{
height: 100px;
}
.project_list_url {
width:250px;
2012-02-26 23:41:53 +01:00
background:#fff !important;
}
.project_tile {
@include shade;
@include round-borders-all(4px);
margin-bottom:20px;
width:298px;
2012-02-26 23:41:53 +01:00
float:left;
margin-left:20px;
border: 1px solid #DDD;
padding-bottom:20px;
.title {
background:#f5f5f5;
padding: 5px 10px 2px 20px;
border-bottom: 1px solid #DDD;
margin-bottom: 15px;
h3 {
&:hover {
text-decoration: underline;
}
}
}
.data {
margin: 0 20px;
}
.buttons {
margin: 0 20px;
}
}
/**
*
* COMMIT SHOw
*
*/
.diff_file {
border:1px solid #CCC;
margin-bottom:1em;
.diff_file_header {
padding:5px 5px;
border-bottom:1px solid #CCC;
background: #eee;
}
.diff_file_content {
overflow:auto;
overflow-y:hidden;
background:#fff;
color:#333;
font-size: 12px;
font-family: 'Menlo', 'Courier New', 'andale mono','lucida console',monospace;
}
.diff_file_content_image {
background:#eee;
text-align:center;
img {
padding:100px;
max-width:300px;
}
}
}
.diff_file_content{
table {
border:none;
margin:0px;
padding:0px;
tr {
td {
font-size:12px;
}
}
}
.old_line, .new_line {
margin:0px;
padding:0px;
border:none;
background:#F7F7F7;
color:#aaa;
padding: 0px 5px;
border-right: 1px solid #ccc;
text-align:right;
min-width:35px;
max-width:35px;
width:35px;
moz-user-select: none;
-khtml-user-select: none;
user-select: none;
a {
float:left;
width:35px;
font-weight:normal;
color:#aaa;
&:hover {
text-decoration:underline;
}
}
}
.line_content {
white-space:pre;
height:14px;
margin:0px;
padding:0px;
border:none;
&.new {
background: #CFD;
}
&.old {
background: #FDD;
}
&.matched {
color:#ccc;
background:#fafafa;
}
}
}
/** COMMIT BLOCK **/
.commit-title{display: block;}
.commit-title{margin-bottom: 10px}
.commit-author, .commit-committer{display: block;color: #999; font-weight: normal; font-style: italic;}
.commit-author strong, .commit-committer strong{font-weight: bold; font-style: normal;}
/** bordered list **/
ul.bordered-list {
margin:5px 0px;
padding:0px;
li {
padding: 5px 0;
border-bottom: 1px solid #EEE;
overflow: hidden;
display: block;
margin:0px;
}
}
ul.bordered-list li:last-child { border:none }
.line_holder {
&:hover {
td {
background: #FFFFCF !important;
}
}
}
li.commit {
.avatar {
width:24px;
top:-3px;
margin-right:10px;
margin-left:10px;
}
code {
padding:4px;
}
}
p.time {
color: #999;
font-size: 90%;
margin: 30px 3px 3px 2px;
}
.dashboard_category {
margin-bottom:30px;
.dashboard_block {
width:700px;
margin:auto;
.wll {
2012-03-01 19:40:32 +01:00
padding:5px;
border:none;
&:hover {
background:none;
}
h4 {
color:#666;
}
2012-03-01 19:40:32 +01:00
&.event_feed {
min-height:40px;
border-bottom:1px solid #eee;
.avatar {
width:32px;
}
ul {
margin-left:50px;
.avatar {
width:24px;
}
}
}
}
}
}