Merge branch 'rebrand-ui' of https://github.com/frappe/frappe into rebrand-ui
This commit is contained in:
commit
0e4533bd06
13 changed files with 38 additions and 33 deletions
|
|
@ -90,7 +90,6 @@
|
|||
"public/less/desk.less",
|
||||
"public/less/module.less",
|
||||
"public/less/flex.less",
|
||||
"public/less/notifications.less",
|
||||
"public/less/link_preview.less",
|
||||
"public/less/form.less",
|
||||
"public/less/mobile.less",
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ frappe.ui.form.ControlColor = frappe.ui.form.ControlData.extend({
|
|||
set_formatted_input: function(value) {
|
||||
this._super(value);
|
||||
|
||||
if (!value) value = '#FFFFFF';
|
||||
const contrast = frappe.ui.color.get_contrast_color(value);
|
||||
if (!value) value = '#F4F5F5';
|
||||
const contrast = frappe.ui.color.get_contrast_color(value);
|
||||
|
||||
this.$input.css({
|
||||
"background-color": value, "color": contrast
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<div class="filter-field"></div>
|
||||
<div class="text-muted small filter-description"></div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<div class="col-sm-1 text-center">
|
||||
<span class="remove-filter">
|
||||
<svg class="icon icon-sm">
|
||||
<use href="#icon-close" class="close"></use>
|
||||
|
|
|
|||
|
|
@ -406,6 +406,8 @@ frappe.ui.filter_utils = {
|
|||
},
|
||||
|
||||
get_selected_value(field, condition) {
|
||||
if (!field) return;
|
||||
|
||||
let val = field.get_value();
|
||||
|
||||
if (typeof val === 'string') {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ frappe.ui.FilterGroup = class {
|
|||
|
||||
if (!this.wrapper) {
|
||||
this.wrapper = $('.filter-popover');
|
||||
console.log('shownn', this.filters);
|
||||
if (hide_empty_filters) {
|
||||
this.toggle_empty_filters(false);
|
||||
this.add_filters_to_popover(this.filters);
|
||||
|
|
@ -76,8 +75,8 @@ frappe.ui.FilterGroup = class {
|
|||
});
|
||||
|
||||
this.filter_button.on('hidden.bs.popover', (e) => {
|
||||
this.on_change();
|
||||
this.update_filters();
|
||||
this.on_change();
|
||||
});
|
||||
|
||||
$(window).on('hashchange', () => {
|
||||
|
|
@ -243,7 +242,9 @@ frappe.ui.FilterGroup = class {
|
|||
}
|
||||
|
||||
update_filters() {
|
||||
this.filters = this.filters.filter((f) => f.field); // remove hidden filters
|
||||
// remove hidden filters and undefined filters
|
||||
this.filters.map(f => !f.get_selected_value() && f.remove());
|
||||
this.filters = this.filters.filter(f => f.get_selected_value() && f.field);
|
||||
this.update_filter_button();
|
||||
this.filters.length === 0 &&
|
||||
this.toggle_empty_filters(true);
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ export default class ChartWidget extends Widget {
|
|||
/* eslint-disable indent */
|
||||
this.chart_actions = $(`<div class="chart-actions dropdown pull-right">
|
||||
<button data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-xs btn-secondary">
|
||||
${frappe.utils.icon('dot-horizontal')}
|
||||
‧‧‧
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
${actions
|
||||
|
|
|
|||
|
|
@ -110,25 +110,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.frappe-control[data-fieldtype="Select"] .control-input {
|
||||
position: relative;
|
||||
|
||||
select {
|
||||
/* for Firefox */
|
||||
-moz-appearance: none;
|
||||
/* for Chrome */
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
height: 15px;
|
||||
right: 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* duration control */
|
||||
|
||||
.duration-picker {
|
||||
|
|
|
|||
|
|
@ -28,4 +28,26 @@
|
|||
|
||||
.frappe-control {
|
||||
font-size: var(--text-md);
|
||||
}
|
||||
|
||||
.frappe-control[data-fieldtype="Select"] .control-input {
|
||||
position: relative;
|
||||
|
||||
select {
|
||||
/* for Firefox */
|
||||
-moz-appearance: none;
|
||||
/* for Chrome */
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
height: 15px;
|
||||
right: 12px;
|
||||
pointer-events: none;
|
||||
use {
|
||||
stroke: var(--text-muted);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -36,6 +36,7 @@
|
|||
--border-color: var(--gray-700);
|
||||
--dark-border-color: var(--gray-600);
|
||||
--highlight-color: var(--gray-700);
|
||||
--yellow-highlight-color: var(--yellow-700);
|
||||
|
||||
.frappe-card {
|
||||
.btn-default {
|
||||
|
|
|
|||
|
|
@ -48,8 +48,6 @@
|
|||
}
|
||||
|
||||
.divider {
|
||||
margin-right: -10px;
|
||||
margin-left: -10px;
|
||||
background-color: var(--border-color);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
// padding: 10px 15px;
|
||||
|
||||
&.highlight {
|
||||
background-color: var(--yellow-50);
|
||||
background-color: var(--yellow-highlight-color);
|
||||
}
|
||||
|
||||
&.sortable-handle {
|
||||
|
|
|
|||
|
|
@ -79,9 +79,9 @@ body.no-list-sidebar {
|
|||
flex-direction: column;
|
||||
outline: none;
|
||||
|
||||
// &:focus {
|
||||
// background-color: $light-yellow;
|
||||
// }
|
||||
&:focus {
|
||||
background-color: var(--yellow-highlight-color);
|
||||
}
|
||||
}
|
||||
|
||||
.list-row {
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@ $card-box-shadow: 0px 0px 1px rgba(17, 43, 66, 0.16), 0px 1px 3px rgba(17, 43, 6
|
|||
--border-color: var(--gray-100);
|
||||
--dark-border-color: var(--gray-300);
|
||||
--highlight-color: var(--gray-50);
|
||||
--yellow-highlight-color: var(--yellow-50);
|
||||
|
||||
// Border Sizes
|
||||
--border-radius-sm: 4px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue