Skip to content

Commit

Permalink
added select2 styling
Browse files Browse the repository at this point in the history
  • Loading branch information
biwek committed Apr 7, 2018
1 parent 63ed3db commit 806e64c
Show file tree
Hide file tree
Showing 5 changed files with 731 additions and 14 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/components/_base.coffee
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
$(document).on "turbolinks:load", ->
# init tooltips
$('[data-toggle="tooltip"]').tooltip()
# default select2 theme
$.fn.select2.defaults.set( "theme", "bootstrap" )
9 changes: 2 additions & 7 deletions app/assets/stylesheets/_base.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
p, .alert {
font-size: 14px;
}

.card .card-body {
padding: 0.75em;
}
p, .alert { font-size: 14px; }
.card .card-body { padding: 0.75em; }

.site-footer {
font-size: 12px;
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
* It is generally better to create a new file per style scope.
*
*= require_self
*= require bootstrap
*= require bootstrap-grid
*= require bootstrap-reboot
*= require select2.min
*= require select2-bootstrap
*/

@import "font-awesome";
Expand Down
9 changes: 2 additions & 7 deletions app/assets/stylesheets/modules/scholars.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
.scholars {
form#scholar_search {
.select2-container .select2-selection--single { height: 38px !important; }
.select2-container--default .select2-selection--single {
border: 1px solid #ced4da;
.select2-selection__arrow { height: 35px; }
.select2-selection__rendered { line-height: 38px; }
}
form {
input.form-control { height: 35px; }
}

.scholar-search-info {
Expand Down
Loading

0 comments on commit 806e64c

Please sign in to comment.