├── .eslintrc ├── .github ├── CONTRIBUTING.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── lint-css.yml │ ├── lint-js.yml │ └── lint-php.yml ├── .gitignore ├── .stylelintrc.json ├── 404.php ├── LICENSE ├── README.md ├── archive.php ├── comments.php ├── composer.json ├── footer.php ├── functions.php ├── header.php ├── inc ├── custom-header.php ├── customizer.php ├── jetpack.php ├── template-functions.php ├── template-tags.php ├── woocommerce.php └── wpcom.php ├── index.php ├── js ├── customizer.js └── navigation.js ├── languages ├── _s.pot └── readme.txt ├── package.json ├── page.php ├── phpcs.xml.dist ├── readme.txt ├── sass ├── abstracts │ ├── _abstracts.scss │ ├── mixins │ │ └── _mixins.scss │ └── variables │ │ ├── _colors.scss │ │ ├── _columns.scss │ │ ├── _structure.scss │ │ └── _typography.scss ├── base │ ├── _base.scss │ ├── elements │ │ ├── _body.scss │ │ ├── _buttons.scss │ │ ├── _fields.scss │ │ ├── _hr.scss │ │ ├── _links.scss │ │ ├── _lists.scss │ │ ├── _media.scss │ │ └── _tables.scss │ └── typography │ │ ├── _copy.scss │ │ ├── _headings.scss │ │ └── _typography.scss ├── components │ ├── _components.scss │ ├── comments │ │ └── _comments.scss │ ├── content │ │ └── _posts-and-pages.scss │ ├── media │ │ ├── _captions.scss │ │ ├── _galleries.scss │ │ └── _media.scss │ ├── navigation │ │ └── _navigation.scss │ └── widgets │ │ └── _widgets.scss ├── generic │ ├── _box-sizing.scss │ └── _normalize.scss ├── layouts │ ├── _content-sidebar.scss │ ├── _no-sidebar.scss │ └── _sidebar-content.scss ├── plugins │ ├── jetpack │ │ └── _infinite-scroll.scss │ └── woocommerce │ │ ├── _checkout.scss │ │ ├── _components.scss │ │ ├── _products.scss │ │ ├── _single-product.scss │ │ ├── _tables.scss │ │ └── _widgets.scss ├── style.scss ├── utilities │ ├── _accessibility.scss │ └── _alignments.scss └── woocommerce.scss ├── screenshot.png ├── search.php ├── sidebar.php ├── single.php ├── style-rtl.css ├── style.css ├── template-parts ├── content-none.php ├── content-page.php ├── content-search.php └── content.php └── woocommerce.css /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "plugin:@wordpress/eslint-plugin/esnext" 4 | ], 5 | "env": { 6 | "browser": true 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Thanks for contributing to `_s` (Underscores) — you rock! 2 | 3 | ## Maintainers 4 | 5 | `_s` is maintained by the [Automattic Theme Team](https://themeshaper.com/about/). 6 | 7 | ## Reporting issues 8 | 9 | Before submitting your issue, make sure it has not been discussed earlier. You can search for existing tickets [here](https://github.com/Automattic/_s/search). 10 | 11 | Here are some tips to consider and to help you write a great report: 12 | 13 | * `_s` supports Microsoft Internet Explorer 11 and Edge, as well as the latest two versions of all other major browsers. 14 | * `_s` is backwards compatible with the two versions prior to the current stable version of WordPress. 15 | * `_s` uses HTML5 markup. 16 | * We decided not to include translations [[#50](https://github.com/Automattic/_s/pull/50)] beyond the existing `_s.pot` file, a RTL stylesheet [[#263](https://github.com/Automattic/_s/pull/263)], or editor styles [[#225](https://github.com/Automattic/_s/pull/225)], as they are likely to change during development of an `_s` based theme. 17 | 18 | ## Sending a Pull Request 19 | 20 | Found a bug you can fix? Fantastic! Patches are always welcome. Here's a few tips for crafting a great pull request: 21 | 22 | * Include the purpose of your PR. Be explicit about the issue your PR solves. 23 | * Reference any existing issues that relate to your PR. This allows everyone to easily see all related discussions. 24 | * `_s` complies with the [WordPress Coding Standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/) and any PR should comply as well. 25 | 26 | ### Before submitting a pull request, please make sure the following is done: 27 | 28 | 1. Fork the repo and create your branch from master. 29 | 2. Run `npm install` and `composer install`. 30 | 3. When submitting a change that affects SCSS sources, please make sure there is no linting errors using `npm run lint:scss`, then generate the css files using `npm run compile:css` and `npm run compile:rtl`. 31 | 4. When submitting a change that affects PHP files, please make sure there is no syntax or linting errors by running `composer lint:php` then `composer lint:wpcs`. 32 | 5. When submitting a change that affects JS files, please make sure there is no linting errors by running `npm run lint:js`. 33 | 6. When submitting a change that affects text strings, make sure to regenerate the POT file by running `composer make-pot`. 34 | 35 | By contributing code to `_s`, you grant its use under the [GNU General Public License v2 (or later)](LICENSE). 36 | 37 | ## Underscores.me 38 | 39 | If your issue is specific to the [Underscores.me](https://underscores.me) website, the [Underscores.me GitHub repo](https://github.com/Automattic/underscores.me) is the right place for you. 40 | 41 | The preferred method of generating a new theme based on `_s` is the [Underscores.me](https://underscores.me) website. If you have an alternative method, such as a shell script, write a blog post about it or host it in a separate repo -- and make sure to mention [@underscoresme](https://twitter.com/underscoresme) in your tweets! 42 | 43 | Want to have your avatar listed as one of the `_s` contributors [here](https://underscores.me/#contribute)? Just make sure you have an email address added to both GitHub and your local Git installation. -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### Changes proposed in this Pull Request: 4 | 5 | 6 | #### Related issue(s): -------------------------------------------------------------------------------- /.github/workflows/lint-css.yml: -------------------------------------------------------------------------------- 1 | name: CSS Code Linting 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - master 7 | push: 8 | branches: 9 | - master 10 | 11 | jobs: 12 | lint-css: 13 | name: Lint CSS 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout the git repository 17 | uses: actions/checkout@v2 18 | - name: Setup Node.js 19 | uses: actions/setup-node@v1 20 | - name: npm install 21 | run: npm install 22 | - name: Lint CSS 23 | run: npm run lint:scss 24 | -------------------------------------------------------------------------------- /.github/workflows/lint-js.yml: -------------------------------------------------------------------------------- 1 | name: JS Code Linting 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - master 7 | push: 8 | branches: 9 | - master 10 | 11 | jobs: 12 | lint-js: 13 | name: Lint JS 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout the git repository 17 | uses: actions/checkout@v2 18 | - name: Setup Node.js 19 | uses: actions/setup-node@v1 20 | - name: npm install 21 | run: npm install 22 | - name: Lint JS 23 | run: npm run lint:js -------------------------------------------------------------------------------- /.github/workflows/lint-php.yml: -------------------------------------------------------------------------------- 1 | name: PHP Code Linting 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - master 7 | push: 8 | branches: 9 | - master 10 | 11 | jobs: 12 | lint-php: 13 | name: Parallel lint 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - name: Checkout the git repository 18 | uses: actions/checkout@v2 19 | - name: PHP setup 20 | uses: shivammathur/setup-php@v2 21 | with: 22 | php-version: 7.4 23 | - name: Install composer packages 24 | run: composer install --no-progress 25 | - name: Check for PHP errors 26 | run: composer lint:php 27 | 28 | phpcs_check: 29 | name: PHPCS check 30 | runs-on: ubuntu-latest 31 | 32 | steps: 33 | - name: Checkout the git repository 34 | uses: actions/checkout@v2 35 | - name: PHP setup 36 | uses: shivammathur/setup-php@v2 37 | with: 38 | php-version: 7.4 39 | - name: Install composer packages 40 | run: composer install --no-progress 41 | - name: Check coding standards using PHPCS 42 | run: composer lint:wpcs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /vendor 3 | package-lock.json 4 | composer.lock 5 | style.css.map 6 | .DS_Store -------------------------------------------------------------------------------- /.stylelintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "@wordpress/stylelint-config/scss" 4 | ], 5 | "ignoreFiles": [ 6 | "sass/_normalize.scss" 7 | ], 8 | "rules": { 9 | "font-family-no-missing-generic-family-keyword": null, 10 | "no-descending-specificity": null, 11 | "block-no-empty": null, 12 | "no-duplicate-selectors": null, 13 | "font-family-no-duplicate-names": null, 14 | "selector-class-pattern": null 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 |
16 | 19 | 20 |
21 |

22 | 23 | 28 | 29 |
30 |

31 |
    32 | 'count', 36 | 'order' => 'DESC', 37 | 'show_count' => 1, 38 | 'title_li' => '', 39 | 'number' => 10, 40 | ) 41 | ); 42 | ?> 43 |
44 |
45 | 46 | ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', '_s' ), convert_smilies( ':)' ) ) . '

'; 49 | the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$_s_archive_content" ); 50 | 51 | the_widget( 'WP_Widget_Tag_Cloud' ); 52 | ?> 53 | 54 |
55 |
56 | 57 |
58 | 59 | 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/Automattic/_s.svg?branch=master)](https://travis-ci.org/Automattic/_s) 2 | 3 | _s 4 | === 5 | 6 | Hi. I'm a starter theme called `_s`, or `underscores`, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for. 7 | 8 | My ultra-minimal CSS might make me look like theme tartare but that means less stuff to get in your way when you're designing your awesome theme. Here are some of the other more interesting things you'll find here: 9 | 10 | * A modern workflow with a pre-made command-line interface to turn your project into a more pleasant experience. 11 | * A just right amount of lean, well-commented, modern, HTML5 templates. 12 | * A custom header implementation in `inc/custom-header.php`. Just add the code snippet found in the comments of `inc/custom-header.php` to your `header.php` template. 13 | * Custom template tags in `inc/template-tags.php` that keep your templates clean and neat and prevent code duplication. 14 | * Some small tweaks in `inc/template-functions.php` that can improve your theming experience. 15 | * A script at `js/navigation.js` that makes your menu a toggled dropdown on small screens (like your phone), ready for CSS artistry. It's enqueued in `functions.php`. 16 | * 2 sample layouts in `sass/layouts/` made using CSS Grid for a sidebar on either side of your content. Just uncomment the layout of your choice in `sass/style.scss`. 17 | Note: `.no-sidebar` styles are automatically loaded. 18 | * Smartly organized starter CSS in `style.css` that will help you to quickly get your design off the ground. 19 | * Full support for `WooCommerce plugin` integration with hooks in `inc/woocommerce.php`, styling override woocommerce.css with product gallery features (zoom, swipe, lightbox) enabled. 20 | * Licensed under GPLv2 or later. :) Use it to make something cool. 21 | 22 | Installation 23 | --------------- 24 | 25 | ### Requirements 26 | 27 | `_s` requires the following dependencies: 28 | 29 | - [Node.js](https://nodejs.org/) 30 | - [Composer](https://getcomposer.org/) 31 | 32 | ### Quick Start 33 | 34 | Clone or download this repository, change its name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a six-step find and replace on the name in all the templates. 35 | 36 | 1. Search for `'_s'` (inside single quotations) to capture the text domain and replace with: `'megatherium-is-awesome'`. 37 | 2. Search for `_s_` to capture all the functions names and replace with: `megatherium_is_awesome_`. 38 | 3. Search for `Text Domain: _s` in `style.css` and replace with: `Text Domain: megatherium-is-awesome`. 39 | 4. Search for  _s (with a space before it) to capture DocBlocks and replace with:  Megatherium_is_Awesome. 40 | 5. Search for `_s-` to capture prefixed handles and replace with: `megatherium-is-awesome-`. 41 | 6. Search for `_S_` (in uppercase) to capture constants and replace with: `MEGATHERIUM_IS_AWESOME_`. 42 | 43 | Then, update the stylesheet header in `style.css`, the links in `footer.php` with your own information and rename `_s.pot` from `languages` folder to use the theme's slug. Next, update or delete this readme. 44 | 45 | ### Setup 46 | 47 | To start using all the tools that come with `_s` you need to install the necessary Node.js and Composer dependencies : 48 | 49 | ```sh 50 | $ composer install 51 | $ npm install 52 | ``` 53 | 54 | ### Available CLI commands 55 | 56 | `_s` comes packed with CLI commands tailored for WordPress theme development : 57 | 58 | - `composer lint:wpcs` : checks all PHP files against [PHP Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/). 59 | - `composer lint:php` : checks all PHP files for syntax errors. 60 | - `composer make-pot` : generates a .pot file in the `languages/` directory. 61 | - `npm run compile:css` : compiles SASS files to css. 62 | - `npm run compile:rtl` : generates an RTL stylesheet. 63 | - `npm run watch` : watches all SASS files and recompiles them to css when they change. 64 | - `npm run lint:scss` : checks all SASS files against [CSS Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/). 65 | - `npm run lint:js` : checks all JavaScript files against [JavaScript Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/javascript/). 66 | - `npm run bundle` : generates a .zip archive for distribution, excluding development and system files. 67 | 68 | Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress theme. :) 69 | 70 | Good luck! 71 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | 16 | 17 | 23 | 24 | 46 | 47 |
48 | 49 | 22 | 23 |
24 | 25 | 29 |

30 | ' . wp_kses_post( get_the_title() ) . '' 37 | ); 38 | } else { 39 | printf( 40 | /* translators: 1: comment count number, 2: title. */ 41 | esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $_s_comment_count, 'comments title', '_s' ) ), 42 | number_format_i18n( $_s_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 43 | '' . wp_kses_post( get_the_title() ) . '' 44 | ); 45 | } 46 | ?> 47 |

48 | 49 | 50 | 51 |
    52 | 'ol', 56 | 'short_ping' => true, 57 | ) 58 | ); 59 | ?> 60 |
61 | 62 | 68 |

69 | 76 | 77 |
78 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "automattic/underscores", 3 | "type": "wordpress-theme", 4 | "description": "Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.", 5 | "keywords": [ 6 | "WordPress", 7 | "Themes" 8 | ], 9 | "homepage": "https://github.com/Automattic/_s", 10 | "license": "GPL-2.0-or-later", 11 | "authors": [ 12 | { 13 | "name": "Contributors", 14 | "homepage": "https://github.com/Automattic/_s/graphs/contributors" 15 | } 16 | ], 17 | "require": { 18 | "php": ">=5.6" 19 | }, 20 | "require-dev": { 21 | "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", 22 | "wptrt/wpthemereview": "^0.2.1", 23 | "php-parallel-lint/php-parallel-lint": "^1.2.0", 24 | "wp-cli/i18n-command": "^2.2.5" 25 | }, 26 | "scripts": { 27 | "lint:wpcs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs", 28 | "lint:php": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor .", 29 | "make-pot": "wp i18n make-pot . languages/_s.pot" 30 | }, 31 | "support": { 32 | "issues": "https://github.com/Automattic/_s/issues", 33 | "source": "https://github.com/Automattic/_s" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | tag in the document head, and expect WordPress to 38 | * provide it for us. 39 | */ 40 | add_theme_support( 'title-tag' ); 41 | 42 | /* 43 | * Enable support for Post Thumbnails on posts and pages. 44 | * 45 | * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ 46 | */ 47 | add_theme_support( 'post-thumbnails' ); 48 | 49 | // This theme uses wp_nav_menu() in one location. 50 | register_nav_menus( 51 | array( 52 | 'menu-1' => esc_html__( 'Primary', '_s' ), 53 | ) 54 | ); 55 | 56 | /* 57 | * Switch default core markup for search form, comment form, and comments 58 | * to output valid HTML5. 59 | */ 60 | add_theme_support( 61 | 'html5', 62 | array( 63 | 'search-form', 64 | 'comment-form', 65 | 'comment-list', 66 | 'gallery', 67 | 'caption', 68 | 'style', 69 | 'script', 70 | ) 71 | ); 72 | 73 | // Set up the WordPress core custom background feature. 74 | add_theme_support( 75 | 'custom-background', 76 | apply_filters( 77 | '_s_custom_background_args', 78 | array( 79 | 'default-color' => 'ffffff', 80 | 'default-image' => '', 81 | ) 82 | ) 83 | ); 84 | 85 | // Add theme support for selective refresh for widgets. 86 | add_theme_support( 'customize-selective-refresh-widgets' ); 87 | 88 | /** 89 | * Add support for core custom logo. 90 | * 91 | * @link https://codex.wordpress.org/Theme_Logo 92 | */ 93 | add_theme_support( 94 | 'custom-logo', 95 | array( 96 | 'height' => 250, 97 | 'width' => 250, 98 | 'flex-width' => true, 99 | 'flex-height' => true, 100 | ) 101 | ); 102 | } 103 | add_action( 'after_setup_theme', '_s_setup' ); 104 | 105 | /** 106 | * Set the content width in pixels, based on the theme's design and stylesheet. 107 | * 108 | * Priority 0 to make it available to lower priority callbacks. 109 | * 110 | * @global int $content_width 111 | */ 112 | function _s_content_width() { 113 | $GLOBALS['content_width'] = apply_filters( '_s_content_width', 640 ); 114 | } 115 | add_action( 'after_setup_theme', '_s_content_width', 0 ); 116 | 117 | /** 118 | * Register widget area. 119 | * 120 | * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar 121 | */ 122 | function _s_widgets_init() { 123 | register_sidebar( 124 | array( 125 | 'name' => esc_html__( 'Sidebar', '_s' ), 126 | 'id' => 'sidebar-1', 127 | 'description' => esc_html__( 'Add widgets here.', '_s' ), 128 | 'before_widget' => '
', 129 | 'after_widget' => '
', 130 | 'before_title' => '

', 131 | 'after_title' => '

', 132 | ) 133 | ); 134 | } 135 | add_action( 'widgets_init', '_s_widgets_init' ); 136 | 137 | /** 138 | * Enqueue scripts and styles. 139 | */ 140 | function _s_scripts() { 141 | wp_enqueue_style( '_s-style', get_stylesheet_uri(), array(), _S_VERSION ); 142 | wp_style_add_data( '_s-style', 'rtl', 'replace' ); 143 | 144 | wp_enqueue_script( '_s-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true ); 145 | 146 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 147 | wp_enqueue_script( 'comment-reply' ); 148 | } 149 | } 150 | add_action( 'wp_enqueue_scripts', '_s_scripts' ); 151 | 152 | /** 153 | * Implement the Custom Header feature. 154 | */ 155 | require get_template_directory() . '/inc/custom-header.php'; 156 | 157 | /** 158 | * Custom template tags for this theme. 159 | */ 160 | require get_template_directory() . '/inc/template-tags.php'; 161 | 162 | /** 163 | * Functions which enhance the theme by hooking into WordPress. 164 | */ 165 | require get_template_directory() . '/inc/template-functions.php'; 166 | 167 | /** 168 | * Customizer additions. 169 | */ 170 | require get_template_directory() . '/inc/customizer.php'; 171 | 172 | /** 173 | * Load Jetpack compatibility file. 174 | */ 175 | if ( defined( 'JETPACK__VERSION' ) ) { 176 | require get_template_directory() . '/inc/jetpack.php'; 177 | } 178 | 179 | /** 180 | * Load WooCommerce compatibility file. 181 | */ 182 | if ( class_exists( 'WooCommerce' ) ) { 183 | require get_template_directory() . '/inc/woocommerce.php'; 184 | } 185 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | section and everything up until
6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package _s 10 | */ 11 | 12 | ?> 13 | 14 | > 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | > 24 | 25 |
26 | 27 | 28 | 60 | -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | 8 | * 9 | * @link https://developer.wordpress.org/themes/functionality/custom-headers/ 10 | * 11 | * @package _s 12 | */ 13 | 14 | /** 15 | * Set up the WordPress core custom header feature. 16 | * 17 | * @uses _s_header_style() 18 | */ 19 | function _s_custom_header_setup() { 20 | add_theme_support( 21 | 'custom-header', 22 | apply_filters( 23 | '_s_custom_header_args', 24 | array( 25 | 'default-image' => '', 26 | 'default-text-color' => '000000', 27 | 'width' => 1000, 28 | 'height' => 250, 29 | 'flex-height' => true, 30 | 'wp-head-callback' => '_s_header_style', 31 | ) 32 | ) 33 | ); 34 | } 35 | add_action( 'after_setup_theme', '_s_custom_header_setup' ); 36 | 37 | if ( ! function_exists( '_s_header_style' ) ) : 38 | /** 39 | * Styles the header image and text displayed on the blog. 40 | * 41 | * @see _s_custom_header_setup(). 42 | */ 43 | function _s_header_style() { 44 | $header_text_color = get_header_textcolor(); 45 | 46 | /* 47 | * If no custom options for text are set, let's bail. 48 | * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). 49 | */ 50 | if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { 51 | return; 52 | } 53 | 54 | // If we get this far, we have custom styles. Let's do this. 55 | ?> 56 | 76 | get_setting( 'blogname' )->transport = 'postMessage'; 15 | $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 16 | $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 17 | 18 | if ( isset( $wp_customize->selective_refresh ) ) { 19 | $wp_customize->selective_refresh->add_partial( 20 | 'blogname', 21 | array( 22 | 'selector' => '.site-title a', 23 | 'render_callback' => '_s_customize_partial_blogname', 24 | ) 25 | ); 26 | $wp_customize->selective_refresh->add_partial( 27 | 'blogdescription', 28 | array( 29 | 'selector' => '.site-description', 30 | 'render_callback' => '_s_customize_partial_blogdescription', 31 | ) 32 | ); 33 | } 34 | } 35 | add_action( 'customize_register', '_s_customize_register' ); 36 | 37 | /** 38 | * Render the site title for the selective refresh partial. 39 | * 40 | * @return void 41 | */ 42 | function _s_customize_partial_blogname() { 43 | bloginfo( 'name' ); 44 | } 45 | 46 | /** 47 | * Render the site tagline for the selective refresh partial. 48 | * 49 | * @return void 50 | */ 51 | function _s_customize_partial_blogdescription() { 52 | bloginfo( 'description' ); 53 | } 54 | 55 | /** 56 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 57 | */ 58 | function _s_customize_preview_js() { 59 | wp_enqueue_script( '_s-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true ); 60 | } 61 | add_action( 'customize_preview_init', '_s_customize_preview_js' ); 62 | -------------------------------------------------------------------------------- /inc/jetpack.php: -------------------------------------------------------------------------------- 1 | 'main', 23 | 'render' => '_s_infinite_scroll_render', 24 | 'footer' => 'page', 25 | ) 26 | ); 27 | 28 | // Add theme support for Responsive Videos. 29 | add_theme_support( 'jetpack-responsive-videos' ); 30 | 31 | // Add theme support for Content Options. 32 | add_theme_support( 33 | 'jetpack-content-options', 34 | array( 35 | 'post-details' => array( 36 | 'stylesheet' => '_s-style', 37 | 'date' => '.posted-on', 38 | 'categories' => '.cat-links', 39 | 'tags' => '.tags-links', 40 | 'author' => '.byline', 41 | 'comment' => '.comments-link', 42 | ), 43 | 'featured-images' => array( 44 | 'archive' => true, 45 | 'post' => true, 46 | 'page' => true, 47 | ), 48 | ) 49 | ); 50 | } 51 | add_action( 'after_setup_theme', '_s_jetpack_setup' ); 52 | 53 | if ( ! function_exists( '_s_infinite_scroll_render' ) ) : 54 | /** 55 | * Custom render function for Infinite Scroll. 56 | */ 57 | function _s_infinite_scroll_render() { 58 | while ( have_posts() ) { 59 | the_post(); 60 | if ( is_search() ) : 61 | get_template_part( 'template-parts/content', 'search' ); 62 | else : 63 | get_template_part( 'template-parts/content', get_post_type() ); 64 | endif; 65 | } 66 | } 67 | endif; 68 | -------------------------------------------------------------------------------- /inc/template-functions.php: -------------------------------------------------------------------------------- 1 | ', esc_url( get_bloginfo( 'pingback_url' ) ) ); 35 | } 36 | } 37 | add_action( 'wp_head', '_s_pingback_header' ); 38 | -------------------------------------------------------------------------------- /inc/template-tags.php: -------------------------------------------------------------------------------- 1 | %2$s'; 16 | if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { 17 | $time_string = ''; 18 | } 19 | 20 | $time_string = sprintf( 21 | $time_string, 22 | esc_attr( get_the_date( DATE_W3C ) ), 23 | esc_html( get_the_date() ), 24 | esc_attr( get_the_modified_date( DATE_W3C ) ), 25 | esc_html( get_the_modified_date() ) 26 | ); 27 | 28 | $posted_on = sprintf( 29 | /* translators: %s: post date. */ 30 | esc_html_x( 'Posted on %s', 'post date', '_s' ), 31 | '' . $time_string . '' 32 | ); 33 | 34 | echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 35 | 36 | } 37 | endif; 38 | 39 | if ( ! function_exists( '_s_posted_by' ) ) : 40 | /** 41 | * Prints HTML with meta information for the current author. 42 | */ 43 | function _s_posted_by() { 44 | $byline = sprintf( 45 | /* translators: %s: post author. */ 46 | esc_html_x( 'by %s', 'post author', '_s' ), 47 | '' . esc_html( get_the_author() ) . '' 48 | ); 49 | 50 | echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 51 | 52 | } 53 | endif; 54 | 55 | if ( ! function_exists( '_s_entry_footer' ) ) : 56 | /** 57 | * Prints HTML with meta information for the categories, tags and comments. 58 | */ 59 | function _s_entry_footer() { 60 | // Hide category and tag text for pages. 61 | if ( 'post' === get_post_type() ) { 62 | /* translators: used between list items, there is a space after the comma */ 63 | $categories_list = get_the_category_list( esc_html__( ', ', '_s' ) ); 64 | if ( $categories_list ) { 65 | /* translators: 1: list of categories. */ 66 | printf( '' . esc_html__( 'Posted in %1$s', '_s' ) . '', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 67 | } 68 | 69 | /* translators: used between list items, there is a space after the comma */ 70 | $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', '_s' ) ); 71 | if ( $tags_list ) { 72 | /* translators: 1: list of tags. */ 73 | printf( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 74 | } 75 | } 76 | 77 | if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 78 | echo ''; 79 | comments_popup_link( 80 | sprintf( 81 | wp_kses( 82 | /* translators: %s: post title */ 83 | __( 'Leave a Comment on %s', '_s' ), 84 | array( 85 | 'span' => array( 86 | 'class' => array(), 87 | ), 88 | ) 89 | ), 90 | wp_kses_post( get_the_title() ) 91 | ) 92 | ); 93 | echo ''; 94 | } 95 | 96 | edit_post_link( 97 | sprintf( 98 | wp_kses( 99 | /* translators: %s: Name of current post. Only visible to screen readers */ 100 | __( 'Edit %s', '_s' ), 101 | array( 102 | 'span' => array( 103 | 'class' => array(), 104 | ), 105 | ) 106 | ), 107 | wp_kses_post( get_the_title() ) 108 | ), 109 | '', 110 | '' 111 | ); 112 | } 113 | endif; 114 | 115 | if ( ! function_exists( '_s_post_thumbnail' ) ) : 116 | /** 117 | * Displays an optional post thumbnail. 118 | * 119 | * Wraps the post thumbnail in an anchor element on index views, or a div 120 | * element when on single views. 121 | */ 122 | function _s_post_thumbnail() { 123 | if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { 124 | return; 125 | } 126 | 127 | if ( is_singular() ) : 128 | ?> 129 | 130 |
131 | 132 |
133 | 134 | 135 | 136 | 150 | 151 | 150, 24 | 'single_image_width' => 300, 25 | 'product_grid' => array( 26 | 'default_rows' => 3, 27 | 'min_rows' => 1, 28 | 'default_columns' => 4, 29 | 'min_columns' => 1, 30 | 'max_columns' => 6, 31 | ), 32 | ) 33 | ); 34 | add_theme_support( 'wc-product-gallery-zoom' ); 35 | add_theme_support( 'wc-product-gallery-lightbox' ); 36 | add_theme_support( 'wc-product-gallery-slider' ); 37 | } 38 | add_action( 'after_setup_theme', '_s_woocommerce_setup' ); 39 | 40 | /** 41 | * WooCommerce specific scripts & stylesheets. 42 | * 43 | * @return void 44 | */ 45 | function _s_woocommerce_scripts() { 46 | wp_enqueue_style( '_s-woocommerce-style', get_template_directory_uri() . '/woocommerce.css', array(), _S_VERSION ); 47 | 48 | $font_path = WC()->plugin_url() . '/assets/fonts/'; 49 | $inline_font = '@font-face { 50 | font-family: "star"; 51 | src: url("' . $font_path . 'star.eot"); 52 | src: url("' . $font_path . 'star.eot?#iefix") format("embedded-opentype"), 53 | url("' . $font_path . 'star.woff") format("woff"), 54 | url("' . $font_path . 'star.ttf") format("truetype"), 55 | url("' . $font_path . 'star.svg#star") format("svg"); 56 | font-weight: normal; 57 | font-style: normal; 58 | }'; 59 | 60 | wp_add_inline_style( '_s-woocommerce-style', $inline_font ); 61 | } 62 | add_action( 'wp_enqueue_scripts', '_s_woocommerce_scripts' ); 63 | 64 | /** 65 | * Disable the default WooCommerce stylesheet. 66 | * 67 | * Removing the default WooCommerce stylesheet and enqueing your own will 68 | * protect you during WooCommerce core updates. 69 | * 70 | * @link https://docs.woocommerce.com/document/disable-the-default-stylesheet/ 71 | */ 72 | add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); 73 | 74 | /** 75 | * Add 'woocommerce-active' class to the body tag. 76 | * 77 | * @param array $classes CSS classes applied to the body tag. 78 | * @return array $classes modified to include 'woocommerce-active' class. 79 | */ 80 | function _s_woocommerce_active_body_class( $classes ) { 81 | $classes[] = 'woocommerce-active'; 82 | 83 | return $classes; 84 | } 85 | add_filter( 'body_class', '_s_woocommerce_active_body_class' ); 86 | 87 | /** 88 | * Related Products Args. 89 | * 90 | * @param array $args related products args. 91 | * @return array $args related products args. 92 | */ 93 | function _s_woocommerce_related_products_args( $args ) { 94 | $defaults = array( 95 | 'posts_per_page' => 3, 96 | 'columns' => 3, 97 | ); 98 | 99 | $args = wp_parse_args( $defaults, $args ); 100 | 101 | return $args; 102 | } 103 | add_filter( 'woocommerce_output_related_products_args', '_s_woocommerce_related_products_args' ); 104 | 105 | /** 106 | * Remove default WooCommerce wrapper. 107 | */ 108 | remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); 109 | remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); 110 | 111 | if ( ! function_exists( '_s_woocommerce_wrapper_before' ) ) { 112 | /** 113 | * Before Content. 114 | * 115 | * Wraps all WooCommerce content in wrappers which match the theme markup. 116 | * 117 | * @return void 118 | */ 119 | function _s_woocommerce_wrapper_before() { 120 | ?> 121 |
122 | 137 |
138 | 153 | */ 154 | 155 | if ( ! function_exists( '_s_woocommerce_cart_link_fragment' ) ) { 156 | /** 157 | * Cart Fragments. 158 | * 159 | * Ensure cart contents update when products are added to the cart via AJAX. 160 | * 161 | * @param array $fragments Fragments to refresh via AJAX. 162 | * @return array Fragments to refresh via AJAX. 163 | */ 164 | function _s_woocommerce_cart_link_fragment( $fragments ) { 165 | ob_start(); 166 | _s_woocommerce_cart_link(); 167 | $fragments['a.cart-contents'] = ob_get_clean(); 168 | 169 | return $fragments; 170 | } 171 | } 172 | add_filter( 'woocommerce_add_to_cart_fragments', '_s_woocommerce_cart_link_fragment' ); 173 | 174 | if ( ! function_exists( '_s_woocommerce_cart_link' ) ) { 175 | /** 176 | * Cart Link. 177 | * 178 | * Displayed a link to the cart including the number of items present and the cart total. 179 | * 180 | * @return void 181 | */ 182 | function _s_woocommerce_cart_link() { 183 | ?> 184 | 185 | cart->get_cart_contents_count(), '_s' ), 189 | WC()->cart->get_cart_contents_count() 190 | ); 191 | ?> 192 | cart->get_cart_subtotal() ); ?> 193 | 194 | 211 | 225 | '', 24 | 'border' => '', 25 | 'text' => '', 26 | 'link' => '', 27 | 'url' => '', 28 | ); 29 | } 30 | } 31 | add_action( 'after_setup_theme', '_s_wpcom_setup' ); 32 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 17 | 18 |
19 | 20 | 25 |
26 |

27 |
28 | 52 | 53 |
54 | 55 | a, .page_item_has_children > a' ); 60 | 61 | // Toggle focus each time a menu link is focused or blurred. 62 | for ( const link of links ) { 63 | link.addEventListener( 'focus', toggleFocus, true ); 64 | link.addEventListener( 'blur', toggleFocus, true ); 65 | } 66 | 67 | // Toggle focus each time a menu link with children receive a touch event. 68 | for ( const link of linksWithChildren ) { 69 | link.addEventListener( 'touchstart', toggleFocus, false ); 70 | } 71 | 72 | /** 73 | * Sets or removes .focus class on an element. 74 | */ 75 | function toggleFocus() { 76 | if ( event.type === 'focus' || event.type === 'blur' ) { 77 | let self = this; 78 | // Move up through the ancestors of the current link until we hit .nav-menu. 79 | while ( ! self.classList.contains( 'nav-menu' ) ) { 80 | // On li elements toggle the class .focus. 81 | if ( 'li' === self.tagName.toLowerCase() ) { 82 | self.classList.toggle( 'focus' ); 83 | } 84 | self = self.parentNode; 85 | } 86 | } 87 | 88 | if ( event.type === 'touchstart' ) { 89 | const menuItem = this.parentNode; 90 | event.preventDefault(); 91 | for ( const link of menuItem.parentNode.children ) { 92 | if ( menuItem !== link ) { 93 | link.classList.remove( 'focus' ); 94 | } 95 | } 96 | menuItem.classList.toggle( 'focus' ); 97 | } 98 | } 99 | }() ); 100 | -------------------------------------------------------------------------------- /languages/_s.pot: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020 Automattic 2 | # This file is distributed under the GNU General Public License v2 or later. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: _s 1.0.0\n" 6 | "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/_s\n" 7 | "Last-Translator: FULL NAME \n" 8 | "Language-Team: LANGUAGE \n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "POT-Creation-Date: 2020-04-17T21:03:15+00:00\n" 13 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 | "X-Generator: WP-CLI 2.4.0\n" 15 | "X-Domain: _s\n" 16 | 17 | #. Theme Name of the theme 18 | msgid "_s" 19 | msgstr "" 20 | 21 | #. Theme URI of the theme 22 | msgid "https://underscores.me/" 23 | msgstr "" 24 | 25 | #. Description of the theme 26 | msgid "Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for." 27 | msgstr "" 28 | 29 | #. Author of the theme 30 | msgid "Automattic" 31 | msgstr "" 32 | 33 | #. Author URI of the theme 34 | msgid "https://automattic.com/" 35 | msgstr "" 36 | 37 | #: 404.php:18 38 | msgid "Oops! That page can’t be found." 39 | msgstr "" 40 | 41 | #: 404.php:22 42 | msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?" 43 | msgstr "" 44 | 45 | #: 404.php:31 46 | msgid "Most Used Categories" 47 | msgstr "" 48 | 49 | #. translators: %1$s: smiley 50 | #: 404.php:49 51 | msgid "Try looking in the monthly archives. %1$s" 52 | msgstr "" 53 | 54 | #. translators: 1: title. 55 | #: comments.php:35 56 | msgid "One thought on “%1$s”" 57 | msgstr "" 58 | 59 | #. translators: 1: comment count number, 2: title. 60 | #: comments.php:41 61 | msgctxt "comments title" 62 | msgid "%1$s thought on “%2$s”" 63 | msgid_plural "%1$s thoughts on “%2$s”" 64 | msgstr[0] "" 65 | msgstr[1] "" 66 | 67 | #: comments.php:68 68 | msgid "Comments are closed." 69 | msgstr "" 70 | 71 | #: footer.php:18 72 | msgid "https://wordpress.org/" 73 | msgstr "" 74 | 75 | #. translators: %s: CMS name, i.e. WordPress. 76 | #: footer.php:21 77 | msgid "Proudly powered by %s" 78 | msgstr "" 79 | 80 | #. translators: 1: Theme name, 2: Theme author. 81 | #: footer.php:27 82 | msgid "Theme: %1$s by %2$s." 83 | msgstr "" 84 | 85 | #: functions.php:53 86 | msgid "Primary" 87 | msgstr "" 88 | 89 | #: functions.php:130 90 | msgid "Sidebar" 91 | msgstr "" 92 | 93 | #: functions.php:132 94 | msgid "Add widgets here." 95 | msgstr "" 96 | 97 | #: header.php:26 98 | msgid "Skip to content" 99 | msgstr "" 100 | 101 | #: header.php:49 102 | msgid "Primary Menu" 103 | msgstr "" 104 | 105 | #. translators: %s: post date. 106 | #: inc/template-tags.php:30 107 | msgctxt "post date" 108 | msgid "Posted on %s" 109 | msgstr "" 110 | 111 | #. translators: %s: post author. 112 | #: inc/template-tags.php:46 113 | msgctxt "post author" 114 | msgid "by %s" 115 | msgstr "" 116 | 117 | #. translators: used between list items, there is a space after the comma 118 | #: inc/template-tags.php:63 119 | msgid ", " 120 | msgstr "" 121 | 122 | #. translators: 1: list of categories. 123 | #: inc/template-tags.php:66 124 | msgid "Posted in %1$s" 125 | msgstr "" 126 | 127 | #. translators: used between list items, there is a space after the comma 128 | #: inc/template-tags.php:70 129 | msgctxt "list item separator" 130 | msgid ", " 131 | msgstr "" 132 | 133 | #. translators: 1: list of tags. 134 | #: inc/template-tags.php:73 135 | msgid "Tagged %1$s" 136 | msgstr "" 137 | 138 | #. translators: %s: post title 139 | #: inc/template-tags.php:83 140 | msgid "Leave a Comment on %s" 141 | msgstr "" 142 | 143 | #. translators: %s: Name of current post. Only visible to screen readers 144 | #: inc/template-tags.php:100 145 | #: template-parts/content-page.php:39 146 | msgid "Edit %s" 147 | msgstr "" 148 | 149 | #: inc/woocommerce.php:186 150 | msgid "View your shopping cart" 151 | msgstr "" 152 | 153 | #. translators: number of items in the mini cart. 154 | #: inc/woocommerce.php:190 155 | msgid "%d item" 156 | msgid_plural "%d items" 157 | msgstr[0] "" 158 | msgstr[1] "" 159 | 160 | #. translators: %s: search query. 161 | #: search.php:22 162 | msgid "Search Results for: %s" 163 | msgstr "" 164 | 165 | #: single.php:23 166 | msgid "Previous:" 167 | msgstr "" 168 | 169 | #: single.php:24 170 | msgid "Next:" 171 | msgstr "" 172 | 173 | #: template-parts/content-none.php:14 174 | msgid "Nothing Found" 175 | msgstr "" 176 | 177 | #. translators: 1: link to WP admin new post page. 178 | #: template-parts/content-none.php:24 179 | msgid "Ready to publish your first post? Get started here." 180 | msgstr "" 181 | 182 | #: template-parts/content-none.php:37 183 | msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords." 184 | msgstr "" 185 | 186 | #: template-parts/content-none.php:44 187 | msgid "It seems we can’t find what you’re looking for. Perhaps searching can help." 188 | msgstr "" 189 | 190 | #: template-parts/content-page.php:25 191 | #: template-parts/content.php:53 192 | msgid "Pages:" 193 | msgstr "" 194 | 195 | #. translators: %s: Name of current post. Only visible to screen readers 196 | #: template-parts/content.php:40 197 | msgid "Continue reading \"%s\"" 198 | msgstr "" 199 | -------------------------------------------------------------------------------- /languages/readme.txt: -------------------------------------------------------------------------------- 1 | Place your theme language files in this directory. 2 | 3 | Please visit the following links to learn more about translating WordPress themes: 4 | 5 | https://make.wordpress.org/polyglots/teams/ 6 | https://developer.wordpress.org/themes/functionality/localization/ 7 | https://developer.wordpress.org/reference/functions/load_theme_textdomain/ 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "underscores", 3 | "version": "1.0.0", 4 | "description": "Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.", 5 | "author": "Automattic Theme Team", 6 | "license": "GPL-2.0-or-later", 7 | "keywords": [ 8 | "WordPress", 9 | "Theme" 10 | ], 11 | "homepage": "https://github.com/Automattic/_s#readme", 12 | "repository": { 13 | "type": "git", 14 | "url": "git+https://github.com/Automattic/_s.git" 15 | }, 16 | "bugs": { 17 | "url": "https://github.com/Automattic/_s/issues" 18 | }, 19 | "devDependencies": { 20 | "@wordpress/scripts": "^19.2.2", 21 | "dir-archiver": "^1.1.1", 22 | "node-sass": "^7.0.1", 23 | "rtlcss": "^3.5.0" 24 | }, 25 | "rtlcssConfig": { 26 | "options": { 27 | "autoRename": false, 28 | "autoRenameStrict": false, 29 | "blacklist": {}, 30 | "clean": true, 31 | "greedy": false, 32 | "processUrls": false, 33 | "stringMap": [] 34 | }, 35 | "plugins": [], 36 | "map": false 37 | }, 38 | "scripts": { 39 | "watch": "node-sass sass/ -o ./ --source-map true --output-style expanded --indent-type tab --indent-width 1 -w", 40 | "compile:css": "node-sass sass/ -o ./ && stylelint '*.css' --fix || true && stylelint '*.css' --fix", 41 | "compile:rtl": "rtlcss style.css style-rtl.css", 42 | "lint:scss": "wp-scripts lint-style 'sass/**/*.scss'", 43 | "lint:js": "wp-scripts lint-js 'js/*.js'", 44 | "bundle": "dir-archiver --src . --dest ../_s.zip --exclude .DS_Store .stylelintrc.json .eslintrc .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .travis.yml phpcs.xml.dist sass style.css.map yarn.lock" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 17 | 18 |
19 | 20 | 33 | 34 |
35 | 36 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A custom set of code standard rules to check for WordPress themes. 10 | 11 | 12 | 18 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | . 36 | 37 | 38 | /vendor/* 39 | /node_modules/* 40 | 41 | 42 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 59 | 60 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === _s === 2 | 3 | Contributors: automattic 4 | Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready 5 | 6 | Requires at least: 4.5 7 | Tested up to: 5.4 8 | Requires PHP: 5.6 9 | Stable tag: 1.0.0 10 | License: GNU General Public License v2 or later 11 | License URI: LICENSE 12 | 13 | A starter theme called _s, or underscores. 14 | 15 | == Description == 16 | 17 | Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for. 18 | 19 | == Installation == 20 | 21 | 1. In your admin panel, go to Appearance > Themes and click the Add New button. 22 | 2. Click Upload Theme and Choose File, then select the theme's .zip file. Click Install Now. 23 | 3. Click Activate to use your new theme right away. 24 | 25 | == Frequently Asked Questions == 26 | 27 | = Does this theme support any plugins? = 28 | 29 | _s includes support for WooCommerce and for Infinite Scroll in Jetpack. 30 | 31 | == Changelog == 32 | 33 | = 1.0 - May 12 2015 = 34 | * Initial release 35 | 36 | == Credits == 37 | 38 | * Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) 39 | * normalize.css https://necolas.github.io/normalize.css/, (C) 2012-2018 Nicolas Gallagher and Jonathan Neal, [MIT](https://opensource.org/licenses/MIT) 40 | -------------------------------------------------------------------------------- /sass/abstracts/_abstracts.scss: -------------------------------------------------------------------------------- 1 | @import "variables/colors"; 2 | @import "variables/typography"; 3 | @import "variables/structure"; 4 | @import "variables/columns"; 5 | @import "mixins/mixins"; 6 | -------------------------------------------------------------------------------- /sass/abstracts/mixins/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Center block 2 | @mixin center-block { 3 | display: block; 4 | margin-left: auto; 5 | margin-right: auto; 6 | } 7 | 8 | // Column width with margin 9 | @mixin column-width($numberColumns: 3) { 10 | width: map-get($columns, $numberColumns) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns ); 11 | } 12 | -------------------------------------------------------------------------------- /sass/abstracts/variables/_colors.scss: -------------------------------------------------------------------------------- 1 | $color__background-body: #fff; 2 | $color__background-screen: #f1f1f1; 3 | $color__background-hr: #ccc; 4 | $color__background-button: #e6e6e6; 5 | $color__background-pre: #eee; 6 | $color__background-ins: #fff9c0; 7 | 8 | $color__text-screen: #21759b; 9 | $color__text-input: #666; 10 | $color__text-input-focus: #111; 11 | $color__link: #4169e1; //royalblue 12 | $color__link-visited: #800080; //purple 13 | $color__link-hover: #191970; //midnightblue 14 | $color__text-main: #404040; 15 | 16 | $color__border-button: #ccc #ccc #bbb; 17 | $color__border-button-hover: #ccc #bbb #aaa; 18 | $color__border-button-focus: #aaa #bbb #bbb; 19 | $color__border-input: #ccc; 20 | $color__border-abbr: #666; 21 | -------------------------------------------------------------------------------- /sass/abstracts/variables/_columns.scss: -------------------------------------------------------------------------------- 1 | $columns: ( 2 | 1: 100%, 3 | 2: 50%, 4 | 3: 33.33%, 5 | 4: 25%, 6 | 5: 20%, 7 | 6: 16.66%, 8 | 7: 14.28%, 9 | 8: 12.5%, 10 | 9: 11.11% 11 | ); 12 | 13 | $columns__margin: 3.8%; 14 | -------------------------------------------------------------------------------- /sass/abstracts/variables/_structure.scss: -------------------------------------------------------------------------------- 1 | $size__site-main: 100%; 2 | $size__site-sidebar: 25%; 3 | -------------------------------------------------------------------------------- /sass/abstracts/variables/_typography.scss: -------------------------------------------------------------------------------- 1 | // stylelint-disable value-keyword-case 2 | $font__main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 3 | // stylelint-enable value-keyword-case 4 | $font__code: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; 5 | $font__pre: "Courier 10 Pitch", courier, monospace; 6 | $font__line-height-body: 1.5; 7 | $font__line-height-pre: 1.6; 8 | -------------------------------------------------------------------------------- /sass/base/_base.scss: -------------------------------------------------------------------------------- 1 | /* Typography 2 | --------------------------------------------- */ 3 | @import "typography/typography"; 4 | 5 | /* Elements 6 | --------------------------------------------- */ 7 | @import "elements/body"; 8 | @import "elements/hr"; 9 | @import "elements/lists"; 10 | @import "elements/media"; 11 | @import "elements/tables"; 12 | 13 | /* Links 14 | --------------------------------------------- */ 15 | @import "elements/links"; 16 | 17 | /* Forms 18 | --------------------------------------------- */ 19 | @import "elements/buttons"; 20 | @import "elements/fields"; 21 | -------------------------------------------------------------------------------- /sass/base/elements/_body.scss: -------------------------------------------------------------------------------- 1 | body { 2 | background: $color__background-body; // Fallback for when there is no custom background color defined. 3 | } 4 | -------------------------------------------------------------------------------- /sass/base/elements/_buttons.scss: -------------------------------------------------------------------------------- 1 | button, 2 | input[type="button"], 3 | input[type="reset"], 4 | input[type="submit"] { 5 | border: 1px solid; 6 | border-color: $color__border-button; 7 | border-radius: 3px; 8 | background: $color__background-button; 9 | color: rgba(0, 0, 0, 0.8); 10 | line-height: 1; 11 | padding: 0.6em 1em 0.4em; 12 | 13 | &:hover { 14 | border-color: $color__border-button-hover; 15 | } 16 | 17 | &:active, 18 | &:focus { 19 | border-color: $color__border-button-focus; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /sass/base/elements/_fields.scss: -------------------------------------------------------------------------------- 1 | input[type="text"], 2 | input[type="email"], 3 | input[type="url"], 4 | input[type="password"], 5 | input[type="search"], 6 | input[type="number"], 7 | input[type="tel"], 8 | input[type="range"], 9 | input[type="date"], 10 | input[type="month"], 11 | input[type="week"], 12 | input[type="time"], 13 | input[type="datetime"], 14 | input[type="datetime-local"], 15 | input[type="color"], 16 | textarea { 17 | color: $color__text-input; 18 | border: 1px solid $color__border-input; 19 | border-radius: 3px; 20 | padding: 3px; 21 | 22 | &:focus { 23 | color: $color__text-input-focus; 24 | } 25 | } 26 | 27 | select { 28 | border: 1px solid $color__border-input; 29 | } 30 | 31 | textarea { 32 | width: 100%; 33 | } 34 | -------------------------------------------------------------------------------- /sass/base/elements/_hr.scss: -------------------------------------------------------------------------------- 1 | hr { 2 | background-color: $color__background-hr; 3 | border: 0; 4 | height: 1px; 5 | margin-bottom: 1.5em; 6 | } 7 | -------------------------------------------------------------------------------- /sass/base/elements/_links.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: $color__link; 3 | 4 | &:visited { 5 | color: $color__link-visited; 6 | } 7 | 8 | &:hover, 9 | &:focus, 10 | &:active { 11 | color: $color__link-hover; 12 | } 13 | 14 | &:focus { 15 | outline: thin dotted; 16 | } 17 | 18 | &:hover, 19 | &:active { 20 | outline: 0; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /sass/base/elements/_lists.scss: -------------------------------------------------------------------------------- 1 | ul, 2 | ol { 3 | margin: 0 0 1.5em 3em; 4 | } 5 | 6 | ul { 7 | list-style: disc; 8 | } 9 | 10 | ol { 11 | list-style: decimal; 12 | } 13 | 14 | li > ul, 15 | li > ol { 16 | margin-bottom: 0; 17 | margin-left: 1.5em; 18 | } 19 | 20 | dt { 21 | font-weight: 700; 22 | } 23 | 24 | dd { 25 | margin: 0 1.5em 1.5em; 26 | } 27 | -------------------------------------------------------------------------------- /sass/base/elements/_media.scss: -------------------------------------------------------------------------------- 1 | /* Make sure embeds and iframes fit their containers. */ 2 | embed, 3 | iframe, 4 | object { 5 | max-width: 100%; 6 | } 7 | 8 | img { 9 | height: auto; // Make sure images are scaled correctly. 10 | max-width: 100%; // Adhere to container width. 11 | } 12 | 13 | figure { 14 | margin: 1em 0; // Extra wide images within figure tags don't overflow the content area. 15 | } 16 | -------------------------------------------------------------------------------- /sass/base/elements/_tables.scss: -------------------------------------------------------------------------------- 1 | table { 2 | margin: 0 0 1.5em; 3 | width: 100%; 4 | } 5 | -------------------------------------------------------------------------------- /sass/base/typography/_copy.scss: -------------------------------------------------------------------------------- 1 | p { 2 | margin-bottom: 1.5em; 3 | } 4 | 5 | dfn, 6 | cite, 7 | em, 8 | i { 9 | font-style: italic; 10 | } 11 | 12 | blockquote { 13 | margin: 0 1.5em; 14 | } 15 | 16 | address { 17 | margin: 0 0 1.5em; 18 | } 19 | 20 | pre { 21 | background: $color__background-pre; 22 | font-family: $font__pre; 23 | line-height: $font__line-height-pre; 24 | margin-bottom: 1.6em; 25 | max-width: 100%; 26 | overflow: auto; 27 | padding: 1.6em; 28 | } 29 | 30 | code, 31 | kbd, 32 | tt, 33 | var { 34 | font-family: $font__code; 35 | } 36 | 37 | abbr, 38 | acronym { 39 | border-bottom: 1px dotted $color__border-abbr; 40 | cursor: help; 41 | } 42 | 43 | mark, 44 | ins { 45 | background: $color__background-ins; 46 | text-decoration: none; 47 | } 48 | 49 | big { 50 | font-size: 125%; 51 | } 52 | -------------------------------------------------------------------------------- /sass/base/typography/_headings.scss: -------------------------------------------------------------------------------- 1 | h1, 2 | h2, 3 | h3, 4 | h4, 5 | h5, 6 | h6 { 7 | clear: both; 8 | } 9 | -------------------------------------------------------------------------------- /sass/base/typography/_typography.scss: -------------------------------------------------------------------------------- 1 | body, 2 | button, 3 | input, 4 | select, 5 | optgroup, 6 | textarea { 7 | color: $color__text-main; 8 | font-family: $font__main; 9 | font-size: 1rem; 10 | line-height: $font__line-height-body; 11 | } 12 | 13 | @import "headings"; 14 | @import "copy"; 15 | -------------------------------------------------------------------------------- /sass/components/_components.scss: -------------------------------------------------------------------------------- 1 | /* Navigation 2 | --------------------------------------------- */ 3 | @import "navigation/navigation"; 4 | 5 | /* Posts and pages 6 | --------------------------------------------- */ 7 | @import "content/posts-and-pages"; 8 | 9 | /* Comments 10 | --------------------------------------------- */ 11 | @import "comments/comments"; 12 | 13 | /* Widgets 14 | --------------------------------------------- */ 15 | @import "widgets/widgets"; 16 | 17 | /* Media 18 | --------------------------------------------- */ 19 | @import "media/media"; 20 | 21 | /* Captions 22 | --------------------------------------------- */ 23 | @import "media/captions"; 24 | 25 | /* Galleries 26 | --------------------------------------------- */ 27 | @import "media/galleries"; 28 | -------------------------------------------------------------------------------- /sass/components/comments/_comments.scss: -------------------------------------------------------------------------------- 1 | .comment-content a { 2 | word-wrap: break-word; 3 | } 4 | 5 | .bypostauthor { 6 | display: block; 7 | } 8 | -------------------------------------------------------------------------------- /sass/components/content/_posts-and-pages.scss: -------------------------------------------------------------------------------- 1 | .sticky { 2 | display: block; 3 | } 4 | 5 | .post, 6 | .page { 7 | margin: 0 0 1.5em; 8 | } 9 | 10 | .updated:not(.published) { 11 | display: none; 12 | } 13 | 14 | .page-content, 15 | .entry-content, 16 | .entry-summary { 17 | margin: 1.5em 0 0; 18 | } 19 | 20 | .page-links { 21 | clear: both; 22 | margin: 0 0 1.5em; 23 | } 24 | -------------------------------------------------------------------------------- /sass/components/media/_captions.scss: -------------------------------------------------------------------------------- 1 | .wp-caption { 2 | margin-bottom: 1.5em; 3 | max-width: 100%; 4 | 5 | img[class*="wp-image-"] { 6 | 7 | @include center-block; 8 | } 9 | 10 | .wp-caption-text { 11 | margin: 0.8075em 0; 12 | } 13 | } 14 | 15 | .wp-caption-text { 16 | text-align: center; 17 | } 18 | -------------------------------------------------------------------------------- /sass/components/media/_galleries.scss: -------------------------------------------------------------------------------- 1 | .gallery { 2 | margin-bottom: 1.5em; 3 | display: grid; 4 | grid-gap: 1.5em; 5 | } 6 | 7 | .gallery-item { 8 | display: inline-block; 9 | text-align: center; 10 | width: 100%; 11 | } 12 | 13 | // Loops to enumerate the classes for gallery columns. 14 | @for $i from 2 through 9 { 15 | 16 | .gallery-columns-#{$i} { 17 | grid-template-columns: repeat($i, 1fr); 18 | } 19 | } 20 | 21 | .gallery-caption { 22 | display: block; 23 | } 24 | -------------------------------------------------------------------------------- /sass/components/media/_media.scss: -------------------------------------------------------------------------------- 1 | .page-content .wp-smiley, 2 | .entry-content .wp-smiley, 3 | .comment-content .wp-smiley { 4 | border: none; 5 | margin-bottom: 0; 6 | margin-top: 0; 7 | padding: 0; 8 | } 9 | 10 | /* Make sure logo link wraps around logo image. */ 11 | .custom-logo-link { 12 | display: inline-block; 13 | } 14 | -------------------------------------------------------------------------------- /sass/components/navigation/_navigation.scss: -------------------------------------------------------------------------------- 1 | .main-navigation { 2 | display: block; 3 | width: 100%; 4 | 5 | ul { 6 | display: none; 7 | list-style: none; 8 | margin: 0; 9 | padding-left: 0; 10 | 11 | ul { 12 | box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); 13 | float: left; 14 | position: absolute; 15 | top: 100%; 16 | left: -999em; 17 | z-index: 99999; 18 | 19 | ul { 20 | left: -999em; 21 | top: 0; 22 | } 23 | 24 | li { 25 | 26 | &:hover > ul, 27 | &.focus > ul { 28 | display: block; 29 | left: auto; 30 | } 31 | } 32 | 33 | a { 34 | width: 200px; 35 | } 36 | 37 | :hover > a, 38 | .focus > a { 39 | } 40 | 41 | a:hover, 42 | a.focus { 43 | } 44 | } 45 | 46 | li:hover > ul, 47 | li.focus > ul { 48 | left: auto; 49 | } 50 | } 51 | 52 | li { 53 | position: relative; 54 | 55 | &:hover > a, 56 | &.focus > a { 57 | } 58 | } 59 | 60 | a { 61 | display: block; 62 | text-decoration: none; 63 | } 64 | 65 | .current_page_item > a, 66 | .current-menu-item > a, 67 | .current_page_ancestor > a, 68 | .current-menu-ancestor > a { 69 | } 70 | } 71 | 72 | /* Small menu. */ 73 | .menu-toggle, 74 | .main-navigation.toggled ul { 75 | display: block; 76 | } 77 | 78 | @media screen and (min-width: 37.5em) { 79 | 80 | .menu-toggle { 81 | display: none; 82 | } 83 | 84 | .main-navigation ul { 85 | display: flex; 86 | } 87 | } 88 | 89 | .comment-navigation, 90 | .posts-navigation, 91 | .post-navigation { 92 | 93 | .site-main & { 94 | margin: 0 0 1.5em; 95 | } 96 | 97 | .nav-links { 98 | display: flex; 99 | } 100 | 101 | .nav-previous { 102 | flex: 1 0 50%; 103 | } 104 | 105 | .nav-next { 106 | text-align: end; 107 | flex: 1 0 50%; 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /sass/components/widgets/_widgets.scss: -------------------------------------------------------------------------------- 1 | .widget { 2 | margin: 0 0 1.5em; 3 | 4 | // Make sure select elements fit in widgets. 5 | select { 6 | max-width: 100%; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /sass/generic/_box-sizing.scss: -------------------------------------------------------------------------------- 1 | /* Inherit box-sizing to more easily change it's value on a component level. 2 | @link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ 3 | *, 4 | *::before, 5 | *::after { 6 | box-sizing: inherit; 7 | } 8 | 9 | html { 10 | box-sizing: border-box; 11 | } 12 | -------------------------------------------------------------------------------- /sass/generic/_normalize.scss: -------------------------------------------------------------------------------- 1 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in iOS. 9 | */ 10 | 11 | html { 12 | line-height: 1.15; 13 | -webkit-text-size-adjust: 100%; 14 | } 15 | 16 | /* Sections 17 | ========================================================================== */ 18 | 19 | /** 20 | * Remove the margin in all browsers. 21 | */ 22 | 23 | body { 24 | margin: 0; 25 | } 26 | 27 | /** 28 | * Render the `main` element consistently in IE. 29 | */ 30 | 31 | main { 32 | display: block; 33 | } 34 | 35 | /** 36 | * Correct the font size and margin on `h1` elements within `section` and 37 | * `article` contexts in Chrome, Firefox, and Safari. 38 | */ 39 | 40 | h1 { 41 | font-size: 2em; 42 | margin: 0.67em 0; 43 | } 44 | 45 | /* Grouping content 46 | ========================================================================== */ 47 | 48 | /** 49 | * 1. Add the correct box sizing in Firefox. 50 | * 2. Show the overflow in Edge and IE. 51 | */ 52 | 53 | hr { 54 | box-sizing: content-box; 55 | height: 0; 56 | overflow: visible; 57 | } 58 | 59 | /** 60 | * 1. Correct the inheritance and scaling of font size in all browsers. 61 | * 2. Correct the odd `em` font sizing in all browsers. 62 | */ 63 | 64 | pre { 65 | font-family: monospace, monospace; 66 | font-size: 1em; 67 | } 68 | 69 | /* Text-level semantics 70 | ========================================================================== */ 71 | 72 | /** 73 | * Remove the gray background on active links in IE 10. 74 | */ 75 | 76 | a { 77 | background-color: transparent; 78 | } 79 | 80 | /** 81 | * 1. Remove the bottom border in Chrome 57- 82 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 83 | */ 84 | 85 | abbr[title] { 86 | border-bottom: none; 87 | text-decoration: underline; 88 | text-decoration: underline dotted; 89 | } 90 | 91 | /** 92 | * Add the correct font weight in Chrome, Edge, and Safari. 93 | */ 94 | 95 | b, 96 | strong { 97 | font-weight: bolder; 98 | } 99 | 100 | /** 101 | * 1. Correct the inheritance and scaling of font size in all browsers. 102 | * 2. Correct the odd `em` font sizing in all browsers. 103 | */ 104 | 105 | code, 106 | kbd, 107 | samp { 108 | font-family: monospace, monospace; 109 | font-size: 1em; 110 | } 111 | 112 | /** 113 | * Add the correct font size in all browsers. 114 | */ 115 | 116 | small { 117 | font-size: 80%; 118 | } 119 | 120 | /** 121 | * Prevent `sub` and `sup` elements from affecting the line height in 122 | * all browsers. 123 | */ 124 | 125 | sub, 126 | sup { 127 | font-size: 75%; 128 | line-height: 0; 129 | position: relative; 130 | vertical-align: baseline; 131 | } 132 | 133 | sub { 134 | bottom: -0.25em; 135 | } 136 | 137 | sup { 138 | top: -0.5em; 139 | } 140 | 141 | /* Embedded content 142 | ========================================================================== */ 143 | 144 | /** 145 | * Remove the border on images inside links in IE 10. 146 | */ 147 | 148 | img { 149 | border-style: none; 150 | } 151 | 152 | /* Forms 153 | ========================================================================== */ 154 | 155 | /** 156 | * 1. Change the font styles in all browsers. 157 | * 2. Remove the margin in Firefox and Safari. 158 | */ 159 | 160 | button, 161 | input, 162 | optgroup, 163 | select, 164 | textarea { 165 | font-family: inherit; 166 | font-size: 100%; 167 | line-height: 1.15; 168 | margin: 0; 169 | } 170 | 171 | /** 172 | * Show the overflow in IE. 173 | * 1. Show the overflow in Edge. 174 | */ 175 | 176 | button, 177 | input { 178 | overflow: visible; 179 | } 180 | 181 | /** 182 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 183 | * 1. Remove the inheritance of text transform in Firefox. 184 | */ 185 | 186 | button, 187 | select { 188 | text-transform: none; 189 | } 190 | 191 | /** 192 | * Correct the inability to style clickable types in iOS and Safari. 193 | */ 194 | 195 | button, 196 | [type="button"], 197 | [type="reset"], 198 | [type="submit"] { 199 | -webkit-appearance: button; 200 | } 201 | 202 | /** 203 | * Remove the inner border and padding in Firefox. 204 | */ 205 | 206 | button::-moz-focus-inner, 207 | [type="button"]::-moz-focus-inner, 208 | [type="reset"]::-moz-focus-inner, 209 | [type="submit"]::-moz-focus-inner { 210 | border-style: none; 211 | padding: 0; 212 | } 213 | 214 | /** 215 | * Restore the focus styles unset by the previous rule. 216 | */ 217 | 218 | button:-moz-focusring, 219 | [type="button"]:-moz-focusring, 220 | [type="reset"]:-moz-focusring, 221 | [type="submit"]:-moz-focusring { 222 | outline: 1px dotted ButtonText; 223 | } 224 | 225 | /** 226 | * Correct the padding in Firefox. 227 | */ 228 | 229 | fieldset { 230 | padding: 0.35em 0.75em 0.625em; 231 | } 232 | 233 | /** 234 | * 1. Correct the text wrapping in Edge and IE. 235 | * 2. Correct the color inheritance from `fieldset` elements in IE. 236 | * 3. Remove the padding so developers are not caught out when they zero out 237 | * `fieldset` elements in all browsers. 238 | */ 239 | 240 | legend { 241 | box-sizing: border-box; 242 | color: inherit; 243 | display: table; 244 | max-width: 100%; 245 | padding: 0; 246 | white-space: normal; 247 | } 248 | 249 | /** 250 | * Add the correct vertical alignment in Chrome, Firefox, and Opera. 251 | */ 252 | 253 | progress { 254 | vertical-align: baseline; 255 | } 256 | 257 | /** 258 | * Remove the default vertical scrollbar in IE 10+. 259 | */ 260 | 261 | textarea { 262 | overflow: auto; 263 | } 264 | 265 | /** 266 | * 1. Add the correct box sizing in IE 10. 267 | * 2. Remove the padding in IE 10. 268 | */ 269 | 270 | [type="checkbox"], 271 | [type="radio"] { 272 | box-sizing: border-box; 273 | padding: 0; 274 | } 275 | 276 | /** 277 | * Correct the cursor style of increment and decrement buttons in Chrome. 278 | */ 279 | 280 | [type="number"]::-webkit-inner-spin-button, 281 | [type="number"]::-webkit-outer-spin-button { 282 | height: auto; 283 | } 284 | 285 | /** 286 | * 1. Correct the odd appearance in Chrome and Safari. 287 | * 2. Correct the outline style in Safari. 288 | */ 289 | 290 | [type="search"] { 291 | -webkit-appearance: textfield; 292 | outline-offset: -2px; 293 | } 294 | 295 | /** 296 | * Remove the inner padding in Chrome and Safari on macOS. 297 | */ 298 | 299 | [type="search"]::-webkit-search-decoration { 300 | -webkit-appearance: none; 301 | } 302 | 303 | /** 304 | * 1. Correct the inability to style clickable types in iOS and Safari. 305 | * 2. Change font properties to `inherit` in Safari. 306 | */ 307 | 308 | ::-webkit-file-upload-button { 309 | -webkit-appearance: button; 310 | font: inherit; 311 | } 312 | 313 | /* Interactive 314 | ========================================================================== */ 315 | 316 | /* 317 | * Add the correct display in Edge, IE 10+, and Firefox. 318 | */ 319 | 320 | details { 321 | display: block; 322 | } 323 | 324 | /* 325 | * Add the correct display in all browsers. 326 | */ 327 | 328 | summary { 329 | display: list-item; 330 | } 331 | 332 | /* Misc 333 | ========================================================================== */ 334 | 335 | /** 336 | * Add the correct display in IE 10+. 337 | */ 338 | 339 | template { 340 | display: none; 341 | } 342 | 343 | /** 344 | * Add the correct display in IE 10. 345 | */ 346 | 347 | [hidden] { 348 | display: none; 349 | } 350 | -------------------------------------------------------------------------------- /sass/layouts/_content-sidebar.scss: -------------------------------------------------------------------------------- 1 | .site { 2 | display: grid; 3 | grid-template-columns: auto ($size__site-sidebar); 4 | grid-template-areas: 5 | "header header" 6 | "main sidebar" 7 | "footer footer"; 8 | } 9 | 10 | .site-header { 11 | grid-area: header; 12 | } 13 | 14 | .site-main { 15 | grid-area: main; 16 | overflow: hidden; /* Resolves issue with
 elements forcing full width. */
17 | }
18 | 
19 | .widget-area {
20 | 	grid-area: sidebar;
21 | }
22 | 
23 | .site-footer {
24 | 	grid-area: footer;
25 | }
26 | 
27 | @import "no-sidebar";
28 | 


--------------------------------------------------------------------------------
/sass/layouts/_no-sidebar.scss:
--------------------------------------------------------------------------------
 1 | .no-sidebar {
 2 | 
 3 | 	.site {
 4 | 		display: grid;
 5 | 		grid-template-columns: auto;
 6 | 		grid-template-areas:
 7 | 			"header"
 8 | 			"main"
 9 | 			"footer";
10 | 	}
11 | }
12 | 


--------------------------------------------------------------------------------
/sass/layouts/_sidebar-content.scss:
--------------------------------------------------------------------------------
 1 | .site {
 2 | 	display: grid;
 3 | 	grid-template-columns: ($size__site-sidebar) auto;
 4 | 	grid-template-areas:
 5 | 		"header header"
 6 | 		"sidebar main"
 7 | 		"footer footer";
 8 | }
 9 | 
10 | .site-header {
11 | 	grid-area: header;
12 | }
13 | 
14 | .site-main {
15 | 	grid-area: main;
16 | 	overflow: hidden; /* Resolves issue with 
 elements forcing full width. */
17 | }
18 | 
19 | .widget-area {
20 | 	grid-area: sidebar;
21 | }
22 | 
23 | .site-footer {
24 | 	grid-area: footer;
25 | }
26 | 
27 | @import "no-sidebar";
28 | 


--------------------------------------------------------------------------------
/sass/plugins/jetpack/_infinite-scroll.scss:
--------------------------------------------------------------------------------
 1 | /* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
 2 | .infinite-scroll .posts-navigation,
 3 | .infinite-scroll.neverending .site-footer {
 4 | 	display: none;
 5 | }
 6 | 
 7 | /* Re-display the Theme Footer when Infinite Scroll has reached its end. */
 8 | .infinity-end.neverending .site-footer {
 9 | 	display: block;
10 | }
11 | 


--------------------------------------------------------------------------------
/sass/plugins/woocommerce/_checkout.scss:
--------------------------------------------------------------------------------
 1 | @media screen and (min-width: 768px) {
 2 | 
 3 | 	.col2-set {
 4 | 
 5 | 		.form-row-first {
 6 | 			float: left;
 7 | 			margin-right: $columns__margin;
 8 | 		}
 9 | 
10 | 		.form-row-last {
11 | 			float: right;
12 | 			margin-right: 0;
13 | 		}
14 | 
15 | 		.form-row-first,
16 | 		.form-row-last {
17 | 
18 | 			@include column-width(2);
19 | 		}
20 | 	}
21 | }
22 | 


--------------------------------------------------------------------------------
/sass/plugins/woocommerce/_components.scss:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * Header cart
  3 |  */
  4 | .site-header-cart {
  5 | 	position: relative;
  6 | 	margin: 0;
  7 | 	padding: 0;
  8 | 
  9 | 	.cart-contents {
 10 | 		text-decoration: none;
 11 | 	}
 12 | 
 13 | 	.widget_shopping_cart {
 14 | 		display: none;
 15 | 	}
 16 | 
 17 | 	.product_list_widget {
 18 | 		margin: 0;
 19 | 		padding: 0;
 20 | 	}
 21 | }
 22 | 
 23 | /**
 24 |  * Star rating
 25 |  */
 26 | .star-rating {
 27 | 	overflow: hidden;
 28 | 	position: relative;
 29 | 	height: 1.618em;
 30 | 	line-height: 1.618;
 31 | 	width: 5.3em;
 32 | 	font-family: star;
 33 | 	font-weight: 400;
 34 | 
 35 | 	&::before {
 36 | 		content: "\53\53\53\53\53";
 37 | 		opacity: 0.25;
 38 | 		float: left;
 39 | 		top: 0;
 40 | 		left: 0;
 41 | 		position: absolute;
 42 | 	}
 43 | 
 44 | 	span {
 45 | 		overflow: hidden;
 46 | 		float: left;
 47 | 		top: 0;
 48 | 		left: 0;
 49 | 		position: absolute;
 50 | 		padding-top: 1.5em;
 51 | 	}
 52 | 
 53 | 	span::before {
 54 | 		content: "\53\53\53\53\53";
 55 | 		top: 0;
 56 | 		position: absolute;
 57 | 		left: 0;
 58 | 		color: $color__link;
 59 | 	}
 60 | }
 61 | 
 62 | p.stars {
 63 | 
 64 | 	a {
 65 | 		position: relative;
 66 | 		height: 1em;
 67 | 		width: 1em;
 68 | 		text-indent: -999em;
 69 | 		display: inline-block;
 70 | 		text-decoration: none;
 71 | 		margin-right: 1px;
 72 | 		font-weight: 400;
 73 | 
 74 | 		&::before {
 75 | 
 76 | 			display: block;
 77 | 			position: absolute;
 78 | 			top: 0;
 79 | 			left: 0;
 80 | 			width: 1em;
 81 | 			height: 1em;
 82 | 			line-height: 1;
 83 | 			font-family: star;
 84 | 			content: "\53";
 85 | 			color: $color__text-main;
 86 | 			text-indent: 0;
 87 | 			opacity: 0.25;
 88 | 		}
 89 | 
 90 | 		&:hover {
 91 | 
 92 | 			~ a::before {
 93 | 				content: "\53";
 94 | 				color: $color__text-main;
 95 | 				opacity: 0.25;
 96 | 			}
 97 | 		}
 98 | 	}
 99 | 
100 | 	&:hover {
101 | 
102 | 		a {
103 | 
104 | 			&::before {
105 | 				content: "\53";
106 | 				color: $color__link;
107 | 				opacity: 1;
108 | 			}
109 | 		}
110 | 	}
111 | 
112 | 	&.selected {
113 | 
114 | 		a.active {
115 | 
116 | 			&::before {
117 | 				content: "\53";
118 | 				color: $color__link;
119 | 				opacity: 1;
120 | 			}
121 | 
122 | 			~ a::before {
123 | 				content: "\53";
124 | 				color: $color__text-main;
125 | 				opacity: 0.25;
126 | 			}
127 | 		}
128 | 
129 | 		a:not(.active) {
130 | 
131 | 			&::before {
132 | 				content: "\53";
133 | 				color: $color__link;
134 | 				opacity: 1;
135 | 			}
136 | 		}
137 | 	}
138 | }
139 | 
140 | /**
141 |  * Tabs
142 |  */
143 | .woocommerce-tabs {
144 | 
145 | 	ul.tabs {
146 | 		list-style: none;
147 | 		margin: 0;
148 | 		padding: 0;
149 | 		text-align: left;
150 | 
151 | 		li {
152 | 			display: block;
153 | 			margin: 0;
154 | 			position: relative;
155 | 
156 | 			a {
157 | 				padding: 1em 0;
158 | 				display: block;
159 | 			}
160 | 		}
161 | 	}
162 | 
163 | 	.panel {
164 | 
165 | 		h2:first-of-type {
166 | 			margin-bottom: 1em;
167 | 		}
168 | 	}
169 | }
170 | 
171 | /**
172 |  * Password strength meter
173 |  */
174 | .woocommerce-password-strength {
175 | 	text-align: right;
176 | 
177 | 	&.strong {
178 | 		color: $woocommerce__color-success;
179 | 	}
180 | 
181 | 	&.short {
182 | 		color: $woocommerce__color-error;
183 | 	}
184 | 
185 | 	&.bad {
186 | 		color: $woocommerce__color-error;
187 | 	}
188 | 
189 | 	&.good {
190 | 		color: $woocommerce__color-info;
191 | 	}
192 | }
193 | 
194 | /**
195 |  * Forms
196 |  */
197 | .form-row {
198 | 
199 | 	&.woocommerce-validated {
200 | 
201 | 		input.input-text {
202 | 			box-shadow: inset 2px 0 0 $woocommerce__color-success;
203 | 		}
204 | 	}
205 | 
206 | 	&.woocommerce-invalid {
207 | 
208 | 		input.input-text {
209 | 			box-shadow: inset 2px 0 0 $woocommerce__color-error;
210 | 		}
211 | 	}
212 | }
213 | 
214 | .required {
215 | 	color: #f00;
216 | }
217 | 
218 | /**
219 |  * Notices
220 |  */
221 | .woocommerce-message,
222 | .woocommerce-info,
223 | .woocommerce-error,
224 | .woocommerce-noreviews,
225 | p.no-comments {
226 | 	background-color: $woocommerce__color-success;
227 | 	clear: both;
228 | }
229 | 
230 | .woocommerce-info,
231 | .woocommerce-noreviews,
232 | p.no-comments {
233 | 	background-color: $woocommerce__color-info;
234 | }
235 | 
236 | .woocommerce-error {
237 | 	background-color: $woocommerce__color-error;
238 | }
239 | 
240 | .demo_store {
241 | 	position: fixed;
242 | 	left: 0;
243 | 	bottom: 0;
244 | 	right: 0;
245 | 	margin: 0;
246 | 	padding: 1em;
247 | 	background-color: $woocommerce__color-info;
248 | 	z-index: 9999;
249 | }
250 | 
251 | @media screen and (min-width: 48em) {
252 | 
253 | 	/**
254 | 	 * Header cart
255 | 	 */
256 | 	.site-header-cart {
257 | 
258 | 		.widget_shopping_cart {
259 | 			position: absolute;
260 | 			top: 100%;
261 | 			width: 100%;
262 | 			z-index: 999999;
263 | 			left: -999em;
264 | 			display: block;
265 | 			box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
266 | 		}
267 | 
268 | 		&:hover,
269 | 		&.focus {
270 | 
271 | 			.widget_shopping_cart {
272 | 				left: 0;
273 | 				display: block;
274 | 			}
275 | 		}
276 | 	}
277 | }
278 | 


--------------------------------------------------------------------------------
/sass/plugins/woocommerce/_products.scss:
--------------------------------------------------------------------------------
 1 | ul.products {
 2 | 	margin: 0;
 3 | 	padding: 0;
 4 | 
 5 | 	li.product {
 6 | 		list-style: none;
 7 | 		position: relative;
 8 | 		margin-bottom: 2em;
 9 | 
10 | 		img {
11 | 			display: block;
12 | 		}
13 | 
14 | 		.button {
15 | 			display: block;
16 | 		}
17 | 	}
18 | }
19 | 
20 | @media screen and (min-width: 48em) {
21 | 
22 | 	ul.products {
23 | 
24 | 		li.product {
25 | 
26 | 			@include column-width(3);
27 | 			float: left;
28 | 			margin-right: $columns__margin;
29 | 
30 | 			&.first {
31 | 				clear: both;
32 | 			}
33 | 
34 | 			&.last {
35 | 				margin-right: 0;
36 | 			}
37 | 		}
38 | 	}
39 | 
40 | 	ul.products.columns-1 {
41 | 
42 | 		li.product {
43 | 			float: none;
44 | 			width: 100%;
45 | 		}
46 | 
47 | 	}
48 | 
49 | 	@for $i from 2 through 6 {
50 | 
51 | 		ul.products.columns-#{$i} {
52 | 
53 | 			li.product {
54 | 
55 | 				@include column-width( $i );
56 | 			}
57 | 
58 | 		}
59 | 	}
60 | }
61 | 


--------------------------------------------------------------------------------
/sass/plugins/woocommerce/_single-product.scss:
--------------------------------------------------------------------------------
 1 | .single-product {
 2 | 
 3 | 	div.product {
 4 | 		position: relative;
 5 | 
 6 | 		.woocommerce-product-gallery {
 7 | 			position: relative;
 8 | 			float: left;
 9 | 
10 | 			.woocommerce-product-gallery__trigger {
11 | 				position: absolute;
12 | 				top: 2em;
13 | 				right: 1em;
14 | 				display: block;
15 | 				z-index: 99;
16 | 			}
17 | 
18 | 			.flex-viewport {
19 | 				margin-bottom: 1em;
20 | 			}
21 | 
22 | 			.flex-control-thumbs {
23 | 				margin: 0;
24 | 				padding: 0;
25 | 
26 | 				li {
27 | 					list-style: none;
28 | 					cursor: pointer;
29 | 					float: left;
30 | 
31 | 					img {
32 | 						opacity: 0.5;
33 | 
34 | 						&.flex-active {
35 | 							opacity: 1;
36 | 						}
37 | 					}
38 | 
39 | 					&:hover {
40 | 
41 | 						img {
42 | 							opacity: 1;
43 | 						}
44 | 					}
45 | 				}
46 | 			}
47 | 
48 | 			@for $i from 2 through 5 {
49 | 
50 | 				&.woocommerce-product-gallery--columns-#{$i} {
51 | 
52 | 					.flex-control-thumbs {
53 | 
54 | 						li {
55 | 
56 | 							@include column-width($i);
57 | 
58 | 							&:nth-child(#{$i}n) {
59 | 								margin-right: 0;
60 | 							}
61 | 
62 | 							&:nth-child(#{$i}n+1) {
63 | 								clear: both;
64 | 							}
65 | 						}
66 | 					}
67 | 				}
68 | 			}
69 | 		}
70 | 	}
71 | }
72 | 
73 | .stock {
74 | 
75 | 	&:empty::before {
76 | 		display: none;
77 | 	}
78 | 
79 | 	&.in-stock {
80 | 		color: $woocommerce__color-success;
81 | 	}
82 | 
83 | 	&.out-of-stock {
84 | 		color: $woocommerce__color-error;
85 | 	}
86 | }
87 | 


--------------------------------------------------------------------------------
/sass/plugins/woocommerce/_tables.scss:
--------------------------------------------------------------------------------
 1 | table.shop_table_responsive {
 2 | 
 3 | 	thead {
 4 | 		display: none;
 5 | 	}
 6 | 
 7 | 	tbody {
 8 | 
 9 | 		th {
10 | 			display: none;
11 | 		}
12 | 	}
13 | 
14 | 	tr {
15 | 
16 | 		td {
17 | 			display: block;
18 | 			text-align: right;
19 | 			clear: both;
20 | 
21 | 			&::before {
22 | 				content: attr(data-title) ": ";
23 | 				float: left;
24 | 			}
25 | 
26 | 			&.product-remove {
27 | 
28 | 				a {
29 | 					text-align: left;
30 | 				}
31 | 
32 | 				&::before {
33 | 					display: none;
34 | 				}
35 | 			}
36 | 
37 | 			&.actions,
38 | 			&.download-actions {
39 | 
40 | 				&::before {
41 | 					display: none;
42 | 				}
43 | 			}
44 | 
45 | 			&.download-actions {
46 | 
47 | 				.button {
48 | 					display: block;
49 | 					text-align: center;
50 | 				}
51 | 			}
52 | 		}
53 | 	}
54 | }
55 | 
56 | @media screen and (min-width: 48em) {
57 | 
58 | 	table.shop_table_responsive {
59 | 
60 | 		thead {
61 | 			display: table-header-group;
62 | 		}
63 | 
64 | 		tbody {
65 | 
66 | 			th {
67 | 				display: table-cell;
68 | 			}
69 | 		}
70 | 
71 | 		tr {
72 | 
73 | 			th,
74 | 			td {
75 | 				text-align: left;
76 | 			}
77 | 
78 | 			td {
79 | 				display: table-cell;
80 | 
81 | 				&::before {
82 | 					display: none;
83 | 				}
84 | 			}
85 | 		}
86 | 	}
87 | }
88 | 


--------------------------------------------------------------------------------
/sass/plugins/woocommerce/_widgets.scss:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * WooCommerce Price Filter
 3 |  */
 4 | .widget_price_filter {
 5 | 
 6 | 	.price_slider {
 7 | 		margin-bottom: 1.5em;
 8 | 	}
 9 | 
10 | 	.price_slider_amount {
11 | 		text-align: right;
12 | 		line-height: 2.4;
13 | 
14 | 		.button {
15 | 			float: left;
16 | 		}
17 | 	}
18 | 
19 | 	.ui-slider {
20 | 		position: relative;
21 | 		text-align: left;
22 | 	}
23 | 
24 | 	.ui-slider .ui-slider-handle {
25 | 		position: absolute;
26 | 		z-index: 2;
27 | 		width: 1em;
28 | 		height: 1em;
29 | 		cursor: ew-resize;
30 | 		outline: none;
31 | 		background: $color__link;
32 | 		box-sizing: border-box;
33 | 		margin-top: -0.25em;
34 | 		opacity: 1;
35 | 
36 | 		&:last-child {
37 | 			margin-left: -1em;
38 | 		}
39 | 
40 | 		&:hover,
41 | 		&.ui-state-active {
42 | 			box-shadow: 0 0 0 0.25em rgba(#000, 0.1);
43 | 		}
44 | 	}
45 | 
46 | 	.ui-slider .ui-slider-range {
47 | 		position: absolute;
48 | 		z-index: 1;
49 | 		display: block;
50 | 		border: 0;
51 | 		background: $color__link;
52 | 	}
53 | 
54 | 	.price_slider_wrapper .ui-widget-content {
55 | 		background: rgba(0, 0, 0, 0.1);
56 | 	}
57 | 
58 | 	.ui-slider-horizontal {
59 | 		height: 0.5em;
60 | 	}
61 | 
62 | 	.ui-slider-horizontal .ui-slider-range {
63 | 		height: 100%;
64 | 	}
65 | }
66 | 


--------------------------------------------------------------------------------
/sass/style.scss:
--------------------------------------------------------------------------------
  1 | /*!
  2 | Theme Name: _s
  3 | Theme URI: https://underscores.me/
  4 | Author: Automattic
  5 | Author URI: https://automattic.com/
  6 | Description: Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
  7 | Version: 1.0.0
  8 | Tested up to: 5.4
  9 | Requires PHP: 5.6
 10 | License: GNU General Public License v2 or later
 11 | License URI: LICENSE
 12 | Text Domain: _s
 13 | Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 14 | 
 15 | This theme, like WordPress, is licensed under the GPL.
 16 | Use it to make something cool, have fun, and share what you've learned.
 17 | 
 18 | _s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
 19 | Underscores is distributed under the terms of the GNU GPL v2 or later.
 20 | 
 21 | Normalizing styles have been helped along thanks to the fine work of
 22 | Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
 23 | */
 24 | 
 25 | /*--------------------------------------------------------------
 26 | >>> TABLE OF CONTENTS:
 27 | ----------------------------------------------------------------
 28 | # Generic
 29 | 	- Normalize
 30 | 	- Box sizing
 31 | # Base
 32 | 	- Typography
 33 | 	- Elements
 34 | 	- Links
 35 | 	- Forms
 36 | ## Layouts
 37 | # Components
 38 | 	- Navigation
 39 | 	- Posts and pages
 40 | 	- Comments
 41 | 	- Widgets
 42 | 	- Media
 43 | 	- Captions
 44 | 	- Galleries
 45 | # plugins
 46 | 	- Jetpack infinite scroll
 47 | # Utilities
 48 | 	- Accessibility
 49 | 	- Alignments
 50 | 
 51 | --------------------------------------------------------------*/
 52 | 
 53 | // Import variables and mixins.
 54 | @import "abstracts/abstracts";
 55 | 
 56 | /*--------------------------------------------------------------
 57 | # Generic
 58 | --------------------------------------------------------------*/
 59 | 
 60 | /* Normalize
 61 | --------------------------------------------- */
 62 | @import "generic/normalize";
 63 | 
 64 | /* Box sizing
 65 | --------------------------------------------- */
 66 | @import "generic/box-sizing";
 67 | 
 68 | /*--------------------------------------------------------------
 69 | # Base
 70 | --------------------------------------------------------------*/
 71 | @import "base/base";
 72 | 
 73 | /*--------------------------------------------------------------
 74 | # Layouts
 75 | --------------------------------------------------------------*/
 76 | // @import "layouts/content-sidebar"; // Uncomment this line for a sidebar on right side of your content.
 77 | // @import "layouts/sidebar-content"; // Uncomment this line for a sidebar on left side of your content.
 78 | 
 79 | /*--------------------------------------------------------------
 80 | # Components
 81 | --------------------------------------------------------------*/
 82 | @import "components/components";
 83 | 
 84 | /*--------------------------------------------------------------
 85 | # Plugins
 86 | --------------------------------------------------------------*/
 87 | 
 88 | /* Jetpack infinite scroll
 89 | --------------------------------------------- */
 90 | @import "plugins/jetpack/infinite-scroll";
 91 | 
 92 | /*--------------------------------------------------------------
 93 | # Utilities
 94 | --------------------------------------------------------------*/
 95 | 
 96 | /* Accessibility
 97 | --------------------------------------------- */
 98 | @import "utilities/accessibility";
 99 | 
100 | /* Alignments
101 | --------------------------------------------- */
102 | @import "utilities/alignments";
103 | 


--------------------------------------------------------------------------------
/sass/utilities/_accessibility.scss:
--------------------------------------------------------------------------------
 1 | /* Text meant only for screen readers. */
 2 | .screen-reader-text {
 3 | 	border: 0;
 4 | 	clip: rect(1px, 1px, 1px, 1px);
 5 | 	clip-path: inset(50%);
 6 | 	height: 1px;
 7 | 	margin: -1px;
 8 | 	overflow: hidden;
 9 | 	padding: 0;
10 | 	position: absolute !important;
11 | 	width: 1px;
12 | 	word-wrap: normal !important; // Many screen reader and browser combinations announce broken words as they would appear visually.
13 | 
14 | 	&:focus {
15 | 		background-color: $color__background-screen;
16 | 		border-radius: 3px;
17 | 		box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
18 | 		clip: auto !important;
19 | 		clip-path: none;
20 | 		color: $color__text-screen;
21 | 		display: block;
22 | 		font-size: 0.875rem;
23 | 		font-weight: 700;
24 | 		height: auto;
25 | 		left: 5px;
26 | 		line-height: normal;
27 | 		padding: 15px 23px 14px;
28 | 		text-decoration: none;
29 | 		top: 5px;
30 | 		width: auto;
31 | 		z-index: 100000; // Above WP toolbar.
32 | 	}
33 | }
34 | 
35 | /* Do not show the outline on the skip link target. */
36 | #primary[tabindex="-1"]:focus {
37 | 	outline: 0;
38 | }
39 | 


--------------------------------------------------------------------------------
/sass/utilities/_alignments.scss:
--------------------------------------------------------------------------------
 1 | .alignleft {
 2 | 
 3 | 	/*rtl:ignore*/
 4 | 	float: left;
 5 | 
 6 | 	/*rtl:ignore*/
 7 | 	margin-right: 1.5em;
 8 | 	margin-bottom: 1.5em;
 9 | }
10 | 
11 | .alignright {
12 | 
13 | 	/*rtl:ignore*/
14 | 	float: right;
15 | 
16 | 	/*rtl:ignore*/
17 | 	margin-left: 1.5em;
18 | 	margin-bottom: 1.5em;
19 | }
20 | 
21 | .aligncenter {
22 | 	clear: both;
23 | 
24 | 	@include center-block;
25 | 
26 | 	margin-bottom: 1.5em;
27 | }
28 | 


--------------------------------------------------------------------------------
/sass/woocommerce.scss:
--------------------------------------------------------------------------------
 1 | /*
 2 | Theme Name: _s
 3 | 
 4 | WooCommerce styles override
 5 | */
 6 | 
 7 | // WooCommerce color variables
 8 | $woocommerce__color-error: #e2401c;
 9 | $woocommerce__color-success: #0f834d;
10 | $woocommerce__color-info: #3d9cd2;
11 | 
12 | // Import variables and mixins
13 | @import "abstracts/abstracts";
14 | 
15 | /**
16 |  * Shop tables
17 |  */
18 | @import "plugins/woocommerce/tables";
19 | 
20 | /**
21 |  * Products
22 |  */
23 | @import "plugins/woocommerce/products";
24 | 
25 | /**
26 |  * Single product
27 |  */
28 | @import "plugins/woocommerce/single-product";
29 | 
30 | /**
31 |  * Checkout
32 |  */
33 | @import "plugins/woocommerce/checkout";
34 | 
35 | /**
36 |  * General WooCommerce components
37 |  */
38 | @import "plugins/woocommerce/components";
39 | 
40 | /**
41 |  * WooCommerce widgets
42 |  */
43 | @import "plugins/woocommerce/widgets";
44 | 


--------------------------------------------------------------------------------
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Automattic/_s/1c59bd66ea61d6e8e7ca796e76153c1e12779001/screenshot.png


--------------------------------------------------------------------------------
/search.php:
--------------------------------------------------------------------------------
 1 | 
12 | 
13 | 	
14 | 15 | 16 | 17 | 25 | 26 | 48 | 49 |
50 | 51 | 14 | 15 | 18 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | '' . esc_html__( 'Previous:', '_s' ) . ' %title', 24 | 'next_text' => '' . esc_html__( 'Next:', '_s' ) . ' %title', 25 | ) 26 | ); 27 | 28 | // If comments are open or we have at least one comment, load up the comment template. 29 | if ( comments_open() || get_comments_number() ) : 30 | comments_template(); 31 | endif; 32 | 33 | endwhile; // End of the loop. 34 | ?> 35 | 36 |
37 | 38 | _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for. 7 | Version: 1.0.0 8 | Tested up to: 5.4 9 | Requires PHP: 5.6 10 | License: GNU General Public License v2 or later 11 | License URI: LICENSE 12 | Text Domain: _s 13 | Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready 14 | 15 | This theme, like WordPress, is licensed under the GPL. 16 | Use it to make something cool, have fun, and share what you've learned. 17 | 18 | _s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc. 19 | Underscores is distributed under the terms of the GNU GPL v2 or later. 20 | 21 | Normalizing styles have been helped along thanks to the fine work of 22 | Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ 23 | */ 24 | 25 | /*-------------------------------------------------------------- 26 | >>> TABLE OF CONTENTS: 27 | ---------------------------------------------------------------- 28 | # Generic 29 | - Normalize 30 | - Box sizing 31 | # Base 32 | - Typography 33 | - Elements 34 | - Links 35 | - Forms 36 | ## Layouts 37 | # Components 38 | - Navigation 39 | - Posts and pages 40 | - Comments 41 | - Widgets 42 | - Media 43 | - Captions 44 | - Galleries 45 | # plugins 46 | - Jetpack infinite scroll 47 | # Utilities 48 | - Accessibility 49 | - Alignments 50 | 51 | --------------------------------------------------------------*/ 52 | 53 | /*-------------------------------------------------------------- 54 | # Generic 55 | --------------------------------------------------------------*/ 56 | 57 | /* Normalize 58 | --------------------------------------------- */ 59 | 60 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ 61 | 62 | /* Document 63 | ========================================================================== */ 64 | 65 | /** 66 | * 1. Correct the line height in all browsers. 67 | * 2. Prevent adjustments of font size after orientation changes in iOS. 68 | */ 69 | html { 70 | line-height: 1.15; 71 | -webkit-text-size-adjust: 100%; 72 | } 73 | 74 | /* Sections 75 | ========================================================================== */ 76 | 77 | /** 78 | * Remove the margin in all browsers. 79 | */ 80 | body { 81 | margin: 0; 82 | } 83 | 84 | /** 85 | * Render the `main` element consistently in IE. 86 | */ 87 | main { 88 | display: block; 89 | } 90 | 91 | /** 92 | * Correct the font size and margin on `h1` elements within `section` and 93 | * `article` contexts in Chrome, Firefox, and Safari. 94 | */ 95 | h1 { 96 | font-size: 2em; 97 | margin: 0.67em 0; 98 | } 99 | 100 | /* Grouping content 101 | ========================================================================== */ 102 | 103 | /** 104 | * 1. Add the correct box sizing in Firefox. 105 | * 2. Show the overflow in Edge and IE. 106 | */ 107 | hr { 108 | box-sizing: content-box; 109 | height: 0; 110 | overflow: visible; 111 | } 112 | 113 | /** 114 | * 1. Correct the inheritance and scaling of font size in all browsers. 115 | * 2. Correct the odd `em` font sizing in all browsers. 116 | */ 117 | pre { 118 | font-family: monospace, monospace; 119 | font-size: 1em; 120 | } 121 | 122 | /* Text-level semantics 123 | ========================================================================== */ 124 | 125 | /** 126 | * Remove the gray background on active links in IE 10. 127 | */ 128 | a { 129 | background-color: transparent; 130 | } 131 | 132 | /** 133 | * 1. Remove the bottom border in Chrome 57- 134 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 135 | */ 136 | abbr[title] { 137 | border-bottom: none; 138 | text-decoration: underline; 139 | text-decoration: underline dotted; 140 | } 141 | 142 | /** 143 | * Add the correct font weight in Chrome, Edge, and Safari. 144 | */ 145 | b, 146 | strong { 147 | font-weight: bolder; 148 | } 149 | 150 | /** 151 | * 1. Correct the inheritance and scaling of font size in all browsers. 152 | * 2. Correct the odd `em` font sizing in all browsers. 153 | */ 154 | code, 155 | kbd, 156 | samp { 157 | font-family: monospace, monospace; 158 | font-size: 1em; 159 | } 160 | 161 | /** 162 | * Add the correct font size in all browsers. 163 | */ 164 | small { 165 | font-size: 80%; 166 | } 167 | 168 | /** 169 | * Prevent `sub` and `sup` elements from affecting the line height in 170 | * all browsers. 171 | */ 172 | sub, 173 | sup { 174 | font-size: 75%; 175 | line-height: 0; 176 | position: relative; 177 | vertical-align: baseline; 178 | } 179 | 180 | sub { 181 | bottom: -0.25em; 182 | } 183 | 184 | sup { 185 | top: -0.5em; 186 | } 187 | 188 | /* Embedded content 189 | ========================================================================== */ 190 | 191 | /** 192 | * Remove the border on images inside links in IE 10. 193 | */ 194 | img { 195 | border-style: none; 196 | } 197 | 198 | /* Forms 199 | ========================================================================== */ 200 | 201 | /** 202 | * 1. Change the font styles in all browsers. 203 | * 2. Remove the margin in Firefox and Safari. 204 | */ 205 | button, 206 | input, 207 | optgroup, 208 | select, 209 | textarea { 210 | font-family: inherit; 211 | font-size: 100%; 212 | line-height: 1.15; 213 | margin: 0; 214 | } 215 | 216 | /** 217 | * Show the overflow in IE. 218 | * 1. Show the overflow in Edge. 219 | */ 220 | button, 221 | input { 222 | overflow: visible; 223 | } 224 | 225 | /** 226 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 227 | * 1. Remove the inheritance of text transform in Firefox. 228 | */ 229 | button, 230 | select { 231 | text-transform: none; 232 | } 233 | 234 | /** 235 | * Correct the inability to style clickable types in iOS and Safari. 236 | */ 237 | button, 238 | [type="button"], 239 | [type="reset"], 240 | [type="submit"] { 241 | -webkit-appearance: button; 242 | } 243 | 244 | /** 245 | * Remove the inner border and padding in Firefox. 246 | */ 247 | button::-moz-focus-inner, 248 | [type="button"]::-moz-focus-inner, 249 | [type="reset"]::-moz-focus-inner, 250 | [type="submit"]::-moz-focus-inner { 251 | border-style: none; 252 | padding: 0; 253 | } 254 | 255 | /** 256 | * Restore the focus styles unset by the previous rule. 257 | */ 258 | button:-moz-focusring, 259 | [type="button"]:-moz-focusring, 260 | [type="reset"]:-moz-focusring, 261 | [type="submit"]:-moz-focusring { 262 | outline: 1px dotted ButtonText; 263 | } 264 | 265 | /** 266 | * Correct the padding in Firefox. 267 | */ 268 | fieldset { 269 | padding: 0.35em 0.75em 0.625em; 270 | } 271 | 272 | /** 273 | * 1. Correct the text wrapping in Edge and IE. 274 | * 2. Correct the color inheritance from `fieldset` elements in IE. 275 | * 3. Remove the padding so developers are not caught out when they zero out 276 | * `fieldset` elements in all browsers. 277 | */ 278 | legend { 279 | box-sizing: border-box; 280 | color: inherit; 281 | display: table; 282 | max-width: 100%; 283 | padding: 0; 284 | white-space: normal; 285 | } 286 | 287 | /** 288 | * Add the correct vertical alignment in Chrome, Firefox, and Opera. 289 | */ 290 | progress { 291 | vertical-align: baseline; 292 | } 293 | 294 | /** 295 | * Remove the default vertical scrollbar in IE 10+. 296 | */ 297 | textarea { 298 | overflow: auto; 299 | } 300 | 301 | /** 302 | * 1. Add the correct box sizing in IE 10. 303 | * 2. Remove the padding in IE 10. 304 | */ 305 | [type="checkbox"], 306 | [type="radio"] { 307 | box-sizing: border-box; 308 | padding: 0; 309 | } 310 | 311 | /** 312 | * Correct the cursor style of increment and decrement buttons in Chrome. 313 | */ 314 | [type="number"]::-webkit-inner-spin-button, 315 | [type="number"]::-webkit-outer-spin-button { 316 | height: auto; 317 | } 318 | 319 | /** 320 | * 1. Correct the odd appearance in Chrome and Safari. 321 | * 2. Correct the outline style in Safari. 322 | */ 323 | [type="search"] { 324 | -webkit-appearance: textfield; 325 | outline-offset: -2px; 326 | } 327 | 328 | /** 329 | * Remove the inner padding in Chrome and Safari on macOS. 330 | */ 331 | [type="search"]::-webkit-search-decoration { 332 | -webkit-appearance: none; 333 | } 334 | 335 | /** 336 | * 1. Correct the inability to style clickable types in iOS and Safari. 337 | * 2. Change font properties to `inherit` in Safari. 338 | */ 339 | ::-webkit-file-upload-button { 340 | -webkit-appearance: button; 341 | font: inherit; 342 | } 343 | 344 | /* Interactive 345 | ========================================================================== */ 346 | 347 | /* 348 | * Add the correct display in Edge, IE 10+, and Firefox. 349 | */ 350 | details { 351 | display: block; 352 | } 353 | 354 | /* 355 | * Add the correct display in all browsers. 356 | */ 357 | summary { 358 | display: list-item; 359 | } 360 | 361 | /* Misc 362 | ========================================================================== */ 363 | 364 | /** 365 | * Add the correct display in IE 10+. 366 | */ 367 | template { 368 | display: none; 369 | } 370 | 371 | /** 372 | * Add the correct display in IE 10. 373 | */ 374 | [hidden] { 375 | display: none; 376 | } 377 | 378 | /* Box sizing 379 | --------------------------------------------- */ 380 | 381 | /* Inherit box-sizing to more easily change it's value on a component level. 382 | @link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ 383 | *, 384 | *::before, 385 | *::after { 386 | box-sizing: inherit; 387 | } 388 | 389 | html { 390 | box-sizing: border-box; 391 | } 392 | 393 | /*-------------------------------------------------------------- 394 | # Base 395 | --------------------------------------------------------------*/ 396 | 397 | /* Typography 398 | --------------------------------------------- */ 399 | body, 400 | button, 401 | input, 402 | select, 403 | optgroup, 404 | textarea { 405 | color: #404040; 406 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 407 | font-size: 1rem; 408 | line-height: 1.5; 409 | } 410 | 411 | h1, 412 | h2, 413 | h3, 414 | h4, 415 | h5, 416 | h6 { 417 | clear: both; 418 | } 419 | 420 | p { 421 | margin-bottom: 1.5em; 422 | } 423 | 424 | dfn, 425 | cite, 426 | em, 427 | i { 428 | font-style: italic; 429 | } 430 | 431 | blockquote { 432 | margin: 0 1.5em; 433 | } 434 | 435 | address { 436 | margin: 0 0 1.5em; 437 | } 438 | 439 | pre { 440 | background: #eee; 441 | font-family: "Courier 10 Pitch", courier, monospace; 442 | line-height: 1.6; 443 | margin-bottom: 1.6em; 444 | max-width: 100%; 445 | overflow: auto; 446 | padding: 1.6em; 447 | } 448 | 449 | code, 450 | kbd, 451 | tt, 452 | var { 453 | font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; 454 | } 455 | 456 | abbr, 457 | acronym { 458 | border-bottom: 1px dotted #666; 459 | cursor: help; 460 | } 461 | 462 | mark, 463 | ins { 464 | background: #fff9c0; 465 | text-decoration: none; 466 | } 467 | 468 | big { 469 | font-size: 125%; 470 | } 471 | 472 | /* Elements 473 | --------------------------------------------- */ 474 | body { 475 | background: #fff; 476 | } 477 | 478 | hr { 479 | background-color: #ccc; 480 | border: 0; 481 | height: 1px; 482 | margin-bottom: 1.5em; 483 | } 484 | 485 | ul, 486 | ol { 487 | margin: 0 3em 1.5em 0; 488 | } 489 | 490 | ul { 491 | list-style: disc; 492 | } 493 | 494 | ol { 495 | list-style: decimal; 496 | } 497 | 498 | li > ul, 499 | li > ol { 500 | margin-bottom: 0; 501 | margin-right: 1.5em; 502 | } 503 | 504 | dt { 505 | font-weight: 700; 506 | } 507 | 508 | dd { 509 | margin: 0 1.5em 1.5em; 510 | } 511 | 512 | /* Make sure embeds and iframes fit their containers. */ 513 | embed, 514 | iframe, 515 | object { 516 | max-width: 100%; 517 | } 518 | 519 | img { 520 | height: auto; 521 | max-width: 100%; 522 | } 523 | 524 | figure { 525 | margin: 1em 0; 526 | } 527 | 528 | table { 529 | margin: 0 0 1.5em; 530 | width: 100%; 531 | } 532 | 533 | /* Links 534 | --------------------------------------------- */ 535 | a { 536 | color: #4169e1; 537 | } 538 | 539 | a:visited { 540 | color: #800080; 541 | } 542 | 543 | a:hover, 544 | a:focus, 545 | a:active { 546 | color: #191970; 547 | } 548 | 549 | a:focus { 550 | outline: thin dotted; 551 | } 552 | 553 | a:hover, 554 | a:active { 555 | outline: 0; 556 | } 557 | 558 | /* Forms 559 | --------------------------------------------- */ 560 | button, 561 | input[type="button"], 562 | input[type="reset"], 563 | input[type="submit"] { 564 | border: 1px solid; 565 | border-color: #ccc #ccc #bbb; 566 | border-radius: 3px; 567 | background: #e6e6e6; 568 | color: rgba(0, 0, 0, 0.8); 569 | line-height: 1; 570 | padding: 0.6em 1em 0.4em; 571 | } 572 | 573 | button:hover, 574 | input[type="button"]:hover, 575 | input[type="reset"]:hover, 576 | input[type="submit"]:hover { 577 | border-color: #ccc #bbb #aaa; 578 | } 579 | 580 | button:active, 581 | button:focus, 582 | input[type="button"]:active, 583 | input[type="button"]:focus, 584 | input[type="reset"]:active, 585 | input[type="reset"]:focus, 586 | input[type="submit"]:active, 587 | input[type="submit"]:focus { 588 | border-color: #aaa #bbb #bbb; 589 | } 590 | 591 | input[type="text"], 592 | input[type="email"], 593 | input[type="url"], 594 | input[type="password"], 595 | input[type="search"], 596 | input[type="number"], 597 | input[type="tel"], 598 | input[type="range"], 599 | input[type="date"], 600 | input[type="month"], 601 | input[type="week"], 602 | input[type="time"], 603 | input[type="datetime"], 604 | input[type="datetime-local"], 605 | input[type="color"], 606 | textarea { 607 | color: #666; 608 | border: 1px solid #ccc; 609 | border-radius: 3px; 610 | padding: 3px; 611 | } 612 | 613 | input[type="text"]:focus, 614 | input[type="email"]:focus, 615 | input[type="url"]:focus, 616 | input[type="password"]:focus, 617 | input[type="search"]:focus, 618 | input[type="number"]:focus, 619 | input[type="tel"]:focus, 620 | input[type="range"]:focus, 621 | input[type="date"]:focus, 622 | input[type="month"]:focus, 623 | input[type="week"]:focus, 624 | input[type="time"]:focus, 625 | input[type="datetime"]:focus, 626 | input[type="datetime-local"]:focus, 627 | input[type="color"]:focus, 628 | textarea:focus { 629 | color: #111; 630 | } 631 | 632 | select { 633 | border: 1px solid #ccc; 634 | } 635 | 636 | textarea { 637 | width: 100%; 638 | } 639 | 640 | /*-------------------------------------------------------------- 641 | # Layouts 642 | --------------------------------------------------------------*/ 643 | 644 | /*-------------------------------------------------------------- 645 | # Components 646 | --------------------------------------------------------------*/ 647 | 648 | /* Navigation 649 | --------------------------------------------- */ 650 | .main-navigation { 651 | display: block; 652 | width: 100%; 653 | } 654 | 655 | .main-navigation ul { 656 | display: none; 657 | list-style: none; 658 | margin: 0; 659 | padding-right: 0; 660 | } 661 | 662 | .main-navigation ul ul { 663 | box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); 664 | float: right; 665 | position: absolute; 666 | top: 100%; 667 | right: -999em; 668 | z-index: 99999; 669 | } 670 | 671 | .main-navigation ul ul ul { 672 | right: -999em; 673 | top: 0; 674 | } 675 | 676 | .main-navigation ul ul li:hover > ul, 677 | .main-navigation ul ul li.focus > ul { 678 | display: block; 679 | right: auto; 680 | } 681 | 682 | .main-navigation ul ul a { 683 | width: 200px; 684 | } 685 | 686 | .main-navigation ul li:hover > ul, 687 | .main-navigation ul li.focus > ul { 688 | right: auto; 689 | } 690 | 691 | .main-navigation li { 692 | position: relative; 693 | } 694 | 695 | .main-navigation a { 696 | display: block; 697 | text-decoration: none; 698 | } 699 | 700 | /* Small menu. */ 701 | .menu-toggle, 702 | .main-navigation.toggled ul { 703 | display: block; 704 | } 705 | 706 | @media screen and (min-width: 37.5em) { 707 | 708 | .menu-toggle { 709 | display: none; 710 | } 711 | 712 | .main-navigation ul { 713 | display: flex; 714 | } 715 | } 716 | 717 | .site-main .comment-navigation, 718 | .site-main 719 | .posts-navigation, 720 | .site-main 721 | .post-navigation { 722 | margin: 0 0 1.5em; 723 | } 724 | 725 | .comment-navigation .nav-links, 726 | .posts-navigation .nav-links, 727 | .post-navigation .nav-links { 728 | display: flex; 729 | } 730 | 731 | .comment-navigation .nav-previous, 732 | .posts-navigation .nav-previous, 733 | .post-navigation .nav-previous { 734 | flex: 1 0 50%; 735 | } 736 | 737 | .comment-navigation .nav-next, 738 | .posts-navigation .nav-next, 739 | .post-navigation .nav-next { 740 | text-align: end; 741 | flex: 1 0 50%; 742 | } 743 | 744 | /* Posts and pages 745 | --------------------------------------------- */ 746 | .sticky { 747 | display: block; 748 | } 749 | 750 | .post, 751 | .page { 752 | margin: 0 0 1.5em; 753 | } 754 | 755 | .updated:not(.published) { 756 | display: none; 757 | } 758 | 759 | .page-content, 760 | .entry-content, 761 | .entry-summary { 762 | margin: 1.5em 0 0; 763 | } 764 | 765 | .page-links { 766 | clear: both; 767 | margin: 0 0 1.5em; 768 | } 769 | 770 | /* Comments 771 | --------------------------------------------- */ 772 | .comment-content a { 773 | word-wrap: break-word; 774 | } 775 | 776 | .bypostauthor { 777 | display: block; 778 | } 779 | 780 | /* Widgets 781 | --------------------------------------------- */ 782 | .widget { 783 | margin: 0 0 1.5em; 784 | } 785 | 786 | .widget select { 787 | max-width: 100%; 788 | } 789 | 790 | /* Media 791 | --------------------------------------------- */ 792 | .page-content .wp-smiley, 793 | .entry-content .wp-smiley, 794 | .comment-content .wp-smiley { 795 | border: none; 796 | margin-bottom: 0; 797 | margin-top: 0; 798 | padding: 0; 799 | } 800 | 801 | /* Make sure logo link wraps around logo image. */ 802 | .custom-logo-link { 803 | display: inline-block; 804 | } 805 | 806 | /* Captions 807 | --------------------------------------------- */ 808 | .wp-caption { 809 | margin-bottom: 1.5em; 810 | max-width: 100%; 811 | } 812 | 813 | .wp-caption img[class*="wp-image-"] { 814 | display: block; 815 | margin-right: auto; 816 | margin-left: auto; 817 | } 818 | 819 | .wp-caption .wp-caption-text { 820 | margin: 0.8075em 0; 821 | } 822 | 823 | .wp-caption-text { 824 | text-align: center; 825 | } 826 | 827 | /* Galleries 828 | --------------------------------------------- */ 829 | .gallery { 830 | margin-bottom: 1.5em; 831 | display: grid; 832 | grid-gap: 1.5em; 833 | } 834 | 835 | .gallery-item { 836 | display: inline-block; 837 | text-align: center; 838 | width: 100%; 839 | } 840 | 841 | .gallery-columns-2 { 842 | grid-template-columns: repeat(2, 1fr); 843 | } 844 | 845 | .gallery-columns-3 { 846 | grid-template-columns: repeat(3, 1fr); 847 | } 848 | 849 | .gallery-columns-4 { 850 | grid-template-columns: repeat(4, 1fr); 851 | } 852 | 853 | .gallery-columns-5 { 854 | grid-template-columns: repeat(5, 1fr); 855 | } 856 | 857 | .gallery-columns-6 { 858 | grid-template-columns: repeat(6, 1fr); 859 | } 860 | 861 | .gallery-columns-7 { 862 | grid-template-columns: repeat(7, 1fr); 863 | } 864 | 865 | .gallery-columns-8 { 866 | grid-template-columns: repeat(8, 1fr); 867 | } 868 | 869 | .gallery-columns-9 { 870 | grid-template-columns: repeat(9, 1fr); 871 | } 872 | 873 | .gallery-caption { 874 | display: block; 875 | } 876 | 877 | /*-------------------------------------------------------------- 878 | # Plugins 879 | --------------------------------------------------------------*/ 880 | 881 | /* Jetpack infinite scroll 882 | --------------------------------------------- */ 883 | 884 | /* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */ 885 | .infinite-scroll .posts-navigation, 886 | .infinite-scroll.neverending .site-footer { 887 | display: none; 888 | } 889 | 890 | /* Re-display the Theme Footer when Infinite Scroll has reached its end. */ 891 | .infinity-end.neverending .site-footer { 892 | display: block; 893 | } 894 | 895 | /*-------------------------------------------------------------- 896 | # Utilities 897 | --------------------------------------------------------------*/ 898 | 899 | /* Accessibility 900 | --------------------------------------------- */ 901 | 902 | /* Text meant only for screen readers. */ 903 | .screen-reader-text { 904 | border: 0; 905 | clip: rect(1px, 1px, 1px, 1px); 906 | clip-path: inset(50%); 907 | height: 1px; 908 | margin: -1px; 909 | overflow: hidden; 910 | padding: 0; 911 | position: absolute !important; 912 | width: 1px; 913 | word-wrap: normal !important; 914 | } 915 | 916 | .screen-reader-text:focus { 917 | background-color: #f1f1f1; 918 | border-radius: 3px; 919 | box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); 920 | clip: auto !important; 921 | clip-path: none; 922 | color: #21759b; 923 | display: block; 924 | font-size: 0.875rem; 925 | font-weight: 700; 926 | height: auto; 927 | right: 5px; 928 | line-height: normal; 929 | padding: 15px 23px 14px; 930 | text-decoration: none; 931 | top: 5px; 932 | width: auto; 933 | z-index: 100000; 934 | } 935 | 936 | /* Do not show the outline on the skip link target. */ 937 | #primary[tabindex="-1"]:focus { 938 | outline: 0; 939 | } 940 | 941 | /* Alignments 942 | --------------------------------------------- */ 943 | .alignleft { 944 | float: left; 945 | margin-right: 1.5em; 946 | margin-bottom: 1.5em; 947 | } 948 | 949 | .alignright { 950 | float: right; 951 | margin-left: 1.5em; 952 | margin-bottom: 1.5em; 953 | } 954 | 955 | .aligncenter { 956 | clear: both; 957 | display: block; 958 | margin-right: auto; 959 | margin-left: auto; 960 | margin-bottom: 1.5em; 961 | } 962 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /*! 2 | Theme Name: _s 3 | Theme URI: https://underscores.me/ 4 | Author: Automattic 5 | Author URI: https://automattic.com/ 6 | Description: Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for. 7 | Version: 1.0.0 8 | Tested up to: 5.4 9 | Requires PHP: 5.6 10 | License: GNU General Public License v2 or later 11 | License URI: LICENSE 12 | Text Domain: _s 13 | Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready 14 | 15 | This theme, like WordPress, is licensed under the GPL. 16 | Use it to make something cool, have fun, and share what you've learned. 17 | 18 | _s is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc. 19 | Underscores is distributed under the terms of the GNU GPL v2 or later. 20 | 21 | Normalizing styles have been helped along thanks to the fine work of 22 | Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ 23 | */ 24 | 25 | /*-------------------------------------------------------------- 26 | >>> TABLE OF CONTENTS: 27 | ---------------------------------------------------------------- 28 | # Generic 29 | - Normalize 30 | - Box sizing 31 | # Base 32 | - Typography 33 | - Elements 34 | - Links 35 | - Forms 36 | ## Layouts 37 | # Components 38 | - Navigation 39 | - Posts and pages 40 | - Comments 41 | - Widgets 42 | - Media 43 | - Captions 44 | - Galleries 45 | # plugins 46 | - Jetpack infinite scroll 47 | # Utilities 48 | - Accessibility 49 | - Alignments 50 | 51 | --------------------------------------------------------------*/ 52 | 53 | /*-------------------------------------------------------------- 54 | # Generic 55 | --------------------------------------------------------------*/ 56 | 57 | /* Normalize 58 | --------------------------------------------- */ 59 | 60 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ 61 | 62 | /* Document 63 | ========================================================================== */ 64 | 65 | /** 66 | * 1. Correct the line height in all browsers. 67 | * 2. Prevent adjustments of font size after orientation changes in iOS. 68 | */ 69 | html { 70 | line-height: 1.15; 71 | -webkit-text-size-adjust: 100%; 72 | } 73 | 74 | /* Sections 75 | ========================================================================== */ 76 | 77 | /** 78 | * Remove the margin in all browsers. 79 | */ 80 | body { 81 | margin: 0; 82 | } 83 | 84 | /** 85 | * Render the `main` element consistently in IE. 86 | */ 87 | main { 88 | display: block; 89 | } 90 | 91 | /** 92 | * Correct the font size and margin on `h1` elements within `section` and 93 | * `article` contexts in Chrome, Firefox, and Safari. 94 | */ 95 | h1 { 96 | font-size: 2em; 97 | margin: 0.67em 0; 98 | } 99 | 100 | /* Grouping content 101 | ========================================================================== */ 102 | 103 | /** 104 | * 1. Add the correct box sizing in Firefox. 105 | * 2. Show the overflow in Edge and IE. 106 | */ 107 | hr { 108 | box-sizing: content-box; 109 | height: 0; 110 | overflow: visible; 111 | } 112 | 113 | /** 114 | * 1. Correct the inheritance and scaling of font size in all browsers. 115 | * 2. Correct the odd `em` font sizing in all browsers. 116 | */ 117 | pre { 118 | font-family: monospace, monospace; 119 | font-size: 1em; 120 | } 121 | 122 | /* Text-level semantics 123 | ========================================================================== */ 124 | 125 | /** 126 | * Remove the gray background on active links in IE 10. 127 | */ 128 | a { 129 | background-color: transparent; 130 | } 131 | 132 | /** 133 | * 1. Remove the bottom border in Chrome 57- 134 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 135 | */ 136 | abbr[title] { 137 | border-bottom: none; 138 | text-decoration: underline; 139 | text-decoration: underline dotted; 140 | } 141 | 142 | /** 143 | * Add the correct font weight in Chrome, Edge, and Safari. 144 | */ 145 | b, 146 | strong { 147 | font-weight: bolder; 148 | } 149 | 150 | /** 151 | * 1. Correct the inheritance and scaling of font size in all browsers. 152 | * 2. Correct the odd `em` font sizing in all browsers. 153 | */ 154 | code, 155 | kbd, 156 | samp { 157 | font-family: monospace, monospace; 158 | font-size: 1em; 159 | } 160 | 161 | /** 162 | * Add the correct font size in all browsers. 163 | */ 164 | small { 165 | font-size: 80%; 166 | } 167 | 168 | /** 169 | * Prevent `sub` and `sup` elements from affecting the line height in 170 | * all browsers. 171 | */ 172 | sub, 173 | sup { 174 | font-size: 75%; 175 | line-height: 0; 176 | position: relative; 177 | vertical-align: baseline; 178 | } 179 | 180 | sub { 181 | bottom: -0.25em; 182 | } 183 | 184 | sup { 185 | top: -0.5em; 186 | } 187 | 188 | /* Embedded content 189 | ========================================================================== */ 190 | 191 | /** 192 | * Remove the border on images inside links in IE 10. 193 | */ 194 | img { 195 | border-style: none; 196 | } 197 | 198 | /* Forms 199 | ========================================================================== */ 200 | 201 | /** 202 | * 1. Change the font styles in all browsers. 203 | * 2. Remove the margin in Firefox and Safari. 204 | */ 205 | button, 206 | input, 207 | optgroup, 208 | select, 209 | textarea { 210 | font-family: inherit; 211 | font-size: 100%; 212 | line-height: 1.15; 213 | margin: 0; 214 | } 215 | 216 | /** 217 | * Show the overflow in IE. 218 | * 1. Show the overflow in Edge. 219 | */ 220 | button, 221 | input { 222 | overflow: visible; 223 | } 224 | 225 | /** 226 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 227 | * 1. Remove the inheritance of text transform in Firefox. 228 | */ 229 | button, 230 | select { 231 | text-transform: none; 232 | } 233 | 234 | /** 235 | * Correct the inability to style clickable types in iOS and Safari. 236 | */ 237 | button, 238 | [type="button"], 239 | [type="reset"], 240 | [type="submit"] { 241 | -webkit-appearance: button; 242 | } 243 | 244 | /** 245 | * Remove the inner border and padding in Firefox. 246 | */ 247 | button::-moz-focus-inner, 248 | [type="button"]::-moz-focus-inner, 249 | [type="reset"]::-moz-focus-inner, 250 | [type="submit"]::-moz-focus-inner { 251 | border-style: none; 252 | padding: 0; 253 | } 254 | 255 | /** 256 | * Restore the focus styles unset by the previous rule. 257 | */ 258 | button:-moz-focusring, 259 | [type="button"]:-moz-focusring, 260 | [type="reset"]:-moz-focusring, 261 | [type="submit"]:-moz-focusring { 262 | outline: 1px dotted ButtonText; 263 | } 264 | 265 | /** 266 | * Correct the padding in Firefox. 267 | */ 268 | fieldset { 269 | padding: 0.35em 0.75em 0.625em; 270 | } 271 | 272 | /** 273 | * 1. Correct the text wrapping in Edge and IE. 274 | * 2. Correct the color inheritance from `fieldset` elements in IE. 275 | * 3. Remove the padding so developers are not caught out when they zero out 276 | * `fieldset` elements in all browsers. 277 | */ 278 | legend { 279 | box-sizing: border-box; 280 | color: inherit; 281 | display: table; 282 | max-width: 100%; 283 | padding: 0; 284 | white-space: normal; 285 | } 286 | 287 | /** 288 | * Add the correct vertical alignment in Chrome, Firefox, and Opera. 289 | */ 290 | progress { 291 | vertical-align: baseline; 292 | } 293 | 294 | /** 295 | * Remove the default vertical scrollbar in IE 10+. 296 | */ 297 | textarea { 298 | overflow: auto; 299 | } 300 | 301 | /** 302 | * 1. Add the correct box sizing in IE 10. 303 | * 2. Remove the padding in IE 10. 304 | */ 305 | [type="checkbox"], 306 | [type="radio"] { 307 | box-sizing: border-box; 308 | padding: 0; 309 | } 310 | 311 | /** 312 | * Correct the cursor style of increment and decrement buttons in Chrome. 313 | */ 314 | [type="number"]::-webkit-inner-spin-button, 315 | [type="number"]::-webkit-outer-spin-button { 316 | height: auto; 317 | } 318 | 319 | /** 320 | * 1. Correct the odd appearance in Chrome and Safari. 321 | * 2. Correct the outline style in Safari. 322 | */ 323 | [type="search"] { 324 | -webkit-appearance: textfield; 325 | outline-offset: -2px; 326 | } 327 | 328 | /** 329 | * Remove the inner padding in Chrome and Safari on macOS. 330 | */ 331 | [type="search"]::-webkit-search-decoration { 332 | -webkit-appearance: none; 333 | } 334 | 335 | /** 336 | * 1. Correct the inability to style clickable types in iOS and Safari. 337 | * 2. Change font properties to `inherit` in Safari. 338 | */ 339 | ::-webkit-file-upload-button { 340 | -webkit-appearance: button; 341 | font: inherit; 342 | } 343 | 344 | /* Interactive 345 | ========================================================================== */ 346 | 347 | /* 348 | * Add the correct display in Edge, IE 10+, and Firefox. 349 | */ 350 | details { 351 | display: block; 352 | } 353 | 354 | /* 355 | * Add the correct display in all browsers. 356 | */ 357 | summary { 358 | display: list-item; 359 | } 360 | 361 | /* Misc 362 | ========================================================================== */ 363 | 364 | /** 365 | * Add the correct display in IE 10+. 366 | */ 367 | template { 368 | display: none; 369 | } 370 | 371 | /** 372 | * Add the correct display in IE 10. 373 | */ 374 | [hidden] { 375 | display: none; 376 | } 377 | 378 | /* Box sizing 379 | --------------------------------------------- */ 380 | 381 | /* Inherit box-sizing to more easily change it's value on a component level. 382 | @link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ 383 | *, 384 | *::before, 385 | *::after { 386 | box-sizing: inherit; 387 | } 388 | 389 | html { 390 | box-sizing: border-box; 391 | } 392 | 393 | /*-------------------------------------------------------------- 394 | # Base 395 | --------------------------------------------------------------*/ 396 | 397 | /* Typography 398 | --------------------------------------------- */ 399 | body, 400 | button, 401 | input, 402 | select, 403 | optgroup, 404 | textarea { 405 | color: #404040; 406 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 407 | font-size: 1rem; 408 | line-height: 1.5; 409 | } 410 | 411 | h1, 412 | h2, 413 | h3, 414 | h4, 415 | h5, 416 | h6 { 417 | clear: both; 418 | } 419 | 420 | p { 421 | margin-bottom: 1.5em; 422 | } 423 | 424 | dfn, 425 | cite, 426 | em, 427 | i { 428 | font-style: italic; 429 | } 430 | 431 | blockquote { 432 | margin: 0 1.5em; 433 | } 434 | 435 | address { 436 | margin: 0 0 1.5em; 437 | } 438 | 439 | pre { 440 | background: #eee; 441 | font-family: "Courier 10 Pitch", courier, monospace; 442 | line-height: 1.6; 443 | margin-bottom: 1.6em; 444 | max-width: 100%; 445 | overflow: auto; 446 | padding: 1.6em; 447 | } 448 | 449 | code, 450 | kbd, 451 | tt, 452 | var { 453 | font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; 454 | } 455 | 456 | abbr, 457 | acronym { 458 | border-bottom: 1px dotted #666; 459 | cursor: help; 460 | } 461 | 462 | mark, 463 | ins { 464 | background: #fff9c0; 465 | text-decoration: none; 466 | } 467 | 468 | big { 469 | font-size: 125%; 470 | } 471 | 472 | /* Elements 473 | --------------------------------------------- */ 474 | body { 475 | background: #fff; 476 | } 477 | 478 | hr { 479 | background-color: #ccc; 480 | border: 0; 481 | height: 1px; 482 | margin-bottom: 1.5em; 483 | } 484 | 485 | ul, 486 | ol { 487 | margin: 0 0 1.5em 3em; 488 | } 489 | 490 | ul { 491 | list-style: disc; 492 | } 493 | 494 | ol { 495 | list-style: decimal; 496 | } 497 | 498 | li > ul, 499 | li > ol { 500 | margin-bottom: 0; 501 | margin-left: 1.5em; 502 | } 503 | 504 | dt { 505 | font-weight: 700; 506 | } 507 | 508 | dd { 509 | margin: 0 1.5em 1.5em; 510 | } 511 | 512 | /* Make sure embeds and iframes fit their containers. */ 513 | embed, 514 | iframe, 515 | object { 516 | max-width: 100%; 517 | } 518 | 519 | img { 520 | height: auto; 521 | max-width: 100%; 522 | } 523 | 524 | figure { 525 | margin: 1em 0; 526 | } 527 | 528 | table { 529 | margin: 0 0 1.5em; 530 | width: 100%; 531 | } 532 | 533 | /* Links 534 | --------------------------------------------- */ 535 | a { 536 | color: #4169e1; 537 | } 538 | 539 | a:visited { 540 | color: #800080; 541 | } 542 | 543 | a:hover, 544 | a:focus, 545 | a:active { 546 | color: #191970; 547 | } 548 | 549 | a:focus { 550 | outline: thin dotted; 551 | } 552 | 553 | a:hover, 554 | a:active { 555 | outline: 0; 556 | } 557 | 558 | /* Forms 559 | --------------------------------------------- */ 560 | button, 561 | input[type="button"], 562 | input[type="reset"], 563 | input[type="submit"] { 564 | border: 1px solid; 565 | border-color: #ccc #ccc #bbb; 566 | border-radius: 3px; 567 | background: #e6e6e6; 568 | color: rgba(0, 0, 0, 0.8); 569 | line-height: 1; 570 | padding: 0.6em 1em 0.4em; 571 | } 572 | 573 | button:hover, 574 | input[type="button"]:hover, 575 | input[type="reset"]:hover, 576 | input[type="submit"]:hover { 577 | border-color: #ccc #bbb #aaa; 578 | } 579 | 580 | button:active, 581 | button:focus, 582 | input[type="button"]:active, 583 | input[type="button"]:focus, 584 | input[type="reset"]:active, 585 | input[type="reset"]:focus, 586 | input[type="submit"]:active, 587 | input[type="submit"]:focus { 588 | border-color: #aaa #bbb #bbb; 589 | } 590 | 591 | input[type="text"], 592 | input[type="email"], 593 | input[type="url"], 594 | input[type="password"], 595 | input[type="search"], 596 | input[type="number"], 597 | input[type="tel"], 598 | input[type="range"], 599 | input[type="date"], 600 | input[type="month"], 601 | input[type="week"], 602 | input[type="time"], 603 | input[type="datetime"], 604 | input[type="datetime-local"], 605 | input[type="color"], 606 | textarea { 607 | color: #666; 608 | border: 1px solid #ccc; 609 | border-radius: 3px; 610 | padding: 3px; 611 | } 612 | 613 | input[type="text"]:focus, 614 | input[type="email"]:focus, 615 | input[type="url"]:focus, 616 | input[type="password"]:focus, 617 | input[type="search"]:focus, 618 | input[type="number"]:focus, 619 | input[type="tel"]:focus, 620 | input[type="range"]:focus, 621 | input[type="date"]:focus, 622 | input[type="month"]:focus, 623 | input[type="week"]:focus, 624 | input[type="time"]:focus, 625 | input[type="datetime"]:focus, 626 | input[type="datetime-local"]:focus, 627 | input[type="color"]:focus, 628 | textarea:focus { 629 | color: #111; 630 | } 631 | 632 | select { 633 | border: 1px solid #ccc; 634 | } 635 | 636 | textarea { 637 | width: 100%; 638 | } 639 | 640 | /*-------------------------------------------------------------- 641 | # Layouts 642 | --------------------------------------------------------------*/ 643 | 644 | /*-------------------------------------------------------------- 645 | # Components 646 | --------------------------------------------------------------*/ 647 | 648 | /* Navigation 649 | --------------------------------------------- */ 650 | .main-navigation { 651 | display: block; 652 | width: 100%; 653 | } 654 | 655 | .main-navigation ul { 656 | display: none; 657 | list-style: none; 658 | margin: 0; 659 | padding-left: 0; 660 | } 661 | 662 | .main-navigation ul ul { 663 | box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); 664 | float: left; 665 | position: absolute; 666 | top: 100%; 667 | left: -999em; 668 | z-index: 99999; 669 | } 670 | 671 | .main-navigation ul ul ul { 672 | left: -999em; 673 | top: 0; 674 | } 675 | 676 | .main-navigation ul ul li:hover > ul, 677 | .main-navigation ul ul li.focus > ul { 678 | display: block; 679 | left: auto; 680 | } 681 | 682 | .main-navigation ul ul a { 683 | width: 200px; 684 | } 685 | 686 | .main-navigation ul li:hover > ul, 687 | .main-navigation ul li.focus > ul { 688 | left: auto; 689 | } 690 | 691 | .main-navigation li { 692 | position: relative; 693 | } 694 | 695 | .main-navigation a { 696 | display: block; 697 | text-decoration: none; 698 | } 699 | 700 | /* Small menu. */ 701 | .menu-toggle, 702 | .main-navigation.toggled ul { 703 | display: block; 704 | } 705 | 706 | @media screen and (min-width: 37.5em) { 707 | 708 | .menu-toggle { 709 | display: none; 710 | } 711 | 712 | .main-navigation ul { 713 | display: flex; 714 | } 715 | } 716 | 717 | .site-main .comment-navigation, 718 | .site-main 719 | .posts-navigation, 720 | .site-main 721 | .post-navigation { 722 | margin: 0 0 1.5em; 723 | } 724 | 725 | .comment-navigation .nav-links, 726 | .posts-navigation .nav-links, 727 | .post-navigation .nav-links { 728 | display: flex; 729 | } 730 | 731 | .comment-navigation .nav-previous, 732 | .posts-navigation .nav-previous, 733 | .post-navigation .nav-previous { 734 | flex: 1 0 50%; 735 | } 736 | 737 | .comment-navigation .nav-next, 738 | .posts-navigation .nav-next, 739 | .post-navigation .nav-next { 740 | text-align: end; 741 | flex: 1 0 50%; 742 | } 743 | 744 | /* Posts and pages 745 | --------------------------------------------- */ 746 | .sticky { 747 | display: block; 748 | } 749 | 750 | .post, 751 | .page { 752 | margin: 0 0 1.5em; 753 | } 754 | 755 | .updated:not(.published) { 756 | display: none; 757 | } 758 | 759 | .page-content, 760 | .entry-content, 761 | .entry-summary { 762 | margin: 1.5em 0 0; 763 | } 764 | 765 | .page-links { 766 | clear: both; 767 | margin: 0 0 1.5em; 768 | } 769 | 770 | /* Comments 771 | --------------------------------------------- */ 772 | .comment-content a { 773 | word-wrap: break-word; 774 | } 775 | 776 | .bypostauthor { 777 | display: block; 778 | } 779 | 780 | /* Widgets 781 | --------------------------------------------- */ 782 | .widget { 783 | margin: 0 0 1.5em; 784 | } 785 | 786 | .widget select { 787 | max-width: 100%; 788 | } 789 | 790 | /* Media 791 | --------------------------------------------- */ 792 | .page-content .wp-smiley, 793 | .entry-content .wp-smiley, 794 | .comment-content .wp-smiley { 795 | border: none; 796 | margin-bottom: 0; 797 | margin-top: 0; 798 | padding: 0; 799 | } 800 | 801 | /* Make sure logo link wraps around logo image. */ 802 | .custom-logo-link { 803 | display: inline-block; 804 | } 805 | 806 | /* Captions 807 | --------------------------------------------- */ 808 | .wp-caption { 809 | margin-bottom: 1.5em; 810 | max-width: 100%; 811 | } 812 | 813 | .wp-caption img[class*="wp-image-"] { 814 | display: block; 815 | margin-left: auto; 816 | margin-right: auto; 817 | } 818 | 819 | .wp-caption .wp-caption-text { 820 | margin: 0.8075em 0; 821 | } 822 | 823 | .wp-caption-text { 824 | text-align: center; 825 | } 826 | 827 | /* Galleries 828 | --------------------------------------------- */ 829 | .gallery { 830 | margin-bottom: 1.5em; 831 | display: grid; 832 | grid-gap: 1.5em; 833 | } 834 | 835 | .gallery-item { 836 | display: inline-block; 837 | text-align: center; 838 | width: 100%; 839 | } 840 | 841 | .gallery-columns-2 { 842 | grid-template-columns: repeat(2, 1fr); 843 | } 844 | 845 | .gallery-columns-3 { 846 | grid-template-columns: repeat(3, 1fr); 847 | } 848 | 849 | .gallery-columns-4 { 850 | grid-template-columns: repeat(4, 1fr); 851 | } 852 | 853 | .gallery-columns-5 { 854 | grid-template-columns: repeat(5, 1fr); 855 | } 856 | 857 | .gallery-columns-6 { 858 | grid-template-columns: repeat(6, 1fr); 859 | } 860 | 861 | .gallery-columns-7 { 862 | grid-template-columns: repeat(7, 1fr); 863 | } 864 | 865 | .gallery-columns-8 { 866 | grid-template-columns: repeat(8, 1fr); 867 | } 868 | 869 | .gallery-columns-9 { 870 | grid-template-columns: repeat(9, 1fr); 871 | } 872 | 873 | .gallery-caption { 874 | display: block; 875 | } 876 | 877 | /*-------------------------------------------------------------- 878 | # Plugins 879 | --------------------------------------------------------------*/ 880 | 881 | /* Jetpack infinite scroll 882 | --------------------------------------------- */ 883 | 884 | /* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */ 885 | .infinite-scroll .posts-navigation, 886 | .infinite-scroll.neverending .site-footer { 887 | display: none; 888 | } 889 | 890 | /* Re-display the Theme Footer when Infinite Scroll has reached its end. */ 891 | .infinity-end.neverending .site-footer { 892 | display: block; 893 | } 894 | 895 | /*-------------------------------------------------------------- 896 | # Utilities 897 | --------------------------------------------------------------*/ 898 | 899 | /* Accessibility 900 | --------------------------------------------- */ 901 | 902 | /* Text meant only for screen readers. */ 903 | .screen-reader-text { 904 | border: 0; 905 | clip: rect(1px, 1px, 1px, 1px); 906 | clip-path: inset(50%); 907 | height: 1px; 908 | margin: -1px; 909 | overflow: hidden; 910 | padding: 0; 911 | position: absolute !important; 912 | width: 1px; 913 | word-wrap: normal !important; 914 | } 915 | 916 | .screen-reader-text:focus { 917 | background-color: #f1f1f1; 918 | border-radius: 3px; 919 | box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); 920 | clip: auto !important; 921 | clip-path: none; 922 | color: #21759b; 923 | display: block; 924 | font-size: 0.875rem; 925 | font-weight: 700; 926 | height: auto; 927 | left: 5px; 928 | line-height: normal; 929 | padding: 15px 23px 14px; 930 | text-decoration: none; 931 | top: 5px; 932 | width: auto; 933 | z-index: 100000; 934 | } 935 | 936 | /* Do not show the outline on the skip link target. */ 937 | #primary[tabindex="-1"]:focus { 938 | outline: 0; 939 | } 940 | 941 | /* Alignments 942 | --------------------------------------------- */ 943 | .alignleft { 944 | 945 | /*rtl:ignore*/ 946 | float: left; 947 | 948 | /*rtl:ignore*/ 949 | margin-right: 1.5em; 950 | margin-bottom: 1.5em; 951 | } 952 | 953 | .alignright { 954 | 955 | /*rtl:ignore*/ 956 | float: right; 957 | 958 | /*rtl:ignore*/ 959 | margin-left: 1.5em; 960 | margin-bottom: 1.5em; 961 | } 962 | 963 | .aligncenter { 964 | clear: both; 965 | display: block; 966 | margin-left: auto; 967 | margin-right: auto; 968 | margin-bottom: 1.5em; 969 | } 970 | -------------------------------------------------------------------------------- /template-parts/content-none.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 16 | 17 |
18 | ' . wp_kses( 23 | /* translators: 1: link to WP admin new post page. */ 24 | __( 'Ready to publish your first post? Get started here.', '_s' ), 25 | array( 26 | 'a' => array( 27 | 'href' => array(), 28 | ), 29 | ) 30 | ) . '

', 31 | esc_url( admin_url( 'post-new.php' ) ) 32 | ); 33 | 34 | elseif ( is_search() ) : 35 | ?> 36 | 37 |

38 | 43 | 44 |

45 | 50 |
51 |
52 | -------------------------------------------------------------------------------- /template-parts/content-page.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); ?> 15 |
16 | 17 | 18 | 19 |
20 | '', 27 | ) 28 | ); 29 | ?> 30 |
31 | 32 | 33 |
34 | %s', '_s' ), 40 | array( 41 | 'span' => array( 42 | 'class' => array(), 43 | ), 44 | ) 45 | ), 46 | wp_kses_post( get_the_title() ) 47 | ), 48 | '', 49 | '' 50 | ); 51 | ?> 52 |
53 | 54 |
55 | -------------------------------------------------------------------------------- /template-parts/content-search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 36 | -------------------------------------------------------------------------------- /template-parts/content.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); 17 | else : 18 | the_title( '

', '

' ); 19 | endif; 20 | 21 | if ( 'post' === get_post_type() ) : 22 | ?> 23 | 29 | 30 |
31 | 32 | 33 | 34 |
35 | "%s"', '_s' ), 41 | array( 42 | 'span' => array( 43 | 'class' => array(), 44 | ), 45 | ) 46 | ), 47 | wp_kses_post( get_the_title() ) 48 | ) 49 | ); 50 | 51 | wp_link_pages( 52 | array( 53 | 'before' => '', 55 | ) 56 | ); 57 | ?> 58 |
59 | 60 |
61 | 62 |
63 |
64 | -------------------------------------------------------------------------------- /woocommerce.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: _s 3 | 4 | WooCommerce styles override 5 | */ 6 | 7 | /** 8 | * Shop tables 9 | */ 10 | table.shop_table_responsive thead { 11 | display: none; 12 | } 13 | 14 | table.shop_table_responsive tbody th { 15 | display: none; 16 | } 17 | 18 | table.shop_table_responsive tr td { 19 | display: block; 20 | text-align: right; 21 | clear: both; 22 | } 23 | 24 | table.shop_table_responsive tr td::before { 25 | content: attr(data-title) ": "; 26 | float: left; 27 | } 28 | 29 | table.shop_table_responsive tr td.product-remove a { 30 | text-align: left; 31 | } 32 | 33 | table.shop_table_responsive tr td.product-remove::before { 34 | display: none; 35 | } 36 | 37 | table.shop_table_responsive tr td.actions::before, 38 | table.shop_table_responsive tr td.download-actions::before { 39 | display: none; 40 | } 41 | 42 | table.shop_table_responsive tr td.download-actions .button { 43 | display: block; 44 | text-align: center; 45 | } 46 | 47 | @media screen and (min-width: 48em) { 48 | 49 | table.shop_table_responsive thead { 50 | display: table-header-group; 51 | } 52 | 53 | table.shop_table_responsive tbody th { 54 | display: table-cell; 55 | } 56 | 57 | table.shop_table_responsive tr th, 58 | table.shop_table_responsive tr td { 59 | text-align: left; 60 | } 61 | 62 | table.shop_table_responsive tr td { 63 | display: table-cell; 64 | } 65 | 66 | table.shop_table_responsive tr td::before { 67 | display: none; 68 | } 69 | } 70 | 71 | /** 72 | * Products 73 | */ 74 | ul.products { 75 | margin: 0; 76 | padding: 0; 77 | } 78 | 79 | ul.products li.product { 80 | list-style: none; 81 | position: relative; 82 | margin-bottom: 2em; 83 | } 84 | 85 | ul.products li.product img { 86 | display: block; 87 | } 88 | 89 | ul.products li.product .button { 90 | display: block; 91 | } 92 | 93 | @media screen and (min-width: 48em) { 94 | 95 | ul.products li.product { 96 | width: 30.79667%; 97 | float: left; 98 | margin-right: 3.8%; 99 | } 100 | 101 | ul.products li.product.first { 102 | clear: both; 103 | } 104 | 105 | ul.products li.product.last { 106 | margin-right: 0; 107 | } 108 | 109 | ul.products.columns-1 li.product { 110 | float: none; 111 | width: 100%; 112 | } 113 | 114 | ul.products.columns-2 li.product { 115 | width: 48.1%; 116 | } 117 | 118 | ul.products.columns-3 li.product { 119 | width: 30.79667%; 120 | } 121 | 122 | ul.products.columns-4 li.product { 123 | width: 22.15%; 124 | } 125 | 126 | ul.products.columns-5 li.product { 127 | width: 16.96%; 128 | } 129 | 130 | ul.products.columns-6 li.product { 131 | width: 13.49333%; 132 | } 133 | } 134 | 135 | /** 136 | * Single product 137 | */ 138 | .single-product div.product { 139 | position: relative; 140 | } 141 | 142 | .single-product div.product .woocommerce-product-gallery { 143 | position: relative; 144 | float: left; 145 | } 146 | 147 | .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger { 148 | position: absolute; 149 | top: 2em; 150 | right: 1em; 151 | display: block; 152 | z-index: 99; 153 | } 154 | 155 | .single-product div.product .woocommerce-product-gallery .flex-viewport { 156 | margin-bottom: 1em; 157 | } 158 | 159 | .single-product div.product .woocommerce-product-gallery .flex-control-thumbs { 160 | margin: 0; 161 | padding: 0; 162 | } 163 | 164 | .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { 165 | list-style: none; 166 | cursor: pointer; 167 | float: left; 168 | } 169 | 170 | .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img { 171 | opacity: 0.5; 172 | } 173 | 174 | .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { 175 | opacity: 1; 176 | } 177 | 178 | .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img { 179 | opacity: 1; 180 | } 181 | 182 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li { 183 | width: 48.1%; 184 | } 185 | 186 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) { 187 | margin-right: 0; 188 | } 189 | 190 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) { 191 | clear: both; 192 | } 193 | 194 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li { 195 | width: 30.79667%; 196 | } 197 | 198 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) { 199 | margin-right: 0; 200 | } 201 | 202 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) { 203 | clear: both; 204 | } 205 | 206 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li { 207 | width: 22.15%; 208 | } 209 | 210 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) { 211 | margin-right: 0; 212 | } 213 | 214 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) { 215 | clear: both; 216 | } 217 | 218 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li { 219 | width: 16.96%; 220 | } 221 | 222 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) { 223 | margin-right: 0; 224 | } 225 | 226 | .single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) { 227 | clear: both; 228 | } 229 | 230 | .stock:empty::before { 231 | display: none; 232 | } 233 | 234 | .stock.in-stock { 235 | color: #0f834d; 236 | } 237 | 238 | .stock.out-of-stock { 239 | color: #e2401c; 240 | } 241 | 242 | /** 243 | * Checkout 244 | */ 245 | @media screen and (min-width: 768px) { 246 | 247 | .col2-set .form-row-first { 248 | float: left; 249 | margin-right: 3.8%; 250 | } 251 | 252 | .col2-set .form-row-last { 253 | float: right; 254 | margin-right: 0; 255 | } 256 | 257 | .col2-set .form-row-first, 258 | .col2-set .form-row-last { 259 | width: 48.1%; 260 | } 261 | } 262 | 263 | /** 264 | * General WooCommerce components 265 | */ 266 | 267 | /** 268 | * Header cart 269 | */ 270 | .site-header-cart { 271 | position: relative; 272 | margin: 0; 273 | padding: 0; 274 | } 275 | 276 | .site-header-cart .cart-contents { 277 | text-decoration: none; 278 | } 279 | 280 | .site-header-cart .widget_shopping_cart { 281 | display: none; 282 | } 283 | 284 | .site-header-cart .product_list_widget { 285 | margin: 0; 286 | padding: 0; 287 | } 288 | 289 | /** 290 | * Star rating 291 | */ 292 | .star-rating { 293 | overflow: hidden; 294 | position: relative; 295 | height: 1.618em; 296 | line-height: 1.618; 297 | width: 5.3em; 298 | font-family: star; 299 | font-weight: 400; 300 | } 301 | 302 | .star-rating::before { 303 | content: "\53\53\53\53\53"; 304 | opacity: 0.25; 305 | float: left; 306 | top: 0; 307 | left: 0; 308 | position: absolute; 309 | } 310 | 311 | .star-rating span { 312 | overflow: hidden; 313 | float: left; 314 | top: 0; 315 | left: 0; 316 | position: absolute; 317 | padding-top: 1.5em; 318 | } 319 | 320 | .star-rating span::before { 321 | content: "\53\53\53\53\53"; 322 | top: 0; 323 | position: absolute; 324 | left: 0; 325 | color: #4169e1; 326 | } 327 | 328 | p.stars a { 329 | position: relative; 330 | height: 1em; 331 | width: 1em; 332 | text-indent: -999em; 333 | display: inline-block; 334 | text-decoration: none; 335 | margin-right: 1px; 336 | font-weight: 400; 337 | } 338 | 339 | p.stars a::before { 340 | display: block; 341 | position: absolute; 342 | top: 0; 343 | left: 0; 344 | width: 1em; 345 | height: 1em; 346 | line-height: 1; 347 | font-family: star; 348 | content: "\53"; 349 | color: #404040; 350 | text-indent: 0; 351 | opacity: 0.25; 352 | } 353 | 354 | p.stars a:hover ~ a::before { 355 | content: "\53"; 356 | color: #404040; 357 | opacity: 0.25; 358 | } 359 | 360 | p.stars:hover a::before { 361 | content: "\53"; 362 | color: #4169e1; 363 | opacity: 1; 364 | } 365 | 366 | p.stars.selected a.active::before { 367 | content: "\53"; 368 | color: #4169e1; 369 | opacity: 1; 370 | } 371 | 372 | p.stars.selected a.active ~ a::before { 373 | content: "\53"; 374 | color: #404040; 375 | opacity: 0.25; 376 | } 377 | 378 | p.stars.selected a:not(.active)::before { 379 | content: "\53"; 380 | color: #4169e1; 381 | opacity: 1; 382 | } 383 | 384 | /** 385 | * Tabs 386 | */ 387 | .woocommerce-tabs ul.tabs { 388 | list-style: none; 389 | margin: 0; 390 | padding: 0; 391 | text-align: left; 392 | } 393 | 394 | .woocommerce-tabs ul.tabs li { 395 | display: block; 396 | margin: 0; 397 | position: relative; 398 | } 399 | 400 | .woocommerce-tabs ul.tabs li a { 401 | padding: 1em 0; 402 | display: block; 403 | } 404 | 405 | .woocommerce-tabs .panel h2:first-of-type { 406 | margin-bottom: 1em; 407 | } 408 | 409 | /** 410 | * Password strength meter 411 | */ 412 | .woocommerce-password-strength { 413 | text-align: right; 414 | } 415 | 416 | .woocommerce-password-strength.strong { 417 | color: #0f834d; 418 | } 419 | 420 | .woocommerce-password-strength.short { 421 | color: #e2401c; 422 | } 423 | 424 | .woocommerce-password-strength.bad { 425 | color: #e2401c; 426 | } 427 | 428 | .woocommerce-password-strength.good { 429 | color: #3d9cd2; 430 | } 431 | 432 | /** 433 | * Forms 434 | */ 435 | .form-row.woocommerce-validated input.input-text { 436 | box-shadow: inset 2px 0 0 #0f834d; 437 | } 438 | 439 | .form-row.woocommerce-invalid input.input-text { 440 | box-shadow: inset 2px 0 0 #e2401c; 441 | } 442 | 443 | .required { 444 | color: #f00; 445 | } 446 | 447 | /** 448 | * Notices 449 | */ 450 | .woocommerce-message, 451 | .woocommerce-info, 452 | .woocommerce-error, 453 | .woocommerce-noreviews, 454 | p.no-comments { 455 | background-color: #0f834d; 456 | clear: both; 457 | } 458 | 459 | .woocommerce-info, 460 | .woocommerce-noreviews, 461 | p.no-comments { 462 | background-color: #3d9cd2; 463 | } 464 | 465 | .woocommerce-error { 466 | background-color: #e2401c; 467 | } 468 | 469 | .demo_store { 470 | position: fixed; 471 | left: 0; 472 | bottom: 0; 473 | right: 0; 474 | margin: 0; 475 | padding: 1em; 476 | background-color: #3d9cd2; 477 | z-index: 9999; 478 | } 479 | 480 | @media screen and (min-width: 48em) { 481 | 482 | /** 483 | * Header cart 484 | */ 485 | .site-header-cart .widget_shopping_cart { 486 | position: absolute; 487 | top: 100%; 488 | width: 100%; 489 | z-index: 999999; 490 | left: -999em; 491 | display: block; 492 | box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); 493 | } 494 | 495 | .site-header-cart:hover .widget_shopping_cart, 496 | .site-header-cart.focus .widget_shopping_cart { 497 | left: 0; 498 | display: block; 499 | } 500 | } 501 | 502 | /** 503 | * WooCommerce widgets 504 | */ 505 | 506 | /** 507 | * WooCommerce Price Filter 508 | */ 509 | .widget_price_filter .price_slider { 510 | margin-bottom: 1.5em; 511 | } 512 | 513 | .widget_price_filter .price_slider_amount { 514 | text-align: right; 515 | line-height: 2.4; 516 | } 517 | 518 | .widget_price_filter .price_slider_amount .button { 519 | float: left; 520 | } 521 | 522 | .widget_price_filter .ui-slider { 523 | position: relative; 524 | text-align: left; 525 | } 526 | 527 | .widget_price_filter .ui-slider .ui-slider-handle { 528 | position: absolute; 529 | z-index: 2; 530 | width: 1em; 531 | height: 1em; 532 | cursor: ew-resize; 533 | outline: none; 534 | background: #4169e1; 535 | box-sizing: border-box; 536 | margin-top: -0.25em; 537 | opacity: 1; 538 | } 539 | 540 | .widget_price_filter .ui-slider .ui-slider-handle:last-child { 541 | margin-left: -1em; 542 | } 543 | 544 | .widget_price_filter .ui-slider .ui-slider-handle:hover, 545 | .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active { 546 | box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1); 547 | } 548 | 549 | .widget_price_filter .ui-slider .ui-slider-range { 550 | position: absolute; 551 | z-index: 1; 552 | display: block; 553 | border: 0; 554 | background: #4169e1; 555 | } 556 | 557 | .widget_price_filter .price_slider_wrapper .ui-widget-content { 558 | background: rgba(0, 0, 0, 0.1); 559 | } 560 | 561 | .widget_price_filter .ui-slider-horizontal { 562 | height: 0.5em; 563 | } 564 | 565 | .widget_price_filter .ui-slider-horizontal .ui-slider-range { 566 | height: 100%; 567 | } 568 | --------------------------------------------------------------------------------