Skip to content

Commit

Permalink
Merge pull request #97 from ckan/fix-css-for-badges
Browse files Browse the repository at this point in the history
Fix CSS for badges
  • Loading branch information
pdelboca authored Jun 14, 2023
2 parents 97036fa + 827d522 commit 1eea3f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: '3.10'
- name: Install requirements
run: pip install flake8 pycodestyle
- name: Check syntax
Expand All @@ -17,7 +17,7 @@ jobs:
needs: lint
strategy:
matrix:
ckan-version: ["2.10", 2.9, 2.9-py2, 2.8, 2.7]
ckan-version: ["2.10", 2.9]
fail-fast: false

name: CKAN ${{ matrix.ckan-version }}
Expand Down Expand Up @@ -51,13 +51,8 @@ jobs:
pip install -e .
# Replace default path to CKAN core config file with the one on the container
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini
- name: Setup extension (CKAN >= 2.9)
if: ${{ matrix.ckan-version != '2.7' && matrix.ckan-version != '2.8' }}
- name: Setup extension
run: |
ckan -c test.ini db init
- name: Setup extension (CKAN < 2.9)
if: ${{ matrix.ckan-version == '2.7' || matrix.ckan-version == '2.8' }}
run: |
paster --plugin=ckan db init -c test.ini
- name: Run tests
run: pytest --ckan-ini=test.ini --disable-warnings ckanext/geoview/tests
16 changes: 8 additions & 8 deletions ckanext/geoview/public/css/geo-resource-styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.label[data-format=wfs] {
.badge[data-format=wfs] {
background-color: #7aae3d;
}
.format-label[data-format=wfs],
Expand All @@ -11,7 +11,7 @@
height: 35px;
}

.label[data-format=wms] {
.badge[data-format=wms] {
background-color: #adc717;
}
.format-label[data-format=wms],
Expand All @@ -24,7 +24,7 @@
height: 35px;
}

.label[data-format=gml] {
.badge[data-format=gml] {
background-color: #7aae3d;
}
.format-label[data-format=gml],
Expand All @@ -37,7 +37,7 @@
height: 35px;
}

.label[data-format=kml] {
.badge[data-format=kml] {
background-color: #7aae3d;
}
.format-label[data-format=kml],
Expand All @@ -50,7 +50,7 @@
height: 35px;
}

.label[data-format=geojson] {
.badge[data-format=geojson] {
background-color: #9855e0;
}
.format-label[data-format=geojson],
Expand All @@ -63,7 +63,7 @@
height: 35px;
}

.label[data-format=wmts] {
.badge[data-format=wmts] {
background-color: #3333ff;
}
.format-label[data-format=wmts],
Expand All @@ -76,7 +76,7 @@
height: 35px;
}

.label[data-format=shp] {
.badge[data-format=shp] {
background-color: #0080ff;
}
.format-label[data-format=shp],
Expand All @@ -89,6 +89,6 @@
height: 35px;
}

.label[data-format=arcgis_rest] {
.badge[data-format=arcgis_rest] {
background-color: #5c3ee0;
}

0 comments on commit 1eea3f2

Please sign in to comment.