Skip to content

Commit

Permalink
Fix plugin example style
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Jul 19, 2017
1 parent a283551 commit fd9f047
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion web/client/examples/plugins/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const startApp = () => {
<Provider store={store}>
<Localized>
<div style={{width: "100%", height: "100%"}}>
<div id="plugins-list" style={{position: "absolute", zIndex: "10000", backgroundColor: "white", width: "300px", left: 0, height: "100%", overflow: "auto"}}>
<div id="plugins-list" style={{position: "absolute", zIndex: "10000", width: "300px", left: 0, height: "100%", overflow: "auto"}}>
<h5>Configure application plugins</h5>
<ul>
<FormGroup bsSize="small">
Expand Down
34 changes: 28 additions & 6 deletions web/client/themes/default/bootstrap-theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
@bootstrap-path: "~bootstrap/less/";
// Core variables and mixins
@import "@{bootstrap-path}variables.less";
// @import "@{bootstrap-path}variables.less";
@import "@{bootstrap-path}mixins.less";
// Reset and dependencies
@import "@{bootstrap-path}normalize.less";
Expand Down Expand Up @@ -50,15 +50,13 @@
@import "@{bootstrap-path}utilities.less";
@import "@{bootstrap-path}responsive-utilities.less";

.modal-header {
background-color: @ms2-color-primary;
color: @ms2-color-text-primary;
}
// Custom theme

// Button
button.close {
opacity: 1.0;
}
// Mixin for generating new styles

.btn-styles(@btn-color-hover) {

&:hover {
Expand All @@ -85,3 +83,27 @@ button.close {
.btn-danger {
.btn-styles(@ms2-color-danger-hover);
}

// Modal
.modal-dialog {
width: 290px;
margin: auto;
}

.modal-header {
background-color: @ms2-color-primary;
color: @ms2-color-text-primary;
}

@media (min-width: @screen-sm-min) {
.modal-dialog {
width: @modal-md;
margin: auto;
margin-top: 150px;
}
}

// Dropdown
.dropdown-menu {
padding: 0;
}
2 changes: 1 addition & 1 deletion web/client/themes/default/less/drawer-menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
display: block;
height: @square-btn-size;
width: @square-btn-size;
padding: @padding-left-square 0 0 @padding-left-square;
padding: floor((@padding-left-square - 1) / 1.230769231) 0 0 (@padding-left-square - 1);
}

#mapstore-drawermenu .navHeader .glyphicon-remove {
Expand Down
2 changes: 1 addition & 1 deletion web/client/themes/default/less/square-button.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.square-button {
height: @square-btn-size;
width: @square-btn-size;
padding: 0 @padding-left-square - 1;
padding: floor((@padding-left-square - 1) / 1.230769231 /* font ratio height/width */) (@padding-left-square - 1);
outline: 0 !important;

.glyphicon {
Expand Down

0 comments on commit fd9f047

Please sign in to comment.