gitlabhq/app/assets/stylesheets/common.scss

695 lines
9.4 KiB
SCSS
Raw Normal View History

2012-01-26 18:25:35 +01:00
/** LAYOUT **/
2012-01-16 20:07:57 +01:00
body {
margin-bottom: 20px;
}
.container {
padding-top: 0;
z-index: 5;
2012-02-19 15:31:11 +01:00
}
.container .content {
margin: 0 0;
2012-01-26 18:25:35 +01:00
}
.container .sidebar {
2012-02-19 15:31:11 +01:00
width: 200px;
height: 100%;
min-height: 450px;
float: right;
}
2012-01-27 23:51:02 +01:00
2012-01-28 15:47:55 +01:00
.visible_link,
.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
.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:12:48 +01:00
}
2012-02-18 13:43:35 +01:00
.info_link {
margin-right: 5px;
float: left;
2012-02-18 13:43:35 +01:00
img {
width: 20px;
2012-02-18 13:43:35 +01:00
}
}
2012-02-18 14:59:01 +01:00
.download_repo_link {
background: url("images.png") no-repeat 0 -48px;
padding-left: 20px;
}
table a code {
position: relative;
top: -2px;
margin-right: 3px;
}
.span12 hr{
margin-top: 5px;
}
2012-02-21 22:09:46 +01:00
.loading {
margin: 20px auto;
background: url(ajax_loader.gif) no-repeat center center;
width: 40px;
height: 40px;
}
2012-02-26 23:41:53 +01:00
/** FLASH message **/
#flash-container {
height: 50px;
position: fixed;
z-index: 10001;
top: 0px;
width: 100%;
margin-bottom: 15px;
overflow: hidden;
background: white;
cursor: pointer;
border-bottom: 1px solid #ccc;
text-align: center;
display: none;
2012-02-26 23:41:53 +01:00
h4 {
color: #666;
font-size: 18px;
line-height: 38px;
padding-top: 5px;
margin: 2px;
font-weight: normal;
2012-02-26 23:41:53 +01:00
}
}
.git_url_wrapper {
margin-right:50px
}
.handle:hover {
cursor: move;
2012-02-26 23:41:53 +01:00
}
span.update-author {
display: block;
2012-02-26 23:41:53 +01:00
}
span.update-author {
color: #999;
font-weight: normal;
font-style: italic;
2012-02-26 23:41:53 +01:00
}
span.update-author strong {
font-weight: bold;
2012-02-26 23:41:53 +01:00
font-style: normal;
}
/** UPDATE ITEM **/
span.update-author {
display: block;
2012-02-26 23:41:53 +01:00
}
/** END UPDATE ITEM **/
.dashboard-loader {
float: left;
margin: 10px;
display: none;
2012-02-26 23:41:53 +01:00
}
.user-mention {
color: #2FA0BB;
font-weight: bold;
2012-02-26 23:41:53 +01:00
}
.neib {
margin-right: 10px;
}
.label {
background-color: #474D57;
&.label-tag {
background: none;
border: none;
padding: 4px 6px;
color: #444;
text-shadow: 0 0 1px #fff;
&.grouped {
float: left;
margin-right: 6px;
padding: 6px;
}
}
&.label-issue {
background-color: #eee;
border: 1px solid #ccc;
padding: 4px 6px;
color: #444;
text-shadow: 0 0 1px #fff;
&.grouped {
float: left;
margin-right: 6px;
padding: 6px;
}
}
&.label-success {
background-color: #8D8;
color: #333;
text-shadow: 0 1px 1px white;
}
&.label-error {
background-color: #D88;
color: #333;
text-shadow: 0 1px 1px white;
}
}
form {
@extend .form-horizontal;
.actions {
@extend .form-actions;
}
.clearfix {
@extend .control-group;
}
.input {
@extend .controls;
}
label {
@extend .control-label;
}
.xlarge {
@extend .input-xlarge;
}
.xxlarge {
@extend .input-xxlarge;
}
}
.field_with_errors {
display: inline;
}
ul.breadcrumb {
background: white;
border: none;
li {
display: inline;
text-shadow: 0 1px 0 white
}
a {
color: #474D57;
font-weight: bold;
font-size: 14px;
}
.arrow {
background: url("images.png") no-repeat -85px -77px;
width: 19px;
height: 16px;
float: left;
position: relative;
left: -10px;
padding: 0;
margin: 0;
}
}
input[type=text] {
&.large_text {
padding: 6px;
font-size: 16px;
}
}
input.git_clone_url {
width: 325px;
2012-02-26 23:41:53 +01:00
}
.merge-request-form-holder {
select {
width: 300px;
2012-02-26 23:41:53 +01:00
}
}
/** Issues **/
#issue_assignee_id {
width: 300px;
2012-02-26 23:41:53 +01:00
}
#new_issue_dialog textarea{
height: 100px;
}
.project_list_url {
width: 250px;
2012-02-26 23:41:53 +01:00
background:#fff !important;
}
/** bordered list **/
ul.bordered-list {
margin: 5px 0px;
padding: 0px;
li {
2012-02-26 23:41:53 +01:00
padding: 5px 0;
border-bottom: 1px solid #EEE;
overflow: hidden;
display: block;
margin: 0px;
2012-02-26 23:41:53 +01:00
}
}
ul.bordered-list li:last-child { border:none }
2012-02-26 23:41:53 +01:00
.line_holder {
&:hover {
td {
2012-02-26 23:41:53 +01:00
background: #FFFFCF !important;
}
}
}
li.commit {
.avatar {
width: 24px;
2012-08-16 08:13:50 +02:00
top:-5px;
margin-right: 10px;
margin-left: 10px;
2012-02-26 23:41:53 +01:00
}
code {
padding: 2px 2px 0;
margin-top: -2px;
&:hover {
color: black;
border: 1px solid #ccc;
}
2012-02-26 23:41:53 +01:00
}
}
p.time {
color: #999;
font-size: 90%;
margin: 30px 3px 3px 2px;
}
.styled_image {
border: 2px solid #ddd;
2012-03-01 20:23:50 +01:00
}
.ico {
2012-03-02 23:09:17 +01:00
background: url("images.png") no-repeat -85px -77px;
width: 19px;
height: 16px;
float: left;
position: relative;
margin-right: 10px;
top: 8px;
&.project {
2012-03-02 23:09:17 +01:00
background-position: -37px -77px;
}
&.activities {
2012-03-02 23:09:17 +01:00
background-position:-162px -22px;
}
&.projects {
2012-03-02 23:09:17 +01:00
background-position:-209px -21px;
}
}
2012-03-04 02:00:19 +01:00
.leftbar {
h5, .title {
padding: 5px 10px;
2012-03-04 02:00:19 +01:00
}
h4 {
font-size: 14px;
padding: 2px 10px;
color: #666;
border-bottom: 1px solid #f1f1f1;
2012-03-04 02:00:19 +01:00
}
a:last-child h4 { border: none; }
2012-03-04 02:00:19 +01:00
a:hover {
2012-03-04 02:00:19 +01:00
h4 {
color: #111;
background: $hover;
border-color: #CCC;
.ico.project {
2012-03-04 02:00:19 +01:00
background-position:-209px -21px;
}
}
}
.bottom {
padding: 10px;
}
2012-03-04 02:00:19 +01:00
}
.votes {
2012-09-08 16:44:56 +02:00
font-size: 13px;
line-height: 15px;
.progress {
height: 4px;
margin: 0;
.bar {
float: left;
height: 100%;
}
.bar-success {
@include linear-gradient(#62C462, #51A351);
2012-09-08 16:44:56 +02:00
background-color: #468847;
}
.bar-danger {
@include linear-gradient(#EE5F5B, #BD362F);
2012-09-08 16:44:56 +02:00
background-color: #B94A48;
}
}
.upvotes {
display: inline-block;
color: #468847;
}
.downvotes {
display: inline-block;
color: #B94A48;
2012-09-08 16:44:56 +02:00
}
}
.votes-block {
margin: 14px 6px 6px 0;
.downvotes {
float: right;
}
}
.votes-inline {
display: inline-block;
margin: 0 8px;
.progress {
display: inline-block;
padding: 0 0 2px;
width: 45px;
}
}
2012-03-17 06:46:47 +01:00
/* Fix for readme code (stopped it from being yellow) */
.readme {
pre {
background: white !important;
code {
background: none !important;
2012-03-17 06:46:47 +01:00
}
}
}
2012-03-26 21:41:56 +02:00
.highlight_word {
background: #EEDC94;
2012-03-16 00:14:39 +01:00
}
.status_info {
font-size: 14px;
padding: 5px 15px;
line-height: 24px;
width: 60px;
text-align: center;
float: left;
margin-right: 20px;
&.success {
background: #5BB75B;
color: white;
text-shadow: 0 1px #111;
border-color: #9A9;
}
&.error {
background: #DA4E49;
border-color: #BD362F;
color: white;
text-shadow: 0 1px #111;
}
}
.arrow{
background: #E3E5EA;
padding: 5px;
margin-top: 5px;
@include border-radius(5px);
text-shadow: none;
color: #999;
line-height: 16px;
font-weight: bold;
2012-03-21 23:09:53 +01:00
}
.thin_area{
height: 150px;
}
2012-03-21 23:09:56 +01:00
.gitlab_pagination {
span a { color: $link_color; }
.prev, .next, .current, .page a {
padding: 10px;
}
.current {
2012-11-25 20:03:14 +01:00
border-bottom: 2px solid $style_color;
2012-03-21 23:09:56 +01:00
}
}
// Fixes alignment on notes.
.new_note {
label {
text-align: left;
}
}
2012-03-24 18:36:14 +01:00
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
2012-03-26 06:40:51 +02:00
img { max-width:100% }
2012-03-24 18:36:14 +01:00
.note-title {
li {
border-bottom:none !important;
}
.file {
padding-left: 20px;
2012-03-24 18:36:14 +01:00
background:url("icon-attachment.png") no-repeat left center;
}
}
}
2012-03-26 06:40:51 +02:00
.markdown {
img {
max-width: 100%;
2012-03-26 06:40:51 +02:00
}
}
.wiki_content code, .readme code{
background-color: inherit;
}
2012-04-02 20:13:44 +02:00
.team_member_show {
td:first-child {
color: #aaa;
2012-04-02 20:13:44 +02:00
}
}
2012-04-10 19:06:17 +02:00
.remember_me {
text-align: left;
2012-04-11 22:50:13 +02:00
input {
margin: 0;
2012-04-11 22:50:13 +02:00
}
span {
padding-left: 5px;
2012-04-11 22:50:13 +02:00
}
2012-04-10 19:06:17 +02:00
}
2012-04-20 18:41:49 +02:00
/**
* Admin area
*
*/
.admin_dash {
.data {
a {
h1 {
line-height: 48px;
font-size: 48px;
padding: 20px;
text-align: center;
2012-04-20 18:41:49 +02:00
}
}
}
}
.rss-icon {
img {
width: 24px;
vertical-align: top;
}
strong {
line-height: 24px;
}
}
2012-05-31 22:30:54 +02:00
/* CHZN reset few styles */
.chzn-container-single .chzn-single {
background: #FFF;
2012-06-18 19:18:14 +02:00
border: 1px solid #bbb;
box-shadow: none;
}
.chzn-container-active .chzn-single {
background: #fff;
}
2012-06-12 16:43:16 +02:00
2012-06-13 19:02:30 +02:00
2012-06-20 20:29:55 +02:00
.supp_diff_link,
.mr_show_all_commits {
cursor: pointer;
2012-06-20 20:29:55 +02:00
}
2012-06-21 07:29:53 +02:00
.merge_request,
.issue {
&.today{
2012-06-21 15:43:40 +02:00
background: #EFE;
border-color: #CEC;
2012-06-21 07:29:53 +02:00
}
&.closed {
2012-06-21 16:23:25 +02:00
background: #F5f5f5;
border-color: #E5E5E5;
2012-06-21 07:29:53 +02:00
}
&.merged {
background: #F5f5f5;
border-color: #E5E5E5;
2012-06-21 07:29:53 +02:00
}
2012-07-10 20:26:01 +02:00
}
2012-08-16 08:13:50 +02:00
.git_error_tips {
@extend .span6;
text-align: left;
margin-top: 40px;
2012-08-16 08:13:50 +02:00
pre {
background: white;
border: none;
2012-08-16 08:13:50 +02:00
font-size: 12px;
}
}
.error_message {
@extend .cred;
2012-11-21 04:14:05 +01:00
border-left: 4px solid #E99;
padding: 10px;
margin-bottom: 10px;
background: #FEE;
padding-left: 20px;
2012-11-29 17:09:27 +01:00
&.centered {
text-align: center;
}
}
.oauth_select_holder {
padding: 20px;
img {
padding: 5px;
margin-right: 10px;
}
.active {
img {
border: 1px solid #ccc;
background: $hover;
@include border-radius(5px);
}
}
}
2012-09-14 18:13:25 +02:00
.btn-build-token {
float: left;
padding: 6px 20px;
margin-right: 12px;
}
.gitlab-promo {
a {
color: #aaa;
margin-right: 30px;
}
}
2012-10-16 08:43:22 +02:00
pre {
&.clean {
background: none;
border: none;
margin: 0;
padding: 0;
2012-10-16 08:43:22 +02:00
}
}
.milestone .progress {
margin-bottom: 0;
margin-top: 4px;
}
2012-10-29 22:45:11 +01:00
.float-link {
float: left;
margin-right: 15px;
2012-10-29 22:45:11 +01:00
.s16 {
margin-right: 5px;
2012-10-29 22:45:11 +01:00
}
}
2012-11-21 06:24:05 +01:00
.dashboard-search-filter {
padding:5px;
.search-text-input {
float:left;
@extend .span2;
}
.btn {
margin-left: 5px;
float:left;
}
}
h1.http_status_code {
font-size: 56px;
line-height: 100px;
font-weight: normal;
color: #456;
}
.control-group {
.controls {
span {
&.descr {
position: relative;
top: 2px;
left: 5px;
color: #666;
}
}
}
}