Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/assets/javascripts/rails_admin/ui.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ $(document).on 'pjax:popstate', () ->
return
return
return

#Remove all filter and then refresh
$(document).on 'click', "#remove_filter",(event) ->
event.preventDefault()
$("#filters_box").html("")
$("hr.filters_box").hide()
$(this).parent().siblings("input[type='search']").val("")
$(this).parents("form").submit()
154 changes: 95 additions & 59 deletions app/assets/stylesheets/rails_admin/themes/cerulean/theming.scss
Original file line number Diff line number Diff line change
@@ -1,97 +1,133 @@
// Bootswatch.less
// Swatch: Cerulean
// Version: 2.0.2
// -----------------------------------------------------

// TYPOGRAPHY
// -----------------------------------------------------
// Cerulean 3.3.1
// Bootswatch
// .rails_admin .sidebar-nav added to prevent same link color
// ------------------------------------------------------------------

@mixin btn-shadow($color){
@include gradient-vertical-three-colors(lighten($color, 8%), $color, 60%, darken($color, 4%));
filter: none;
border-bottom: 1px solid darken($color, 10%);
}

@import url(https://fonts.googleapis.com/css?family=Telex);
// Navbar =====================================================================

.navbar, .subnav {
font-family: $headingsFontFamily;
.navbar {
@include btn-shadow($navbar-default-bg);
filter: none;
@include box-shadow(0 1px 10px rgba(0, 0, 0, 0.1));
}

// NAVBAR
// -----------------------------------------------------
.navbar.navbar-default .badge {
background-color: #fff;
color: $navbar-default-bg;
}

.navbar-inner {
@include gradient-vertical-three-colors($navbarBackground, $navbarBackground, 0.9, $navbarBackgroundHighlight);
}
.navbar.navbar-inverse , .rails_admin .sidebar-nav {
@include gradient-vertical-three-colors(lighten($navbar-inverse-bg, 8%), lighten($navbar-inverse-bg, 4%), 60%, darken($navbar-inverse-bg, 2%));
filter: none;
border-bottom: 1px solid darken($navbar-inverse-bg, 10%);
}

.navbar .nav .active > a,
.navbar .nav .active > a:hover {
background-color: $navbarBackground;
background-color: rgba(0,0,0,.2);
}

.navbar .search-query {
border: 1px solid darken($linkColor, 10%);
.navbar.navbar-inverse .badge {
background-color: #fff;
color: $navbar-inverse-bg;
}

// responsive menu colors
.navbar .navbar-nav > li > a,
.navbar .navbar-brand {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.navbar .nav-collapse.in > .nav > li .dropdown-menu a {
color: $white;

&:hover {
color: $white;
}
}
@media (max-width: $grid-float-breakpoint-max) {

.navbar .nav-collapse.in .nav li > a {
color: $white;
.navbar {

&:hover {
background-color: #2B7CAC;
}
.dropdown-header {
color: #fff;
}
}
}

.btn-navbar:hover {
background-color: darken($white, 20%);
// Buttons ====================================================================

.btn {

text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);

.caret {
border-top-color: #fff;
}
}

// BUTTONS
// -----------------------------------------------------
.btn-default {

@include btn-shadow($btn-default-bg);

.btn {
@include gradient-vertical-three-colors($white, $white, 0.05, darken($white, 0%));
$shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
@include box-shadow($shadow);

&:hover {
background-position: 0 0;
color: $btn-default-color;
}

.caret {
border-top-color: $text-color;
}
}

.btn-primary {
@include buttonBackground(lighten($btnPrimaryBackground, 5%), $btnPrimaryBackground);
.btn-default {
@include btn-shadow($btn-default-bg);
}

.btn-info {
@include buttonBackground(lighten($btnInfoBackground, 5%), $btnInfoBackground);
.btn-primary {
@include btn-shadow($btn-primary-bg);
}

.btn-success {
@include buttonBackground(lighten($btnSuccessBackground, 5%), $btnSuccessBackground);
@include btn-shadow($btn-success-bg);
}

.btn-info {
@include btn-shadow($btn-info-bg);
}

.btn-warning {
@include buttonBackground(lighten($btnWarningBackground, 5%), $btnWarningBackground);
@include btn-shadow($btn-warning-bg);
}

.btn-danger {
@include buttonBackground(lighten($btnDangerBackground, 5%), $btnDangerBackground);
@include btn-shadow($btn-danger-bg);
}

.btn-inverse {
@include buttonBackground(lighten($btnInverseBackground, 5%), $btnInverseBackground);
// Typography =================================================================

// Tables =====================================================================
table,
.table {
> thead > tr > th {

color: $headings-color;
}

}

// ICONS
// -----------------------------------------------------
// Forms ======================================================================

// Navs =======================================================================

// Indicators =================================================================

// Progress bars ==============================================================

// Make icons gray
i[class^="icon-"]{
opacity: 0.8;
}
// Containers =================================================================

.panel-primary,
.panel-success,
.panel-warning,
.panel-danger,
.panel-info {

.panel-heading,
.panel-title {
color: #fff;
}
}
Loading