gitlabhq/app/assets/stylesheets/common.scss

191 lines
3.3 KiB
SCSS
Raw Normal View History

2012-01-26 08:51:11 +01:00
@import "bootstrap";
2012-01-26 18:25:35 +01:00
/** GITLAB colors **/
2012-01-16 20:07:57 +01:00
$text_color:#222;
$lite_text_color: #666;
$link_color:#111;
2012-01-16 20:07:57 +01:00
$active_link_color:#2FA0BB;
$active_bg_color:#79C3E0;
$active_bd_color: #2FA0BB;
$border_color:#CCC;
$lite_border_color:#EEE;
2012-01-29 20:30:03 +01:00
$min_app_width:980px;
2012-01-26 23:13:19 +01:00
$max_app_width:980px;
2012-01-16 20:07:57 +01:00
$app_padding:20px;
$bg_color: #FFF;
$styled_border_color: #2FA0BB;
2012-01-26 08:51:11 +01:00
$color: "#4BB8D2";
$blue_link: "#2fa0bb";
2012-01-16 20:07:57 +01:00
/** MIXINS **/
@mixin round-borders-bottom($radius) {
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) {
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) {
border: 1px solid #eaeaea;
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
border-radius: $radius;
}
/** COLORS **/
.cgray { color:gray; }
.cred { color:#D12F19; }
.cgreen { color:#44aa22; }
/** 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
2012-01-26 18:25:35 +01:00
.container-fluid {
2012-01-26 23:13:19 +01:00
min-width:$min_app_width;
max-width:$max_app_width;
2012-01-26 18:25:35 +01:00
margin:auto;
margin-top:52px;
2012-01-26 18:25:35 +01:00
}
.container-fluid > .sidebar {
2012-01-26 23:13:19 +01:00
width: 140px;
2012-01-26 18:25:35 +01:00
border-right: 1px solid $border_color;
2012-01-26 23:13:19 +01:00
height:100%;
2012-01-27 00:46:32 +01:00
min-height:450px;
2012-01-27 23:51:02 +01:00
.fixed {
position:fixed;
}
aside a {
display:block;
position:relative;
padding:12px 10px;
2012-01-27 23:51:02 +01:00
margin:10px 0 0 0;
font-size:13px;
font-weight:bold;
color:#444;
2012-01-27 23:51:02 +01:00
}
2012-01-16 20:07:57 +01:00
}
2012-01-26 18:25:35 +01:00
.container-fluid > .content {
2012-01-26 23:13:19 +01:00
margin-left: 160px;
2012-01-27 07:57:55 +01:00
margin-top:20px;
}
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;
padding-left: 20px;
}
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;
margin-bottom: 10px;
padding: 5px;
min-height: 20px;
border-bottom: 1px solid #eee;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
.author { color: #999; }
&:last-child { border:none }
p { padding-top:5px;}
}
.visible_link,
2012-01-29 11:04:09 +01:00
.author_link {
color: $active_link_color;
}
2012-01-26 23:13:19 +01:00
@import "reset_bootstrap.scss";
2012-01-26 18:25:35 +01:00
@import "top_panel.scss";
@import "projects.css.scss";
2012-01-16 20:07:57 +01:00
@import "commits.css.scss";
2012-01-27 00:46:32 +01:00
@import "tree.scss";
2012-01-27 07:57:55 +01:00
@import "issues.css.scss";
@import "merge_requests.css.scss";
@import "notes.css.scss";
2012-01-27 18:58:10 +01:00
@import "login.scss";
2012-01-26 18:25:35 +01:00
/** CODE HIGHTLIGHT **/
2012-01-27 00:46:32 +01:00
@import "highlight.css.scss";
@import "highlight.black.css.scss";
2012-01-26 18:25:35 +01:00