Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
Added JS overrides file
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyonnetti committed Jan 11, 2022
1 parent 1cbb642 commit 48322df
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.DS_Store
/css/sevenalter-overrides.css
/js/sevenalter-overrides.js
2 changes: 1 addition & 1 deletion css/example.sevenalter-overrides.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Duplicate this file and rename it override-styles.css
* Duplicate this file and rename it sevenalter-overrides.css
*
* This file can be used to override admin theme styles for all unique cases.
* It can remain empty until needed. ⚠️ Failing to create this file will cause a console error.
Expand Down
7 changes: 7 additions & 0 deletions js/example.sevenalter-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Duplicate this file and rename it sevenalter-overrides.js
*
* This file can be used to override admin theme styles for all unique cases.
* It can remain empty until needed. ⚠️ Failing to create this file will cause a console error.
*
*/
6 changes: 2 additions & 4 deletions sevenalter.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ base theme: seven
version: '0.2.5'

libraries:
- sevenalter/global
# libraries-extend:
# shortcut/drupal.shortcut:
# - sevenalter/drupal.shortcut
- sevenalter/sevenalter-styles
- sevenalter/sevenalter-scripts

regions:
header: 'Header'
Expand Down
9 changes: 6 additions & 3 deletions sevenalter.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
global:
sevenalter-styles:
version: VERSION
css:
base:
css/styles.css: {}
css/sevenalter-overrides.css: {}
# js:
# js/scripts.js: {}

sevenalter-scripts:
version: VERSION
js:
js/sevenalter-overrides.js: {}

0 comments on commit 48322df

Please sign in to comment.