Skip to content

Commit

Permalink
Color fix (#1750)
Browse files Browse the repository at this point in the history
* color updates

* Added all bootstrap 3 variables

* Added list group hover color to normal list group item

* First color iteration fixes
  • Loading branch information
rymorgan authored and mikemurray committed Jan 25, 2017
1 parent 339e751 commit 037d687
Show file tree
Hide file tree
Showing 6 changed files with 994 additions and 56 deletions.
73 changes: 69 additions & 4 deletions imports/plugins/included/default-theme/client/styles/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
&:focus {
outline: none;
}

&.disabled,
&[disabled],
fieldset[disabled] & {
cursor: @cursor-disabled;
.opacity(.65);
.box-shadow(none);
}
}

.rui.button > .contents {
Expand All @@ -13,7 +21,6 @@
align-items: center;
}


.rui.button.edit, .btn-edit {
border: none;
font-size: 10px;
Expand All @@ -29,24 +36,64 @@
margin-left: 5px;
}

// .rui.button.edit.btn-default, .btn-edit.btn-default {
// background-color: @btn-default-bg;
// }
.rui.button.edit.btn-default, .btn-edit.btn-default {
background-color: @btn-edit-bg;

&.disabled,
&[disabled],
fieldset[disabled] & {
.opacity(.65);
}
}

.rui.button.edit.active, .btn-edit.active {
background-color: @btn-active-bg;

&.disabled,
&[disabled],
fieldset[disabled] & {
.opacity(.65);
}
}

.rui.button.edit.btn-success, .btn-edit.btn-success {
background-color: @btn-success-bg;

&.disabled,
&[disabled],
fieldset[disabled] & {
.opacity(.65);
}
}

.rui.button.edit.btn-warning, .btn-edit.btn-warning {
background-color: @btn-warning-bg;

&.disabled,
&[disabled],
fieldset[disabled] & {
.opacity(.65);
}
}

.rui.button.edit.btn-danger, .btn-edit.btn-danger {
background-color: @btn-danger-bg;

&.disabled,
&[disabled],
fieldset[disabled] & {
.opacity(.65);
}
}

.rui.button.edit.btn-info, .btn-edit.btn-info {
background-color: @btn-info-bg;

&.disabled,
&[disabled],
fieldset[disabled] & {
.opacity(.65);
}
}

.rui.button.edit > .icon,
Expand Down Expand Up @@ -81,6 +128,16 @@
background-color: transparent;
}

.toolbar-group .rui.button.flat {
color: @reaction-brand;

&.disabled,
&[disabled],
fieldset[disabled] & {
color: desaturate(mix(@white,@btn-success-bg, 40%),30%);
}
}

.rui.button.icon, .btn-icon {
border: none;
padding: 0;
Expand Down Expand Up @@ -171,6 +228,14 @@
border-radius: 0;
font-weight: 600;
text-transform: uppercase;

&.disabled,
&[disabled],
fieldset[disabled] & {
color: desaturate(mix(@white,@btn-success-bg, 40%),30%);
border: 3px solid desaturate(mix(@white,@btn-success-bg, 40%),30%);

}
}

// .rui.button .btn-default.btn-bordered
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@
.rui.list-group-item .list-item-action {
flex: 0 0 auto;
}

.rui.list-group-item .list-group-item:hover, .list-group-item:hover {
background-color: @list-group-hover-bg;
cursor: pointer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
}
}

.panel-heading {
text-transform: capitalize;
}

.flex-item > .panel {
margin-bottom: 0;
min-height: 220px;
Expand All @@ -38,7 +42,7 @@ label.panel-title {
}

.panel-active > .panel-heading {
background-color: @brand-accent-color;
background-color: @gray-lightest;
}

.action-view-body .panel-group {
Expand Down Expand Up @@ -69,7 +73,7 @@ label.panel-title {
}

.panel-group-accordian .panel-active a.panel-heading {
background-color: @brand-accent-color;
background-color: @gray-lightest;
}

.panel-heading-flex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
align-items: center;
padding-left: @navbar-padding-horizontal;
padding-right: @navbar-padding-horizontal;
border-radius: 0;
border: none;
border-bottom: @toolbar-border-width solid @toolbar-border-color;
}

.rui.toolbar-group {
Expand Down
Loading

0 comments on commit 037d687

Please sign in to comment.