Skip to content

Commit

Permalink
feat(schema): video formats;
Browse files Browse the repository at this point in the history
- Allow more video formats.
- New sprite sheet for more extensions.
  • Loading branch information
JVickery-TBS committed Oct 9, 2024
1 parent 9567280 commit 40dcf17
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ links/who.ini
ckanext/canada/templates/public/snippets/site_message_*
ckanext/canada/download/*.jsonl
**.mo
*.xcf
43 changes: 33 additions & 10 deletions ckanext/canada/assets/public/canada_public.css
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,6 @@ ul.resource-list > li.resource-item > div.canada-resource-list-badges a.validati
ul.resource-list > li.resource-item > div.canada-resource-list-badges{
align-self: last baseline;
}
ul.resource-list > li.resource-item span.format-label[data-format="pbix"]{
background-image: url("/data/static/img/power_bi.svg"), url("/static/img/power_bi.svg");
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: 0 0;
width: 33px;
height: 36px;
transform: none !important;
margin: 0 !important;
}
.resource-item .resource-action-links{
display: block !important;
position: relative !important;
Expand Down Expand Up @@ -658,6 +648,39 @@ body ul.nav li.view-item a i.icon::before{
###################*/


/*############################
## Custom Resource Sprites ##
##############################*/
ul.resource-list > li.resource-item span.format-label[data-format="pbix"]{
background-image: url("/data/static/img/sprite-resource-additional-icons.png"), url("/static/img/sprite-resource-additional-icons.png");
background-repeat: no-repeat;
width: 60px;
height: 65px;
background-position: -120px -220px;
transform: scale(0.53);
margin: -14px 0 0 -14px;
}
ul.resource-list > li.resource-item span.format-label[data-format="mp4"],
ul.resource-list > li.resource-item span.format-label[data-format="flv"],
ul.resource-list > li.resource-item span.format-label[data-format="mov"],
ul.resource-list > li.resource-item span.format-label[data-format="avi"],
ul.resource-list > li.resource-item span.format-label[data-format="mkv"],
ul.resource-list > li.resource-item span.format-label[data-format="wmv"]{
background-image: url("/data/static/img/sprite-resource-additional-icons.png"), url("/static/img/sprite-resource-additional-icons.png");
background-repeat: no-repeat;
width: 60px;
height: 65px;
background-position: -220px -220px;
transform: scale(0.53);
margin: -14px 0 0 -14px;
}
/*############################
## END ##
## Custom Resource Sprites ##
## END ##
##############################*/


/*###############################
## FontAwesome5 Icon Overrides ##
#################################*/
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion ckanext/canada/schemas/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3358,6 +3358,9 @@ presets:
en: Flat raster binary
fr: Binaire raster plat
replaces: [flat raster binary]
- value: FLV
mimetype: video/x-flv
replaces: ["fla", "f4v", "f4a", "f4b", "f4p"]
- value: GDB
mimetype: application/x-filegdb
label: GeoSoftDatabases
Expand Down Expand Up @@ -3437,13 +3440,20 @@ presets:
- value: MFX
mimetype: application/mxf
- value: MOV
mimetype: video/mov
mimetype: video/quicktime
replaces: ["movie", "qt"]
- value: MKV
mimetype: video/matroska
replaces: ["mk3d", "mka", "mks"]
- value: MPEG
mimetype: video/mpeg
- value: MPEG-1
mimetype: video/mpeg
- value: MP3
mimetype: audio/mpeg
- value: MP4
mimetype: video/mp4
replaces: ["m4a", "m4p", "m4b", "m4r", "m4v"]
- value: MXD
- value: NetCDF
mimetype: application/x-netcdf
Expand Down

0 comments on commit 40dcf17

Please sign in to comment.