Retrospring/app/views/user/theme.css.scss.erb

389 lines
9.2 KiB
Plaintext
Raw Normal View History

// LEGEND
// TYPE_COLOR: BACKGROUND COLOR
// TYPE_BORDER: BORDER COLOR
// TYPE_TEXT: TEXT COLOR
2015-07-29 09:31:34 -07:00
// PRIMARY COLOR
2015-08-24 22:18:01 -07:00
$primary_color: <%= @primary_color || "#5e35b1" %>;
$primary_border: darken(adjust-hue($primary_color, -10), 5%);
2015-08-24 22:18:01 -07:00
$primary_text: <%= @primary_text || "white" %>;
2015-07-29 09:31:34 -07:00
// DANGER COLOR
2015-08-24 22:18:01 -07:00
$danger_color: <%= @danger_color || "#FF0039" %>;
$danger_border: darken(adjust-hue($danger_color, -10), 5%);
2015-08-24 22:18:01 -07:00
$danger_text: <%= @danger_text || "white" %>;
2015-07-29 09:31:34 -07:00
// SUCCESS COLOR
2015-08-24 22:18:01 -07:00
$success_color: <%= @success_color || "#3FB618" %>;
$success_border: darken(adjust-hue($success_color, -10), 5%);
2015-08-24 22:18:01 -07:00
$success_text: <%= @success_text || "white" %>;
2015-07-29 09:31:34 -07:00
// WARNING COLOR
2015-08-24 22:18:01 -07:00
$warning_color: <%= @warning_color || "#FF7518" %>;
$warning_border: darken(adjust-hue($warning_color, -10), 5%);
2015-08-24 22:18:01 -07:00
$warning_text: <%= @warning_text || "white" %>;
2015-07-29 09:31:34 -07:00
// INFO COLOR
2015-08-24 22:18:01 -07:00
$info_color: <%= @info_color || "#9954BB" %>;
$info_border: darken(adjust-hue($info_color, -10), 5%);
2015-08-24 22:18:01 -07:00
$info_text: <%= @info_text || "white" %>;
2015-07-29 09:31:34 -07:00
// DEFAULT COLOR
$default_color: <%= @default_color || "#222222" %>;
$default_border: darken(adjust-hue($default_color, -10), 5%);
$default_text: <%= @default_text || "#eeeeee" %>;
2015-07-29 09:31:34 -07:00
2015-08-24 22:18:01 -07:00
// PANEL COLOR
$panel_color: <%= @panel_color || "#F9F9F9" %>;
$panel_border: darken(adjust-hue($panel_color, -10), 5%);
2015-08-24 22:18:01 -07:00
$panel_text: <%= @panel_text || "#151515" %>;
2015-07-29 09:31:34 -07:00
// AUXILIARY COLOR
$link_color: <%= @link_color || "#5E35B1" %>;
2015-08-24 22:18:01 -07:00
$background_color: <%= @background_color || "#ffffff" %>;
$background_text: <%= @background_text || "#222222" %>;
2015-07-29 09:31:34 -07:00
$background_muted: <%= @background_muted || "#bbbbbb" %>;
body#version1 {
a, {
&, &:hover, &:active {
2015-07-29 09:31:34 -07:00
color: $link_color;
}
}
hr, .locales #locales-panel ul {
border-color: $link_color;
}
2015-07-29 09:31:34 -07:00
background-color: $background_color;
color: $background_text;
// Navigation
2015-07-29 09:31:34 -07:00
nav.navbar {
// Nav Dropdown
2015-07-29 09:31:34 -07:00
&, .dropdown-menu {
background-color: $primary_color;
border-color: $primary_border;
2015-08-24 22:18:01 -07:00
border-top: none;
2015-08-24 22:18:01 -07:00
color: $primary_text;
2015-08-24 22:18:01 -07:00
.media, .dropdown-header {
color: $primary_text;
}
> li.divider {
background-color: $primary_border;
}
> li {
> a:hover {
2015-08-24 22:18:01 -07:00
background-color: mix($primary_color, $primary_text, 80%);
}
a {
&, &:hover, &:active {
color: $primary_text;
}
}
}
2015-07-29 09:31:34 -07:00
}
2015-08-25 11:32:20 -07:00
.navbar-nav > li > .btn > i {
color: $primary_text;
}
// Nav Links
2015-07-29 09:31:34 -07:00
a {
&, &:hover, &:active {
2015-07-29 09:31:34 -07:00
color: $primary_text;
}
}
li:not(.profile--image-dropdown):before {
background-color: $primary_text;
2015-07-29 09:31:34 -07:00
}
}
// Notifications
.media, #notifications .list-group-item {
2015-08-24 22:18:01 -07:00
color: $panel_text;
background: $panel_color;
}
.media {
background: transparent;
}
// Headers
2015-07-29 09:31:34 -07:00
.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;
2015-08-24 22:18:01 -07:00
background: $primary_color;
2015-07-29 09:31:34 -07:00
img {
opacity: 0;
}
}
.userbox--no-header, .panel-body {
position: relative;
}
// Panels, and modals
.panel, .modal-dialog {
2015-08-24 22:18:01 -07:00
border-color: $panel_border;
.panel-heading, .panel-footer, .panel-body, .modal-header, .modal-footer, .modal-body, .modal-content {
2015-08-24 22:18:01 -07:00
color: $panel_text;
}
2015-08-24 22:18:01 -07:00
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 {
2015-08-24 22:18:01 -07:00
background-color: $panel_color;
border-color: $panel_border;
}
.input-group-addon {
2015-08-24 22:18:01 -07:00
background: $panel_color;
border: $panel_color;
}
&, .panel-heading, .panel-footer, .modal-header, .modal-footer {
2015-08-24 22:18:01 -07:00
background-color: mix($panel_color, $panel_text, 90%);
border-color: mix($panel_color, $panel_text, 85%);
}
.panel-body, .modal-body, .modal-content {
2015-08-24 22:18:01 -07:00
background-color: $panel_color;
}
}
// Non-navigation dropdowns
.dropdown-menu {
2015-08-24 22:18:01 -07:00
background-color: $panel_color;
border-color: $panel_border;
color: $panel_text;
> li.divider {
2015-08-24 22:18:01 -07:00
background-color: $panel_border;
}
> li {
> a:hover {
2015-08-24 22:18:01 -07:00
background-color: mix($panel_color, $panel_text, 90%);
}
a {
&, &:hover, &:active {
2015-08-24 22:18:01 -07:00
color: $panel_text;
}
}
}
}
.text-muted {
color: $background_muted;
}
// Tabs
.nav-tabs {
border-color: transparent;
margin-top: -1px;
2015-07-29 09:31:34 -07:00
li.active a, li:active a, li:hover a {
2015-08-24 22:18:01 -07:00
background: mix($panel_color, $panel_text, 90%);
color: mix($panel_text, $panel_color, 90%);
2015-07-29 09:31:34 -07:00
}
}
// Lists
.list-group .list-group-item {
2015-08-24 22:18:01 -07:00
background-color: $panel_color;
color: $panel_text;
border-color: $panel_border;
.badge {
2015-08-24 22:18:01 -07:00
background-color: $panel_text;
border-color: $panel_border;
color: $panel_color;
}
2015-08-24 22:18:01 -07:00
&.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;
}
}
2015-07-29 09:31:34 -07:00
}
2015-08-25 11:37:55 -07:00
// Buttons, Alerts, Labels, Panel Badges, Badges, List Items
.btn-primary, .alert-primary, .label-primary, .panel-badge-primary, .badge-primary, .list-group-item-primary {
color: $primary_text !important;
background-color: $primary_color !important;
border-color: $primary_border !important;
.badge {
color: $primary_color !important;
background-color: $primary_text !important;
border-color: $primary_border !important;
}
}
.btn-primary:hover {
background-color: mix($primary_color, $primary_text, 90%) !important;
}
.btn-danger, .alert-danger, .label-danger, .panel-badge-danger, .badge-danger, .list-group-item-danger {
color: $danger_text !important;
background-color: $danger_color !important;
border-color: $danger_border !important;
.badge {
color: $danger_color !important;
background-color: $danger_text !important;
border-color: $danger_border !important;
}
}
.btn-danger:hover {
background-color: mix($danger_color, $danger_text, 90%) !important;
}
.btn-success, .alert-success, .label-success, .panel-badge-success, .badge-success, .list-group-item-success {
color: $success_text !important;
background-color: $success_color !important;
border-color: $success_border !important;
.badge {
color: $success_color !important;
background-color: $success_text !important;
border-color: $success_border !important;
}
}
.btn-success:hover {
background-color: mix($success_color, $success_text, 90%) !important;
}
.btn-warning, .alert-warning, .label-warning, .panel-badge-warning, .badge-warning, .list-group-item-warning {
color: $warning_text !important;
background-color: $warning_color !important;
border-color: $warning_border !important;
.badge {
color: $warning_color !important;
background-color: $warning_text !important;
border-color: $warning_border !important;
}
}
.btn-warning:hover {
background-color: mix($warning_color, $warning_text, 90%) !important;
}
.btn-info, .alert-info, .label-info, .panel-badge-info, .badge-info, .list-group-item-info {
color: $info_text !important;
background-color: $info_color !important;
border-color: $info_border !important;
.badge {
color: $info_color !important;
background-color: $info_text !important;
border-color: $info_border !important;
}
}
.btn-info:hover {
background-color: mix($info_color, $info_text, 90%) !important;
}
.btn-default, .alert-default, .label-default, .panel-badge-default, .badge-default, .list-group-item-default {
color: $default_text !important;
background-color: $default_color !important;
border-color: $default_border !important;
.badge {
2015-08-25 11:37:55 -07:00
color: $default_color !important;
background-color: $default_text !important;
border-color: $default_border !important;
}
}
2015-08-25 11:37:55 -07:00
.btn-default:hover {
background-color: mix($default_color, $default_text, 90%) !important;
}
// Reset debug
2015-07-29 09:31:34 -07:00
#debug {
background: white;
color: black;
2015-08-24 22:18:01 -07:00
hr {
background-color: inherit;
border-color: inherit;
}
2015-07-29 09:31:34 -07:00
}
}
/* 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;
}
}