forked from openedx/frontend-component-footer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cherry pick custom footer link changes (#11)
* refactor: added configurable and consistant footer as per MITX specifications. * fix(packge.json): add MITX info * fix: updated packge name * fix: updated author name * refactor: added prepare script * fix: updated read me and removed prepare scrpt * fix: updated packages to resolve conflicts * fix: added caret ranges * fix: updated node version * docs: fix typos (#8) * refactor: update package-lock * fix: fix failing tests --------- Co-authored-by: Wassaf-Shahzad <[email protected]> Co-authored-by: Arslan Ashraf <[email protected]>
- Loading branch information
1 parent
fc3c958
commit 956590d
Showing
9 changed files
with
297 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,30 @@ Reporting Security Issues | |
|
||
Please do not report security issues in public. Please email [email protected]. | ||
|
||
*********** | ||
Local Development | ||
*********** | ||
|
||
For local development and testing follow these steps. (for convenience sake consider learning MFE as parent app) | ||
|
||
* Clone frontend-component-footer-mitol into frontend-app-learning directory. | ||
* CD into the frontend-component-footer-mitol and run the following commands:: | ||
npm i | ||
|
||
npm build | ||
* Verify a `dist/` directory has been created. | ||
* CD back into frontend-app-learning and create a module.config.js file | ||
* Place the following code in the module.config.js:: | ||
|
||
module.exports = { | ||
localModules: [ | ||
{ moduleName: '@edx/frontend-component-footer', dir: './frontend-component-footer-mitol' }, | ||
} | ||
|
||
* Restart frontend-app-learning and verify it is using the local version from @edx/frontend-component-footer | ||
* For css changes you might need to rebuild again. | ||
|
||
.. |Build Status| image:: https://api.travis-ci.com/edx/frontend-component-footer.svg?branch=master | ||
:target: https://travis-ci.com/edx/frontend-component-footer | ||
.. |Codecov| image:: https://img.shields.io/codecov/c/github/edx/frontend-component-footer | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,58 @@ | ||
$gray-footer: #fcfcfc !default; | ||
$link-blue: #006daa; | ||
|
||
.footer { | ||
background-color: $gray-footer; | ||
|
||
.copyright-col { | ||
display: flex; | ||
flex-direction: column; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
} | ||
} | ||
|
||
.footer-sub-nav { | ||
padding: 0; | ||
margin: 0 0 5px; | ||
list-style: none; | ||
font-size: 15px; | ||
line-height: 20px; | ||
|
||
@include media-breakpoint-down(md) { | ||
text-align: left; | ||
} | ||
|
||
@include media-breakpoint-up(md) { | ||
margin: 0; | ||
} | ||
|
||
li { | ||
display: inline-block; | ||
vertical-align: top; | ||
margin: 0; | ||
|
||
@include media-breakpoint-down(md) { | ||
display: block; | ||
margin: 0; | ||
padding: 0 0 7px; | ||
|
||
&::before { | ||
display: none; | ||
} | ||
} | ||
|
||
&::before { | ||
content: "-"; | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
color: $link-blue | ||
} | ||
|
||
&:first-child { | ||
&::before { | ||
display: none; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.