-
Notifications
You must be signed in to change notification settings - Fork 69
Customizing bootstrap #350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2f96ee7
3543b30
c1a04a6
c10b3fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/*! | ||
* Bootstrap v3.3.7 (http://getbootstrap.com) | ||
* Copyright 2011-2016 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
* | ||
* This file lists all the available Bootstrap modules, uncomment | ||
* the modules you want to import | ||
*/ | ||
|
||
// Core variables and mixins | ||
@import "bootstrap-overrides"; | ||
@import "bootstrap/variables"; | ||
@import "bootstrap/mixins"; | ||
|
||
// Reset and dependencies | ||
@import "bootstrap/normalize"; | ||
@import "bootstrap/print"; | ||
@import "bootstrap/glyphicons"; | ||
|
||
// Core CSS | ||
@import "bootstrap/scaffolding"; | ||
@import "bootstrap/type"; | ||
@import "bootstrap/code"; | ||
@import "bootstrap/grid"; | ||
@import "bootstrap/tables"; | ||
@import "bootstrap/forms"; | ||
@import "bootstrap/buttons"; | ||
|
||
// Components | ||
@import "bootstrap/component-animations"; | ||
@import "bootstrap/dropdowns"; | ||
@import "bootstrap/button-groups"; | ||
@import "bootstrap/input-groups"; | ||
@import "bootstrap/navs"; | ||
@import "bootstrap/navbar"; | ||
// @import "bootstrap/breadcrumbs"; | ||
@import "bootstrap/pagination"; | ||
@import "bootstrap/pager"; | ||
@import "bootstrap/labels"; | ||
@import "bootstrap/badges"; | ||
// @import "bootstrap/jumbotron"; | ||
// @import "bootstrap/thumbnails"; | ||
@import "bootstrap/alerts"; | ||
// @import "bootstrap/progress-bars"; | ||
@import "bootstrap/media"; | ||
@import "bootstrap/list-group"; | ||
@import "bootstrap/panels"; | ||
@import "bootstrap/responsive-embed"; | ||
// @import "bootstrap/wells"; | ||
@import "bootstrap/close"; | ||
|
||
// Components w/ JavaScript | ||
@import "bootstrap/modals"; | ||
@import "bootstrap/tooltip"; | ||
// @import "bootstrap/popovers"; | ||
// @import "bootstrap/carousel"; | ||
|
||
// Utility classes | ||
@import "bootstrap/utilities"; | ||
@import "bootstrap/responsive-utilities"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$brand-primary: $palette-turkey; | ||
|
||
$navbar-inverse-brand-hover-color: $palette-light-blue; | ||
$navbar-inverse-brand-color: $white; | ||
|
||
$navbar-inverse-link-color: $white; | ||
$navbar-inverse-link-active-color: $palette-light-blue; | ||
$navbar-inverse-link-active-bg: $palette-turkey; | ||
$navbar-inverse-link-hover-color: $palette-light-blue; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// New palette | ||
$palette-turkey: #2797af; | ||
$palette-dark-turkey: #165e6d; | ||
$palette-light-blue: #d9edf7; | ||
|
||
// Old colors | ||
$bg-color: #f5f8fa; | ||
$white: #ffffff; | ||
$border: #e1e8ed; | ||
$menu-disabled: #ddd; | ||
$black: #000; | ||
$form-input-glyph: #555; | ||
$form-input-bg-color: #f5f5f5; | ||
$form-input-button: #2a292a; | ||
$form-input-button-hover: #3a393a; | ||
$form-a-color: gray; | ||
$form-a-hover-color: #333; | ||
$form-login-gray-text: #9b9b9b; | ||
$btn-landing: rgba(255, 255, 255, 0.7); | ||
$btn-landing-hover: rgba(255, 255, 255, 0.9); | ||
$pages-title: #4a4a4a; | ||
$pages-text: #4a4a4a; | ||
$pages-anchor: #4a4a4a; | ||
$pages-anchor-hover: #8a8a8a; | ||
$features-background: #f5f5f5; | ||
$features-separator: #d8d8d8; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,8 +51,8 @@ | |
<%= render 'application/menus/user_list_link' %> | ||
<%= render 'application/menus/offers_dashboard_link' %> | ||
<%= render 'application/menus/inquiries_list_link' %> | ||
<%= render 'application/menus/offers_by_tag_link' %> | ||
<% if current_user.manages? current_organization %> | ||
<%= render 'application/menus/offers_by_tag_link' %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this now only for admins? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ping @mllocs cc/ @sseerrggii There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. During the last redesign conversations we had it was proposed to remove this section (to simplify the interface). Instead, I'm making it available only for admins. |
||
<%= render 'application/menus/organization_reports_menu' %> | ||
<%= render 'application/menus/organization_statistics_menu' %> | ||
<%= render 'application/menus/organization_listings_menu' %> | ||
|
@@ -63,4 +63,4 @@ | |
</div> | ||
</div> | ||
</nav> | ||
<% end %> | ||
<% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can simply remove the commented out ones, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left those comments because it could help future contributors understand that we are not loading all the modules. It's kind of an explicit way of saying which Bootstrap parts are not being used.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO that could be a bit more clear if precede it with a comment block explaining just that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done