// LEGEND // TYPE_COLOR: BACKGROUND COLOR // TYPE_BORDER: BORDER COLOR // TYPE_TEXT: TEXT COLOR // PRIMARY COLOR $primary_color: <%= @primary_color || "#5e35b1" %>; $primary_border: darken(adjust-hue($primary_color, -10), 5%); $primary_text: <%= @primary_text || "white" %>; // DANGER COLOR $danger_color: <%= @danger_color || "#FF0039" %>; $danger_border: darken(adjust-hue($danger_color, -10), 5%); $danger_text: <%= @danger_text || "white" %>; // SUCCESS COLOR $success_color: <%= @success_color || "#3FB618" %>; $success_border: darken(adjust-hue($success_color, -10), 5%); $success_text: <%= @success_text || "white" %>; // WARNING COLOR $warning_color: <%= @warning_color || "#FF7518" %>; $warning_border: darken(adjust-hue($warning_color, -10), 5%); $warning_text: <%= @warning_text || "white" %>; // INFO COLOR $info_color: <%= @info_color || "#9954BB" %>; $info_border: darken(adjust-hue($info_color, -10), 5%); $info_text: <%= @info_text || "white" %>; // DEFAULT COLOR $default_color: <%= @default_color || "#222222" %>; $default_border: darken(adjust-hue($default_color, -10), 5%); $default_text: <%= @default_text || "#eeeeee" %>; // PANEL COLOR $panel_color: <%= @panel_color || "#F9F9F9" %>; $panel_border: darken(adjust-hue($panel_color, -10), 5%); $panel_text: <%= @panel_text || "#151515" %>; // AUXILIARY COLOR $link_color: <%= @link_color || "#5E35B1" %>; $background_color: <%= @background_color || "#ffffff" %>; $background_text: <%= @background_text || "#222222" %>; $background_muted: <%= @background_muted || "#bbbbbb" %>; body#version1 { a, { &, &:hover, &:active { color: $link_color; } } hr, .locales #locales-panel ul { border-color: $link_color; } background-color: $background_color; color: $background_text; // Navigation nav.navbar { // Nav Dropdown &, .dropdown-menu { background-color: $primary_color; border-color: $primary_border; border-top: none; color: $primary_text; .media, .dropdown-header { color: $primary_text; } > li.divider { background-color: $primary_border; } > li { > a:hover { background-color: mix($primary_color, $primary_text, 80%); } a { &, &:hover, &:active { color: $primary_text; } } } } .navbar-nav > li > .btn > i { color: $primary_text; } // Nav Links a { &, &:hover, &:active { color: $primary_text; } } li:not(.profile--image-dropdown):before { background-color: $primary_text; } } // Notifications .media, #notifications .list-group-item { color: $panel_text; background: $panel_color; } .media { background: transparent; } // Headers .j2-jumbo { background-color: $primary_color; border-color: $primary_border; } #profile--header.profile--no-header:before, .userbox--no-header:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: $primary_color; img { opacity: 0; } } .userbox--no-header, .panel-body { position: relative; } // Panels, and modals .panel, .modal-dialog { border-color: $panel_border; .panel-heading, .panel-footer, .panel-body, .modal-header, .modal-footer, .modal-body, .modal-content { color: $panel_text; } a, a:hover, a:active { color: $panel_text; } .answerbox--question-user, .answerbox--question-text, .answerbox--answer-user, .answerbox--answer-text { color: $panel_text; &.text-muted { color: mix($panel_text, $background_muted, 70%); } } select { background-color: $panel_color; border-color: $panel_border; } .input-group-addon { background: $panel_color; border: $panel_color; } &, .panel-heading, .panel-footer, .modal-header, .modal-footer { background-color: mix($panel_color, $panel_text, 90%); border-color: mix($panel_color, $panel_text, 85%); } .panel-body, .modal-body, .modal-content { background-color: $panel_color; } } // Non-navigation dropdowns .dropdown-menu { background-color: $panel_color; border-color: $panel_border; color: $panel_text; > li.divider { background-color: $panel_border; } > li { > a:hover { background-color: mix($panel_color, $panel_text, 90%); } a { &, &:hover, &:active { color: $panel_text; } } } } .text-muted { color: $background_muted; } // Tabs .nav-tabs { border-color: transparent; margin-top: -1px; li.active a, li:active a, li:hover a { background: mix($panel_color, $panel_text, 90%); color: mix($panel_text, $panel_color, 90%); } } // Lists .list-group .list-group-item { background-color: $panel_color; color: $panel_text; border-color: $panel_border; .badge { background-color: $panel_text; border-color: $panel_border; color: $panel_color; } &.active, &:hover { background-color: $primary_color; color: $primary_text; border-color: $primary_border; .badge { background-color: $primary_text; border-color: $primary_border; color: $primary_color; } } } // ERB magic for generics because i'm lazy. <% for color in %W(primary danger success warning info default) %> .btn-<%= color %>, .alert-<%= color %>, .label-<%= color %>, .panel-badge-<%= color %>, .badge-<%= color %>, .list-group-item-<%= color %> { color: $<%= color %>_text !important; background-color: $<%= color %>_color !important; border-color: $<%= color %>_border !important; .badge { color: $<%= color %>_color !important; background-color: $<%= color %>_text !important; border-color: $<%= color %>_border !important; } } .btn-<%= color %>:hover { background-color: mix($<%= color %>_color, $<%= color %>_text, 90%) !important; } <% end %> // Reset debug #debug { background: white; color: black; hr { background-color: inherit; border-color: inherit; } } } /* nprogress */ $nprogress-color: lighten($primary_color, 25%); #nprogress { .bar { background: $nprogress-color; } .peg { box-shadow: 0 0 10px $nprogress-color, 0 0 5px $nprogress-color; } .spinner-icon { border-top-color: $nprogress-color; border-left-color: $nprogress-color; } }