Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refined css for Esri Directions widget and Flat theme #668

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 71 additions & 18 deletions viewer/css/cmv-theme-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@
/* end esri mobile popup overrides */

/* esri directions widget overrides */
.cmv .simpleDirections .esriDirectionsButton {
.cmv .simpleDirections .esriStopsGetDirections,
.cmv .simpleDirections .esriResultsPrint,
.simpleDirections .esriActivateButton {
background-color: #E6E6E6;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #e6e6e6));
background-image: -webkit-linear-gradient(top, #fff 0%, #e6e6e6 100%);
Expand Down Expand Up @@ -136,6 +138,30 @@
font-size: 14px;
}

.cmv .simpleDirections .esriActivateButton {
padding: 8px;
}

.cmv .simpleDirections .esriActivateButton:before {
content: '\f041';
font-family: 'FontAwesome';
font-size: 14px;
}

.cmv .esriDirectionsPressedButton {
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(1, #e6e6e6));
background-image: -webkit-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: -moz-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: -o-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: -ms-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-repeat: repeat-x;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.2);
border-top-color: #444;
border-color: #666;
-webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.2);
}

.cmv .simpleDirections .esriLinkButton {
color: #000;
letter-spacing: 0;
Expand Down Expand Up @@ -183,24 +209,51 @@
border-top: none;
}

.flat .dijitButton .dijitButtonNode,
.flat .dijitDropDownButton .dijitButtonNode,
.flat .dijitComboButton .dijitButtonNode,
.flat .dijitToggleButton .dijitButtonNode,
.flat .dijitComboBox .dijitButtonNode,
.flat .dijitSpinnerButtonContainer.dijitButtonNode,
.flat .dijitSelect .dijitButtonNode {
background-color: #E6E6E6;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #e6e6e6));
background-image: -webkit-linear-gradient(top, #fff 0%, #e6e6e6 100%);
background-image: -moz-linear-gradient(top, #fff 0%, #e6e6e6 100%);
background-image: -o-linear-gradient(top, #fff 0%, #e6e6e6 100%);
background-image: -ms-linear-gradient(top, #fff 0%, #e6e6e6 100%);
background-image: linear-gradient(top, #fff 0%, #e6e6e6 100%);
.flat .dijitButtonHover .dijitButtonNode,
.flat .dijitDropDownButtonHover .dijitButtonNode,
.flat .dijitComboButton .dijitButtonNodeHover,
.flat .dijitComboButton .dijitDownArrowButtonHover,
.flat .dijitToggleButtonHover .dijitButtonNode,
.flat .dijitDropDownButtonActive .dijitButtonNode {
background-position: 0 -15px;
text-decoration: none;
transition: background-position 0.1s linear;
-moz-transition: background-position 0.1s linear;
-ms-transition: background-position 0.1s linear;
-o-transition: background-position 0.1s linear;
-webkit-transition: background-position 0.1s linear;
}
.flat .dijitButtonActive .dijitButtonNode,
.flat .dijitComboButton .dijitButtonNodeActive,
.flat .dijitToggleButtonActive .dijitButtonNode,
.flat .dijitToggleButtonChecked .dijitButtonNode,
.flat .dijitComboButton .dijitArrowButton.dijitHasDropDownOpen {
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(1, #e6e6e6));
background-image: -webkit-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: -moz-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: -o-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: -ms-linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-image: linear-gradient(bottom, #fff 0%, #e6e6e6 100%);
background-repeat: repeat-x;
border-color: #BBB;
border-bottom-color: #A8A8A8;
padding: 4px 12px;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.2);
border-top-color: #444;
border-color: #666;
-webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.2);
}
.flat .dijitButtonDisabled .dijitButtonNode,
.flat .dijitDropDownButtonDisabled .dijitButtonNode,
.flat .dijitComboButtonDisabled .dijitButtonNode,
.flat .dijitToggleButtonDisabled .dijitButtonNode,
.flat .dijitComboBoxDisabled .dijitButtonNode,
.flat .dijitSpinnerDisabled .dijitButtonNode,
.flat .dijitSelectDisabled .dijitButtonNode {
background-image: none;
box-shadow: none;
cursor: not-allowed;
filter: alpha(opacity=65);
opacity: 0.65;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=65);
-webkit-box-shadow: none;
}

.flat .success .dijitButtonNode {
Expand Down