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

Clean CSS import #9464

Merged
merged 4 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions contribs/gmf/examples/backgroundlayerselector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfThemes'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,8 +19,7 @@ MainController.$inject = ['gmfThemes'];
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './backgroundlayerselector.css';
import './backgroundlayerselector.scss';

import angular from 'angular';
import gmfBackgroundlayerselectorModule from 'gmf/backgroundlayerselector/module';
Expand All @@ -45,6 +43,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfThemes'];

/**
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes Themes service.
* @class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './common_styles.scss';

gmf-map {
width: 50rem;
height: 30rem;
Expand Down
4 changes: 1 addition & 3 deletions contribs/gmf/examples/contextualdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import 'ngeo/contextualdata/contextualdata.scss';
import './contextualdata.css';
import './contextualdata.scss';

import angular from 'angular';
import gmfContextualdataModule from 'gmf/contextualdata/module';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import './common_styles.scss';
@import 'ngeo/contextualdata/contextualdata.scss';

gmf-map {
width: 600px;
height: 400px;
Expand Down
Binary file modified contribs/gmf/examples/datepicker-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions contribs/gmf/examples/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['ngeoWMSTime'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,8 +19,7 @@ MainController.$inject = ['ngeoWMSTime'];
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './datepicker.css';
import './common_styles.scss';
import './datepicker.scss';

import angular from 'angular';
import ngeoMiscDatepickerComponent from 'ngeo/misc/datepickerComponent';
Expand All @@ -39,6 +37,8 @@ const myModule = angular.module('gmfapp', [
ngeoMiscWMSTime.name,
]);

MainController.$inject = ['ngeoWMSTime'];

/**
* @class
* @param {import('ngeo/misc/WMSTime').WMSTime} ngeoWMSTime wmstime service.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './common_styles.scss';

li {
margin: 20px;
list-style: none;
Expand Down
10 changes: 5 additions & 5 deletions contribs/gmf/examples/displayquerygrid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];
QueryresultController.$inject = ['ngeoQueryResult'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -21,9 +19,7 @@ QueryresultController.$inject = ['ngeoQueryResult'];
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './displayquerygrid.css';
import './gmf-hidden.inc.css';
import './displayquerygrid.scss';

import angular from 'angular';
import gmfDatasourceManager from 'gmf/datasource/Manager';
Expand Down Expand Up @@ -77,6 +73,8 @@ const queryresultComponent = {
};
myModule.component('gmfappQueryresult', queryresultComponent);

QueryresultController.$inject = ['ngeoQueryResult'];

/**
* Demo, NOT USED.
*
Expand All @@ -91,6 +89,8 @@ function QueryresultController(ngeoQueryResult) {
}
myModule.controller('gmfappQueryresultController', QueryresultController);

MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];

/**
* @class
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes The gmf themes service.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import './common_styles.scss';
@import './gmf-hidden.inc.css';

gmf-map,
#tree-container {
float: left;
Expand Down
10 changes: 5 additions & 5 deletions contribs/gmf/examples/displayquerywindow.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];
QueryresultController.$inject = ['ngeoQueryResult'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -21,9 +19,7 @@ QueryresultController.$inject = ['ngeoQueryResult'];
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './displayquerywindow.css';
import './gmf-hidden.inc.css';
import './displayquerywindow.scss';

import angular from 'angular';
import gmfDatasourceManager from 'gmf/datasource/Manager';
Expand Down Expand Up @@ -75,6 +71,8 @@ const queryresultComponent = {
};
myModule.component('appQueryresult', queryresultComponent);

QueryresultController.$inject = ['ngeoQueryResult'];

/**
* Demo, NOT USED.
*
Expand All @@ -89,6 +87,8 @@ function QueryresultController(ngeoQueryResult) {
}
myModule.controller('AppQueryresultController', QueryresultController);

MainController.$inject = ['gmfThemes', 'gmfDataSourcesManager', 'gmfThemeManager', 'defaultTheme'];

/**
* @class
* @param {import('gmf/theme/Themes').ThemesService} gmfThemes The gmf themes service.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import './common_styles.scss';
@import './gmf-hidden.inc.css';

gmf-map,
#tree-container {
float: left;
Expand Down
6 changes: 3 additions & 3 deletions contribs/gmf/examples/drawfeature.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope', 'ngeoFeatureHelper', 'ngeoFeatures', 'ngeoToolActivateMgr'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,8 +19,7 @@ MainController.$inject = ['$scope', 'ngeoFeatureHelper', 'ngeoFeatures', 'ngeoTo
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './drawfeature.css';
import './drawfeature.scss';

import angular from 'angular';
import 'bootstrap/js/src/tooltip';
Expand Down Expand Up @@ -53,6 +51,8 @@ const myModule = angular.module('gmfapp', [
ngeoMiscToolActivateMgr.name,
]);

MainController.$inject = ['$scope', 'ngeoFeatureHelper', 'ngeoFeatures', 'ngeoToolActivateMgr'];

/**
* @param {angular.IScope} $scope Angular scope.
* @param {import('ngeo/misc/FeatureHelper').FeatureHelper} ngeoFeatureHelper Gmf feature helper service.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './common_styles.scss';

gmf-map {
width: 600px;
height: 400px;
Expand Down Expand Up @@ -146,7 +148,6 @@ gmf-featurestyle input[type='range'] {
left: -10px;
border: 2px solid #fff;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0;
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0;
z-index: 11;
}
Expand Down
3 changes: 1 addition & 2 deletions contribs/gmf/examples/elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './elevation.css';
import './elevation.scss';

import angular from 'angular';
import gmfMapComponent from 'gmf/map/component';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './common_styles.scss';

gmf-map {
width: 600px;
height: 400px;
Expand Down
6 changes: 3 additions & 3 deletions contribs/gmf/examples/featurestyle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['$scope', 'ngeoFeatureHelper'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,8 +19,7 @@ MainController.$inject = ['$scope', 'ngeoFeatureHelper'];
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './featurestyle.css';
import './featurestyle.scss';

import angular from 'angular';
import gmfDrawingFeatureStyleComponent from 'gmf/drawing/featureStyleComponent';
Expand Down Expand Up @@ -57,6 +55,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['$scope', 'ngeoFeatureHelper'];

/**
* @class
* @param {angular.IScope} $scope Angular scope.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import './common_styles.scss';

gmf-map {
width: 600px;
height: 400px;
Expand Down Expand Up @@ -57,7 +59,6 @@ gmf-featurestyle input[type='range'] {
left: -10px;
border: 2px solid #fff;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0;
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0;
z-index: 11;
}
Expand Down
5 changes: 1 addition & 4 deletions contribs/gmf/examples/importdatasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import 'ngeo/layertree/common.scss';
import 'ngeo/layertree/timeslider.scss';
import './common_styles.scss';
import './importdatasource.css';
import './importdatasource.scss';

// Todo - use the 'Filter' theme instead if the 'Edit' theme
import angular from 'angular';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import './common_styles.scss';
@import 'ngeo/layertree/common.scss';
@import 'ngeo/layertree/timeslider.scss';

/* CSS stolen from https://github.com/bassjobsen/typeahead.js-bootstrap-css/ */
span.twitter-typeahead .tt-menu {
position: absolute;
Expand Down Expand Up @@ -67,17 +71,15 @@ body {
.panel {
display: block;
width: 60rem;
float: left;
margin: 0.5rem;
}
gmf-map {
width: 71rem;
height: 40rem;
display: block;
margin: 0.5rem;
}
.panel {
float: left;
margin: 0.5rem;
}
gmf-filterselector {
display: block;
width: 30rem;
Expand Down Expand Up @@ -264,13 +266,6 @@ a.gmf-wmscapabilitylayertreenode-expand-node.fa[aria-expanded='true']::before {
}

.gmf-wmscapabilitylayertreenode-description-toggle {
/* display: none; */
display: block;
text-align: right;
}

/*
.gmf-wmscapabilitylayertreenode-description:hover .gmf-wmscapabilitylayertreenode-description-toggle {
display: block;
}
*/
8 changes: 3 additions & 5 deletions contribs/gmf/examples/layertree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,10 +19,7 @@ MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'nge
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import 'ngeo/layertree/common.scss';
import 'ngeo/layertree/timeslider.scss';
import './common_styles.scss';
import './layertree.css';
import './layertree.scss';

import angular from 'angular';
import gmfDisclaimerModule from 'gmf/disclaimer/module';
Expand Down Expand Up @@ -59,6 +55,8 @@ const myModule = angular.module('gmfapp', [
gmfDisclaimerModule.name,
]);

MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];

/**
* @class
* @param {import('gmf/layertree/TreeManager').LayertreeTreeManager} gmfTreeManager gmf Tree Manager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import './common_styles.scss';
@import 'ngeo/layertree/common.scss';
@import 'ngeo/layertree/timeslider.scss';

gmf-map {
width: 600px;
height: 400px;
Expand Down
8 changes: 3 additions & 5 deletions contribs/gmf/examples/layertreeadd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,10 +19,7 @@ MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'nge
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import 'ngeo/layertree/common.scss';
import 'ngeo/layertree/timeslider.scss';
import './common_styles.scss';
import './layertreeadd.css';
import './layertreeadd.scss';

import angular from 'angular';
import gmfDisclaimerModule from 'gmf/disclaimer/module';
Expand Down Expand Up @@ -57,6 +53,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfTreeManager', 'gmfThemes', 'gmfThemeManager', 'ngeoLocation'];

/**
* @class
* @param {import('gmf/layertree/TreeManager').LayertreeTreeManager} gmfTreeManager gmf Tree Manager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import './common_styles.scss';
@import 'ngeo/layertree/common.scss';
@import 'ngeo/layertree/timeslider.scss';

gmf-map {
width: 600px;
height: 400px;
Expand Down
6 changes: 3 additions & 3 deletions contribs/gmf/examples/mobilemeasure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
MainController.$inject = ['gmfPermalink'];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
Expand All @@ -20,8 +19,7 @@ MainController.$inject = ['gmfPermalink'];
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import './common_styles.scss';
import './mobilemeasure.css';
import './mobilemeasure.scss';

import angular from 'angular';
import gmfMapComponent from 'gmf/map/component';
Expand Down Expand Up @@ -54,6 +52,8 @@ const myModule = angular.module('gmfapp', [
ngeoMapModule.name,
]);

MainController.$inject = ['gmfPermalink'];

/**
* @param {import('gmf/permalink/Permalink').PermalinkService} gmfPermalink The gmf permalink service.
* @class
Expand Down
Loading
Loading