gitlabhq/app/assets/stylesheets/gitlab_bootstrap/blocks.scss

173 lines
2.7 KiB
SCSS
Raw Normal View History

/**
* ===================================
2013-01-04 22:35:31 +01:00
* Contain UI block elements:
* .ui-box - for any block & widgets
* ===================================
*/
/**
2013-01-04 22:35:31 +01:00
* UI Block
*
*/
2013-01-04 22:35:31 +01:00
.ui-box {
background: #F9F9F9;
margin-bottom: 25px;
border: 1px solid #CCC;
@include solid-shade;
2013-01-04 22:35:31 +01:00
&.ui-box-show {
margin:20px 0;
background: #FFF;
}
&.ui-box-danger {
.title {
@include linear-gradient(#F26E5E, #bd362f);
color: #fff;
text-shadow: 0 1px 1px #900;
font-weight: bold;
}
}
img { max-width: 100%; }
pre {
code {
background: none !important;
}
}
2013-01-04 22:35:31 +01:00
.ui-box-head,
.ui-box-body,
.ui-box-bottom {
padding: 15px;
word-wrap: break-word;
2013-01-04 22:35:31 +01:00
.clearfix {
margin: 0;
}
}
2013-01-04 22:35:31 +01:00
.ui-box-head {
.box-title {
color: $style_color;
font-size: 18px;
font-weight: normal;
line-height: 28px;
}
2013-01-04 22:35:31 +01:00
h3 {
margin: 0;
}
}
2013-01-04 22:35:31 +01:00
.ui-box-body {
border: none;
font-size: 12px;
background-color: #f5f5f5;
border: none;
border-top: 1px solid #eee;
}
2013-01-04 22:35:31 +01:00
.ui-box-bottom {
border-top: 1px solid #eee;
}
&.white {
background: #fff;
}
ul {
margin: 0;
}
2013-01-04 22:35:31 +01:00
.title {
@include bg-gray-gradient;
2013-01-04 22:35:31 +01:00
border-bottom: 1px solid #CCC;
2013-01-04 23:35:38 +01:00
color: #456;
font-size: 16px;
text-shadow: 0 1px 1px #fff;
padding: 0px 10px;
line-height: 36px;
font-size: 14px;
font-weight: normal;
> a {
text-shadow: 0 1px 1px #fff;
}
2013-01-04 23:35:38 +01:00
form {
margin-bottom: 0;
2013-01-30 15:40:43 +01:00
margin-top: 0;
2013-01-04 23:35:38 +01:00
}
2013-01-29 21:57:15 +01:00
.btn-tiny {
@include box-shadow(0 0px 0px 1px #f1f1f1);
}
2013-01-04 23:35:38 +01:00
.nav-pills {
> li {
> a {
padding: 13px;
margin: 0;
font-size: 13px;
}
&.active {
> a {
background: #D5D5D5;
color: $style_color;
@include border-radius(0);
border-radius: 0;
border-left: 1px solid #CCC;
border-right: 1px solid #CCC;
}
}
}
}
}
&.padded {
h5, .title {
margin: -20px;
margin-bottom: 0;
padding: 5px 20px;
}
.middle_title {
background: #f5f5f5;
margin:20px -20px;
padding: 0 20px;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
font-size: 14px;
color: #777;
}
}
2013-01-04 22:35:31 +01:00
.row_title {
font-weight: bold;
color: #444;
&:hover {
color: #444;
text-decoration: underline;
}
}
.form-holder {
padding-top: 20px;
form {
margin-bottom: 0;
2013-03-18 19:50:41 +01:00
legend {
text-indent: 10px;
}
.form-actions {
margin-bottom: 0;
}
}
}
}
.tab-pane {
.ui-box {
margin: 3px 3px 25px 3px;
}
}