Skip to content

Commit

Permalink
tighten up the css rules where practical.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Sep 28, 2016
1 parent 2c1b8f0 commit b0a903f
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 43 deletions.
55 changes: 36 additions & 19 deletions .csslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
/* https://github.com/CSSLint/csslint/wiki/Rules */
{
"adjoining-classes": true,
"box-sizing": true,
"box-model": true,
"compatible-vendor-prefixes": true,
"floats": true,
"font-sizes": true,
"gradients": true,
"important": true,
"ids": true,
"known-properties": true,
"outline-none": true,
"qualified-headings": true,
"padding": true,
"regex-selectors": true,
"shorthand": true,
"text-indent": true,
"unique-headings": true,
"universal-selector": true,
"unqualified-attributes": true
"important": false,
"adjoining-classes": false,
"known-properties": false,
"box-sizing": false,
"box-model": false,
"overqualified-elements": false,
"display-property-grouping": false,
"bulletproof-font-face": false,
"compatible-vendor-prefixes": false,
"regex-selectors": false,
"errors": true,
"duplicate-background-images": false,
"duplicate-properties": false,
"empty-rules": false,
"selector-max-approaching": false,
"gradients": false,
"fallback-colors": false,
"font-sizes": false,
"font-faces": false,
"floats": false,
"star-property-hack": false,
"outline-none": false,
"import": false,
"ids": false,
"underscore-property-hack": false,
"rules-count": false,
"qualified-headings": false,
"selector-max": false,
"shorthand": false,
"text-indent": false,
"unique-headings": false,
"universal-selector": false,
"unqualified-attributes": false,
"vendor-prefix": false,
"zero-units": false
}
1 change: 1 addition & 0 deletions widgets/AttributesTable/css/AttributesTable.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*csslint order-alphabetical: false */
.cmvAttributesContainerWidget {
height: 100%;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion widgets/Disclaimer/css/Disclaimer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*csslint ids: false */
/*csslint ids: false, order-alphabetical: false */
.cmvDisclaimerWidget .disclaimerMessageContainer {
padding: 0;
}
Expand Down
5 changes: 3 additions & 2 deletions widgets/Export/css/Export.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/*csslint ids: false */
.floatingWidget .cmvExportWidget {
width: 275px;
height: 140px;
width: 275px;
}

.cmvExportWidget .exportContainer {
padding: 20px;
}

.cmvExportWidget .divExportButton {
width: 100%;
margin-top: 15px;
text-align: center;
width: 100%;
}

#export_parent_underlay {
Expand Down
2 changes: 1 addition & 1 deletion widgets/FullScreen/css/FullScreen.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*csslint important: false, box-model: false */
/*csslint important: false, box-model: false, order-alphabetical: false */
div:-webkit-full-screen {
top: 0 !important;
left: 0 !important;
Expand Down
2 changes: 1 addition & 1 deletion widgets/PrintPlus/css/Print.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*csslint box-model: false */
/*csslint box-model: false, order-alphabetical: false */
/*lcs Print Enhancements - added "position: relative" to anchor the position of relativeScale*/
.gis_PrintPlusDijit {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion widgets/Search/css/Draw.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@charset "UTF-8";

/*csslint order-alphabetical: false */
@font-face {
font-family: "draw-icons";
src:url("./fonts/draw-icons.eot");
Expand Down
10 changes: 5 additions & 5 deletions widgets/Search/css/Search.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.cmvSearchWidget {
width: 100%;
height: 490px;
min-width: 225px;
height: 490px;
width: 100%;
}

.cmvSearchWidget .tabContainer {
Expand Down Expand Up @@ -41,12 +41,12 @@
}

.cmvSearchWidget .searchFeaturesIcon {
width: 40px;
height: 40px;
background-repeat: no-repeat;
text-align: center;
float: left;
height: 40px;
margin: 10px 11px 12px 11px;
text-align: center;
width: 40px;
}

.cmvSearchWidget .searchFeaturesIcon:hover {
Expand Down
20 changes: 10 additions & 10 deletions widgets/Share/css/Share.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*csslint box-model: false */
.cmvShareWidget {
width: 100%;
padding-bottom: 10px;
width: 100%;
}

.floatingWidget .cmvShareWidget {
width: 250px;
margin: 10px;
width: 250px;
}

.cmvShareWidget label {
font-weight: bold;
display: block;
font-weight: bold;
}

.cmvShareWidget .icon-clear {
Expand Down Expand Up @@ -54,10 +54,10 @@
}

.cmvShareWidget .textarea {
width: 100%;
height: 100px;
margin-bottom: 10px;
padding: 5px;
width: 100%;
}

.floatingWidget .cmvShareWidget .map-url,
Expand All @@ -66,16 +66,16 @@
}

.cmvShareWidget .icon {
color: #666;
color: rgba(0, 0, 0, 0.5);
cursor: pointer;
display: block;
float: left;
font-family: FontAwesome;
font-size: 32px;
float: left;
cursor: pointer;
margin-right: 15px;
margin-bottom: 10px;
margin-right: 15px;
text-decoration: none;
display: block;
color: #666;
color: rgba(0, 0, 0, 0.5);
}

.cmvShareWidget .icon-gplus {
Expand Down
4 changes: 2 additions & 2 deletions widgets/What3Words/css/What3Words.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.cmwWhat3WordsWidget .w3wText {
width:100%;
margin-bottom: 15px;
width:100%;
}
.cmwWhat3WordsWidget label {
margin-left: 5px;
}

.cmwWhat3WordsWidget a .w3wLink {
background-image: url('../images/what3words_logo.png');
background-repeat: no-repeat;
background-position: center;
background-repeat: no-repeat;
height: 52px;
margin-bottom: 15px;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion widgets/ZoomToFeature/css/ZoomToFeature.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.cmwZoomToFeatureWidget .featureSelect {
width:100%;
margin-bottom: 10px;
width:100%;
}

.cmwZoomToFeatureWidget .buttonContainer {
Expand Down

0 comments on commit b0a903f

Please sign in to comment.