gitlabhq/app/assets/stylesheets/main.scss

205 lines
5 KiB
SCSS
Raw Normal View History

/** Override bootstrap variables **/
$baseFontSize: 13px !default;
$baseLineHeight: 18px !default;
2012-02-11 18:56:18 +01:00
@import "bootstrap";
2012-04-10 07:51:08 +02:00
@import "bootstrap-responsive";
2012-10-16 20:48:32 +02:00
@import 'font-awesome';
2012-02-11 18:56:18 +01:00
/** GitLab colors **/
$link_color: #3A89A3;
$blue_link: #2FA0BB;
$style_color: #474D57;
2012-09-27 22:59:41 +02:00
$hover: #D9EDF7;
$hover_border: #ADF;
2012-02-11 22:22:33 +01:00
/** GitLab Fonts **/
2012-10-05 16:22:21 +02:00
@font-face { font-family: Korolev; src: font-url('korolev-medium-compressed.otf'); }
$monospace: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono', 'lucida console', monospace;
2012-02-11 22:22:33 +01:00
2012-02-11 18:56:18 +01:00
/** MIXINS **/
2012-02-20 18:59:39 +01:00
@mixin shade {
-moz-box-shadow: 0 0 3px #ddd;
-webkit-box-shadow: 0 0 3px #ddd;
box-shadow: 0 0 3px #ddd;
}
2012-08-17 08:09:11 +02:00
@mixin solid_shade {
-moz-box-shadow: 0 0 0 3px #f1f1f1;
-webkit-box-shadow: 0 0 0 3px #f1f1f1;
box-shadow: 0 0 0 3px #f1f1f1;
2012-07-20 07:39:34 +02:00
}
@mixin border-radius($radius) {
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
border-radius: $radius;
}
2012-02-20 18:59:39 +01:00
2012-02-11 18:56:18 +01:00
@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;
}
@mixin bg-gradient($from, $to) {
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($from), to($to));
background-image: -webkit-linear-gradient($from, $to);
background-image: -moz-linear-gradient($from, $to);
background-image: -o-linear-gradient($from, $to);
}
@mixin bg-light-gray-gradient {
background:#f1f1f1;
background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #f5f5f5), to(#e1e1e1));
background-image: -webkit-linear-gradient(#f5f5f5 6.6%, #e1e1e1);
background-image: -moz-linear-gradient(#f5f5f5 6.6%, #e1e1e1);
background-image: -o-linear-gradient(#f5f5f5 6.6%, #e1e1e1);
}
@mixin bg-gray-gradient {
2012-08-25 18:42:34 +02:00
background:#eee;
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-06-12 13:58:44 +02:00
@mixin bg-dark-gray-gradient {
background:#eee;
background-image: -webkit-linear-gradient(#e9e9e9, #d7d7d7);
background-image: -moz-linear-gradient(#e9e9e9, #d7d7d7);
background-image: -o-linear-gradient(#e9e9e9, #d7d7d7);
}
2012-06-12 13:58:44 +02:00
/**
2012-08-17 08:09:11 +02:00
* Header of application.
2012-06-12 13:58:44 +02:00
* Contain application logo, search panel, profile icon
*/
2012-07-29 00:34:51 +02:00
@import "sections/header.scss";
2012-06-12 13:58:44 +02:00
/**
2012-08-17 08:09:11 +02:00
* Navigation menu of application.
2012-06-12 13:58:44 +02:00
* Panel with links to pages depends on project, profile or admin area
*/
2012-07-29 00:34:51 +02:00
@import "sections/nav.scss";
2012-06-12 13:58:44 +02:00
2012-02-26 23:41:53 +01:00
/**
2012-08-17 08:09:11 +02:00
* This file represent some UI that can be changed
* during web app restyle or theme select.
*
2012-02-26 23:41:53 +01:00
* Next items should be placed there
2012-06-12 13:58:44 +02:00
* - link, button colors
* - header restyles
* - main menu restyles
2012-02-26 23:41:53 +01:00
*
*/
@import "themes/ui_basic.scss";
2012-02-26 23:41:53 +01:00
2012-02-28 23:45:38 +01:00
/**
2012-11-21 05:14:05 +01:00
* UI themes:
2012-02-28 23:45:38 +01:00
*/
@import "themes/ui_mars.scss";
@import "themes/ui_modern.scss";
2012-11-21 05:14:05 +01:00
@import "themes/ui_gray.scss";
@import "themes/ui_color.scss";
2012-02-28 23:45:38 +01:00
2012-04-10 07:51:08 +02:00
/**
* GitLab bootstrap.
2012-04-10 07:51:08 +02:00
* Overrides some styles of twitter bootstrap.
* Also give some common classes for GitLab app
2012-04-10 07:51:08 +02:00
*/
@import "gitlab_bootstrap/common.scss";
@import "gitlab_bootstrap/typography.scss";
@import "gitlab_bootstrap/buttons.scss";
@import "gitlab_bootstrap/blocks.scss";
@import "gitlab_bootstrap/files.scss";
@import "gitlab_bootstrap/tables.scss";
@import "gitlab_bootstrap/lists.scss";
2012-04-10 07:51:08 +02:00
2012-02-26 23:41:53 +01:00
/**
* Most of application styles placed here.
* This file represent common UI that should not be changed between themes
* or project restyling like form width or user avatar class or commit title
2012-08-17 08:09:11 +02:00
*
2012-02-26 23:41:53 +01:00
* TODO: clean it
*/
2012-02-11 18:56:18 +01:00
@import "common.scss";
2012-04-14 00:46:11 +02:00
/**
2012-06-13 19:02:30 +02:00
* Styles related to specific part of app
*/
2012-06-13 19:02:30 +02:00
@import "sections/commits.scss";
@import "sections/issues.scss";
@import "sections/projects.scss";
2012-06-13 19:02:30 +02:00
@import "sections/merge_requests.scss";
@import "sections/graph.scss";
@import "sections/events.scss";
2012-11-21 05:14:05 +01:00
@import "sections/themes.scss";
2012-04-14 00:46:11 +02:00
/**
* This scss file redefine chozen selectbox styles for
2012-02-26 23:41:53 +01:00
* project Branch/Tag select element
*/
@import "ref_select.scss";
/**
2012-08-17 08:09:11 +02:00
* Code (files list) styles. Browsing project files there
2012-02-26 23:41:53 +01:00
*/
2012-07-06 15:42:13 +02:00
@import "sections/tree.scss";
2012-02-11 18:56:18 +01:00
2012-02-26 23:41:53 +01:00
/**
2012-08-17 08:09:11 +02:00
* This file represent notes(comments) styles
2012-02-26 23:41:53 +01:00
*/
2012-07-29 00:34:51 +02:00
@import "sections/notes.scss";
2012-02-11 18:56:18 +01:00
2012-09-14 18:13:25 +02:00
/**
* This file represent profile styles
*/
@import "sections/profile.scss";
2012-02-26 23:41:53 +01:00
/**
2012-08-17 08:09:11 +02:00
* Devise styles
2012-02-26 23:41:53 +01:00
*/
2012-07-29 00:34:51 +02:00
@import "sections/login.scss";
2012-02-20 18:16:55 +01:00
2012-02-26 23:41:53 +01:00
/**
* CODE HIGHTLIGHT BASE
*
*/
2012-06-18 19:18:14 +02:00
@import "highlight/white.scss";
2012-02-11 18:56:18 +01:00
2012-02-26 23:41:53 +01:00
/**
* CODE HIGHTLIGHT DARK schema
*
*/
2012-06-18 19:18:14 +02:00
@import "highlight/dark.scss";
2012-10-09 19:11:49 +02:00
/**
* File Editor styles
*
*/
@import "sections/editor.scss";