Skip to content

Commit

Permalink
Add styles for flexberry-uimessage component (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpavloff authored Sep 14, 2020
1 parent 6f17150 commit 0544698
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 18 deletions.
6 changes: 0 additions & 6 deletions src/definitions/components/flexberry-objectlistview.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@
}
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

/*-------------------
Navbar
--------------------*/
Expand Down
6 changes: 6 additions & 0 deletions src/definitions/components/flexberry-uimessage.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@type : 'component';
@element : 'flexberry-uimessage';

@import (multiple) '../../theme.config';

.loadUIOverrides();
21 changes: 11 additions & 10 deletions src/flexberry-associations.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@form-associate : 'pages/edit-form';
@grid-associate : '';
@menu-associate : '';
@message-associate : '';
@message-associate : 'components/flexberry-uimessage';
@table-associate: 'components/flexberry-objectlistview';

/* Modules */
Expand Down Expand Up @@ -57,25 +57,26 @@

/* Сontrols */
@flexberry-button-associate: '';
@flexberry-card-associate: '';
@flexberry-checkbox-associate: '';
@flexberry-colsconfig-associate: '';
@flexberry-dimmer-associate: '';
@flexberry-dropdown-associate: '';
@flexberry-field-associate: '';
@flexberry-file-associate: '';
@flexberry-groupedit-associate: '';
@flexberry-input-associate: '';
@flexberry-lookup-associate: '';
@flexberry-menu-associate: '';
@flexberry-modal-associate: '';
@flexberry-objectlistview-associate: '';
@flexberry-sidebar-associate: '';
@flexberry-card-associate: '';
@flexberry-checkbox-associate: '';
@flexberry-toggler-associate: '';
@flexberry-menu-associate: '';
@flexberry-simpledatetime-associate: '';
@flexberry-toggler-associate: '';
@flexberry-tree-associate: '';
@flexberry-modal-associate: '';
@flexberry-dimmer-associate: '';
@flexberry-validationsummary-associate: '';
@flexberry-colsconfig-associate: '';
@flexberry-input-associate: '';
@flexberry-uimessage-associate: '';
@flexberry-validationmessage-associate: '';
@flexberry-validationsummary-associate: '';

/* Forms */
@edit-form-associate: '';
Expand Down
1 change: 1 addition & 0 deletions src/flexberry-imports.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
& { @import "definitions/components/flexberry-colsconfig"; }
& { @import "definitions/components/flexberry-validationmessage"; }
& { @import "definitions/components/flexberry-validationsummary"; }
& { @import "definitions/components/flexberry-uimessage"; }



3 changes: 2 additions & 1 deletion src/theme.config.example
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
@form : 'ghost';
@grid : 'default';
@menu : 'ghost';
@message : 'default';
@message : 'ghost';
@table : 'ghost';

/* Modules */
Expand Down Expand Up @@ -93,6 +93,7 @@
@flexberry-validationsummary: 'ghost';
@flexberry-colsconfig: 'ghost';
@flexberry-input: 'ghost';
@flexberry-uimessage: 'ghost';
@flexberry-validationmessage: 'ghost';

/* Forms */
Expand Down
11 changes: 10 additions & 1 deletion src/themes/ghost/components/flexberry-field.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,20 @@
border-color: @fieldReadonlyBorderColor;
}

.ui.input.nav-bar-search-page input[type='number'] {
-moz-appearance: textfield;/*For FireFox*/

&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button { /*For Webkits like Chrome and Safari*/
-webkit-appearance: none;
margin: 0;
}
}

.ui.field > label {
line-height: @fieldLabelLineHeight;
}


// Large
.ui.large.input > input {
font-size: @inputLargeFontSize;
Expand Down
9 changes: 9 additions & 0 deletions src/themes/ghost/components/flexberry-uimessage.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Close Icon */
.ui.message > .close.icon {
font-family: @uiMessageIconFont;
right: @uimessageIconPositionRight;

&::before {
content: @uimessageCloseIcon;
}
}
7 changes: 7 additions & 0 deletions src/themes/ghost/components/flexberry-uimessage.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Primary */
@borderWidth: 0;

/* Icon */
@uiMessageIconFont: guideline-icons;
@uimessageCloseIcon: "\e90e";
@uimessageIconPositionRight: 1em;

0 comments on commit 0544698

Please sign in to comment.