| 1 | package XTaTIK::Docs::Appendix::StaticFiles; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $VERSION = '0.004001'; # VERSION | |
| 7 | |||
| 8 | 1 | 1; | |
| 9 | __END__ | ||
| 10 | |||
| 11 | =encoding utf8 | ||
| 12 | |||
| 13 | =for stopwords overriden nav shoutout | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | XTaTIK::Docs::Appendix::StaticFiles - Map of XTaTIK static files you can override | ||
| 18 | |||
| 19 | =head1 PRECEDENCE | ||
| 20 | |||
| 21 | Static files can be found in XTaTIK core, your Company Silo, and your | ||
| 22 | Site Silo. If files of the same name exist, your Site Silo location | ||
| 23 | will take precedence over Company Silo, which in turn takes precedence | ||
| 24 | over files in XTaTIK core. | ||
| 25 | |||
| 26 | This, of course, does mean you can place a static file into your | ||
| 27 | Company Silo and it will be available to all of your Sites. | ||
| 28 | |||
| 29 | =head1 XTaTIK CORE FILES TO OVERRIDE | ||
| 30 | |||
| 31 | These static files you can override directly from either your | ||
| 32 | company or site silos. You'll likely won't ever need to touch the SASS | ||
| 33 | files, however. | ||
| 34 | |||
| 35 | public | ||
| 36 | ├── favicon.ico | ||
| 37 | ├── product-pics | ||
| 38 | │ └── nopic.png | ||
| 39 | ├── content-pics | ||
| 40 | │ ├── nav-logo.png # Does not exist by default!! | ||
| 41 | │ └── index-logo.png | ||
| 42 | └── sass | ||
| 43 | ├── bootstrap-extras.scss | ||
| 44 | ├── bs-callout.scss | ||
| 45 | ├── main.scss | ||
| 46 | └── reset.scss | ||
| 47 | |||
| 48 | =over 4 | ||
| 49 | |||
| 50 | =item * C<nopic.jpg>—the image file to display when product photo is not | ||
| 51 | available | ||
| 52 | |||
| 53 | =item * C<nav-logo.png>—the little logo to display in the nav on every | ||
| 54 | page. This file does not exist by default and if neither | ||
| 55 | Site nor Company silos have this file, market/company text will be | ||
| 56 | shown instead | ||
| 57 | |||
| 58 | =item * C<index-logo.png>—the large logo displayed on the home page | ||
| 59 | during shoutout animation | ||
| 60 | |||
| 61 | =item * I<sass files>—these files are used to provide XTaTIK | ||
| 62 | core styles. Generally, you'd use additional Company/Site SASS files | ||
| 63 | instead of overriding core files. B<Note:> this also means | ||
| 64 | the filenames mentioned above are I<reserved> and cannot be used | ||
| 65 | by Company/Site silos without the overriding effect. | ||
| 66 | |||
| 67 | =back | ||
| 68 | |||
| 69 | |||
| 70 | =head1 COMPANY SILO FILES | ||
| 71 | |||
| 72 | ├── JS | ||
| 73 | │ └── ** any file ** | ||
| 74 | └── sass | ||
| 75 | ├── bootstrap | ||
| 76 | │ └── company-variables.scss | ||
| 77 | └── user | ||
| 78 | └── ** any file ** | ||
| 79 | |||
| 80 | You can place any JavaScript file into C<JS> directory | ||
| 81 | and any SASS file into C<sass/user> directory in your Company Silo. | ||
| 82 | They sill by C<sort>ed and loaded in that order. | ||
| 83 | |||
| 84 | =over 4 | ||
| 85 | |||
| 86 | =item * C<company-variables.scss>—you can use this file to override | ||
| 87 | Bootstrap's and | ||
| 88 | L<XTaTIK's SASS variables|XTaTIK::Docs::Appendix::SASSVariables>. | ||
| 89 | Be sure to append C<!default> to your variables here, so you | ||
| 90 | could override them per-site from Site Silos. | ||
| 91 | |||
| 92 | =back | ||
| 93 | |||
| 94 | |||
| 95 | =head1 SITE SILO FILES | ||
| 96 | |||
| 97 | ├── JS | ||
| 98 | │ └── ** any file ** | ||
| 99 | └── sass | ||
| 100 | ├── bootstrap | ||
| 101 | │ └── site-variables.scss | ||
| 102 | └── user | ||
| 103 | └── ** any file ** | ||
| 104 | |||
| 105 | Same as with Company Silo files, you can place | ||
| 106 | any JavaScript file into C<JS> directory | ||
| 107 | and any SASS file into C<sass/user> directory in your Company Silo. | ||
| 108 | They sill by C<sort>ed and loaded in that order. | ||
| 109 | |||
| 110 | =over 4 | ||
| 111 | |||
| 112 | =item * C<site-variables.scss>—you can use this file to override | ||
| 113 | Bootstrap's and | ||
| 114 | L<XTaTIK's SASS variables|XTaTIK::Docs::Appendix::SASSVariables>. | ||
| 115 | Any Company Silo SASS variables marked with C<!default> flag can | ||
| 116 | also be overriden from here | ||
| 117 | |||
| 118 | =back | ||
| 119 | |||
| 120 | |||
| 121 | =cut | ||
| 122 | |||