gitlabhq/app/assets/stylesheets/common.scss

349 lines
5.7 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-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; }
2012-01-16 20:07:57 +01:00
/** COMMON STYLES **/
.left {
float:left;
}
.right {
float:right;
}
.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;
}
.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
nav.main_menu {
border-radius: 4px;
margin: auto;
2012-02-19 15:31:11 +01:00
margin:30px $app_padding;
2012-02-19 20:30:31 +01:00
background:#eee;
2012-02-12 12:15:41 +01:00
border:1px solid #ccc;
height:38px;
2012-02-19 20:30:31 +01:00
background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf));
background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf);
background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf);
background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf);
2012-02-12 12:15:41 +01:00
2012-02-19 20:30:31 +01:00
-moz-box-shadow: 0 0 3px #ddd;
-webkit-box-shadow: 0 0 3px #ddd;
box-shadow: 0 0 3px #ddd;
.count {
color:#bbb;
margin-left:3px;
}
.label {
background:$hover;
text-shadow:none;
color:$style_color;
2012-01-27 23:51:02 +01:00
}
a {
2012-01-27 23:51:02 +01:00
font-weight:bold;
&:first-child{
-webkit-border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-topleft: 4px;
-moz-border-radius-bottomleft: 4px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
padding: 10px 25px;
display: inline-block;
2012-02-12 12:15:41 +01:00
color: $style_color;
2012-02-19 20:30:31 +01:00
border-right: 1px solid #d5d5d5;
position: relative;
box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
margin: 0;
2012-02-12 12:15:41 +01:00
float:left;
text-shadow:0 1px 1px white;
2012-02-19 20:30:31 +01:00
2012-02-18 13:12:48 +01:00
&.home {
padding:7px 35px;
img {
position:relative;
top:4px;
}
}
&.current {
2012-02-12 12:15:41 +01:00
background:#DDD;
}
2012-01-27 23:51:02 +01:00
}
2012-01-16 20:07:57 +01:00
}
2012-01-28 00:49:14 +01:00
aside.projects,
aside.project-side
{
2012-01-27 23:51:02 +01:00
margin-left: 0;
}
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 {
padding:20px;
margin-bottom:20px;
2012-02-18 13:12:48 +01:00
background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #fff), to(#f1f1f1));
background-image: -webkit-linear-gradient(#fff 6.6%, #f1f1f1);
background-image: -moz-linear-gradient(#fff 6.6%, #f1f1f1);
background-image: -o-linear-gradient(#fff 6.6%, #f1f1f1);
border: 1px solid #DDD;
border-radius: 5px;
.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 {
2012-02-18 14:59:01 +01:00
2012-02-12 23:12:18 +01:00
margin-bottom: 40px;
@include round-borders-all(4px);
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
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);
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
}
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-19 15:31:11 +01:00
.well.padded {
padding:29px;
}