From f0b9eba0fbf90a62ca3a7eea08198d138b693ed2 Mon Sep 17 00:00:00 2001 From: marwashahid Date: Mon, 19 Feb 2024 10:27:12 +0500 Subject: [PATCH] Initial commit --- LICENSE.txt | 126 +- README.txt | 62 +- assets/css/noscript.css | 8 +- assets/js/breakpoints.min.js | 2 +- assets/js/browser.min.js | 2 +- assets/js/jquery.scrollex.min.js | 2 +- assets/js/jquery.scrolly.min.js | 2 +- assets/js/main.js | 514 ++-- assets/js/util.js | 1172 +++++----- assets/sass/base/_page.scss | 94 +- assets/sass/base/_reset.scss | 150 +- assets/sass/base/_typography.scss | 424 ++-- assets/sass/components/_actions.scss | 200 +- assets/sass/components/_box.scss | 66 +- assets/sass/components/_button.scss | 266 +-- assets/sass/components/_form.scss | 584 ++--- assets/sass/components/_icon.scss | 64 +- assets/sass/components/_icons.scss | 102 +- assets/sass/components/_image.scss | 182 +- assets/sass/components/_list.scss | 194 +- assets/sass/components/_pagination.scss | 220 +- assets/sass/components/_row.scss | 68 +- assets/sass/components/_section.scss | 222 +- assets/sass/components/_table.scss | 242 +- assets/sass/layout/_footer.scss | 484 ++-- assets/sass/layout/_header.scss | 124 +- assets/sass/layout/_intro.scss | 228 +- assets/sass/layout/_main.scss | 314 +-- assets/sass/layout/_nav.scss | 168 +- assets/sass/layout/_navPanel.scss | 304 +-- assets/sass/layout/_wrapper.scss | 126 +- assets/sass/libs/_fixed-grid.scss | 674 +++--- assets/sass/libs/_functions.scss | 178 +- assets/sass/libs/_html-grid.scss | 296 +-- assets/sass/libs/_mixins.scss | 154 +- assets/sass/libs/_vars.scss | 122 +- assets/sass/main.scss | 140 +- assets/sass/noscript.scss | 90 +- check.html | 2836 +++++++++++------------ elements.html | 994 ++++---- generic.html | 250 +- index.html | 468 ++-- 42 files changed, 6459 insertions(+), 6459 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 856b578..d447b56 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,63 +1,63 @@ -Creative Commons Attribution 3.0 Unported -http://creativecommons.org/licenses/by/3.0/ - -License - -THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. - -BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. - -1. Definitions - - 1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. - 2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. - 3. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. - 4. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. - 5. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. - 6. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. - 7. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. - 8. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. - 9. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. - -2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. - -3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: - - 1. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; - 2. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; - 3. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, - 4. to Distribute and Publicly Perform Adaptations. - 5. - - For the avoidance of doubt: - 1. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; - 2. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, - 3. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. - -The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. - -4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: - - 1. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested. - 2. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. - 3. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. - -5. Representations, Warranties and Disclaimer - -UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. - -6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. Termination - - 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. - 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. - -8. Miscellaneous - - 1. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. - 2. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. - 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. - 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. - 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. - 6. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. +Creative Commons Attribution 3.0 Unported +http://creativecommons.org/licenses/by/3.0/ + +License + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. + +1. Definitions + + 1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. + 2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. + 3. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. + 4. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. + 5. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. + 6. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. + 7. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. + 8. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. + 9. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: + + 1. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; + 2. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; + 3. to Distribute and Publicly Perform the Work including as incorporated in Collections; and, + 4. to Distribute and Publicly Perform Adaptations. + 5. + + For the avoidance of doubt: + 1. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; + 2. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, + 3. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. + +The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. + +4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: + + 1. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested. + 2. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. + 3. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. + 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. + +8. Miscellaneous + + 1. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. + 2. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. + 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. + 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. + 6. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. diff --git a/README.txt b/README.txt index 984def9..aba558f 100644 --- a/README.txt +++ b/README.txt @@ -1,32 +1,32 @@ -Massively by HTML5 UP -html5up.net | @ajlkn -Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) - - -This is Massively, a text-heavy, article-oriented design built around a huge background -image (with a new parallax implementation I'm testing) and scroll effects (powered by -Scrollex). A *slight* departure from all the one-pagers I've been doing lately, but one -that fulfills a few user requests and makes use of some new techniques I've been wanting -to try out. Enjoy it :) - -Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images -you can use for pretty much whatever. - -(* = not included) - -AJ -aj@lkn.io | @ajlkn - - -Credits: - - Demo Images: - Unsplash (unsplash.com) - - Icons: - Font Awesome (fontawesome.io) - - Other: - jQuery (jquery.com) - Scrollex (github.com/ajlkn/jquery.scrollex) +Massively by HTML5 UP +html5up.net | @ajlkn +Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) + + +This is Massively, a text-heavy, article-oriented design built around a huge background +image (with a new parallax implementation I'm testing) and scroll effects (powered by +Scrollex). A *slight* departure from all the one-pagers I've been doing lately, but one +that fulfills a few user requests and makes use of some new techniques I've been wanting +to try out. Enjoy it :) + +Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images +you can use for pretty much whatever. + +(* = not included) + +AJ +aj@lkn.io | @ajlkn + + +Credits: + + Demo Images: + Unsplash (unsplash.com) + + Icons: + Font Awesome (fontawesome.io) + + Other: + jQuery (jquery.com) + Scrollex (github.com/ajlkn/jquery.scrollex) Responsive Tools (github.com/ajlkn/responsive-tools) \ No newline at end of file diff --git a/assets/css/noscript.css b/assets/css/noscript.css index 31b9e4b..55e3dc8 100644 --- a/assets/css/noscript.css +++ b/assets/css/noscript.css @@ -1,9 +1,9 @@ @import url(font-awesome.min.css); -/* - Massively by HTML5 UP - html5up.net | @ajlkn - Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/* + Massively by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) */ /* Wrapper */ diff --git a/assets/js/breakpoints.min.js b/assets/js/breakpoints.min.js index e20ae89..32419cc 100644 --- a/assets/js/breakpoints.min.js +++ b/assets/js/breakpoints.min.js @@ -1,2 +1,2 @@ -/* breakpoints.js v1.0 | @ajlkn | MIT licensed */ +/* breakpoints.js v1.0 | @ajlkn | MIT licensed */ var breakpoints=function(){"use strict";function e(e){t.init(e)}var t={list:null,media:{},events:[],init:function(e){t.list=e,window.addEventListener("resize",t.poll),window.addEventListener("orientationchange",t.poll),window.addEventListener("load",t.poll),window.addEventListener("fullscreenchange",t.poll)},active:function(e){var n,a,s,i,r,d,c;if(!(e in t.media)){if(">="==e.substr(0,2)?(a="gte",n=e.substr(2)):"<="==e.substr(0,2)?(a="lte",n=e.substr(2)):">"==e.substr(0,1)?(a="gt",n=e.substr(1)):"<"==e.substr(0,1)?(a="lt",n=e.substr(1)):"!"==e.substr(0,1)?(a="not",n=e.substr(1)):(a="eq",n=e),n&&n in t.list)if(i=t.list[n],Array.isArray(i)){if(r=parseInt(i[0]),d=parseInt(i[1]),isNaN(r)){if(isNaN(d))return;c=i[1].substr(String(d).length)}else c=i[0].substr(String(r).length);if(isNaN(r))switch(a){case"gte":s="screen";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: -1px)";break;case"not":s="screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (max-width: "+d+c+")"}else if(isNaN(d))switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen";break;case"gt":s="screen and (max-width: -1px)";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+")";break;default:s="screen and (min-width: "+r+c+")"}else switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+"), screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (min-width: "+r+c+") and (max-width: "+d+c+")"}}else s="("==i.charAt(0)?"screen and "+i:i;t.media[e]=!!s&&s}return t.media[e]!==!1&&window.matchMedia(t.media[e]).matches},on:function(e,n){t.events.push({query:e,handler:n,state:!1}),t.active(e)&&n()},poll:function(){var e,n;for(e=0;e1){for(var r=0;r=i&&o>=t};break;case"bottom":h=function(t,e,n,i,o){return n>=i&&o>=n};break;case"middle":h=function(t,e,n,i,o){return e>=i&&o>=e};break;case"top-only":h=function(t,e,n,i,o){return i>=t&&n>=i};break;case"bottom-only":h=function(t,e,n,i,o){return n>=o&&o>=t};break;default:case"default":h=function(t,e,n,i,o){return n>=i&&o>=t}}return c=function(t){var i,o,l,s,r,a,u=this.state,h=!1,c=this.$element.offset();i=n.height(),o=t+i/2,l=t+i,s=this.$element.outerHeight(),r=c.top+e(this.options.top,s,i),a=c.top+s-e(this.options.bottom,s,i),h=this.test(t,o,l,r,a),h!=u&&(this.state=h,h?this.options.enter&&this.options.enter.apply(this.element):this.options.leave&&this.options.leave.apply(this.element)),this.options.scroll&&this.options.scroll.apply(this.element,[(o-r)/(a-r)])},p={id:a,options:u,test:h,handler:c,state:null,element:this,$element:s,timeoutId:null},o[a]=p,s.data("_scrollexId",p.id),p.options.initialize&&p.options.initialize.apply(this),s},jQuery.fn.unscrollex=function(){var e=t(this);if(0==this.length)return e;if(this.length>1){for(var n=0;n1){for(o=0;o 1) { - - for (var i=0; i < this.length; i++) - $(this[i])._parallax(intensity); - - return $this; - - } - - if (!intensity) - intensity = 0.25; - - $this.each(function() { - - var $t = $(this), - $bg = $('
').appendTo($t), - on, off; - - on = function() { - - $bg - .removeClass('fixed') - .css('transform', 'matrix(1,0,0,1,0,0)'); - - $window - .on('scroll._parallax', function() { - - var pos = parseInt($window.scrollTop()) - parseInt($t.position().top); - - $bg.css('transform', 'matrix(1,0,0,1,0,' + (pos * intensity) + ')'); - - }); - - }; - - off = function() { - - $bg - .addClass('fixed') - .css('transform', 'none'); - - $window - .off('scroll._parallax'); - - }; - - // Disable parallax on .. - if (browser.name == 'ie' // IE - || browser.name == 'edge' // Edge - || window.devicePixelRatio > 1 // Retina/HiDPI (= poor performance) - || browser.mobile) // Mobile devices - off(); - - // Enable everywhere else. - else { - - breakpoints.on('>large', on); - breakpoints.on('<=large', off); - - } - - }); - - $window - .off('load._parallax resize._parallax') - .on('load._parallax resize._parallax', function() { - $window.trigger('scroll'); - }); - - return $(this); - - }; - - // Play initial animations on page load. - $window.on('load', function() { - window.setTimeout(function() { - $body.removeClass('is-preload'); - }, 100); - }); - - // Scrolly. - $('.scrolly').scrolly(); - - // Background. - $wrapper._parallax(0.925); - - // Nav Panel. - - // Toggle. - $navPanelToggle = $( - 'Menu' - ) - .appendTo($wrapper); - - // Change toggle styling once we've scrolled past the header. - $header.scrollex({ - bottom: '5vh', - enter: function() { - $navPanelToggle.removeClass('alt'); - }, - leave: function() { - $navPanelToggle.addClass('alt'); - } - }); - - // Panel. - $navPanel = $( - '' - ) - .appendTo($body) - .panel({ - delay: 500, - hideOnClick: true, - hideOnSwipe: true, - resetScroll: true, - resetForms: true, - side: 'right', - target: $body, - visibleClass: 'is-navPanel-visible' - }); - - // Get inner. - $navPanelInner = $navPanel.children('nav'); - - // Move nav content on breakpoint change. - var $navContent = $nav.children(); - - breakpoints.on('>medium', function() { - - // NavPanel -> Nav. - $navContent.appendTo($nav); - - // Flip icon classes. - $nav.find('.icons, .icon') - .removeClass('alt'); - - }); - - breakpoints.on('<=medium', function() { - - // Nav -> NavPanel. - $navContent.appendTo($navPanelInner); - - // Flip icon classes. - $navPanelInner.find('.icons, .icon') - .addClass('alt'); - - }); - - // Hack: Disable transitions on WP. - if (browser.os == 'wp' - && browser.osVersion < 10) - $navPanel - .css('transition', 'none'); - - // Intro. - var $intro = $('#intro'); - - if ($intro.length > 0) { - - // Hack: Fix flex min-height on IE. - if (browser.name == 'ie') { - $window.on('resize.ie-intro-fix', function() { - - var h = $intro.height(); - - if (h > $window.height()) - $intro.css('height', 'auto'); - else - $intro.css('height', h); - - }).trigger('resize.ie-intro-fix'); - } - - // Hide intro on scroll (> small). - breakpoints.on('>small', function() { - - $main.unscrollex(); - - $main.scrollex({ - mode: 'bottom', - top: '25vh', - bottom: '-50vh', - enter: function() { - $intro.addClass('hidden'); - }, - leave: function() { - $intro.removeClass('hidden'); - } - }); - - }); - - // Hide intro on scroll (<= small). - breakpoints.on('<=small', function() { - - $main.unscrollex(); - - $main.scrollex({ - mode: 'middle', - top: '15vh', - bottom: '-15vh', - enter: function() { - $intro.addClass('hidden'); - }, - leave: function() { - $intro.removeClass('hidden'); - } - }); - - }); - - } - +/* + Massively by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +*/ + +(function($) { + + var $window = $(window), + $body = $('body'), + $wrapper = $('#wrapper'), + $header = $('#header'), + $nav = $('#nav'), + $main = $('#main'), + $navPanelToggle, $navPanel, $navPanelInner; + + // Breakpoints. + breakpoints({ + default: ['1681px', null ], + xlarge: ['1281px', '1680px' ], + large: ['981px', '1280px' ], + medium: ['737px', '980px' ], + small: ['481px', '736px' ], + xsmall: ['361px', '480px' ], + xxsmall: [null, '360px' ] + }); + + /** + * Applies parallax scrolling to an element's background image. + * @return {jQuery} jQuery object. + */ + $.fn._parallax = function(intensity) { + + var $window = $(window), + $this = $(this); + + if (this.length == 0 || intensity === 0) + return $this; + + if (this.length > 1) { + + for (var i=0; i < this.length; i++) + $(this[i])._parallax(intensity); + + return $this; + + } + + if (!intensity) + intensity = 0.25; + + $this.each(function() { + + var $t = $(this), + $bg = $('
').appendTo($t), + on, off; + + on = function() { + + $bg + .removeClass('fixed') + .css('transform', 'matrix(1,0,0,1,0,0)'); + + $window + .on('scroll._parallax', function() { + + var pos = parseInt($window.scrollTop()) - parseInt($t.position().top); + + $bg.css('transform', 'matrix(1,0,0,1,0,' + (pos * intensity) + ')'); + + }); + + }; + + off = function() { + + $bg + .addClass('fixed') + .css('transform', 'none'); + + $window + .off('scroll._parallax'); + + }; + + // Disable parallax on .. + if (browser.name == 'ie' // IE + || browser.name == 'edge' // Edge + || window.devicePixelRatio > 1 // Retina/HiDPI (= poor performance) + || browser.mobile) // Mobile devices + off(); + + // Enable everywhere else. + else { + + breakpoints.on('>large', on); + breakpoints.on('<=large', off); + + } + + }); + + $window + .off('load._parallax resize._parallax') + .on('load._parallax resize._parallax', function() { + $window.trigger('scroll'); + }); + + return $(this); + + }; + + // Play initial animations on page load. + $window.on('load', function() { + window.setTimeout(function() { + $body.removeClass('is-preload'); + }, 100); + }); + + // Scrolly. + $('.scrolly').scrolly(); + + // Background. + $wrapper._parallax(0.925); + + // Nav Panel. + + // Toggle. + $navPanelToggle = $( + 'Menu' + ) + .appendTo($wrapper); + + // Change toggle styling once we've scrolled past the header. + $header.scrollex({ + bottom: '5vh', + enter: function() { + $navPanelToggle.removeClass('alt'); + }, + leave: function() { + $navPanelToggle.addClass('alt'); + } + }); + + // Panel. + $navPanel = $( + '' + ) + .appendTo($body) + .panel({ + delay: 500, + hideOnClick: true, + hideOnSwipe: true, + resetScroll: true, + resetForms: true, + side: 'right', + target: $body, + visibleClass: 'is-navPanel-visible' + }); + + // Get inner. + $navPanelInner = $navPanel.children('nav'); + + // Move nav content on breakpoint change. + var $navContent = $nav.children(); + + breakpoints.on('>medium', function() { + + // NavPanel -> Nav. + $navContent.appendTo($nav); + + // Flip icon classes. + $nav.find('.icons, .icon') + .removeClass('alt'); + + }); + + breakpoints.on('<=medium', function() { + + // Nav -> NavPanel. + $navContent.appendTo($navPanelInner); + + // Flip icon classes. + $navPanelInner.find('.icons, .icon') + .addClass('alt'); + + }); + + // Hack: Disable transitions on WP. + if (browser.os == 'wp' + && browser.osVersion < 10) + $navPanel + .css('transition', 'none'); + + // Intro. + var $intro = $('#intro'); + + if ($intro.length > 0) { + + // Hack: Fix flex min-height on IE. + if (browser.name == 'ie') { + $window.on('resize.ie-intro-fix', function() { + + var h = $intro.height(); + + if (h > $window.height()) + $intro.css('height', 'auto'); + else + $intro.css('height', h); + + }).trigger('resize.ie-intro-fix'); + } + + // Hide intro on scroll (> small). + breakpoints.on('>small', function() { + + $main.unscrollex(); + + $main.scrollex({ + mode: 'bottom', + top: '25vh', + bottom: '-50vh', + enter: function() { + $intro.addClass('hidden'); + }, + leave: function() { + $intro.removeClass('hidden'); + } + }); + + }); + + // Hide intro on scroll (<= small). + breakpoints.on('<=small', function() { + + $main.unscrollex(); + + $main.scrollex({ + mode: 'middle', + top: '15vh', + bottom: '-15vh', + enter: function() { + $intro.addClass('hidden'); + }, + leave: function() { + $intro.removeClass('hidden'); + } + }); + + }); + + } + })(jQuery); \ No newline at end of file diff --git a/assets/js/util.js b/assets/js/util.js index ecf7b37..bdb8e9f 100644 --- a/assets/js/util.js +++ b/assets/js/util.js @@ -1,587 +1,587 @@ -(function($) { - - /** - * Generate an indented list of links from a nav. Meant for use with panel(). - * @return {jQuery} jQuery object. - */ - $.fn.navList = function() { - - var $this = $(this); - $a = $this.find('a'), - b = []; - - $a.each(function() { - - var $this = $(this), - indent = Math.max(0, $this.parents('li').length - 1), - href = $this.attr('href'), - target = $this.attr('target'); - - b.push( - '' + - '' + - $this.text() + - '' - ); - - }); - - return b.join(''); - - }; - - /** - * Panel-ify an element. - * @param {object} userConfig User config. - * @return {jQuery} jQuery object. - */ - $.fn.panel = function(userConfig) { - - // No elements? - if (this.length == 0) - return $this; - - // Multiple elements? - if (this.length > 1) { - - for (var i=0; i < this.length; i++) - $(this[i]).panel(userConfig); - - return $this; - - } - - // Vars. - var $this = $(this), - $body = $('body'), - $window = $(window), - id = $this.attr('id'), - config; - - // Config. - config = $.extend({ - - // Delay. - delay: 0, - - // Hide panel on link click. - hideOnClick: false, - - // Hide panel on escape keypress. - hideOnEscape: false, - - // Hide panel on swipe. - hideOnSwipe: false, - - // Reset scroll position on hide. - resetScroll: false, - - // Reset forms on hide. - resetForms: false, - - // Side of viewport the panel will appear. - side: null, - - // Target element for "class". - target: $this, - - // Class to toggle. - visibleClass: 'visible' - - }, userConfig); - - // Expand "target" if it's not a jQuery object already. - if (typeof config.target != 'jQuery') - config.target = $(config.target); - - // Panel. - - // Methods. - $this._hide = function(event) { - - // Already hidden? Bail. - if (!config.target.hasClass(config.visibleClass)) - return; - - // If an event was provided, cancel it. - if (event) { - - event.preventDefault(); - event.stopPropagation(); - - } - - // Hide. - config.target.removeClass(config.visibleClass); - - // Post-hide stuff. - window.setTimeout(function() { - - // Reset scroll position. - if (config.resetScroll) - $this.scrollTop(0); - - // Reset forms. - if (config.resetForms) - $this.find('form').each(function() { - this.reset(); - }); - - }, config.delay); - - }; - - // Vendor fixes. - $this - .css('-ms-overflow-style', '-ms-autohiding-scrollbar') - .css('-webkit-overflow-scrolling', 'touch'); - - // Hide on click. - if (config.hideOnClick) { - - $this.find('a') - .css('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - - $this - .on('click', 'a', function(event) { - - var $a = $(this), - href = $a.attr('href'), - target = $a.attr('target'); - - if (!href || href == '#' || href == '' || href == '#' + id) - return; - - // Cancel original event. - event.preventDefault(); - event.stopPropagation(); - - // Hide panel. - $this._hide(); - - // Redirect to href. - window.setTimeout(function() { - - if (target == '_blank') - window.open(href); - else - window.location.href = href; - - }, config.delay + 10); - - }); - - } - - // Event: Touch stuff. - $this.on('touchstart', function(event) { - - $this.touchPosX = event.originalEvent.touches[0].pageX; - $this.touchPosY = event.originalEvent.touches[0].pageY; - - }) - - $this.on('touchmove', function(event) { - - if ($this.touchPosX === null - || $this.touchPosY === null) - return; - - var diffX = $this.touchPosX - event.originalEvent.touches[0].pageX, - diffY = $this.touchPosY - event.originalEvent.touches[0].pageY, - th = $this.outerHeight(), - ts = ($this.get(0).scrollHeight - $this.scrollTop()); - - // Hide on swipe? - if (config.hideOnSwipe) { - - var result = false, - boundary = 20, - delta = 50; - - switch (config.side) { - - case 'left': - result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX > delta); - break; - - case 'right': - result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX < (-1 * delta)); - break; - - case 'top': - result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY > delta); - break; - - case 'bottom': - result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY < (-1 * delta)); - break; - - default: - break; - - } - - if (result) { - - $this.touchPosX = null; - $this.touchPosY = null; - $this._hide(); - - return false; - - } - - } - - // Prevent vertical scrolling past the top or bottom. - if (($this.scrollTop() < 0 && diffY < 0) - || (ts > (th - 2) && ts < (th + 2) && diffY > 0)) { - - event.preventDefault(); - event.stopPropagation(); - - } - - }); - - // Event: Prevent certain events inside the panel from bubbling. - $this.on('click touchend touchstart touchmove', function(event) { - event.stopPropagation(); - }); - - // Event: Hide panel if a child anchor tag pointing to its ID is clicked. - $this.on('click', 'a[href="#' + id + '"]', function(event) { - - event.preventDefault(); - event.stopPropagation(); - - config.target.removeClass(config.visibleClass); - - }); - - // Body. - - // Event: Hide panel on body click/tap. - $body.on('click touchend', function(event) { - $this._hide(event); - }); - - // Event: Toggle. - $body.on('click', 'a[href="#' + id + '"]', function(event) { - - event.preventDefault(); - event.stopPropagation(); - - config.target.toggleClass(config.visibleClass); - - }); - - // Window. - - // Event: Hide on ESC. - if (config.hideOnEscape) - $window.on('keydown', function(event) { - - if (event.keyCode == 27) - $this._hide(event); - - }); - - return $this; - - }; - - /** - * Apply "placeholder" attribute polyfill to one or more forms. - * @return {jQuery} jQuery object. - */ - $.fn.placeholder = function() { - - // Browser natively supports placeholders? Bail. - if (typeof (document.createElement('input')).placeholder != 'undefined') - return $(this); - - // No elements? - if (this.length == 0) - return $this; - - // Multiple elements? - if (this.length > 1) { - - for (var i=0; i < this.length; i++) - $(this[i]).placeholder(); - - return $this; - - } - - // Vars. - var $this = $(this); - - // Text, TextArea. - $this.find('input[type=text],textarea') - .each(function() { - - var i = $(this); - - if (i.val() == '' - || i.val() == i.attr('placeholder')) - i - .addClass('polyfill-placeholder') - .val(i.attr('placeholder')); - - }) - .on('blur', function() { - - var i = $(this); - - if (i.attr('name').match(/-polyfill-field$/)) - return; - - if (i.val() == '') - i - .addClass('polyfill-placeholder') - .val(i.attr('placeholder')); - - }) - .on('focus', function() { - - var i = $(this); - - if (i.attr('name').match(/-polyfill-field$/)) - return; - - if (i.val() == i.attr('placeholder')) - i - .removeClass('polyfill-placeholder') - .val(''); - - }); - - // Password. - $this.find('input[type=password]') - .each(function() { - - var i = $(this); - var x = $( - $('
') - .append(i.clone()) - .remove() - .html() - .replace(/type="password"/i, 'type="text"') - .replace(/type=password/i, 'type=text') - ); - - if (i.attr('id') != '') - x.attr('id', i.attr('id') + '-polyfill-field'); - - if (i.attr('name') != '') - x.attr('name', i.attr('name') + '-polyfill-field'); - - x.addClass('polyfill-placeholder') - .val(x.attr('placeholder')).insertAfter(i); - - if (i.val() == '') - i.hide(); - else - x.hide(); - - i - .on('blur', function(event) { - - event.preventDefault(); - - var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]'); - - if (i.val() == '') { - - i.hide(); - x.show(); - - } - - }); - - x - .on('focus', function(event) { - - event.preventDefault(); - - var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']'); - - x.hide(); - - i - .show() - .focus(); - - }) - .on('keypress', function(event) { - - event.preventDefault(); - x.val(''); - - }); - - }); - - // Events. - $this - .on('submit', function() { - - $this.find('input[type=text],input[type=password],textarea') - .each(function(event) { - - var i = $(this); - - if (i.attr('name').match(/-polyfill-field$/)) - i.attr('name', ''); - - if (i.val() == i.attr('placeholder')) { - - i.removeClass('polyfill-placeholder'); - i.val(''); - - } - - }); - - }) - .on('reset', function(event) { - - event.preventDefault(); - - $this.find('select') - .val($('option:first').val()); - - $this.find('input,textarea') - .each(function() { - - var i = $(this), - x; - - i.removeClass('polyfill-placeholder'); - - switch (this.type) { - - case 'submit': - case 'reset': - break; - - case 'password': - i.val(i.attr('defaultValue')); - - x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]'); - - if (i.val() == '') { - i.hide(); - x.show(); - } - else { - i.show(); - x.hide(); - } - - break; - - case 'checkbox': - case 'radio': - i.attr('checked', i.attr('defaultValue')); - break; - - case 'text': - case 'textarea': - i.val(i.attr('defaultValue')); - - if (i.val() == '') { - i.addClass('polyfill-placeholder'); - i.val(i.attr('placeholder')); - } - - break; - - default: - i.val(i.attr('defaultValue')); - break; - - } - }); - - }); - - return $this; - - }; - - /** - * Moves elements to/from the first positions of their respective parents. - * @param {jQuery} $elements Elements (or selector) to move. - * @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations. - */ - $.prioritize = function($elements, condition) { - - var key = '__prioritize'; - - // Expand $elements if it's not already a jQuery object. - if (typeof $elements != 'jQuery') - $elements = $($elements); - - // Step through elements. - $elements.each(function() { - - var $e = $(this), $p, - $parent = $e.parent(); - - // No parent? Bail. - if ($parent.length == 0) - return; - - // Not moved? Move it. - if (!$e.data(key)) { - - // Condition is false? Bail. - if (!condition) - return; - - // Get placeholder (which will serve as our point of reference for when this element needs to move back). - $p = $e.prev(); - - // Couldn't find anything? Means this element's already at the top, so bail. - if ($p.length == 0) - return; - - // Move element to top of parent. - $e.prependTo($parent); - - // Mark element as moved. - $e.data(key, $p); - - } - - // Moved already? - else { - - // Condition is true? Bail. - if (condition) - return; - - $p = $e.data(key); - - // Move element back to its original location (using our placeholder). - $e.insertAfter($p); - - // Unmark element as moved. - $e.removeData(key); - - } - - }); - - }; - +(function($) { + + /** + * Generate an indented list of links from a nav. Meant for use with panel(). + * @return {jQuery} jQuery object. + */ + $.fn.navList = function() { + + var $this = $(this); + $a = $this.find('a'), + b = []; + + $a.each(function() { + + var $this = $(this), + indent = Math.max(0, $this.parents('li').length - 1), + href = $this.attr('href'), + target = $this.attr('target'); + + b.push( + '' + + '' + + $this.text() + + '' + ); + + }); + + return b.join(''); + + }; + + /** + * Panel-ify an element. + * @param {object} userConfig User config. + * @return {jQuery} jQuery object. + */ + $.fn.panel = function(userConfig) { + + // No elements? + if (this.length == 0) + return $this; + + // Multiple elements? + if (this.length > 1) { + + for (var i=0; i < this.length; i++) + $(this[i]).panel(userConfig); + + return $this; + + } + + // Vars. + var $this = $(this), + $body = $('body'), + $window = $(window), + id = $this.attr('id'), + config; + + // Config. + config = $.extend({ + + // Delay. + delay: 0, + + // Hide panel on link click. + hideOnClick: false, + + // Hide panel on escape keypress. + hideOnEscape: false, + + // Hide panel on swipe. + hideOnSwipe: false, + + // Reset scroll position on hide. + resetScroll: false, + + // Reset forms on hide. + resetForms: false, + + // Side of viewport the panel will appear. + side: null, + + // Target element for "class". + target: $this, + + // Class to toggle. + visibleClass: 'visible' + + }, userConfig); + + // Expand "target" if it's not a jQuery object already. + if (typeof config.target != 'jQuery') + config.target = $(config.target); + + // Panel. + + // Methods. + $this._hide = function(event) { + + // Already hidden? Bail. + if (!config.target.hasClass(config.visibleClass)) + return; + + // If an event was provided, cancel it. + if (event) { + + event.preventDefault(); + event.stopPropagation(); + + } + + // Hide. + config.target.removeClass(config.visibleClass); + + // Post-hide stuff. + window.setTimeout(function() { + + // Reset scroll position. + if (config.resetScroll) + $this.scrollTop(0); + + // Reset forms. + if (config.resetForms) + $this.find('form').each(function() { + this.reset(); + }); + + }, config.delay); + + }; + + // Vendor fixes. + $this + .css('-ms-overflow-style', '-ms-autohiding-scrollbar') + .css('-webkit-overflow-scrolling', 'touch'); + + // Hide on click. + if (config.hideOnClick) { + + $this.find('a') + .css('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + + $this + .on('click', 'a', function(event) { + + var $a = $(this), + href = $a.attr('href'), + target = $a.attr('target'); + + if (!href || href == '#' || href == '' || href == '#' + id) + return; + + // Cancel original event. + event.preventDefault(); + event.stopPropagation(); + + // Hide panel. + $this._hide(); + + // Redirect to href. + window.setTimeout(function() { + + if (target == '_blank') + window.open(href); + else + window.location.href = href; + + }, config.delay + 10); + + }); + + } + + // Event: Touch stuff. + $this.on('touchstart', function(event) { + + $this.touchPosX = event.originalEvent.touches[0].pageX; + $this.touchPosY = event.originalEvent.touches[0].pageY; + + }) + + $this.on('touchmove', function(event) { + + if ($this.touchPosX === null + || $this.touchPosY === null) + return; + + var diffX = $this.touchPosX - event.originalEvent.touches[0].pageX, + diffY = $this.touchPosY - event.originalEvent.touches[0].pageY, + th = $this.outerHeight(), + ts = ($this.get(0).scrollHeight - $this.scrollTop()); + + // Hide on swipe? + if (config.hideOnSwipe) { + + var result = false, + boundary = 20, + delta = 50; + + switch (config.side) { + + case 'left': + result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX > delta); + break; + + case 'right': + result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX < (-1 * delta)); + break; + + case 'top': + result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY > delta); + break; + + case 'bottom': + result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY < (-1 * delta)); + break; + + default: + break; + + } + + if (result) { + + $this.touchPosX = null; + $this.touchPosY = null; + $this._hide(); + + return false; + + } + + } + + // Prevent vertical scrolling past the top or bottom. + if (($this.scrollTop() < 0 && diffY < 0) + || (ts > (th - 2) && ts < (th + 2) && diffY > 0)) { + + event.preventDefault(); + event.stopPropagation(); + + } + + }); + + // Event: Prevent certain events inside the panel from bubbling. + $this.on('click touchend touchstart touchmove', function(event) { + event.stopPropagation(); + }); + + // Event: Hide panel if a child anchor tag pointing to its ID is clicked. + $this.on('click', 'a[href="#' + id + '"]', function(event) { + + event.preventDefault(); + event.stopPropagation(); + + config.target.removeClass(config.visibleClass); + + }); + + // Body. + + // Event: Hide panel on body click/tap. + $body.on('click touchend', function(event) { + $this._hide(event); + }); + + // Event: Toggle. + $body.on('click', 'a[href="#' + id + '"]', function(event) { + + event.preventDefault(); + event.stopPropagation(); + + config.target.toggleClass(config.visibleClass); + + }); + + // Window. + + // Event: Hide on ESC. + if (config.hideOnEscape) + $window.on('keydown', function(event) { + + if (event.keyCode == 27) + $this._hide(event); + + }); + + return $this; + + }; + + /** + * Apply "placeholder" attribute polyfill to one or more forms. + * @return {jQuery} jQuery object. + */ + $.fn.placeholder = function() { + + // Browser natively supports placeholders? Bail. + if (typeof (document.createElement('input')).placeholder != 'undefined') + return $(this); + + // No elements? + if (this.length == 0) + return $this; + + // Multiple elements? + if (this.length > 1) { + + for (var i=0; i < this.length; i++) + $(this[i]).placeholder(); + + return $this; + + } + + // Vars. + var $this = $(this); + + // Text, TextArea. + $this.find('input[type=text],textarea') + .each(function() { + + var i = $(this); + + if (i.val() == '' + || i.val() == i.attr('placeholder')) + i + .addClass('polyfill-placeholder') + .val(i.attr('placeholder')); + + }) + .on('blur', function() { + + var i = $(this); + + if (i.attr('name').match(/-polyfill-field$/)) + return; + + if (i.val() == '') + i + .addClass('polyfill-placeholder') + .val(i.attr('placeholder')); + + }) + .on('focus', function() { + + var i = $(this); + + if (i.attr('name').match(/-polyfill-field$/)) + return; + + if (i.val() == i.attr('placeholder')) + i + .removeClass('polyfill-placeholder') + .val(''); + + }); + + // Password. + $this.find('input[type=password]') + .each(function() { + + var i = $(this); + var x = $( + $('
') + .append(i.clone()) + .remove() + .html() + .replace(/type="password"/i, 'type="text"') + .replace(/type=password/i, 'type=text') + ); + + if (i.attr('id') != '') + x.attr('id', i.attr('id') + '-polyfill-field'); + + if (i.attr('name') != '') + x.attr('name', i.attr('name') + '-polyfill-field'); + + x.addClass('polyfill-placeholder') + .val(x.attr('placeholder')).insertAfter(i); + + if (i.val() == '') + i.hide(); + else + x.hide(); + + i + .on('blur', function(event) { + + event.preventDefault(); + + var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]'); + + if (i.val() == '') { + + i.hide(); + x.show(); + + } + + }); + + x + .on('focus', function(event) { + + event.preventDefault(); + + var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']'); + + x.hide(); + + i + .show() + .focus(); + + }) + .on('keypress', function(event) { + + event.preventDefault(); + x.val(''); + + }); + + }); + + // Events. + $this + .on('submit', function() { + + $this.find('input[type=text],input[type=password],textarea') + .each(function(event) { + + var i = $(this); + + if (i.attr('name').match(/-polyfill-field$/)) + i.attr('name', ''); + + if (i.val() == i.attr('placeholder')) { + + i.removeClass('polyfill-placeholder'); + i.val(''); + + } + + }); + + }) + .on('reset', function(event) { + + event.preventDefault(); + + $this.find('select') + .val($('option:first').val()); + + $this.find('input,textarea') + .each(function() { + + var i = $(this), + x; + + i.removeClass('polyfill-placeholder'); + + switch (this.type) { + + case 'submit': + case 'reset': + break; + + case 'password': + i.val(i.attr('defaultValue')); + + x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]'); + + if (i.val() == '') { + i.hide(); + x.show(); + } + else { + i.show(); + x.hide(); + } + + break; + + case 'checkbox': + case 'radio': + i.attr('checked', i.attr('defaultValue')); + break; + + case 'text': + case 'textarea': + i.val(i.attr('defaultValue')); + + if (i.val() == '') { + i.addClass('polyfill-placeholder'); + i.val(i.attr('placeholder')); + } + + break; + + default: + i.val(i.attr('defaultValue')); + break; + + } + }); + + }); + + return $this; + + }; + + /** + * Moves elements to/from the first positions of their respective parents. + * @param {jQuery} $elements Elements (or selector) to move. + * @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations. + */ + $.prioritize = function($elements, condition) { + + var key = '__prioritize'; + + // Expand $elements if it's not already a jQuery object. + if (typeof $elements != 'jQuery') + $elements = $($elements); + + // Step through elements. + $elements.each(function() { + + var $e = $(this), $p, + $parent = $e.parent(); + + // No parent? Bail. + if ($parent.length == 0) + return; + + // Not moved? Move it. + if (!$e.data(key)) { + + // Condition is false? Bail. + if (!condition) + return; + + // Get placeholder (which will serve as our point of reference for when this element needs to move back). + $p = $e.prev(); + + // Couldn't find anything? Means this element's already at the top, so bail. + if ($p.length == 0) + return; + + // Move element to top of parent. + $e.prependTo($parent); + + // Mark element as moved. + $e.data(key, $p); + + } + + // Moved already? + else { + + // Condition is true? Bail. + if (condition) + return; + + $p = $e.data(key); + + // Move element back to its original location (using our placeholder). + $e.insertAfter($p); + + // Unmark element as moved. + $e.removeData(key); + + } + + }); + + }; + })(jQuery); \ No newline at end of file diff --git a/assets/sass/base/_page.scss b/assets/sass/base/_page.scss index dbd9195..84c2451 100644 --- a/assets/sass/base/_page.scss +++ b/assets/sass/base/_page.scss @@ -1,48 +1,48 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Basic */ - - // MSIE: Required for IEMobile. - @-ms-viewport { - width: device-width; - } - - // MSIE: Prevents scrollbar from overlapping content. - body { - -ms-overflow-style: scrollbar; - } - - // Ensures page width is always >=320px. - @include breakpoint('<=xsmall') { - html, body { - min-width: 320px; - } - } - - // Set box model to border-box. - // Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice - html { - box-sizing: border-box; - } - - *, *:before, *:after { - box-sizing: inherit; - } - - body { - - background-color: _palette(invert, bg); - - // Stops initial animations until page loads. - &.is-preload { - *, *:before, *:after { - @include vendor('animation', 'none !important'); - @include vendor('transition', 'none !important'); - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Basic */ + + // MSIE: Required for IEMobile. + @-ms-viewport { + width: device-width; + } + + // MSIE: Prevents scrollbar from overlapping content. + body { + -ms-overflow-style: scrollbar; + } + + // Ensures page width is always >=320px. + @include breakpoint('<=xsmall') { + html, body { + min-width: 320px; + } + } + + // Set box model to border-box. + // Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice + html { + box-sizing: border-box; + } + + *, *:before, *:after { + box-sizing: inherit; + } + + body { + + background-color: _palette(invert, bg); + + // Stops initial animations until page loads. + &.is-preload { + *, *:before, *:after { + @include vendor('animation', 'none !important'); + @include vendor('transition', 'none !important'); + } + } + } \ No newline at end of file diff --git a/assets/sass/base/_reset.scss b/assets/sass/base/_reset.scss index 90bd937..0396226 100644 --- a/assets/sass/base/_reset.scss +++ b/assets/sass/base/_reset.scss @@ -1,76 +1,76 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -// Reset. -// Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain) - - html, body, div, span, applet, object, - iframe, h1, h2, h3, h4, h5, h6, p, blockquote, - pre, a, abbr, acronym, address, big, cite, - code, del, dfn, em, img, ins, kbd, q, s, samp, - small, strike, strong, sub, sup, tt, var, b, - u, i, center, dl, dt, dd, ol, ul, li, fieldset, - form, label, legend, table, caption, tbody, - tfoot, thead, tr, th, td, article, aside, - canvas, details, embed, figure, figcaption, - footer, header, hgroup, menu, nav, output, ruby, - section, summary, time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; - } - - article, aside, details, figcaption, figure, - footer, header, hgroup, menu, nav, section { - display: block; - } - - body { - line-height: 1; - } - - ol, ul { - list-style:none; - } - - blockquote, q { - quotes: none; - - &:before, - &:after { - content: ''; - content: none; - } - } - - table { - border-collapse: collapse; - border-spacing: 0; - } - - body { - -webkit-text-size-adjust: none; - } - - mark { - background-color: transparent; - color: inherit; - } - - input::-moz-focus-inner { - border: 0; - padding: 0; - } - - input, select, textarea { - -moz-appearance: none; - -webkit-appearance: none; - -ms-appearance: none; - appearance: none; +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +// Reset. +// Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain) + + html, body, div, span, applet, object, + iframe, h1, h2, h3, h4, h5, h6, p, blockquote, + pre, a, abbr, acronym, address, big, cite, + code, del, dfn, em, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, b, + u, i, center, dl, dt, dd, ol, ul, li, fieldset, + form, label, legend, table, caption, tbody, + tfoot, thead, tr, th, td, article, aside, + canvas, details, embed, figure, figcaption, + footer, header, hgroup, menu, nav, output, ruby, + section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; + } + + article, aside, details, figcaption, figure, + footer, header, hgroup, menu, nav, section { + display: block; + } + + body { + line-height: 1; + } + + ol, ul { + list-style:none; + } + + blockquote, q { + quotes: none; + + &:before, + &:after { + content: ''; + content: none; + } + } + + table { + border-collapse: collapse; + border-spacing: 0; + } + + body { + -webkit-text-size-adjust: none; + } + + mark { + background-color: transparent; + color: inherit; + } + + input::-moz-focus-inner { + border: 0; + padding: 0; + } + + input, select, textarea { + -moz-appearance: none; + -webkit-appearance: none; + -ms-appearance: none; + appearance: none; } \ No newline at end of file diff --git a/assets/sass/base/_typography.scss b/assets/sass/base/_typography.scss index 0f0ce4a..ee8673a 100644 --- a/assets/sass/base/_typography.scss +++ b/assets/sass/base/_typography.scss @@ -1,213 +1,213 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Type */ - - html { - font-size: 16pt; - - @include breakpoint('<=xlarge') { - font-size: 12pt; - } - - @include breakpoint('<=large') { - font-size: 11pt; - } - - @include breakpoint('<=xxsmall') { - font-size: 10pt; - } - } - - body { - color: _palette(fg); - } - - body, input, select, textarea { - font-family: _font(family); - font-weight: _font(weight); - font-size: 1rem; - line-height: 2.375; - } - - a { - @include vendor('transition', ( - 'color #{_duration(transition)} ease-in-out', - 'background-color #{_duration(transition)} ease-in-out', - 'border-color #{_duration(transition)} ease-in-out', - 'box-shadow #{_duration(transition)} ease-in-out' - )); - border-bottom: dotted 1px; - text-decoration: none; - - &:hover { - border-bottom-color: transparent; - } - } - - strong, b { - font-weight: _font(weight-bold); - } - - em, i { - font-style: italic; - } - - p { - text-align: justify; - margin: 0 0 _size(element-margin) 0; - } - - h1, h2, h3, h4, h5, h6 { - font-family: _font(family-heading); - font-weight: _font(weight-heading); - line-height: 1.5; - letter-spacing: 0.075em; - text-transform: uppercase; - margin: 0 0 (_size(element-margin) * 0.5) 0; - - a { - border-bottom: 0; - color: inherit; - text-decoration: none; - } - } - - h1 { - font-size: 4rem; - line-height: 1.1; - margin: 0 0 _size(element-margin) 0; - } - - h2 { - font-size: 1.75rem; - line-height: 1.3; - margin: 0 0 (_size(element-margin) * 0.75) 0; - } - - h3 { - font-size: 1.25rem; - margin: 0 0 (_size(element-margin) * 0.75) 0; - } - - h4 { - font-size: 1rem; - } - - h5 { - font-size: 0.9rem; - } - - h6 { - font-size: 0.8rem; - } - - sub { - font-size: 0.8rem; - position: relative; - top: 0.5rem; - } - - sup { - font-size: 0.8rem; - position: relative; - top: -0.5rem; - } - - blockquote { - border-left: solid 4px; - font-style: italic; - margin: 0 0 _size(element-margin) 0; - padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin); - } - - code { - border-radius: _size(border-radius); - border: solid 2px; - font-family: _font(family-fixed); - font-size: 0.9rem; - margin: 0 0.25rem; - padding: 0.25rem 0.65rem; - } - - pre { - -webkit-overflow-scrolling: touch; - font-family: _font(family-fixed); - font-size: 0.9rem; - margin: 0 0 _size(element-margin) 0; - - code { - display: block; - line-height: 1.75; - padding: 1rem 1.5rem; - overflow-x: auto; - } - } - - hr { - border: 0; - border-bottom: solid 2px; - margin: (_size(element-margin) * 1.5) 0; - - &.major { - margin: (_size(element-margin) * 2.5) 0; - } - } - - .align-left { - text-align: left; - } - - .align-center { - text-align: center; - } - - .align-right { - text-align: right; - } - - @mixin color-typography($p: null) { - @if $p != null { - color: _palette($p, fg); - } - - input, select, textarea { - color: _palette($p, fg-bold); - } - - a { - color: _palette($p, fg-bold); - border-bottom-color: transparentize(_palette($p, fg), 0.5); - - &:hover { - border-bottom-color: transparent; - color: _palette($p, accent) !important; - } - } - - strong, b { - color: _palette($p, fg-bold); - } - - h1, h2, h3, h4, h5, h6 { - color: _palette($p, fg-bold); - } - - blockquote { - border-left-color: _palette($p, border); - } - - code { - background: _palette($p, border-bg); - border-color: _palette($p, border); - } - - hr { - border-bottom-color: _palette($p, border); - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Type */ + + html { + font-size: 16pt; + + @include breakpoint('<=xlarge') { + font-size: 12pt; + } + + @include breakpoint('<=large') { + font-size: 11pt; + } + + @include breakpoint('<=xxsmall') { + font-size: 10pt; + } + } + + body { + color: _palette(fg); + } + + body, input, select, textarea { + font-family: _font(family); + font-weight: _font(weight); + font-size: 1rem; + line-height: 2.375; + } + + a { + @include vendor('transition', ( + 'color #{_duration(transition)} ease-in-out', + 'background-color #{_duration(transition)} ease-in-out', + 'border-color #{_duration(transition)} ease-in-out', + 'box-shadow #{_duration(transition)} ease-in-out' + )); + border-bottom: dotted 1px; + text-decoration: none; + + &:hover { + border-bottom-color: transparent; + } + } + + strong, b { + font-weight: _font(weight-bold); + } + + em, i { + font-style: italic; + } + + p { + text-align: justify; + margin: 0 0 _size(element-margin) 0; + } + + h1, h2, h3, h4, h5, h6 { + font-family: _font(family-heading); + font-weight: _font(weight-heading); + line-height: 1.5; + letter-spacing: 0.075em; + text-transform: uppercase; + margin: 0 0 (_size(element-margin) * 0.5) 0; + + a { + border-bottom: 0; + color: inherit; + text-decoration: none; + } + } + + h1 { + font-size: 4rem; + line-height: 1.1; + margin: 0 0 _size(element-margin) 0; + } + + h2 { + font-size: 1.75rem; + line-height: 1.3; + margin: 0 0 (_size(element-margin) * 0.75) 0; + } + + h3 { + font-size: 1.25rem; + margin: 0 0 (_size(element-margin) * 0.75) 0; + } + + h4 { + font-size: 1rem; + } + + h5 { + font-size: 0.9rem; + } + + h6 { + font-size: 0.8rem; + } + + sub { + font-size: 0.8rem; + position: relative; + top: 0.5rem; + } + + sup { + font-size: 0.8rem; + position: relative; + top: -0.5rem; + } + + blockquote { + border-left: solid 4px; + font-style: italic; + margin: 0 0 _size(element-margin) 0; + padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin); + } + + code { + border-radius: _size(border-radius); + border: solid 2px; + font-family: _font(family-fixed); + font-size: 0.9rem; + margin: 0 0.25rem; + padding: 0.25rem 0.65rem; + } + + pre { + -webkit-overflow-scrolling: touch; + font-family: _font(family-fixed); + font-size: 0.9rem; + margin: 0 0 _size(element-margin) 0; + + code { + display: block; + line-height: 1.75; + padding: 1rem 1.5rem; + overflow-x: auto; + } + } + + hr { + border: 0; + border-bottom: solid 2px; + margin: (_size(element-margin) * 1.5) 0; + + &.major { + margin: (_size(element-margin) * 2.5) 0; + } + } + + .align-left { + text-align: left; + } + + .align-center { + text-align: center; + } + + .align-right { + text-align: right; + } + + @mixin color-typography($p: null) { + @if $p != null { + color: _palette($p, fg); + } + + input, select, textarea { + color: _palette($p, fg-bold); + } + + a { + color: _palette($p, fg-bold); + border-bottom-color: transparentize(_palette($p, fg), 0.5); + + &:hover { + border-bottom-color: transparent; + color: _palette($p, accent) !important; + } + } + + strong, b { + color: _palette($p, fg-bold); + } + + h1, h2, h3, h4, h5, h6 { + color: _palette($p, fg-bold); + } + + blockquote { + border-left-color: _palette($p, border); + } + + code { + background: _palette($p, border-bg); + border-color: _palette($p, border); + } + + hr { + border-bottom-color: _palette($p, border); + } + } + @include color-typography; \ No newline at end of file diff --git a/assets/sass/components/_actions.scss b/assets/sass/components/_actions.scss index dbed659..bd8f808 100644 --- a/assets/sass/components/_actions.scss +++ b/assets/sass/components/_actions.scss @@ -1,101 +1,101 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Actions */ - - ul.actions { - @include vendor('display', 'flex'); - cursor: default; - list-style: none; - margin-left: (_size(element-margin) * -0.5); - padding-left: 0; - - li { - padding: 0 0 0 (_size(element-margin) * 0.5); - vertical-align: middle; - } - - &.special { - @include vendor('justify-content', 'center'); - width: 100%; - margin-left: 0; - - li { - &:first-child { - padding-left: 0; - } - } - } - - &.stacked { - @include vendor('flex-direction', 'column'); - margin-left: 0; - - li { - padding: (_size(element-margin) * 0.65) 0 0 0; - - &:first-child { - padding-top: 0; - } - } - } - - &.fit { - width: calc(100% + #{_size(element-margin) * 0.5}); - - li { - @include vendor('flex-grow', '1'); - @include vendor('flex-shrink', '1'); - width: 100%; - - > * { - width: 100%; - } - } - - &.stacked { - width: 100%; - } - } - - @include breakpoint('<=xsmall') { - &:not(.fixed) { - @include vendor('flex-direction', 'column'); - margin-left: 0; - width: 100% !important; - - li { - @include vendor('flex-grow', '1'); - @include vendor('flex-shrink', '1'); - padding: (_size(element-margin) * 0.5) 0 0 0; - text-align: center; - width: 100%; - - > * { - width: 100%; - } - - &:first-child { - padding-top: 0; - } - - input[type="submit"], - input[type="reset"], - input[type="button"], - button, - .button { - width: 100%; - - &.icon { - &:before { - margin-left: -0.5rem; - } - } - } - } - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Actions */ + + ul.actions { + @include vendor('display', 'flex'); + cursor: default; + list-style: none; + margin-left: (_size(element-margin) * -0.5); + padding-left: 0; + + li { + padding: 0 0 0 (_size(element-margin) * 0.5); + vertical-align: middle; + } + + &.special { + @include vendor('justify-content', 'center'); + width: 100%; + margin-left: 0; + + li { + &:first-child { + padding-left: 0; + } + } + } + + &.stacked { + @include vendor('flex-direction', 'column'); + margin-left: 0; + + li { + padding: (_size(element-margin) * 0.65) 0 0 0; + + &:first-child { + padding-top: 0; + } + } + } + + &.fit { + width: calc(100% + #{_size(element-margin) * 0.5}); + + li { + @include vendor('flex-grow', '1'); + @include vendor('flex-shrink', '1'); + width: 100%; + + > * { + width: 100%; + } + } + + &.stacked { + width: 100%; + } + } + + @include breakpoint('<=xsmall') { + &:not(.fixed) { + @include vendor('flex-direction', 'column'); + margin-left: 0; + width: 100% !important; + + li { + @include vendor('flex-grow', '1'); + @include vendor('flex-shrink', '1'); + padding: (_size(element-margin) * 0.5) 0 0 0; + text-align: center; + width: 100%; + + > * { + width: 100%; + } + + &:first-child { + padding-top: 0; + } + + input[type="submit"], + input[type="reset"], + input[type="button"], + button, + .button { + width: 100%; + + &.icon { + &:before { + margin-left: -0.5rem; + } + } + } + } + } + } } \ No newline at end of file diff --git a/assets/sass/components/_box.scss b/assets/sass/components/_box.scss index 4fce973..20c57d9 100644 --- a/assets/sass/components/_box.scss +++ b/assets/sass/components/_box.scss @@ -1,34 +1,34 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Box */ - - .box { - border-radius: _size(border-radius); - border: solid 2px; - margin-bottom: _size(element-margin); - padding: 1.5rem; - - > :last-child, - > :last-child > :last-child, - > :last-child > :last-child > :last-child { - margin-bottom: 0; - } - - &.alt { - border: 0; - border-radius: 0; - padding: 0; - } - } - - @mixin color-box($p: null) { - .box { - border-color: _palette($p, border); - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Box */ + + .box { + border-radius: _size(border-radius); + border: solid 2px; + margin-bottom: _size(element-margin); + padding: 1.5rem; + + > :last-child, + > :last-child > :last-child, + > :last-child > :last-child > :last-child { + margin-bottom: 0; + } + + &.alt { + border: 0; + border-radius: 0; + padding: 0; + } + } + + @mixin color-box($p: null) { + .box { + border-color: _palette($p, border); + } + } + @include color-box; \ No newline at end of file diff --git a/assets/sass/components/_button.scss b/assets/sass/components/_button.scss index 4455696..b0b4821 100644 --- a/assets/sass/components/_button.scss +++ b/assets/sass/components/_button.scss @@ -1,134 +1,134 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Button */ - - input[type="submit"], - input[type="reset"], - input[type="button"], - button, - .button { - @include vendor('appearance', 'none'); - @include vendor('transition', ( - 'background-color #{_duration(transition)} ease-in-out', - 'box-shadow #{_duration(transition)} ease-in-out', - 'color #{_duration(transition)} ease-in-out' - )); - border: 0; - border-radius: 0; - cursor: pointer; - display: inline-block; - font-family: _font(family-heading); - font-size: 0.8rem; - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - height: 3rem; - line-height: 3rem; - padding: 0 2rem; - text-align: center; - text-decoration: none; - text-transform: uppercase; - white-space: nowrap; - - &.icon { - &:before { - margin-right: 0.5rem; - } - - &.solo { - position: relative; - width: 4rem; - height: 4rem; - line-height: 4rem; - border-radius: 4rem; - text-indent: 4rem; - overflow: hidden; - padding: 0; - white-space: nowrap; - - &:before { - position: absolute; - display: block; - top: 0; - left: 0; - width: inherit; - height: inherit; - line-height: inherit; - font-size: 1.25rem; - margin-right: 0; - text-align: center; - text-indent: 0; - } - } - } - - &.fit { - width: 100%; - } - - &.small { - font-size: 0.7rem; - height: 2.5rem; - line-height: 2.5rem; - padding: 0 1.5rem; - } - - &.large { - font-size: 0.9rem; - height: 3.5rem; - line-height: 3.5rem; - padding: 0 2.75rem; - } - - @include breakpoint('<=medium') { - font-size: 0.9rem; - height: 3.25rem; - line-height: 3.25rem; - - &.large { - font-size: 1rem; - height: 3.75rem; - line-height: 3.75rem; - } - } - - &.disabled, - &:disabled { - @include vendor('pointer-events', 'none'); - opacity: 0.25; - } - } - - @mixin color-button($p: null) { - $highlight: _palette($p, highlight); - - input[type="submit"], - input[type="reset"], - input[type="button"], - button, - .button { - background-color: transparent; - box-shadow: inset 0 0 0 2px _palette($p, fg-bold); - color: _palette($p, fg-bold) !important; - - &:hover { - box-shadow: inset 0 0 0 2px _palette($p, accent); - color: _palette($p, accent) !important; - } - - &.primary { - background-color: _palette($p, fg-bold); - box-shadow: none; - color: _palette($p, bg) !important; - - &:hover { - background-color: _palette($p, accent); - } - } - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Button */ + + input[type="submit"], + input[type="reset"], + input[type="button"], + button, + .button { + @include vendor('appearance', 'none'); + @include vendor('transition', ( + 'background-color #{_duration(transition)} ease-in-out', + 'box-shadow #{_duration(transition)} ease-in-out', + 'color #{_duration(transition)} ease-in-out' + )); + border: 0; + border-radius: 0; + cursor: pointer; + display: inline-block; + font-family: _font(family-heading); + font-size: 0.8rem; + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + height: 3rem; + line-height: 3rem; + padding: 0 2rem; + text-align: center; + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; + + &.icon { + &:before { + margin-right: 0.5rem; + } + + &.solo { + position: relative; + width: 4rem; + height: 4rem; + line-height: 4rem; + border-radius: 4rem; + text-indent: 4rem; + overflow: hidden; + padding: 0; + white-space: nowrap; + + &:before { + position: absolute; + display: block; + top: 0; + left: 0; + width: inherit; + height: inherit; + line-height: inherit; + font-size: 1.25rem; + margin-right: 0; + text-align: center; + text-indent: 0; + } + } + } + + &.fit { + width: 100%; + } + + &.small { + font-size: 0.7rem; + height: 2.5rem; + line-height: 2.5rem; + padding: 0 1.5rem; + } + + &.large { + font-size: 0.9rem; + height: 3.5rem; + line-height: 3.5rem; + padding: 0 2.75rem; + } + + @include breakpoint('<=medium') { + font-size: 0.9rem; + height: 3.25rem; + line-height: 3.25rem; + + &.large { + font-size: 1rem; + height: 3.75rem; + line-height: 3.75rem; + } + } + + &.disabled, + &:disabled { + @include vendor('pointer-events', 'none'); + opacity: 0.25; + } + } + + @mixin color-button($p: null) { + $highlight: _palette($p, highlight); + + input[type="submit"], + input[type="reset"], + input[type="button"], + button, + .button { + background-color: transparent; + box-shadow: inset 0 0 0 2px _palette($p, fg-bold); + color: _palette($p, fg-bold) !important; + + &:hover { + box-shadow: inset 0 0 0 2px _palette($p, accent); + color: _palette($p, accent) !important; + } + + &.primary { + background-color: _palette($p, fg-bold); + box-shadow: none; + color: _palette($p, bg) !important; + + &:hover { + background-color: _palette($p, accent); + } + } + } + } + @include color-button; \ No newline at end of file diff --git a/assets/sass/components/_form.scss b/assets/sass/components/_form.scss index 070af58..7d32759 100644 --- a/assets/sass/components/_form.scss +++ b/assets/sass/components/_form.scss @@ -1,293 +1,293 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Form */ - - form { - margin: 0 0 _size(element-margin) 0; - - > :last-child { - margin-bottom: 0; - } - - > .fields { - $gutter: (_size(element-margin) * 0.75); - - @include vendor('display', 'flex'); - @include vendor('flex-wrap', 'wrap'); - width: calc(100% + #{$gutter * 2}); - margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1); - - > .field { - @include vendor('flex-grow', '0'); - @include vendor('flex-shrink', '0'); - padding: $gutter 0 0 $gutter; - width: calc(100% - #{$gutter * 1}); - - &.half { - width: calc(50% - #{$gutter * 0.5}); - } - - &.third { - width: calc(#{100% / 3} - #{$gutter * (1 / 3)}); - } - - &.quarter { - width: calc(25% - #{$gutter * 0.25}); - } - } - } - - @include breakpoint('<=xsmall') { - > .fields { - $gutter: (_size(element-margin) * 0.75); - - width: calc(100% + #{$gutter * 2}); - margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1); - - > .field { - padding: $gutter 0 0 $gutter; - width: calc(100% - #{$gutter * 1}); - - &.half { - width: calc(100% - #{$gutter * 1}); - } - - &.third { - width: calc(100% - #{$gutter * 1}); - } - - &.quarter { - width: calc(100% - #{$gutter * 1}); - } - } - } - } - } - - label { - display: block; - font-family: _font(family-heading); - font-weight: _font(weight-heading); - line-height: 1.5; - letter-spacing: 0.075em; - font-size: 0.8rem; - text-transform: uppercase; - margin: 0 0 (_size(element-margin) * 0.375) 0; - - @include breakpoint('<=medium') { - font-size: 0.9rem; - } - } - - input[type="text"], - input[type="password"], - input[type="email"], - select, - textarea { - @include vendor('appearance', 'none'); - background: transparent; - border-radius: 0; - border: solid 2px; - color: inherit; - display: block; - outline: 0; - padding: 0 1rem; - text-decoration: none; - width: 100%; - - &:invalid { - box-shadow: none; - } - } - - select { - background-size: 1.25rem; - background-repeat: no-repeat; - background-position: calc(100% - 1rem) center; - height: _size(element-height); - padding-right: _size(element-height); - text-overflow: ellipsis; - - &:focus { - &::-ms-value { - background-color: transparent; - } - } - - &::-ms-expand { - display: none; - } - } - - input[type="text"], - input[type="password"], - input[type="email"], - select { - height: _size(element-height); - } - - textarea { - padding: 0.75rem 1rem; - } - - input[type="checkbox"], - input[type="radio"], { - @include vendor('appearance', 'none'); - display: block; - float: left; - margin-right: -2rem; - opacity: 0; - width: 1rem; - z-index: -1; - - & + label { - @include icon(false, solid); - cursor: pointer; - display: inline-block; - font-size: 1rem; - letter-spacing: 0; - font-family: _font(family); - text-transform: none; - font-weight: _font(weight); - padding-left: (_size(element-height) * 0.6) + 1rem; - padding-right: 1rem; - position: relative; - - &:before { - border-radius: 0; - border: solid 2px; - content: ''; - display: inline-block; - font-size: 0.8rem; - height: (_size(element-height) * 0.6); - left: 0; - line-height: (_size(element-height) * 0.55); - position: absolute; - text-align: center; - top: -0.125rem; - width: (_size(element-height) * 0.6); - } - } - - &:checked + label { - &:before { - content: '\f00c'; - } - } - } - - input[type="checkbox"] { - & + label { - &:before { - border-radius: 0; - } - } - } - - input[type="radio"] { - & + label { - &:before { - border-radius: 100%; - } - } - } - - ::-webkit-input-placeholder { - opacity: 1.0; - } - - :-moz-placeholder { - opacity: 1.0; - } - - ::-moz-placeholder { - opacity: 1.0; - } - - :-ms-input-placeholder { - opacity: 1.0; - } - - @mixin color-form($p: null) { - label { - color: _palette($p, fg-bold); - } - - input[type="text"], - input[type="password"], - input[type="email"], - select, - textarea { - border-color: _palette($p, border); - - &:focus { - border-color: _palette($p, accent); - } - } - - select { - background-image: svg-url(""); - - option { - background-color: _palette($p, bg); - color: _palette($p, fg); - } - } - - .select-wrapper { - &:before { - color: _palette($p, border); - } - } - - input[type="checkbox"], - input[type="radio"], { - & + label { - color: _palette($p, fg); - - &:before { - border-color: _palette($p, border); - } - } - - &:checked + label { - &:before { - background-color: _palette($p, fg-bold); - border-color: _palette($p, fg-bold); - color: _palette($p, bg); - } - } - - &:focus + label { - &:before { - border-color: _palette($p, accent); - } - } - } - - ::-webkit-input-placeholder { - color: _palette($p, fg-light) !important; - } - - :-moz-placeholder { - color: _palette($p, fg-light) !important; - } - - ::-moz-placeholder { - color: _palette($p, fg-light) !important; - } - - :-ms-input-placeholder { - color: _palette($p, fg-light) !important; - } - - .formerize-placeholder { - color: _palette($p, fg-light) !important; - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Form */ + + form { + margin: 0 0 _size(element-margin) 0; + + > :last-child { + margin-bottom: 0; + } + + > .fields { + $gutter: (_size(element-margin) * 0.75); + + @include vendor('display', 'flex'); + @include vendor('flex-wrap', 'wrap'); + width: calc(100% + #{$gutter * 2}); + margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1); + + > .field { + @include vendor('flex-grow', '0'); + @include vendor('flex-shrink', '0'); + padding: $gutter 0 0 $gutter; + width: calc(100% - #{$gutter * 1}); + + &.half { + width: calc(50% - #{$gutter * 0.5}); + } + + &.third { + width: calc(#{100% / 3} - #{$gutter * (1 / 3)}); + } + + &.quarter { + width: calc(25% - #{$gutter * 0.25}); + } + } + } + + @include breakpoint('<=xsmall') { + > .fields { + $gutter: (_size(element-margin) * 0.75); + + width: calc(100% + #{$gutter * 2}); + margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1); + + > .field { + padding: $gutter 0 0 $gutter; + width: calc(100% - #{$gutter * 1}); + + &.half { + width: calc(100% - #{$gutter * 1}); + } + + &.third { + width: calc(100% - #{$gutter * 1}); + } + + &.quarter { + width: calc(100% - #{$gutter * 1}); + } + } + } + } + } + + label { + display: block; + font-family: _font(family-heading); + font-weight: _font(weight-heading); + line-height: 1.5; + letter-spacing: 0.075em; + font-size: 0.8rem; + text-transform: uppercase; + margin: 0 0 (_size(element-margin) * 0.375) 0; + + @include breakpoint('<=medium') { + font-size: 0.9rem; + } + } + + input[type="text"], + input[type="password"], + input[type="email"], + select, + textarea { + @include vendor('appearance', 'none'); + background: transparent; + border-radius: 0; + border: solid 2px; + color: inherit; + display: block; + outline: 0; + padding: 0 1rem; + text-decoration: none; + width: 100%; + + &:invalid { + box-shadow: none; + } + } + + select { + background-size: 1.25rem; + background-repeat: no-repeat; + background-position: calc(100% - 1rem) center; + height: _size(element-height); + padding-right: _size(element-height); + text-overflow: ellipsis; + + &:focus { + &::-ms-value { + background-color: transparent; + } + } + + &::-ms-expand { + display: none; + } + } + + input[type="text"], + input[type="password"], + input[type="email"], + select { + height: _size(element-height); + } + + textarea { + padding: 0.75rem 1rem; + } + + input[type="checkbox"], + input[type="radio"], { + @include vendor('appearance', 'none'); + display: block; + float: left; + margin-right: -2rem; + opacity: 0; + width: 1rem; + z-index: -1; + + & + label { + @include icon(false, solid); + cursor: pointer; + display: inline-block; + font-size: 1rem; + letter-spacing: 0; + font-family: _font(family); + text-transform: none; + font-weight: _font(weight); + padding-left: (_size(element-height) * 0.6) + 1rem; + padding-right: 1rem; + position: relative; + + &:before { + border-radius: 0; + border: solid 2px; + content: ''; + display: inline-block; + font-size: 0.8rem; + height: (_size(element-height) * 0.6); + left: 0; + line-height: (_size(element-height) * 0.55); + position: absolute; + text-align: center; + top: -0.125rem; + width: (_size(element-height) * 0.6); + } + } + + &:checked + label { + &:before { + content: '\f00c'; + } + } + } + + input[type="checkbox"] { + & + label { + &:before { + border-radius: 0; + } + } + } + + input[type="radio"] { + & + label { + &:before { + border-radius: 100%; + } + } + } + + ::-webkit-input-placeholder { + opacity: 1.0; + } + + :-moz-placeholder { + opacity: 1.0; + } + + ::-moz-placeholder { + opacity: 1.0; + } + + :-ms-input-placeholder { + opacity: 1.0; + } + + @mixin color-form($p: null) { + label { + color: _palette($p, fg-bold); + } + + input[type="text"], + input[type="password"], + input[type="email"], + select, + textarea { + border-color: _palette($p, border); + + &:focus { + border-color: _palette($p, accent); + } + } + + select { + background-image: svg-url(""); + + option { + background-color: _palette($p, bg); + color: _palette($p, fg); + } + } + + .select-wrapper { + &:before { + color: _palette($p, border); + } + } + + input[type="checkbox"], + input[type="radio"], { + & + label { + color: _palette($p, fg); + + &:before { + border-color: _palette($p, border); + } + } + + &:checked + label { + &:before { + background-color: _palette($p, fg-bold); + border-color: _palette($p, fg-bold); + color: _palette($p, bg); + } + } + + &:focus + label { + &:before { + border-color: _palette($p, accent); + } + } + } + + ::-webkit-input-placeholder { + color: _palette($p, fg-light) !important; + } + + :-moz-placeholder { + color: _palette($p, fg-light) !important; + } + + ::-moz-placeholder { + color: _palette($p, fg-light) !important; + } + + :-ms-input-placeholder { + color: _palette($p, fg-light) !important; + } + + .formerize-placeholder { + color: _palette($p, fg-light) !important; + } + } + @include color-form; \ No newline at end of file diff --git a/assets/sass/components/_icon.scss b/assets/sass/components/_icon.scss index a200c48..35d94dc 100644 --- a/assets/sass/components/_icon.scss +++ b/assets/sass/components/_icon.scss @@ -1,33 +1,33 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Icon */ - - .icon { - @include icon; - border-bottom: none; - position: relative; - - > .label { - display: none; - } - - &:before { - line-height: inherit; - } - - &.solid { - &:before { - font-weight: 900; - } - } - - &.brands { - &:before { - font-family: 'Font Awesome 5 Brands'; - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Icon */ + + .icon { + @include icon; + border-bottom: none; + position: relative; + + > .label { + display: none; + } + + &:before { + line-height: inherit; + } + + &.solid { + &:before { + font-weight: 900; + } + } + + &.brands { + &:before { + font-family: 'Font Awesome 5 Brands'; + } + } } \ No newline at end of file diff --git a/assets/sass/components/_icons.scss b/assets/sass/components/_icons.scss index eedac1a..fb9e829 100644 --- a/assets/sass/components/_icons.scss +++ b/assets/sass/components/_icons.scss @@ -1,52 +1,52 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Icons */ - - ul.icons { - cursor: default; - list-style: none; - padding-left: 0; - - li { - display: inline-block; - padding: 0 0.5rem 0 0; - vertical-align: middle; - - &:last-child { - padding-right: 0; - } - - .icon { - &:before { - width: 2.25rem; - height: 2.25rem; - line-height: 2.25rem; - display: inline-block; - text-align: center; - border-radius: 100%; - font-size: 1.25rem; - } - } - } - - &.alt { - li { - .icon { - &:before { - @include vendor('transition', ( - 'color #{_duration(transition)} ease-in-out', - 'background-color #{_duration(transition)} ease-in-out', - 'border-color #{_duration(transition)} ease-in-out', - 'box-shadow #{_duration(transition)} ease-in-out' - )); - - font-size: 1rem; - } - } - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Icons */ + + ul.icons { + cursor: default; + list-style: none; + padding-left: 0; + + li { + display: inline-block; + padding: 0 0.5rem 0 0; + vertical-align: middle; + + &:last-child { + padding-right: 0; + } + + .icon { + &:before { + width: 2.25rem; + height: 2.25rem; + line-height: 2.25rem; + display: inline-block; + text-align: center; + border-radius: 100%; + font-size: 1.25rem; + } + } + } + + &.alt { + li { + .icon { + &:before { + @include vendor('transition', ( + 'color #{_duration(transition)} ease-in-out', + 'background-color #{_duration(transition)} ease-in-out', + 'border-color #{_duration(transition)} ease-in-out', + 'box-shadow #{_duration(transition)} ease-in-out' + )); + + font-size: 1rem; + } + } + } + } } \ No newline at end of file diff --git a/assets/sass/components/_image.scss b/assets/sass/components/_image.scss index 5fa5a40..a86eb43 100644 --- a/assets/sass/components/_image.scss +++ b/assets/sass/components/_image.scss @@ -1,92 +1,92 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Image */ - - .image { - border: 0; - border-radius: _size(border-radius); - display: inline-block; - position: relative; - - img { - border-radius: _size(border-radius); - display: block; - } - - &.left, - &.right { - max-width: 40%; - - img { - width: 100%; - } - } - - &.left { - float: left; - margin: 0 2rem 2rem 0; - top: 0.75rem; - } - - &.right { - float: right; - margin: 0 0 2rem 2rem; - top: 0.75rem; - } - - &.fit { - display: block; - margin: (_size(element-margin) * 1.25) 0; - width: 100%; - - &:first-child { - margin-top: 0; - } - - img { - width: 100%; - } - } - - &.main { - display: block; - margin: (_size(element-margin) * 2) 0; - width: 100%; - - &:first-child { - margin-top: 0; - } - - img { - width: 100%; - } - } - - @include breakpoint('<=small') { - &.fit { - margin: _size(element-margin) 0; - } - - &.main { - margin: _size(element-margin) 0; - } - } - } - - a.image { - overflow: hidden; - - img { - @include vendor('transition', 'transform #{_duration(transition)} ease-out'); - } - - &:hover { - img { - @include vendor('transform', 'scale(1.05)'); - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Image */ + + .image { + border: 0; + border-radius: _size(border-radius); + display: inline-block; + position: relative; + + img { + border-radius: _size(border-radius); + display: block; + } + + &.left, + &.right { + max-width: 40%; + + img { + width: 100%; + } + } + + &.left { + float: left; + margin: 0 2rem 2rem 0; + top: 0.75rem; + } + + &.right { + float: right; + margin: 0 0 2rem 2rem; + top: 0.75rem; + } + + &.fit { + display: block; + margin: (_size(element-margin) * 1.25) 0; + width: 100%; + + &:first-child { + margin-top: 0; + } + + img { + width: 100%; + } + } + + &.main { + display: block; + margin: (_size(element-margin) * 2) 0; + width: 100%; + + &:first-child { + margin-top: 0; + } + + img { + width: 100%; + } + } + + @include breakpoint('<=small') { + &.fit { + margin: _size(element-margin) 0; + } + + &.main { + margin: _size(element-margin) 0; + } + } + } + + a.image { + overflow: hidden; + + img { + @include vendor('transition', 'transform #{_duration(transition)} ease-out'); + } + + &:hover { + img { + @include vendor('transform', 'scale(1.05)'); + } + } } \ No newline at end of file diff --git a/assets/sass/components/_list.scss b/assets/sass/components/_list.scss index 42e905d..9ef7786 100644 --- a/assets/sass/components/_list.scss +++ b/assets/sass/components/_list.scss @@ -1,98 +1,98 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* List */ - - ol { - list-style: decimal; - margin: 0 0 _size(element-margin) 0; - padding-left: 1.25rem; - - li { - padding-left: 0.25rem; - } - } - - ul { - list-style: disc; - margin: 0 0 _size(element-margin) 0; - padding-left: 1rem; - - li { - padding-left: 0.5rem; - } - - &.divided { - list-style: none; - padding-left: 0; - - li { - border-top: solid 1px; - padding: 0.5rem 0; - - &:first-child { - border-top: 0; - padding-top: 0; - } - } - } - } - - dl { - margin: 0 0 _size(element-margin) 0; - - dt { - display: block; - font-weight: _font(weight-bold); - margin: 0 0 (_size(element-margin) * 0.5) 0; - } - - dd { - margin-left: _size(element-margin); - } - } - - @mixin color-list($p: null) { - ul { - &.divided { - li { - border-top-color: _palette($p, border); - } - } - - &.icons { - li { - a.icon { - &:hover { - &:before { - color: _palette($p, accent); - } - } - } - } - - &.alt { - li { - .icon { - &:before { - box-shadow: inset 0 0 0 2px _palette($p, border); - } - } - - a.icon { - &:hover { - &:before { - box-shadow: inset 0 0 0 2px _palette($p, accent); - } - } - } - } - } - } - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* List */ + + ol { + list-style: decimal; + margin: 0 0 _size(element-margin) 0; + padding-left: 1.25rem; + + li { + padding-left: 0.25rem; + } + } + + ul { + list-style: disc; + margin: 0 0 _size(element-margin) 0; + padding-left: 1rem; + + li { + padding-left: 0.5rem; + } + + &.divided { + list-style: none; + padding-left: 0; + + li { + border-top: solid 1px; + padding: 0.5rem 0; + + &:first-child { + border-top: 0; + padding-top: 0; + } + } + } + } + + dl { + margin: 0 0 _size(element-margin) 0; + + dt { + display: block; + font-weight: _font(weight-bold); + margin: 0 0 (_size(element-margin) * 0.5) 0; + } + + dd { + margin-left: _size(element-margin); + } + } + + @mixin color-list($p: null) { + ul { + &.divided { + li { + border-top-color: _palette($p, border); + } + } + + &.icons { + li { + a.icon { + &:hover { + &:before { + color: _palette($p, accent); + } + } + } + } + + &.alt { + li { + .icon { + &:before { + box-shadow: inset 0 0 0 2px _palette($p, border); + } + } + + a.icon { + &:hover { + &:before { + box-shadow: inset 0 0 0 2px _palette($p, accent); + } + } + } + } + } + } + } + } + @include color-list; \ No newline at end of file diff --git a/assets/sass/components/_pagination.scss b/assets/sass/components/_pagination.scss index 576f2b2..b9043a3 100644 --- a/assets/sass/components/_pagination.scss +++ b/assets/sass/components/_pagination.scss @@ -1,111 +1,111 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Pagination */ - - .pagination { - @include vendor('display', 'inline-flex'); - @include vendor('user-select', 'none'); - cursor: default; - list-style: none; - margin: 0 0 _size(element-margin) 2px; - padding: 0; - - a, span { - @include vendor('transition', ( - 'background-color #{_duration(transition)} ease-in-out', - 'border-color #{_duration(transition)} ease-in-out', - 'box-shadow #{_duration(transition)} ease-in-out', - 'color #{_duration(transition)} ease-in-out' - )); - border: solid 2px; - display: inline-block; - font-family: _font(family-heading); - font-size: 0.8rem; - font-weight: _font(weight-heading); - height: _size(element-height); - letter-spacing: 0.075em; - letter-spacing: _font(letter-spacing-heading); - line-height: calc(#{_size(element-height)} - 4px); - margin-left: -2px; - min-width: _size(element-height); - position: relative; - text-align: center; - text-decoration: none; - text-transform: uppercase; - } - - .next, .previous { - @include icon(false, solid); - padding: 0 1.75rem; - - &:before { - display: inline-block; - color: inherit !important; - line-height: inherit; - } - } - - .previous { - &:before { - content: '\f104'; - margin-right: (0.75em / 0.8); - } - } - - .next { - &:before { - content: '\f105'; - float: right; - margin-left: (0.75em / 0.8); - } - } - - @include breakpoint('<=medium') { - a, span { - font-size: 0.9rem; - } - } - - @include breakpoint('<=xsmall') { - .page, .extra { - display: none; - } - } - } - - @mixin color-pagination($p: null) { - .pagination { - a, span { - border-color: _palette($p, border); - } - - a { - color: _palette($p, fg-bold) !important; - - &:hover { - color: _palette($p, accent) !important; - border-color: _palette($p, accent); - z-index: 1; - - & + a, - & + span { - border-left-color: _palette($p, accent); - } - } - - &.active { - background-color: _palette($p, border); - } - } - - span { - color: _palette($p, border); - } - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Pagination */ + + .pagination { + @include vendor('display', 'inline-flex'); + @include vendor('user-select', 'none'); + cursor: default; + list-style: none; + margin: 0 0 _size(element-margin) 2px; + padding: 0; + + a, span { + @include vendor('transition', ( + 'background-color #{_duration(transition)} ease-in-out', + 'border-color #{_duration(transition)} ease-in-out', + 'box-shadow #{_duration(transition)} ease-in-out', + 'color #{_duration(transition)} ease-in-out' + )); + border: solid 2px; + display: inline-block; + font-family: _font(family-heading); + font-size: 0.8rem; + font-weight: _font(weight-heading); + height: _size(element-height); + letter-spacing: 0.075em; + letter-spacing: _font(letter-spacing-heading); + line-height: calc(#{_size(element-height)} - 4px); + margin-left: -2px; + min-width: _size(element-height); + position: relative; + text-align: center; + text-decoration: none; + text-transform: uppercase; + } + + .next, .previous { + @include icon(false, solid); + padding: 0 1.75rem; + + &:before { + display: inline-block; + color: inherit !important; + line-height: inherit; + } + } + + .previous { + &:before { + content: '\f104'; + margin-right: (0.75em / 0.8); + } + } + + .next { + &:before { + content: '\f105'; + float: right; + margin-left: (0.75em / 0.8); + } + } + + @include breakpoint('<=medium') { + a, span { + font-size: 0.9rem; + } + } + + @include breakpoint('<=xsmall') { + .page, .extra { + display: none; + } + } + } + + @mixin color-pagination($p: null) { + .pagination { + a, span { + border-color: _palette($p, border); + } + + a { + color: _palette($p, fg-bold) !important; + + &:hover { + color: _palette($p, accent) !important; + border-color: _palette($p, accent); + z-index: 1; + + & + a, + & + span { + border-left-color: _palette($p, accent); + } + } + + &.active { + background-color: _palette($p, border); + } + } + + span { + color: _palette($p, border); + } + } + } + @include color-pagination; \ No newline at end of file diff --git a/assets/sass/components/_row.scss b/assets/sass/components/_row.scss index b7c827f..eda5ae6 100644 --- a/assets/sass/components/_row.scss +++ b/assets/sass/components/_row.scss @@ -1,35 +1,35 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Row */ - - .row { - @include html-grid(1.5rem); - - @include breakpoint('<=xlarge') { - @include html-grid(1.5rem, 'xlarge'); - } - - @include breakpoint('<=large') { - @include html-grid(1.5rem, 'large'); - } - - @include breakpoint('<=medium') { - @include html-grid(1.5rem, 'medium'); - } - - @include breakpoint('<=small') { - @include html-grid(1.5rem, 'small'); - } - - @include breakpoint('<=xsmall') { - @include html-grid(1.5rem, 'xsmall'); - } - - @include breakpoint('<=xxsmall') { - @include html-grid(1.5rem, 'xxsmall'); - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Row */ + + .row { + @include html-grid(1.5rem); + + @include breakpoint('<=xlarge') { + @include html-grid(1.5rem, 'xlarge'); + } + + @include breakpoint('<=large') { + @include html-grid(1.5rem, 'large'); + } + + @include breakpoint('<=medium') { + @include html-grid(1.5rem, 'medium'); + } + + @include breakpoint('<=small') { + @include html-grid(1.5rem, 'small'); + } + + @include breakpoint('<=xsmall') { + @include html-grid(1.5rem, 'xsmall'); + } + + @include breakpoint('<=xxsmall') { + @include html-grid(1.5rem, 'xxsmall'); + } } \ No newline at end of file diff --git a/assets/sass/components/_section.scss b/assets/sass/components/_section.scss index ef9f852..0f5d96d 100644 --- a/assets/sass/components/_section.scss +++ b/assets/sass/components/_section.scss @@ -1,112 +1,112 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Section/Article */ - - section, article { - &.special { - text-align: center; - } - } - - header { - cursor: default; - - > .date { - display: block; - font-size: 0.8rem; - height: 1; - margin: 0 0 (_size(element-margin) * 0.5) 0; - position: relative; - } - - > p { - font-style: italic; - } - - > h1 + p { - font-size: 1.1rem; - margin-top: -0.5rem; - line-height: 2; - } - - > h2 + p { - font-size: 1rem; - margin-top: -0.75rem; - } - - > h3 + p { - font-size: 0.9rem; - margin-top: -0.75rem; - } - - > h4 + p { - font-size: 0.8rem; - margin-top: -0.75rem; - } - - &.major { - margin: 0 0 (_size(element-margin) * 2) 0; - text-align: center; - - > :last-child { - margin-bottom: 0; - } - - > p { - margin-top: 0; - text-align: center; - } - - > .date { - font-size: 1rem; - margin: 0 0 (_size(element-margin) * 2) 0; - - &:before, &:after { - content: ''; - display: block; - position: absolute; - top: 50%; - width: calc(50% - 6rem); - border-top: solid 2px; - } - - &:before { - left: 0; - } - - &:after { - right: 0; - } - } - } - - @include breakpoint('<=medium') { - br { - display: none; - } - } - - @include breakpoint('<=small') { - &.major { - margin: 0 0 _size(element-margin) 0; - } - } - } - - @mixin color-section($p: null) { - header { - &.major { - .date { - &:before, &:after { - border-top-color: _palette($p, border); - } - } - } - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Section/Article */ + + section, article { + &.special { + text-align: center; + } + } + + header { + cursor: default; + + > .date { + display: block; + font-size: 0.8rem; + height: 1; + margin: 0 0 (_size(element-margin) * 0.5) 0; + position: relative; + } + + > p { + font-style: italic; + } + + > h1 + p { + font-size: 1.1rem; + margin-top: -0.5rem; + line-height: 2; + } + + > h2 + p { + font-size: 1rem; + margin-top: -0.75rem; + } + + > h3 + p { + font-size: 0.9rem; + margin-top: -0.75rem; + } + + > h4 + p { + font-size: 0.8rem; + margin-top: -0.75rem; + } + + &.major { + margin: 0 0 (_size(element-margin) * 2) 0; + text-align: center; + + > :last-child { + margin-bottom: 0; + } + + > p { + margin-top: 0; + text-align: center; + } + + > .date { + font-size: 1rem; + margin: 0 0 (_size(element-margin) * 2) 0; + + &:before, &:after { + content: ''; + display: block; + position: absolute; + top: 50%; + width: calc(50% - 6rem); + border-top: solid 2px; + } + + &:before { + left: 0; + } + + &:after { + right: 0; + } + } + } + + @include breakpoint('<=medium') { + br { + display: none; + } + } + + @include breakpoint('<=small') { + &.major { + margin: 0 0 _size(element-margin) 0; + } + } + } + + @mixin color-section($p: null) { + header { + &.major { + .date { + &:before, &:after { + border-top-color: _palette($p, border); + } + } + } + } + } + @include color-section; \ No newline at end of file diff --git a/assets/sass/components/_table.scss b/assets/sass/components/_table.scss index 7c9e2d8..9a30143 100644 --- a/assets/sass/components/_table.scss +++ b/assets/sass/components/_table.scss @@ -1,122 +1,122 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Table */ - - .table-wrapper { - -webkit-overflow-scrolling: touch; - overflow-x: auto; - } - - table { - margin: 0 0 _size(element-margin) 0; - width: 100%; - - tbody { - tr { - border: solid 1px; - border-left: 0; - border-right: 0; - } - } - - td { - padding: 0.75rem 0.75rem; - } - - th { - font-family: _font(family-heading); - font-size: 0.8rem; - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - line-height: 1.5; - padding: 0 0.75rem 0.75rem 0.75rem; - text-align: left; - text-transform: uppercase; - - @include breakpoint('<=medium') { - font-size: 0.9rem; - } - } - - thead { - border-bottom: solid 2px; - } - - tfoot { - border-top: solid 2px; - } - - &.alt { - border-collapse: separate; - - tbody { - tr { - td { - border: solid 1px; - border-left-width: 0; - border-top-width: 0; - - &:first-child { - border-left-width: 1px; - } - } - - &:first-child { - td { - border-top-width: 1px; - } - } - } - } - - thead { - border-bottom: 0; - } - - tfoot { - border-top: 0; - } - } - } - - @mixin color-table($p: null) { - table { - tbody { - tr { - border-color: _palette($p, border); - - &:nth-child(2n + 1) { - background-color: _palette($p, border-bg); - } - } - } - - th { - color: _palette($p, fg-bold); - } - - thead { - border-bottom-color: _palette($p, border); - } - - tfoot { - border-top-color: _palette($p, border); - } - - &.alt { - tbody { - tr { - td { - border-color: _palette($p, border); - } - } - } - } - } - } - +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Table */ + + .table-wrapper { + -webkit-overflow-scrolling: touch; + overflow-x: auto; + } + + table { + margin: 0 0 _size(element-margin) 0; + width: 100%; + + tbody { + tr { + border: solid 1px; + border-left: 0; + border-right: 0; + } + } + + td { + padding: 0.75rem 0.75rem; + } + + th { + font-family: _font(family-heading); + font-size: 0.8rem; + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + line-height: 1.5; + padding: 0 0.75rem 0.75rem 0.75rem; + text-align: left; + text-transform: uppercase; + + @include breakpoint('<=medium') { + font-size: 0.9rem; + } + } + + thead { + border-bottom: solid 2px; + } + + tfoot { + border-top: solid 2px; + } + + &.alt { + border-collapse: separate; + + tbody { + tr { + td { + border: solid 1px; + border-left-width: 0; + border-top-width: 0; + + &:first-child { + border-left-width: 1px; + } + } + + &:first-child { + td { + border-top-width: 1px; + } + } + } + } + + thead { + border-bottom: 0; + } + + tfoot { + border-top: 0; + } + } + } + + @mixin color-table($p: null) { + table { + tbody { + tr { + border-color: _palette($p, border); + + &:nth-child(2n + 1) { + background-color: _palette($p, border-bg); + } + } + } + + th { + color: _palette($p, fg-bold); + } + + thead { + border-bottom-color: _palette($p, border); + } + + tfoot { + border-top-color: _palette($p, border); + } + + &.alt { + tbody { + tr { + td { + border-color: _palette($p, border); + } + } + } + } + } + } + @include color-table; \ No newline at end of file diff --git a/assets/sass/layout/_footer.scss b/assets/sass/layout/_footer.scss index f1328f8..09bbc20 100644 --- a/assets/sass/layout/_footer.scss +++ b/assets/sass/layout/_footer.scss @@ -1,243 +1,243 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Footer */ - - #footer { - @include color(alt); - @include vendor('display', 'flex'); - background-color: _palette(alt, bg); - color: _palette(fg-light); - cursor: default; - position: relative; - margin: 0 auto; - width: calc(100% - #{_size(padding) * 2}); - max-width: _size(wrapper); - z-index: 2; - - > section { - @include vendor('flex-basis', '50%'); - @include vendor('flex-grow', '1'); - @include vendor('flex-shrink', '1'); - @include padding((_size(padding) * 2), (_size(padding) * 2)); - border-left: solid 2px _palette(alt, border); - - &:first-child { - border-left: 0; - } - - &.split { - @include vendor('display', 'flex'); - @include vendor('flex-direction', 'column'); - padding: 0; - - > section { - @include padding((_size(padding) * 2) - 1, (_size(padding) * 2)); - border-top: solid 2px _palette(alt, border); - - &:first-child { - @include padding((_size(padding) * 2) - 1, (_size(padding) * 2), (_size(padding), 0, 0, 0)); - border-top: 0; - } - - &:last-child { - @include padding((_size(padding) * 2) - 1, (_size(padding) * 2), (0, 0, _size(padding), 0)); - } - } - - &.contact { - > section { - @include vendor('display', 'flex'); - @include vendor('align-items', 'center'); - padding: (_size(padding) * 1.575) (_size(padding) * 2); - - > * { - margin-bottom: 0; - } - - > :first-child { - @include vendor('flex-shrink', '0'); - @include vendor('flex-grow', '0'); - width: 6rem; - } - - > :last-child { - @include vendor('flex-shrink', '1'); - @include vendor('flex-grow', '1'); - } - - &:first-child { - padding: (_size(padding) * 2) (_size(padding) * 2) ((_size(padding) * 2) - 1) (_size(padding) * 2); - } - - &:last-child { - padding: ((_size(padding) * 2) - 1) (_size(padding) * 2) (_size(padding) * 2) (_size(padding) * 2); - } - - &.alt { - @include vendor('align-items', 'flex-start'); - - > :last-child { - margin-top: -0.325rem; - } - } - } - } - } - } - - form label, - h3, - p { - font-size: 0.8rem; - } - - @include breakpoint('<=medium') { - display: block; - - > section { - border-top: solid 2px _palette(alt, border); - - &:first-child { - border-top: 0; - } - - &.split { - > section { - @include padding((_size(padding) * 2), (_size(padding) * 2)); - - &:first-child { - @include padding((_size(padding) * 2), (_size(padding) * 2)); - } - - &:last-child { - @include padding((_size(padding) * 2), (_size(padding) * 2)); - } - } - - &.contact { - > section { - padding: (_size(padding) * 2); - - &:first-child { - padding: (_size(padding) * 2); - } - - &:last-child { - padding: (_size(padding) * 2); - } - } - } - } - } - - form label, - h3, - p { - font-size: 0.9rem; - } - } - - @include breakpoint('<=small') { - > section { - @include padding((_size(padding) * 1), (_size(padding) * 1)); - - &.split { - > section { - @include padding((_size(padding) * 1), (_size(padding) * 1)); - - &:first-child { - @include padding((_size(padding) * 1), (_size(padding) * 1)); - } - - &:last-child { - @include padding((_size(padding) * 1), (_size(padding) * 1)); - } - } - - &.contact { - > section { - padding: (_size(padding) * 1); - - &:first-child { - padding: (_size(padding) * 1); - } - - &:last-child { - padding: (_size(padding) * 1); - } - } - } - } - } - } - - @include breakpoint('<=xsmall') { - width: 100%; - } - } - - #copyright { - @include color-typography(invert); - position: relative; - color: transparentize(_palette(invert, fg), 0.75); - cursor: default; - font-family: _font(family-heading); - font-size: 0.8rem; - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - line-height: 1.5; - text-align: center; - text-transform: uppercase; - margin: (_size(padding) * 2) auto (_size(padding) * 4) auto; - width: calc(100% - #{_size(padding) * 2}); - max-width: _size(wrapper); - z-index: 2; - - a { - color: inherit; - border-bottom-color: inherit; - } - - ul { - list-style: none; - margin: 0; - padding-left: 0; - - li { - border-left: solid 2px; - display: inline-block; - line-height: 1; - margin-left: 1rem; - padding-left: 1rem; - - &:first-child { - border-left: 0; - margin-left: 0; - padding-left: 0; - } - } - } - - @include breakpoint('<=large') { - margin: (_size(padding) * 2) auto; - } - - @include breakpoint('<=xsmall') { - ul { - li { - border-left: 0; - margin: 1rem 0 0 0; - padding-left: 0; - display: block; - - &:first-child { - margin-top: 0; - } - } - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Footer */ + + #footer { + @include color(alt); + @include vendor('display', 'flex'); + background-color: _palette(alt, bg); + color: _palette(fg-light); + cursor: default; + position: relative; + margin: 0 auto; + width: calc(100% - #{_size(padding) * 2}); + max-width: _size(wrapper); + z-index: 2; + + > section { + @include vendor('flex-basis', '50%'); + @include vendor('flex-grow', '1'); + @include vendor('flex-shrink', '1'); + @include padding((_size(padding) * 2), (_size(padding) * 2)); + border-left: solid 2px _palette(alt, border); + + &:first-child { + border-left: 0; + } + + &.split { + @include vendor('display', 'flex'); + @include vendor('flex-direction', 'column'); + padding: 0; + + > section { + @include padding((_size(padding) * 2) - 1, (_size(padding) * 2)); + border-top: solid 2px _palette(alt, border); + + &:first-child { + @include padding((_size(padding) * 2) - 1, (_size(padding) * 2), (_size(padding), 0, 0, 0)); + border-top: 0; + } + + &:last-child { + @include padding((_size(padding) * 2) - 1, (_size(padding) * 2), (0, 0, _size(padding), 0)); + } + } + + &.contact { + > section { + @include vendor('display', 'flex'); + @include vendor('align-items', 'center'); + padding: (_size(padding) * 1.575) (_size(padding) * 2); + + > * { + margin-bottom: 0; + } + + > :first-child { + @include vendor('flex-shrink', '0'); + @include vendor('flex-grow', '0'); + width: 6rem; + } + + > :last-child { + @include vendor('flex-shrink', '1'); + @include vendor('flex-grow', '1'); + } + + &:first-child { + padding: (_size(padding) * 2) (_size(padding) * 2) ((_size(padding) * 2) - 1) (_size(padding) * 2); + } + + &:last-child { + padding: ((_size(padding) * 2) - 1) (_size(padding) * 2) (_size(padding) * 2) (_size(padding) * 2); + } + + &.alt { + @include vendor('align-items', 'flex-start'); + + > :last-child { + margin-top: -0.325rem; + } + } + } + } + } + } + + form label, + h3, + p { + font-size: 0.8rem; + } + + @include breakpoint('<=medium') { + display: block; + + > section { + border-top: solid 2px _palette(alt, border); + + &:first-child { + border-top: 0; + } + + &.split { + > section { + @include padding((_size(padding) * 2), (_size(padding) * 2)); + + &:first-child { + @include padding((_size(padding) * 2), (_size(padding) * 2)); + } + + &:last-child { + @include padding((_size(padding) * 2), (_size(padding) * 2)); + } + } + + &.contact { + > section { + padding: (_size(padding) * 2); + + &:first-child { + padding: (_size(padding) * 2); + } + + &:last-child { + padding: (_size(padding) * 2); + } + } + } + } + } + + form label, + h3, + p { + font-size: 0.9rem; + } + } + + @include breakpoint('<=small') { + > section { + @include padding((_size(padding) * 1), (_size(padding) * 1)); + + &.split { + > section { + @include padding((_size(padding) * 1), (_size(padding) * 1)); + + &:first-child { + @include padding((_size(padding) * 1), (_size(padding) * 1)); + } + + &:last-child { + @include padding((_size(padding) * 1), (_size(padding) * 1)); + } + } + + &.contact { + > section { + padding: (_size(padding) * 1); + + &:first-child { + padding: (_size(padding) * 1); + } + + &:last-child { + padding: (_size(padding) * 1); + } + } + } + } + } + } + + @include breakpoint('<=xsmall') { + width: 100%; + } + } + + #copyright { + @include color-typography(invert); + position: relative; + color: transparentize(_palette(invert, fg), 0.75); + cursor: default; + font-family: _font(family-heading); + font-size: 0.8rem; + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + line-height: 1.5; + text-align: center; + text-transform: uppercase; + margin: (_size(padding) * 2) auto (_size(padding) * 4) auto; + width: calc(100% - #{_size(padding) * 2}); + max-width: _size(wrapper); + z-index: 2; + + a { + color: inherit; + border-bottom-color: inherit; + } + + ul { + list-style: none; + margin: 0; + padding-left: 0; + + li { + border-left: solid 2px; + display: inline-block; + line-height: 1; + margin-left: 1rem; + padding-left: 1rem; + + &:first-child { + border-left: 0; + margin-left: 0; + padding-left: 0; + } + } + } + + @include breakpoint('<=large') { + margin: (_size(padding) * 2) auto; + } + + @include breakpoint('<=xsmall') { + ul { + li { + border-left: 0; + margin: 1rem 0 0 0; + padding-left: 0; + display: block; + + &:first-child { + margin-top: 0; + } + } + } + } } \ No newline at end of file diff --git a/assets/sass/layout/_header.scss b/assets/sass/layout/_header.scss index 0f97c0e..d58c162 100644 --- a/assets/sass/layout/_header.scss +++ b/assets/sass/layout/_header.scss @@ -1,63 +1,63 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Header */ - - #header { - @include color-typography(invert); - @include vendor('align-items', 'center'); - @include vendor('display', 'flex'); - @include vendor('flex-direction', 'column'); - @include vendor('justify-content', 'flex-end'); - @include vendor('pointer-events', 'none'); - @include vendor('user-select', 'none'); - height: 20rem; - padding-bottom: (_size(padding) * 4); - position: relative; - text-align: center; - z-index: 2; - - .logo { - @include vendor('transition', ( - 'border-color #{_duration(transition)} ease-in-out', - 'color #{_duration(transition)} ease-in-out', - 'opacity 0.5s ease', - 'transform 0.5s ease', - 'visibility 0.5s' - )); - @include vendor('pointer-events', 'auto'); - border-style: solid; - border-color: _palette(invert, border); - border-width: 5px !important; - font-family: _font(family-heading); - font-size: 2.25rem; - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - line-height: 1; - padding: 1rem 1.75rem; - text-transform: uppercase; - visibility: visible; - - &:hover { - border-color: _palette(invert, accent) !important; - color: _palette(invert, accent) !important; - } - } - - @include breakpoint('<=medium') { - height: 14rem; - padding-bottom: (_size(padding) * 2); - } - - @include breakpoint('<=small') { - padding-bottom: (_size(padding) * 1.5); - - .logo { - font-size: 1.75rem; - border-width: 3px !important; - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Header */ + + #header { + @include color-typography(invert); + @include vendor('align-items', 'center'); + @include vendor('display', 'flex'); + @include vendor('flex-direction', 'column'); + @include vendor('justify-content', 'flex-end'); + @include vendor('pointer-events', 'none'); + @include vendor('user-select', 'none'); + height: 20rem; + padding-bottom: (_size(padding) * 4); + position: relative; + text-align: center; + z-index: 2; + + .logo { + @include vendor('transition', ( + 'border-color #{_duration(transition)} ease-in-out', + 'color #{_duration(transition)} ease-in-out', + 'opacity 0.5s ease', + 'transform 0.5s ease', + 'visibility 0.5s' + )); + @include vendor('pointer-events', 'auto'); + border-style: solid; + border-color: _palette(invert, border); + border-width: 5px !important; + font-family: _font(family-heading); + font-size: 2.25rem; + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + line-height: 1; + padding: 1rem 1.75rem; + text-transform: uppercase; + visibility: visible; + + &:hover { + border-color: _palette(invert, accent) !important; + color: _palette(invert, accent) !important; + } + } + + @include breakpoint('<=medium') { + height: 14rem; + padding-bottom: (_size(padding) * 2); + } + + @include breakpoint('<=small') { + padding-bottom: (_size(padding) * 1.5); + + .logo { + font-size: 1.75rem; + border-width: 3px !important; + } + } } \ No newline at end of file diff --git a/assets/sass/layout/_intro.scss b/assets/sass/layout/_intro.scss index 3b3a9b4..3b2c6d2 100644 --- a/assets/sass/layout/_intro.scss +++ b/assets/sass/layout/_intro.scss @@ -1,115 +1,115 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Intro */ - - #intro { - @include color-typography(invert); - @include color-button(invert); - @include padding(_size(padding) * 4, _size(padding) * 2); - @include vendor('align-items', 'center'); - @include vendor('display', 'flex'); - @include vendor('flex-direction', 'column'); - @include vendor('justify-content', 'flex-end'); - @include vendor('transition', ( - 'opacity 1s ease', - 'transform 1s ease' - )); - position: relative; - cursor: default; - text-align: center; - z-index: 1; - min-height: 100vh; - - h1 { - font-size: 5rem; - line-height: 1; - } - - p { - font-size: 1.25rem; - font-style: italic; - margin-top: -0.25rem; - text-align: center; - } - - & + #header { - margin-top: -20rem; - - .logo { - @include vendor('transform', 'translateY(2rem)'); - opacity: 0; - visibility: hidden; - } - } - - &.hidden { - @include vendor('pointer-events', 'none'); - @include vendor('transform', 'translateY(2rem)'); - @include vendor('transition', ( - 'opacity 0.5s ease', - 'transform 0.5s ease', - 'visibility 0.5s' - )); - opacity: 0; - visibility: hidden; - - & + #header { - .logo { - @include vendor('transform', 'translateY(0)'); - opacity: 1; - visibility: visible; - } - } - } - - body.is-preload & { - @include vendor('transform', 'translateY(2rem)'); - opacity: 0; - - &:not(.hidden) { - & + #header + #nav { - @include vendor('transform', 'translateY(4rem)'); - opacity: 0; - } - } - } - - @include breakpoint('<=medium') { - @include padding(_size(padding) * 2, _size(padding) * 2); - min-height: 90vh; - - p { - br { - display: none; - } - } - - & + #header { - margin-top: -14rem; - } - } - - @include breakpoint('<=small') { - @include padding(_size(padding) * 1.5, _size(padding) * 1); - min-height: 80vh; - - h1 { - font-size: 3.25rem; - line-height: 1.1; - margin-bottom: _size(element-margin) * 0.5; - } - - p { - font-size: 1rem; - margin-top: 0rem; - } - - .actions { - display: none; - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Intro */ + + #intro { + @include color-typography(invert); + @include color-button(invert); + @include padding(_size(padding) * 4, _size(padding) * 2); + @include vendor('align-items', 'center'); + @include vendor('display', 'flex'); + @include vendor('flex-direction', 'column'); + @include vendor('justify-content', 'flex-end'); + @include vendor('transition', ( + 'opacity 1s ease', + 'transform 1s ease' + )); + position: relative; + cursor: default; + text-align: center; + z-index: 1; + min-height: 100vh; + + h1 { + font-size: 5rem; + line-height: 1; + } + + p { + font-size: 1.25rem; + font-style: italic; + margin-top: -0.25rem; + text-align: center; + } + + & + #header { + margin-top: -20rem; + + .logo { + @include vendor('transform', 'translateY(2rem)'); + opacity: 0; + visibility: hidden; + } + } + + &.hidden { + @include vendor('pointer-events', 'none'); + @include vendor('transform', 'translateY(2rem)'); + @include vendor('transition', ( + 'opacity 0.5s ease', + 'transform 0.5s ease', + 'visibility 0.5s' + )); + opacity: 0; + visibility: hidden; + + & + #header { + .logo { + @include vendor('transform', 'translateY(0)'); + opacity: 1; + visibility: visible; + } + } + } + + body.is-preload & { + @include vendor('transform', 'translateY(2rem)'); + opacity: 0; + + &:not(.hidden) { + & + #header + #nav { + @include vendor('transform', 'translateY(4rem)'); + opacity: 0; + } + } + } + + @include breakpoint('<=medium') { + @include padding(_size(padding) * 2, _size(padding) * 2); + min-height: 90vh; + + p { + br { + display: none; + } + } + + & + #header { + margin-top: -14rem; + } + } + + @include breakpoint('<=small') { + @include padding(_size(padding) * 1.5, _size(padding) * 1); + min-height: 80vh; + + h1 { + font-size: 3.25rem; + line-height: 1.1; + margin-bottom: _size(element-margin) * 0.5; + } + + p { + font-size: 1rem; + margin-top: 0rem; + } + + .actions { + display: none; + } + } } \ No newline at end of file diff --git a/assets/sass/layout/_main.scss b/assets/sass/layout/_main.scss index 31b35c8..f15a087 100644 --- a/assets/sass/layout/_main.scss +++ b/assets/sass/layout/_main.scss @@ -1,158 +1,158 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Main */ - - #main { - background-color: _palette(bg); - position: relative; - margin: 0 auto; - width: calc(100% - #{_size(padding) * 2}); - max-width: _size(wrapper); - z-index: 2; - - > * { - @include padding((_size(padding) * 2), (_size(padding) * 2)); - border-top: solid 2px _palette(border); - margin: 0; - - &:first-child { - border-top: 0; - } - } - - > footer { - text-align: center; - } - - > .post { - @include padding((_size(padding) * 4), (_size(padding) * 4)); - - header { - &.major { - > .date { - margin-top: -2rem; - } - - > h1, h2 { - font-size: 4rem; - line-height: 1.1; - margin: 0 0 _size(element-margin) 0; - } - } - } - - &.featured { - text-align: center; - } - - @include breakpoint('<=large') { - @include padding((_size(padding) * 3), (_size(padding) * 2)); - } - - @include breakpoint('<=small') { - @include padding((_size(padding) * 2), (_size(padding) * 1)); - - header { - &.major { - > .date { - margin-top: -1rem; - margin-bottom: _size(element-margin); - } - - > h1, h2 { - font-size: 2.5rem; - line-height: 1.2; - margin: 0 0 (_size(element-margin) * 0.75) 0; - } - } - } - } - } - - > .posts { - @include fixed-grid(( - columns: 2, - gutters: (_size(padding) * 4), - horizontal-align: center, - vertical-align: flex-start, - flush: false - )); - width: 100%; - padding: 0; - - > article { - border-color: _palette(border); - border-left-width: 2px; - border-style: solid; - border-top-width: 2px; - text-align: center; - - > :last-child { - margin-bottom: 0; - } - - &:nth-child(2n - 1) { - border-left-width: 0; - } - - &:nth-child(-n + 2) { - border-top-width: 0; - } - } - - @include breakpoint('<=medium') { - @include fixed-grid-resize(( - columns: 2, - gutters: (_size(padding) * 2.5), - flush: false - )); - } - - @include breakpoint('<=small') { - @include fixed-grid-resize(( - columns: 1, - gutters: (_size(padding) * 2), - prev-columns: 2, - flush: false - )); - - > article { - &:nth-child(2n - 1) { - border-left-width: 2px; - } - - &:nth-child(-n + 2) { - border-top-width: 2px; - } - - &:nth-child(n) { - border-left-width: 0; - } - - &:nth-child(-n + 1) { - border-top-width: 0; - } - - .image { - max-width: 25rem; - margin-left: auto; - margin-right: auto; - } - } - } - } - - @include breakpoint('<=small') { - > * { - @include padding((_size(padding) * 1), (_size(padding) * 1)); - } - } - - @include breakpoint('<=xsmall') { - width: 100%; - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Main */ + + #main { + background-color: _palette(bg); + position: relative; + margin: 0 auto; + width: calc(100% - #{_size(padding) * 2}); + max-width: _size(wrapper); + z-index: 2; + + > * { + @include padding((_size(padding) * 2), (_size(padding) * 2)); + border-top: solid 2px _palette(border); + margin: 0; + + &:first-child { + border-top: 0; + } + } + + > footer { + text-align: center; + } + + > .post { + @include padding((_size(padding) * 4), (_size(padding) * 4)); + + header { + &.major { + > .date { + margin-top: -2rem; + } + + > h1, h2 { + font-size: 4rem; + line-height: 1.1; + margin: 0 0 _size(element-margin) 0; + } + } + } + + &.featured { + text-align: center; + } + + @include breakpoint('<=large') { + @include padding((_size(padding) * 3), (_size(padding) * 2)); + } + + @include breakpoint('<=small') { + @include padding((_size(padding) * 2), (_size(padding) * 1)); + + header { + &.major { + > .date { + margin-top: -1rem; + margin-bottom: _size(element-margin); + } + + > h1, h2 { + font-size: 2.5rem; + line-height: 1.2; + margin: 0 0 (_size(element-margin) * 0.75) 0; + } + } + } + } + } + + > .posts { + @include fixed-grid(( + columns: 2, + gutters: (_size(padding) * 4), + horizontal-align: center, + vertical-align: flex-start, + flush: false + )); + width: 100%; + padding: 0; + + > article { + border-color: _palette(border); + border-left-width: 2px; + border-style: solid; + border-top-width: 2px; + text-align: center; + + > :last-child { + margin-bottom: 0; + } + + &:nth-child(2n - 1) { + border-left-width: 0; + } + + &:nth-child(-n + 2) { + border-top-width: 0; + } + } + + @include breakpoint('<=medium') { + @include fixed-grid-resize(( + columns: 2, + gutters: (_size(padding) * 2.5), + flush: false + )); + } + + @include breakpoint('<=small') { + @include fixed-grid-resize(( + columns: 1, + gutters: (_size(padding) * 2), + prev-columns: 2, + flush: false + )); + + > article { + &:nth-child(2n - 1) { + border-left-width: 2px; + } + + &:nth-child(-n + 2) { + border-top-width: 2px; + } + + &:nth-child(n) { + border-left-width: 0; + } + + &:nth-child(-n + 1) { + border-top-width: 0; + } + + .image { + max-width: 25rem; + margin-left: auto; + margin-right: auto; + } + } + } + } + + @include breakpoint('<=small') { + > * { + @include padding((_size(padding) * 1), (_size(padding) * 1)); + } + } + + @include breakpoint('<=xsmall') { + width: 100%; + } } \ No newline at end of file diff --git a/assets/sass/layout/_nav.scss b/assets/sass/layout/_nav.scss index 049a616..cf84a7d 100644 --- a/assets/sass/layout/_nav.scss +++ b/assets/sass/layout/_nav.scss @@ -1,85 +1,85 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Nav */ - - #nav { - @include color-list(invert); - @include color-typography(invert); - @include vendor('display', 'flex'); - @include vendor('transition', ( - 'transform 1s ease', - 'opacity 1s ease' - )); - background: rgba(255,255,255,0.175); - height: 4rem; - line-height: 4rem; - margin: -4rem auto 0 auto; - overflow: hidden; - padding: 0 2rem 0 0; - position: relative; - width: calc(100% - #{_size(padding) * 2}); - max-width: _size(wrapper); - z-index: 2; - - ul { - &.links { - @include vendor('display', 'flex'); - @include vendor('flex-grow', '1'); - @include vendor('flex-shrink', '1'); - font-family: _font(family-heading); - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - list-style: none; - margin-bottom: 0; - padding-left: 0; - text-transform: uppercase; - - li { - display: block; - padding-left: 0; - - a { - @include vendor('transition', ( - 'background-color #{_duration(transition)} ease-in-out', - 'color #{_duration(transition)} ease-in-out' - )); - display: block; - font-size: 0.8rem; - outline: none; - padding: 0 2rem; - - &:hover { - color: inherit !important; - background-color: transparentize(_palette(invert, fg), 0.9); - } - } - - &.active { - background-color: _palette(invert, fg); - - a { - color: _palette(invert, bg); - - &:hover { - color: _palette(invert, accent) !important; - } - } - } - } - } - - &.icons { - @include vendor('flex-grow', '0'); - @include vendor('flex-shrink', '0'); - margin-bottom: 0; - } - } - - @include breakpoint('<=medium') { - display: none; - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Nav */ + + #nav { + @include color-list(invert); + @include color-typography(invert); + @include vendor('display', 'flex'); + @include vendor('transition', ( + 'transform 1s ease', + 'opacity 1s ease' + )); + background: rgba(255,255,255,0.175); + height: 4rem; + line-height: 4rem; + margin: -4rem auto 0 auto; + overflow: hidden; + padding: 0 2rem 0 0; + position: relative; + width: calc(100% - #{_size(padding) * 2}); + max-width: _size(wrapper); + z-index: 2; + + ul { + &.links { + @include vendor('display', 'flex'); + @include vendor('flex-grow', '1'); + @include vendor('flex-shrink', '1'); + font-family: _font(family-heading); + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + list-style: none; + margin-bottom: 0; + padding-left: 0; + text-transform: uppercase; + + li { + display: block; + padding-left: 0; + + a { + @include vendor('transition', ( + 'background-color #{_duration(transition)} ease-in-out', + 'color #{_duration(transition)} ease-in-out' + )); + display: block; + font-size: 0.8rem; + outline: none; + padding: 0 2rem; + + &:hover { + color: inherit !important; + background-color: transparentize(_palette(invert, fg), 0.9); + } + } + + &.active { + background-color: _palette(invert, fg); + + a { + color: _palette(invert, bg); + + &:hover { + color: _palette(invert, accent) !important; + } + } + } + } + } + + &.icons { + @include vendor('flex-grow', '0'); + @include vendor('flex-shrink', '0'); + margin-bottom: 0; + } + } + + @include breakpoint('<=medium') { + display: none; + } } \ No newline at end of file diff --git a/assets/sass/layout/_navPanel.scss b/assets/sass/layout/_navPanel.scss index 52c4015..d476ae2 100644 --- a/assets/sass/layout/_navPanel.scss +++ b/assets/sass/layout/_navPanel.scss @@ -1,153 +1,153 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Nav Panel */ - - #navPanelToggle { - @include icon(false, solid); - @include vendor('transition', ( - 'color #{_duration(transition)} ease-in-out', - 'background-color #{_duration(transition)} ease-in-out', - 'box-shadow #{_duration(transition)} ease-in-out' - )); - display: none; - position: fixed; - top: 0.75rem; - right: 0.75rem; - border: 0; - color: _palette(invert, fg-bold); - font-family: _font(family-heading); - font-size: 0.9rem; - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - padding: 0.375rem 1.25rem; - text-transform: uppercase; - z-index: _misc(z-index-base) + 1; - - &:before { - content: '\f0c9'; - margin-right: 0.5rem; - } - - &.alt { - background-color: transparentize(_palette(bg), 0.125); - box-shadow: 0 0.125rem 0.75rem 0 transparentize(_palette(invert, bg), 0.75); - color: _palette(fg-bold); - - &:hover { - background-color: _palette(bg); - } - } - - @include breakpoint('<=medium') { - display: block; - } - - @include breakpoint('<=small') { - font-size: 0.8rem; - padding: 0.25rem 1rem; - } - } - - #navPanel { - @include vendor('transform', 'translateX(20rem)'); - @include vendor('transition', ('transform #{_duration(menu)} ease', 'box-shadow #{_duration(menu)} ease', 'visibility #{_duration(menu)}')); - display: none; - -webkit-overflow-scrolling: touch; - background: _palette(bg); - box-shadow: none; - color: _palette(fg-bold); - height: 100%; - max-width: 80%; - overflow-y: auto; - padding: 3rem 2rem; - position: fixed; - right: 0; - top: 0; - visibility: hidden; - width: 20rem; - z-index: _misc(z-index-base) + 2; - - .links { - list-style: none; - padding-left: 0; - - li { - border-top: solid 2px _palette(border); - - a { - border-bottom: 0; - display: block; - font-family: _font(family-heading); - font-size: 0.9rem; - font-size: 0.9rem; - font-weight: _font(weight-heading); - letter-spacing: 0.075em; - padding: 0.75rem 0; - text-transform: uppercase; - } - - &:first-child { - border-top: 0; - } - } - } - - .close { - @include icon(false, solid); - @include vendor('transition', 'color #{_duration(transition)} ease-in-out'); - -webkit-tap-highlight-color: rgba(0,0,0,0); - border: 0; - color: _palette(fg-light); - cursor: pointer; - display: block; - height: 3.25rem; - line-height: 3.25rem; - padding-right: 1.25rem; - position: absolute; - right: 0; - text-align: right; - top: 0; - vertical-align: middle; - width: 7rem; - - &:before { - content: '\f00d'; - font-size: 1.25rem; - } - - &:hover { - color: _palette(fg-bold); - } - - @include breakpoint('<=small') { - height: 4rem; - line-height: 4rem; - } - } - - @include breakpoint('<=medium') { - display: block; - } - - @include breakpoint('<=small') { - padding: 2.5rem 1.75rem; - } - } - - @include breakpoint('<=medium') { - body.is-navPanel-visible { - #wrapper { - opacity: 0.5; - } - - #navPanel { - @include vendor('transform', 'translateX(0)'); - box-shadow: 0 0 1.5rem 0 rgba(0,0,0,0.2); - visibility: visible; - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Nav Panel */ + + #navPanelToggle { + @include icon(false, solid); + @include vendor('transition', ( + 'color #{_duration(transition)} ease-in-out', + 'background-color #{_duration(transition)} ease-in-out', + 'box-shadow #{_duration(transition)} ease-in-out' + )); + display: none; + position: fixed; + top: 0.75rem; + right: 0.75rem; + border: 0; + color: _palette(invert, fg-bold); + font-family: _font(family-heading); + font-size: 0.9rem; + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + padding: 0.375rem 1.25rem; + text-transform: uppercase; + z-index: _misc(z-index-base) + 1; + + &:before { + content: '\f0c9'; + margin-right: 0.5rem; + } + + &.alt { + background-color: transparentize(_palette(bg), 0.125); + box-shadow: 0 0.125rem 0.75rem 0 transparentize(_palette(invert, bg), 0.75); + color: _palette(fg-bold); + + &:hover { + background-color: _palette(bg); + } + } + + @include breakpoint('<=medium') { + display: block; + } + + @include breakpoint('<=small') { + font-size: 0.8rem; + padding: 0.25rem 1rem; + } + } + + #navPanel { + @include vendor('transform', 'translateX(20rem)'); + @include vendor('transition', ('transform #{_duration(menu)} ease', 'box-shadow #{_duration(menu)} ease', 'visibility #{_duration(menu)}')); + display: none; + -webkit-overflow-scrolling: touch; + background: _palette(bg); + box-shadow: none; + color: _palette(fg-bold); + height: 100%; + max-width: 80%; + overflow-y: auto; + padding: 3rem 2rem; + position: fixed; + right: 0; + top: 0; + visibility: hidden; + width: 20rem; + z-index: _misc(z-index-base) + 2; + + .links { + list-style: none; + padding-left: 0; + + li { + border-top: solid 2px _palette(border); + + a { + border-bottom: 0; + display: block; + font-family: _font(family-heading); + font-size: 0.9rem; + font-size: 0.9rem; + font-weight: _font(weight-heading); + letter-spacing: 0.075em; + padding: 0.75rem 0; + text-transform: uppercase; + } + + &:first-child { + border-top: 0; + } + } + } + + .close { + @include icon(false, solid); + @include vendor('transition', 'color #{_duration(transition)} ease-in-out'); + -webkit-tap-highlight-color: rgba(0,0,0,0); + border: 0; + color: _palette(fg-light); + cursor: pointer; + display: block; + height: 3.25rem; + line-height: 3.25rem; + padding-right: 1.25rem; + position: absolute; + right: 0; + text-align: right; + top: 0; + vertical-align: middle; + width: 7rem; + + &:before { + content: '\f00d'; + font-size: 1.25rem; + } + + &:hover { + color: _palette(fg-bold); + } + + @include breakpoint('<=small') { + height: 4rem; + line-height: 4rem; + } + } + + @include breakpoint('<=medium') { + display: block; + } + + @include breakpoint('<=small') { + padding: 2.5rem 1.75rem; + } + } + + @include breakpoint('<=medium') { + body.is-navPanel-visible { + #wrapper { + opacity: 0.5; + } + + #navPanel { + @include vendor('transform', 'translateX(0)'); + box-shadow: 0 0 1.5rem 0 rgba(0,0,0,0.2); + visibility: visible; + } + } } \ No newline at end of file diff --git a/assets/sass/layout/_wrapper.scss b/assets/sass/layout/_wrapper.scss index 568c0b0..7b1bd55 100644 --- a/assets/sass/layout/_wrapper.scss +++ b/assets/sass/layout/_wrapper.scss @@ -1,64 +1,64 @@ -/// -/// Massively by HTML5 UP -/// html5up.net | @ajlkn -/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -/// - -/* Wrapper */ - - #wrapper { - @include vendor('transition', 'opacity #{_duration(menu)} ease'); - position: relative; - z-index: 1; - overflow: hidden; - - > .bg { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: _palette(wrapper-bg); - background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg'); - background-size: auto, auto, 100% auto; - background-position: center, center, top center; - background-repeat: repeat, no-repeat, no-repeat; - background-attachment: scroll, scroll, scroll; - z-index: -1; - - &.fixed { - position: fixed; - width: 100vw; - height: 100vh; - } - } - - &.fade-in { - &:before { - @include vendor('pointer-events', 'none'); - @include vendor('transition', 'opacity 1s ease-in-out'); - @include vendor('transition-delay', '0.75s'); - background: _palette(invert, bg); - content: ''; - display: block; - height: 100%; - left: 0; - opacity: 0; - position: fixed; - top: 0; - width: 100%; - } - - body.is-preload & { - &:before { - opacity: 1; - } - } - } - - @include orientation(portrait) { - > .bg { - background-size: auto, auto, auto 175%; - } - } +/// +/// Massively by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Wrapper */ + + #wrapper { + @include vendor('transition', 'opacity #{_duration(menu)} ease'); + position: relative; + z-index: 1; + overflow: hidden; + + > .bg { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: _palette(wrapper-bg); + background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg'); + background-size: auto, auto, 100% auto; + background-position: center, center, top center; + background-repeat: repeat, no-repeat, no-repeat; + background-attachment: scroll, scroll, scroll; + z-index: -1; + + &.fixed { + position: fixed; + width: 100vw; + height: 100vh; + } + } + + &.fade-in { + &:before { + @include vendor('pointer-events', 'none'); + @include vendor('transition', 'opacity 1s ease-in-out'); + @include vendor('transition-delay', '0.75s'); + background: _palette(invert, bg); + content: ''; + display: block; + height: 100%; + left: 0; + opacity: 0; + position: fixed; + top: 0; + width: 100%; + } + + body.is-preload & { + &:before { + opacity: 1; + } + } + } + + @include orientation(portrait) { + > .bg { + background-size: auto, auto, auto 175%; + } + } } \ No newline at end of file diff --git a/assets/sass/libs/_fixed-grid.scss b/assets/sass/libs/_fixed-grid.scss index 0109243..99bfe36 100644 --- a/assets/sass/libs/_fixed-grid.scss +++ b/assets/sass/libs/_fixed-grid.scss @@ -1,338 +1,338 @@ -// fixed-grid.scss v1.0 | @ajlkn | MIT licensed */ - -// Mixins. - - /// Initializes base fixed-grid classes. - /// @param {string} $vertical-align Vertical alignment of cells. - /// @param {string} $horizontal-align Horizontal alignment of cells. - @mixin fixed-grid-base($vertical-align: null, $horizontal-align: null) { - - // Grid. - @include vendor('display', 'flex'); - @include vendor('flex-wrap', 'wrap'); - - // Vertical alignment. - @if ($vertical-align == top) { - @include vendor('align-items', 'flex-start'); - } - @else if ($vertical-align == bottom) { - @include vendor('align-items', 'flex-end'); - } - @else if ($vertical-align == center) { - @include vendor('align-items', 'center'); - } - @else { - @include vendor('align-items', 'stretch'); - } - - // Horizontal alignment. - @if ($horizontal-align != null) { - text-align: $horizontal-align; - } - - // Cells. - > * { - @include vendor('flex-shrink', '1'); - @include vendor('flex-grow', '0'); - } - - } - - /// Sets up fixed-grid columns. - /// @param {integer} $columns Columns. - @mixin fixed-grid-columns($columns) { - - > * { - $cell-width: 100% / $columns; - width: #{$cell-width}; - } - - } - - /// Sets up fixed-grid gutters. - /// @param {integer} $columns Columns. - /// @param {number} $gutters Gutters. - @mixin fixed-grid-gutters($columns, $gutters) { - - // Apply padding. - > * { - $cell-width: 100% / $columns; - - padding: ($gutters * 0.5); - width: $cell-width; - } - - } - - /// Sets up fixed-grid gutters (flush). - /// @param {integer} $columns Columns. - /// @param {number} $gutters Gutters. - @mixin fixed-grid-gutters-flush($columns, $gutters) { - - // Apply padding. - > * { - $cell-width: 100% / $columns; - $cell-width-pad: $gutters / $columns; - - padding: ($gutters * 0.5); - width: calc(#{$cell-width} + #{$cell-width-pad}); - } - - // Clear top/bottom gutters. - > :nth-child(-n + #{$columns}) { - padding-top: 0; - } - - > :nth-last-child(-n + #{$columns}) { - padding-bottom: 0; - } - - // Clear left/right gutters. - > :nth-child(#{$columns}n + 1) { - padding-left: 0; - } - - > :nth-child(#{$columns}n) { - padding-right: 0; - } - - // Adjust widths of leftmost and rightmost cells. - > :nth-child(#{$columns}n + 1), - > :nth-child(#{$columns}n) { - $cell-width: 100% / $columns; - $cell-width-pad: ($gutters / $columns) - ($gutters / 2); - - width: calc(#{$cell-width} + #{$cell-width-pad}); - } - - } - - /// Reset fixed-grid gutters (flush only). - /// Used to override a previous set of fixed-grid gutter classes. - /// @param {integer} $columns Columns. - /// @param {number} $gutters Gutters. - /// @param {integer} $prev-columns Previous columns. - @mixin fixed-grid-gutters-flush-reset($columns, $gutters, $prev-columns) { - - // Apply padding. - > * { - $cell-width: 100% / $prev-columns; - $cell-width-pad: $gutters / $prev-columns; - - padding: ($gutters * 0.5); - width: calc(#{$cell-width} + #{$cell-width-pad}); - } - - // Clear top/bottom gutters. - > :nth-child(-n + #{$prev-columns}) { - padding-top: ($gutters * 0.5); - } - - > :nth-last-child(-n + #{$prev-columns}) { - padding-bottom: ($gutters * 0.5); - } - - // Clear left/right gutters. - > :nth-child(#{$prev-columns}n + 1) { - padding-left: ($gutters * 0.5); - } - - > :nth-child(#{$prev-columns}n) { - padding-right: ($gutters * 0.5); - } - - // Adjust widths of leftmost and rightmost cells. - > :nth-child(#{$prev-columns}n + 1), - > :nth-child(#{$prev-columns}n) { - $cell-width: 100% / $columns; - $cell-width-pad: $gutters / $columns; - - padding: ($gutters * 0.5); - width: calc(#{$cell-width} + #{$cell-width-pad}); - } - - } - - /// Adds debug styles to current fixed-grid element. - @mixin fixed-grid-debug() { - - box-shadow: 0 0 0 1px red; - - > * { - box-shadow: inset 0 0 0 1px blue; - position: relative; - - > * { - position: relative; - box-shadow: inset 0 0 0 1px green; - } - } - - } - - /// Initializes the current element as a fixed grid. - /// @param {integer} $columns Columns (optional). - /// @param {number} $gutters Gutters (optional). - /// @param {bool} $flush If true, clears padding around the very edge of the grid. - @mixin fixed-grid($settings: ()) { - - // Settings. - - // Debug. - $debug: false; - - @if (map-has-key($settings, 'debug')) { - $debug: map-get($settings, 'debug'); - } - - // Vertical align. - $vertical-align: null; - - @if (map-has-key($settings, 'vertical-align')) { - $vertical-align: map-get($settings, 'vertical-align'); - } - - // Horizontal align. - $horizontal-align: null; - - @if (map-has-key($settings, 'horizontal-align')) { - $horizontal-align: map-get($settings, 'horizontal-align'); - } - - // Columns. - $columns: null; - - @if (map-has-key($settings, 'columns')) { - $columns: map-get($settings, 'columns'); - } - - // Gutters. - $gutters: 0; - - @if (map-has-key($settings, 'gutters')) { - $gutters: map-get($settings, 'gutters'); - } - - // Flush. - $flush: true; - - @if (map-has-key($settings, 'flush')) { - $flush: map-get($settings, 'flush'); - } - - // Initialize base grid. - @include fixed-grid-base($vertical-align, $horizontal-align); - - // Debug? - @if ($debug) { - @include fixed-grid-debug; - } - - // Columns specified? - @if ($columns != null) { - - // Initialize columns. - @include fixed-grid-columns($columns); - - // Gutters specified? - @if ($gutters > 0) { - - // Flush gutters? - @if ($flush) { - - // Initialize gutters (flush). - @include fixed-grid-gutters-flush($columns, $gutters); - - } - - // Otherwise ... - @else { - - // Initialize gutters. - @include fixed-grid-gutters($columns, $gutters); - - } - - } - - } - - } - - /// Resizes a previously-initialized grid. - /// @param {integer} $columns Columns. - /// @param {number} $gutters Gutters (optional). - /// @param {list} $reset A list of previously-initialized grid columns (only if $flush is true). - /// @param {bool} $flush If true, clears padding around the very edge of the grid. - @mixin fixed-grid-resize($settings: ()) { - - // Settings. - - // Columns. - $columns: 1; - - @if (map-has-key($settings, 'columns')) { - $columns: map-get($settings, 'columns'); - } - - // Gutters. - $gutters: 0; - - @if (map-has-key($settings, 'gutters')) { - $gutters: map-get($settings, 'gutters'); - } - - // Previous columns. - $prev-columns: false; - - @if (map-has-key($settings, 'prev-columns')) { - $prev-columns: map-get($settings, 'prev-columns'); - } - - // Flush. - $flush: true; - - @if (map-has-key($settings, 'flush')) { - $flush: map-get($settings, 'flush'); - } - - // Resize columns. - @include fixed-grid-columns($columns); - - // Gutters specified? - @if ($gutters > 0) { - - // Flush gutters? - @if ($flush) { - - // Previous columns specified? - @if ($prev-columns) { - - // Convert to list if it isn't one already. - @if (type-of($prev-columns) != list) { - $prev-columns: ($prev-columns); - } - - // Step through list of previous columns and reset them. - @each $x in $prev-columns { - @include fixed-grid-gutters-flush-reset($columns, $gutters, $x); - } - - } - - // Resize gutters (flush). - @include fixed-grid-gutters-flush($columns, $gutters); - - } - - // Otherwise ... - @else { - - // Resize gutters. - @include fixed-grid-gutters($columns, $gutters); - - } - - } - +// fixed-grid.scss v1.0 | @ajlkn | MIT licensed */ + +// Mixins. + + /// Initializes base fixed-grid classes. + /// @param {string} $vertical-align Vertical alignment of cells. + /// @param {string} $horizontal-align Horizontal alignment of cells. + @mixin fixed-grid-base($vertical-align: null, $horizontal-align: null) { + + // Grid. + @include vendor('display', 'flex'); + @include vendor('flex-wrap', 'wrap'); + + // Vertical alignment. + @if ($vertical-align == top) { + @include vendor('align-items', 'flex-start'); + } + @else if ($vertical-align == bottom) { + @include vendor('align-items', 'flex-end'); + } + @else if ($vertical-align == center) { + @include vendor('align-items', 'center'); + } + @else { + @include vendor('align-items', 'stretch'); + } + + // Horizontal alignment. + @if ($horizontal-align != null) { + text-align: $horizontal-align; + } + + // Cells. + > * { + @include vendor('flex-shrink', '1'); + @include vendor('flex-grow', '0'); + } + + } + + /// Sets up fixed-grid columns. + /// @param {integer} $columns Columns. + @mixin fixed-grid-columns($columns) { + + > * { + $cell-width: 100% / $columns; + width: #{$cell-width}; + } + + } + + /// Sets up fixed-grid gutters. + /// @param {integer} $columns Columns. + /// @param {number} $gutters Gutters. + @mixin fixed-grid-gutters($columns, $gutters) { + + // Apply padding. + > * { + $cell-width: 100% / $columns; + + padding: ($gutters * 0.5); + width: $cell-width; + } + + } + + /// Sets up fixed-grid gutters (flush). + /// @param {integer} $columns Columns. + /// @param {number} $gutters Gutters. + @mixin fixed-grid-gutters-flush($columns, $gutters) { + + // Apply padding. + > * { + $cell-width: 100% / $columns; + $cell-width-pad: $gutters / $columns; + + padding: ($gutters * 0.5); + width: calc(#{$cell-width} + #{$cell-width-pad}); + } + + // Clear top/bottom gutters. + > :nth-child(-n + #{$columns}) { + padding-top: 0; + } + + > :nth-last-child(-n + #{$columns}) { + padding-bottom: 0; + } + + // Clear left/right gutters. + > :nth-child(#{$columns}n + 1) { + padding-left: 0; + } + + > :nth-child(#{$columns}n) { + padding-right: 0; + } + + // Adjust widths of leftmost and rightmost cells. + > :nth-child(#{$columns}n + 1), + > :nth-child(#{$columns}n) { + $cell-width: 100% / $columns; + $cell-width-pad: ($gutters / $columns) - ($gutters / 2); + + width: calc(#{$cell-width} + #{$cell-width-pad}); + } + + } + + /// Reset fixed-grid gutters (flush only). + /// Used to override a previous set of fixed-grid gutter classes. + /// @param {integer} $columns Columns. + /// @param {number} $gutters Gutters. + /// @param {integer} $prev-columns Previous columns. + @mixin fixed-grid-gutters-flush-reset($columns, $gutters, $prev-columns) { + + // Apply padding. + > * { + $cell-width: 100% / $prev-columns; + $cell-width-pad: $gutters / $prev-columns; + + padding: ($gutters * 0.5); + width: calc(#{$cell-width} + #{$cell-width-pad}); + } + + // Clear top/bottom gutters. + > :nth-child(-n + #{$prev-columns}) { + padding-top: ($gutters * 0.5); + } + + > :nth-last-child(-n + #{$prev-columns}) { + padding-bottom: ($gutters * 0.5); + } + + // Clear left/right gutters. + > :nth-child(#{$prev-columns}n + 1) { + padding-left: ($gutters * 0.5); + } + + > :nth-child(#{$prev-columns}n) { + padding-right: ($gutters * 0.5); + } + + // Adjust widths of leftmost and rightmost cells. + > :nth-child(#{$prev-columns}n + 1), + > :nth-child(#{$prev-columns}n) { + $cell-width: 100% / $columns; + $cell-width-pad: $gutters / $columns; + + padding: ($gutters * 0.5); + width: calc(#{$cell-width} + #{$cell-width-pad}); + } + + } + + /// Adds debug styles to current fixed-grid element. + @mixin fixed-grid-debug() { + + box-shadow: 0 0 0 1px red; + + > * { + box-shadow: inset 0 0 0 1px blue; + position: relative; + + > * { + position: relative; + box-shadow: inset 0 0 0 1px green; + } + } + + } + + /// Initializes the current element as a fixed grid. + /// @param {integer} $columns Columns (optional). + /// @param {number} $gutters Gutters (optional). + /// @param {bool} $flush If true, clears padding around the very edge of the grid. + @mixin fixed-grid($settings: ()) { + + // Settings. + + // Debug. + $debug: false; + + @if (map-has-key($settings, 'debug')) { + $debug: map-get($settings, 'debug'); + } + + // Vertical align. + $vertical-align: null; + + @if (map-has-key($settings, 'vertical-align')) { + $vertical-align: map-get($settings, 'vertical-align'); + } + + // Horizontal align. + $horizontal-align: null; + + @if (map-has-key($settings, 'horizontal-align')) { + $horizontal-align: map-get($settings, 'horizontal-align'); + } + + // Columns. + $columns: null; + + @if (map-has-key($settings, 'columns')) { + $columns: map-get($settings, 'columns'); + } + + // Gutters. + $gutters: 0; + + @if (map-has-key($settings, 'gutters')) { + $gutters: map-get($settings, 'gutters'); + } + + // Flush. + $flush: true; + + @if (map-has-key($settings, 'flush')) { + $flush: map-get($settings, 'flush'); + } + + // Initialize base grid. + @include fixed-grid-base($vertical-align, $horizontal-align); + + // Debug? + @if ($debug) { + @include fixed-grid-debug; + } + + // Columns specified? + @if ($columns != null) { + + // Initialize columns. + @include fixed-grid-columns($columns); + + // Gutters specified? + @if ($gutters > 0) { + + // Flush gutters? + @if ($flush) { + + // Initialize gutters (flush). + @include fixed-grid-gutters-flush($columns, $gutters); + + } + + // Otherwise ... + @else { + + // Initialize gutters. + @include fixed-grid-gutters($columns, $gutters); + + } + + } + + } + + } + + /// Resizes a previously-initialized grid. + /// @param {integer} $columns Columns. + /// @param {number} $gutters Gutters (optional). + /// @param {list} $reset A list of previously-initialized grid columns (only if $flush is true). + /// @param {bool} $flush If true, clears padding around the very edge of the grid. + @mixin fixed-grid-resize($settings: ()) { + + // Settings. + + // Columns. + $columns: 1; + + @if (map-has-key($settings, 'columns')) { + $columns: map-get($settings, 'columns'); + } + + // Gutters. + $gutters: 0; + + @if (map-has-key($settings, 'gutters')) { + $gutters: map-get($settings, 'gutters'); + } + + // Previous columns. + $prev-columns: false; + + @if (map-has-key($settings, 'prev-columns')) { + $prev-columns: map-get($settings, 'prev-columns'); + } + + // Flush. + $flush: true; + + @if (map-has-key($settings, 'flush')) { + $flush: map-get($settings, 'flush'); + } + + // Resize columns. + @include fixed-grid-columns($columns); + + // Gutters specified? + @if ($gutters > 0) { + + // Flush gutters? + @if ($flush) { + + // Previous columns specified? + @if ($prev-columns) { + + // Convert to list if it isn't one already. + @if (type-of($prev-columns) != list) { + $prev-columns: ($prev-columns); + } + + // Step through list of previous columns and reset them. + @each $x in $prev-columns { + @include fixed-grid-gutters-flush-reset($columns, $gutters, $x); + } + + } + + // Resize gutters (flush). + @include fixed-grid-gutters-flush($columns, $gutters); + + } + + // Otherwise ... + @else { + + // Resize gutters. + @include fixed-grid-gutters($columns, $gutters); + + } + + } + } \ No newline at end of file diff --git a/assets/sass/libs/_functions.scss b/assets/sass/libs/_functions.scss index b367524..f563aab 100644 --- a/assets/sass/libs/_functions.scss +++ b/assets/sass/libs/_functions.scss @@ -1,90 +1,90 @@ -/// Removes a specific item from a list. -/// @author Hugo Giraudel -/// @param {list} $list List. -/// @param {integer} $index Index. -/// @return {list} Updated list. -@function remove-nth($list, $index) { - - $result: null; - - @if type-of($index) != number { - @warn "$index: #{quote($index)} is not a number for `remove-nth`."; - } - @else if $index == 0 { - @warn "List index 0 must be a non-zero integer for `remove-nth`."; - } - @else if abs($index) > length($list) { - @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`."; - } - @else { - - $result: (); - $index: if($index < 0, length($list) + $index + 1, $index); - - @for $i from 1 through length($list) { - - @if $i != $index { - $result: append($result, nth($list, $i)); - } - - } - - } - - @return $result; - -} - -/// Gets a value from a map. -/// @author Hugo Giraudel -/// @param {map} $map Map. -/// @param {string} $keys Key(s). -/// @return {string} Value. -@function val($map, $keys...) { - - @if nth($keys, 1) == null { - $keys: remove-nth($keys, 1); - } - - @each $key in $keys { - $map: map-get($map, $key); - } - - @return $map; - -} - -/// Gets a duration value. -/// @param {string} $keys Key(s). -/// @return {string} Value. -@function _duration($keys...) { - @return val($duration, $keys...); -} - -/// Gets a font value. -/// @param {string} $keys Key(s). -/// @return {string} Value. -@function _font($keys...) { - @return val($font, $keys...); -} - -/// Gets a misc value. -/// @param {string} $keys Key(s). -/// @return {string} Value. -@function _misc($keys...) { - @return val($misc, $keys...); -} - -/// Gets a palette value. -/// @param {string} $keys Key(s). -/// @return {string} Value. -@function _palette($keys...) { - @return val($palette, $keys...); -} - -/// Gets a size value. -/// @param {string} $keys Key(s). -/// @return {string} Value. -@function _size($keys...) { - @return val($size, $keys...); +/// Removes a specific item from a list. +/// @author Hugo Giraudel +/// @param {list} $list List. +/// @param {integer} $index Index. +/// @return {list} Updated list. +@function remove-nth($list, $index) { + + $result: null; + + @if type-of($index) != number { + @warn "$index: #{quote($index)} is not a number for `remove-nth`."; + } + @else if $index == 0 { + @warn "List index 0 must be a non-zero integer for `remove-nth`."; + } + @else if abs($index) > length($list) { + @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`."; + } + @else { + + $result: (); + $index: if($index < 0, length($list) + $index + 1, $index); + + @for $i from 1 through length($list) { + + @if $i != $index { + $result: append($result, nth($list, $i)); + } + + } + + } + + @return $result; + +} + +/// Gets a value from a map. +/// @author Hugo Giraudel +/// @param {map} $map Map. +/// @param {string} $keys Key(s). +/// @return {string} Value. +@function val($map, $keys...) { + + @if nth($keys, 1) == null { + $keys: remove-nth($keys, 1); + } + + @each $key in $keys { + $map: map-get($map, $key); + } + + @return $map; + +} + +/// Gets a duration value. +/// @param {string} $keys Key(s). +/// @return {string} Value. +@function _duration($keys...) { + @return val($duration, $keys...); +} + +/// Gets a font value. +/// @param {string} $keys Key(s). +/// @return {string} Value. +@function _font($keys...) { + @return val($font, $keys...); +} + +/// Gets a misc value. +/// @param {string} $keys Key(s). +/// @return {string} Value. +@function _misc($keys...) { + @return val($misc, $keys...); +} + +/// Gets a palette value. +/// @param {string} $keys Key(s). +/// @return {string} Value. +@function _palette($keys...) { + @return val($palette, $keys...); +} + +/// Gets a size value. +/// @param {string} $keys Key(s). +/// @return {string} Value. +@function _size($keys...) { + @return val($size, $keys...); } \ No newline at end of file diff --git a/assets/sass/libs/_html-grid.scss b/assets/sass/libs/_html-grid.scss index 3c08069..7438a8c 100644 --- a/assets/sass/libs/_html-grid.scss +++ b/assets/sass/libs/_html-grid.scss @@ -1,149 +1,149 @@ -// html-grid.scss v1.0 | @ajlkn | MIT licensed */ - -// Mixins. - - /// Initializes the current element as an HTML grid. - /// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually). - /// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list). - @mixin html-grid($gutters: 1.5em, $suffix: '') { - - // Initialize. - $cols: 12; - $multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00; - $unit: 100% / $cols; - - // Suffixes. - $suffixes: null; - - @if (type-of($suffix) == 'list') { - $suffixes: $suffix; - } - @else { - $suffixes: ($suffix); - } - - // Gutters. - $guttersCols: null; - $guttersRows: null; - - @if (type-of($gutters) == 'list') { - - $guttersCols: nth($gutters, 1); - $guttersRows: nth($gutters, 2); - - } - @else { - - $guttersCols: $gutters; - $guttersRows: 0; - - } - - // Row. - display: flex; - flex-wrap: wrap; - box-sizing: border-box; - align-items: stretch; - - // Columns. - > * { - box-sizing: border-box; - } - - // Gutters. - &.gtr-uniform { - > * { - > :last-child { - margin-bottom: 0; - } - } - } - - // Alignment. - &.aln-left { - justify-content: flex-start; - } - - &.aln-center { - justify-content: center; - } - - &.aln-right { - justify-content: flex-end; - } - - &.aln-top { - align-items: flex-start; - } - - &.aln-middle { - align-items: center; - } - - &.aln-bottom { - align-items: flex-end; - } - - // Step through suffixes. - @each $suffix in $suffixes { - - // Suffix. - @if ($suffix != '') { - $suffix: '-' + $suffix; - } - @else { - $suffix: ''; - } - - // Row. - - // Important. - > .imp#{$suffix} { - order: -1; - } - - // Columns, offsets. - @for $i from 1 through $cols { - > .col-#{$i}#{$suffix} { - width: $unit * $i; - } - - > .off-#{$i}#{$suffix} { - margin-left: $unit * $i; - } - } - - // Step through multipliers. - @each $multiplier in $multipliers { - - // Gutters. - $class: null; - - @if ($multiplier != 1) { - $class: '.gtr-' + ($multiplier * 100); - } - - &#{$class} { - margin-top: ($guttersRows * $multiplier * -1); - margin-left: ($guttersCols * $multiplier * -1); - - > * { - padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier); - } - - // Uniform. - &.gtr-uniform { - margin-top: $guttersCols * $multiplier * -1; - - > * { - padding-top: $guttersCols * $multiplier; - } - } - - } - - } - - } - +// html-grid.scss v1.0 | @ajlkn | MIT licensed */ + +// Mixins. + + /// Initializes the current element as an HTML grid. + /// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually). + /// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list). + @mixin html-grid($gutters: 1.5em, $suffix: '') { + + // Initialize. + $cols: 12; + $multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00; + $unit: 100% / $cols; + + // Suffixes. + $suffixes: null; + + @if (type-of($suffix) == 'list') { + $suffixes: $suffix; + } + @else { + $suffixes: ($suffix); + } + + // Gutters. + $guttersCols: null; + $guttersRows: null; + + @if (type-of($gutters) == 'list') { + + $guttersCols: nth($gutters, 1); + $guttersRows: nth($gutters, 2); + + } + @else { + + $guttersCols: $gutters; + $guttersRows: 0; + + } + + // Row. + display: flex; + flex-wrap: wrap; + box-sizing: border-box; + align-items: stretch; + + // Columns. + > * { + box-sizing: border-box; + } + + // Gutters. + &.gtr-uniform { + > * { + > :last-child { + margin-bottom: 0; + } + } + } + + // Alignment. + &.aln-left { + justify-content: flex-start; + } + + &.aln-center { + justify-content: center; + } + + &.aln-right { + justify-content: flex-end; + } + + &.aln-top { + align-items: flex-start; + } + + &.aln-middle { + align-items: center; + } + + &.aln-bottom { + align-items: flex-end; + } + + // Step through suffixes. + @each $suffix in $suffixes { + + // Suffix. + @if ($suffix != '') { + $suffix: '-' + $suffix; + } + @else { + $suffix: ''; + } + + // Row. + + // Important. + > .imp#{$suffix} { + order: -1; + } + + // Columns, offsets. + @for $i from 1 through $cols { + > .col-#{$i}#{$suffix} { + width: $unit * $i; + } + + > .off-#{$i}#{$suffix} { + margin-left: $unit * $i; + } + } + + // Step through multipliers. + @each $multiplier in $multipliers { + + // Gutters. + $class: null; + + @if ($multiplier != 1) { + $class: '.gtr-' + ($multiplier * 100); + } + + &#{$class} { + margin-top: ($guttersRows * $multiplier * -1); + margin-left: ($guttersCols * $multiplier * -1); + + > * { + padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier); + } + + // Uniform. + &.gtr-uniform { + margin-top: $guttersCols * $multiplier * -1; + + > * { + padding-top: $guttersCols * $multiplier; + } + } + + } + + } + + } + } \ No newline at end of file diff --git a/assets/sass/libs/_mixins.scss b/assets/sass/libs/_mixins.scss index 8187463..a331483 100644 --- a/assets/sass/libs/_mixins.scss +++ b/assets/sass/libs/_mixins.scss @@ -1,78 +1,78 @@ -/// Makes an element's :before pseudoelement a FontAwesome icon. -/// @param {string} $content Optional content value to use. -/// @param {string} $category Optional category to use. -/// @param {string} $where Optional pseudoelement to target (before or after). -@mixin icon($content: false, $category: regular, $where: before) { - - text-decoration: none; - - &:#{$where} { - - @if $content { - content: $content; - } - - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - display: inline-block; - font-style: normal; - font-variant: normal; - text-rendering: auto; - line-height: 1; - text-transform: none !important; - - @if ($category == brands) { - font-family: 'Font Awesome 5 Brands'; - } - @elseif ($category == solid) { - font-family: 'Font Awesome 5 Free'; - font-weight: 900; - } - @else { - font-family: 'Font Awesome 5 Free'; - font-weight: 400; - } - - } - -} - -/// Applies padding to an element, taking the current element-margin value into account. -/// @param {mixed} $tb Top/bottom padding. -/// @param {mixed} $lr Left/right padding. -/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left) -/// @param {bool} $important If true, adds !important. -@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) { - - @if $important { - $important: '!important'; - } - - $x: 0.1em; - - @if unit(_size(element-margin)) == 'rem' { - $x: 0.1rem; - } - - padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important}; - -} - -/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp). -/// @param {string} $svg SVG data URL. -/// @return {string} Encoded SVG data URL. -@function svg-url($svg) { - - $svg: str-replace($svg, '"', '\''); - $svg: str-replace($svg, '%', '%25'); - $svg: str-replace($svg, '<', '%3C'); - $svg: str-replace($svg, '>', '%3E'); - $svg: str-replace($svg, '&', '%26'); - $svg: str-replace($svg, '#', '%23'); - $svg: str-replace($svg, '{', '%7B'); - $svg: str-replace($svg, '}', '%7D'); - $svg: str-replace($svg, ';', '%3B'); - - @return url("data:image/svg+xml;charset=utf8,#{$svg}"); - +/// Makes an element's :before pseudoelement a FontAwesome icon. +/// @param {string} $content Optional content value to use. +/// @param {string} $category Optional category to use. +/// @param {string} $where Optional pseudoelement to target (before or after). +@mixin icon($content: false, $category: regular, $where: before) { + + text-decoration: none; + + &:#{$where} { + + @if $content { + content: $content; + } + + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + display: inline-block; + font-style: normal; + font-variant: normal; + text-rendering: auto; + line-height: 1; + text-transform: none !important; + + @if ($category == brands) { + font-family: 'Font Awesome 5 Brands'; + } + @elseif ($category == solid) { + font-family: 'Font Awesome 5 Free'; + font-weight: 900; + } + @else { + font-family: 'Font Awesome 5 Free'; + font-weight: 400; + } + + } + +} + +/// Applies padding to an element, taking the current element-margin value into account. +/// @param {mixed} $tb Top/bottom padding. +/// @param {mixed} $lr Left/right padding. +/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left) +/// @param {bool} $important If true, adds !important. +@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) { + + @if $important { + $important: '!important'; + } + + $x: 0.1em; + + @if unit(_size(element-margin)) == 'rem' { + $x: 0.1rem; + } + + padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important}; + +} + +/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp). +/// @param {string} $svg SVG data URL. +/// @return {string} Encoded SVG data URL. +@function svg-url($svg) { + + $svg: str-replace($svg, '"', '\''); + $svg: str-replace($svg, '%', '%25'); + $svg: str-replace($svg, '<', '%3C'); + $svg: str-replace($svg, '>', '%3E'); + $svg: str-replace($svg, '&', '%26'); + $svg: str-replace($svg, '#', '%23'); + $svg: str-replace($svg, '{', '%7B'); + $svg: str-replace($svg, '}', '%7D'); + $svg: str-replace($svg, ';', '%3B'); + + @return url("data:image/svg+xml;charset=utf8,#{$svg}"); + } \ No newline at end of file diff --git a/assets/sass/libs/_vars.scss b/assets/sass/libs/_vars.scss index c0f18d3..9347e2c 100644 --- a/assets/sass/libs/_vars.scss +++ b/assets/sass/libs/_vars.scss @@ -1,62 +1,62 @@ -// Misc. - $misc: ( - z-index-base: 10000 - ); - -// Duration. - $duration: ( - menu: 0.5s, - transition: 0.2s - ); - -// Size. - $size: ( - element-height: 3rem, - element-margin: 2rem, - padding: 2rem, - wrapper: 72rem - ); - -// Font. - $font: ( - family: ('Merriweather', Georgia, serif), - family-heading: ('Source Sans Pro', Helvetica, sans-serif), - family-fixed: ('Courier New', monospace), - weight: 300, - weight-bold: 600, - weight-heading: 900 - ); - -// Palette. - $palette: ( - wrapper-bg: #212931, - - bg: #ffffff, - fg: #212931, - fg-bold: #212931, - fg-light: mix(#212931, #ffffff, 50%), - border: mix(#dcdcdc, #ffffff, 50%), - border-bg: rgba(#dcdcdc, 0.25), - accent: #18bfef, - - alt: ( - bg: #f5f5f5, - fg: #717981, - fg-bold: #717981, - fg-light: mix(#717981, #f5f5f5, 50%), - border: mix(#dcdcdc, #f5f5f5, 75%), - border-bg: rgba(#dcdcdc, 0.5), - accent: #18bfef, - ), - - invert: ( - bg: #1e252d, - bg-alt: #1e252d, - fg: #ffffff, - fg-bold: #ffffff, - fg-light: rgba(#ffffff, 0.5), - border: #ffffff, - border-bg: rgba(#ffffff,0.075), - accent: #18bfef, - ), +// Misc. + $misc: ( + z-index-base: 10000 + ); + +// Duration. + $duration: ( + menu: 0.5s, + transition: 0.2s + ); + +// Size. + $size: ( + element-height: 3rem, + element-margin: 2rem, + padding: 2rem, + wrapper: 72rem + ); + +// Font. + $font: ( + family: ('Merriweather', Georgia, serif), + family-heading: ('Source Sans Pro', Helvetica, sans-serif), + family-fixed: ('Courier New', monospace), + weight: 300, + weight-bold: 600, + weight-heading: 900 + ); + +// Palette. + $palette: ( + wrapper-bg: #212931, + + bg: #ffffff, + fg: #212931, + fg-bold: #212931, + fg-light: mix(#212931, #ffffff, 50%), + border: mix(#dcdcdc, #ffffff, 50%), + border-bg: rgba(#dcdcdc, 0.25), + accent: #18bfef, + + alt: ( + bg: #f5f5f5, + fg: #717981, + fg-bold: #717981, + fg-light: mix(#717981, #f5f5f5, 50%), + border: mix(#dcdcdc, #f5f5f5, 75%), + border-bg: rgba(#dcdcdc, 0.5), + accent: #18bfef, + ), + + invert: ( + bg: #1e252d, + bg-alt: #1e252d, + fg: #ffffff, + fg-bold: #ffffff, + fg-light: rgba(#ffffff, 0.5), + border: #ffffff, + border-bg: rgba(#ffffff,0.075), + accent: #18bfef, + ), ); \ No newline at end of file diff --git a/assets/sass/main.scss b/assets/sass/main.scss index fe62a39..58e1096 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -1,71 +1,71 @@ -@import 'libs/vars'; -@import 'libs/functions'; -@import 'libs/mixins'; -@import 'libs/vendor'; -@import 'libs/breakpoints'; -@import 'libs/html-grid'; -@import 'libs/fixed-grid'; -@import 'fontawesome-all.min.css'; -@import url('https://fonts.googleapis.com/css?family=Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900'); - -/* - Massively by HTML5 UP - html5up.net | @ajlkn - Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -*/ - -// Breakpoints. - - @include breakpoints(( - default: (1681px, null ), - xlarge: (1281px, 1680px ), - large: (981px, 1280px ), - medium: (737px, 980px ), - small: (481px, 736px ), - xsmall: (361px, 480px ), - xxsmall: (null, 360px ) - )); - -// Mixins. - - @mixin color($p) { - @include color-typography($p); - @include color-box($p); - @include color-button($p); - @include color-form($p); - @include color-list($p); - @include color-section($p); - @include color-table($p); - @include color-pagination($p); - } - -// Base. - - @import 'base/reset'; - @import 'base/page'; - @import 'base/typography'; - -// Component. - - @import 'components/row'; - @import 'components/box'; - @import 'components/button'; - @import 'components/form'; - @import 'components/icon'; - @import 'components/image'; - @import 'components/actions'; - @import 'components/icons'; - @import 'components/list'; - @import 'components/section'; - @import 'components/table'; - @import 'components/pagination'; - -// Layout. - - @import 'layout/wrapper'; - @import 'layout/intro'; - @import 'layout/header'; - @import 'layout/nav'; - @import 'layout/main'; - @import 'layout/footer'; +@import 'libs/vars'; +@import 'libs/functions'; +@import 'libs/mixins'; +@import 'libs/vendor'; +@import 'libs/breakpoints'; +@import 'libs/html-grid'; +@import 'libs/fixed-grid'; +@import 'fontawesome-all.min.css'; +@import url('https://fonts.googleapis.com/css?family=Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900'); + +/* + Massively by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +*/ + +// Breakpoints. + + @include breakpoints(( + default: (1681px, null ), + xlarge: (1281px, 1680px ), + large: (981px, 1280px ), + medium: (737px, 980px ), + small: (481px, 736px ), + xsmall: (361px, 480px ), + xxsmall: (null, 360px ) + )); + +// Mixins. + + @mixin color($p) { + @include color-typography($p); + @include color-box($p); + @include color-button($p); + @include color-form($p); + @include color-list($p); + @include color-section($p); + @include color-table($p); + @include color-pagination($p); + } + +// Base. + + @import 'base/reset'; + @import 'base/page'; + @import 'base/typography'; + +// Component. + + @import 'components/row'; + @import 'components/box'; + @import 'components/button'; + @import 'components/form'; + @import 'components/icon'; + @import 'components/image'; + @import 'components/actions'; + @import 'components/icons'; + @import 'components/list'; + @import 'components/section'; + @import 'components/table'; + @import 'components/pagination'; + +// Layout. + + @import 'layout/wrapper'; + @import 'layout/intro'; + @import 'layout/header'; + @import 'layout/nav'; + @import 'layout/main'; + @import 'layout/footer'; @import 'layout/navPanel'; \ No newline at end of file diff --git a/assets/sass/noscript.scss b/assets/sass/noscript.scss index eb826e5..90ce257 100644 --- a/assets/sass/noscript.scss +++ b/assets/sass/noscript.scss @@ -1,46 +1,46 @@ -@import 'libs/vars'; -@import 'libs/functions'; -@import 'libs/mixins'; -@import 'libs/vendor'; -@import 'libs/breakpoints'; -@import 'libs/html-grid'; -@import 'libs/fixed-grid'; -@import 'font-awesome.min.css'; - -/* - Massively by HTML5 UP - html5up.net | @ajlkn - Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) -*/ - -/* Wrapper */ - - #wrapper { - background-color: _palette(wrapper-bg); - background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg'); - background-size: auto, auto, 100% auto; - background-position: center, center, top center; - background-repeat: repeat, no-repeat, no-repeat; - background-attachment: fixed, fixed, fixed; - - &.fade-in { - &:before { - display: none; - } - } - } - -/* Intro */ - - #intro { - body.is-preload & { - opacity: 1; - - &:not(.hidden) { - & + #header + #nav { - @include vendor('transform', 'none'); - opacity: 1; - } - } - } +@import 'libs/vars'; +@import 'libs/functions'; +@import 'libs/mixins'; +@import 'libs/vendor'; +@import 'libs/breakpoints'; +@import 'libs/html-grid'; +@import 'libs/fixed-grid'; +@import 'font-awesome.min.css'; + +/* + Massively by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +*/ + +/* Wrapper */ + + #wrapper { + background-color: _palette(wrapper-bg); + background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg'); + background-size: auto, auto, 100% auto; + background-position: center, center, top center; + background-repeat: repeat, no-repeat, no-repeat; + background-attachment: fixed, fixed, fixed; + + &.fade-in { + &:before { + display: none; + } + } + } + +/* Intro */ + + #intro { + body.is-preload & { + opacity: 1; + + &:not(.hidden) { + & + #header + #nav { + @include vendor('transform', 'none'); + opacity: 1; + } + } + } } \ No newline at end of file diff --git a/check.html b/check.html index 93291aa..3a4a7f0 100644 --- a/check.html +++ b/check.html @@ -1,1419 +1,1419 @@ - - - - - - - Ahmad Bilal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-

- Hi, I'm
Ahmad - Bilal.

-
- -

Full Stack Web Engineer. -

-

- Advocates for API development working with DevRel @RapidAPI. Experienced working at the - leading open-source program Google Summer of Code. Writes a lot of JavaScript, - Next.js, and MERN Stack. Learn more.

- -
- -
-
-
-
- -
-
- - - - - - - - - - - + + + + + + + Ahmad Bilal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+

+ Hi, I'm
Ahmad + Bilal.

+
+ +

Full Stack Web Engineer. +

+

+ Advocates for API development working with DevRel @RapidAPI. Experienced working at the + leading open-source program Google Summer of Code. Writes a lot of JavaScript, + Next.js, and MERN Stack. Learn more.

+ +
+ +
+
+
+
+ +
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/elements.html b/elements.html index 4f030f6..6c6b54c 100644 --- a/elements.html +++ b/elements.html @@ -1,498 +1,498 @@ - - - - - Elements Reference - Massively by HTML5 UP - - - - - - - - -
- - - - - - - - -
- - -
-
-

Elements
- Reference

-
- - -

Text

-

This is bold and this is strong. This is italic and this is emphasized. - This is superscript text and this is subscript text. - This is underlined and this is code: for (;;) { ... }. - Finally, this is a link.

-
-

Heading Level 2

-

Heading Level 3

-

Heading Level 4

-
Heading Level 5
-
Heading Level 6
-
-
-

Heading with a Subtitle

-

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

-
-

Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.

-
-

Heading with a Subtitle

-

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

-
-

Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.

-
-

Heading with a Subtitle

-

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

-
-

Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.

- -
- - -

Lists

-
-
- -

Unordered

-
    -
  • Dolor pulvinar etiam.
  • -
  • Sagittis lorem eleifend.
  • -
  • Felis feugiat dolore viverra.
  • -
  • Dolor pulvinar etiam.
  • -
- -

Alternate

-
    -
  • Dolor pulvinar etiam etiam.
  • -
  • Sagittis adipiscing eleifend.
  • -
  • Felis enim dolore viverra.
  • -
  • Dolor pulvinar etiam etiam.
  • -
- -
-
- -

Ordered

-
    -
  1. Dolor pulvinar etiam.
  2. -
  3. Etiam vel felis at viverra.
  4. -
  5. Felis enim feugiat magna.
  6. -
  7. Etiam vel felis nullam.
  8. -
  9. Felis enim et tempus.
  10. -
- -

Icons

- - - -
-
-

Definition

-
-
Item 1
-
-

Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.

-
-
Item 2
-
-

Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.

-
-
Item 3
-
-

Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.

-
-
- -

Actions

- - -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
- - -

Blockquote

-
Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan faucibus. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis.
- -
- - -

Table

- -

Default

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameDescriptionPrice
Item 1Ante turpis integer aliquet porttitor.29.99
Item 2Vis ac commodo adipiscing arcu aliquet.19.99
Item 3 Morbi faucibus arcu accumsan lorem.29.99
Item 4Vitae integer tempus condimentum.19.99
Item 5Ante turpis integer aliquet porttitor.29.99
100.00
-
- -

Alternate

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameDescriptionPrice
Item 1Ante turpis integer aliquet porttitor.29.99
Item 2Vis ac commodo adipiscing arcu aliquet.19.99
Item 3 Morbi faucibus arcu accumsan lorem.29.99
Item 4Vitae integer tempus condimentum.19.99
Item 5Ante turpis integer aliquet porttitor.29.99
100.00
-
- -
- - -

Buttons

- - - - - -
    -
  • Primary
  • -
  • Default
  • -
- -
- - -

Form

- -
-
-
- -
-
- -
- -
- -
- -
- - -
-
- - -
-
- - -
- -
- - -
-
- - -
- -
- -
- -
-
    -
  • -
  • -
-
-
-
- -
- - -

Image

- -

Fit

- -
-
-
-
-
- -
-
-
- -
-
-
-
-
- -

Left & Right

-

Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Vestibulum ante ipsum primis in faucibus magna blandit adipiscing eu felis iaculis.

-

Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Vestibulum ante ipsum primis in faucibus magna blandit adipiscing eu felis iaculis.

- -
- - -

Box

-
-

Felis sagittis eget tempus primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Magna sed etiam ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus lorem ipsum dolor sit amet nullam. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Vestibulum ante ipsum primis in faucibus magna blandit adipiscing eu felis iaculis volutpat lorem ipsum dolor.

-
- -
- - -

Preformatted

-
i = 0;
-
-while (!deck.isInOrder()) {
-    print 'Iteration ' + i;
-    deck.shuffle();
-    i++;
-}
-
-print 'It took ' + i + ' iterations to sort the deck.';
-
- -
- -
- - - - - - - -
- - - - - - - - - - - + + + + + Elements Reference - Massively by HTML5 UP + + + + + + + + +
+ + + + + + + + +
+ + +
+
+

Elements
+ Reference

+
+ + +

Text

+

This is bold and this is strong. This is italic and this is emphasized. + This is superscript text and this is subscript text. + This is underlined and this is code: for (;;) { ... }. + Finally, this is a link.

+
+

Heading Level 2

+

Heading Level 3

+

Heading Level 4

+
Heading Level 5
+
Heading Level 6
+
+
+

Heading with a Subtitle

+

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

+
+

Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.

+
+

Heading with a Subtitle

+

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

+
+

Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.

+
+

Heading with a Subtitle

+

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

+
+

Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.

+ +
+ + +

Lists

+
+
+ +

Unordered

+
    +
  • Dolor pulvinar etiam.
  • +
  • Sagittis lorem eleifend.
  • +
  • Felis feugiat dolore viverra.
  • +
  • Dolor pulvinar etiam.
  • +
+ +

Alternate

+
    +
  • Dolor pulvinar etiam etiam.
  • +
  • Sagittis adipiscing eleifend.
  • +
  • Felis enim dolore viverra.
  • +
  • Dolor pulvinar etiam etiam.
  • +
+ +
+
+ +

Ordered

+
    +
  1. Dolor pulvinar etiam.
  2. +
  3. Etiam vel felis at viverra.
  4. +
  5. Felis enim feugiat magna.
  6. +
  7. Etiam vel felis nullam.
  8. +
  9. Felis enim et tempus.
  10. +
+ +

Icons

+ + + +
+
+

Definition

+
+
Item 1
+
+

Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.

+
+
Item 2
+
+

Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.

+
+
Item 3
+
+

Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent.

+
+
+ +

Actions

+ + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+ + +

Blockquote

+
Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan faucibus. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis.
+ +
+ + +

Table

+ +

Default

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescriptionPrice
Item 1Ante turpis integer aliquet porttitor.29.99
Item 2Vis ac commodo adipiscing arcu aliquet.19.99
Item 3 Morbi faucibus arcu accumsan lorem.29.99
Item 4Vitae integer tempus condimentum.19.99
Item 5Ante turpis integer aliquet porttitor.29.99
100.00
+
+ +

Alternate

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescriptionPrice
Item 1Ante turpis integer aliquet porttitor.29.99
Item 2Vis ac commodo adipiscing arcu aliquet.19.99
Item 3 Morbi faucibus arcu accumsan lorem.29.99
Item 4Vitae integer tempus condimentum.19.99
Item 5Ante turpis integer aliquet porttitor.29.99
100.00
+
+ +
+ + +

Buttons

+ + + + + +
    +
  • Primary
  • +
  • Default
  • +
+ +
+ + +

Form

+ +
+
+
+ +
+
+ +
+ +
+ +
+ +
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+ +
+ +
+ +
+
    +
  • +
  • +
+
+
+
+ +
+ + +

Image

+ +

Fit

+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +

Left & Right

+

Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Vestibulum ante ipsum primis in faucibus magna blandit adipiscing eu felis iaculis.

+

Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Vestibulum ante ipsum primis in faucibus magna blandit adipiscing eu felis iaculis.

+ +
+ + +

Box

+
+

Felis sagittis eget tempus primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Magna sed etiam ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus lorem ipsum dolor sit amet nullam. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Vestibulum ante ipsum primis in faucibus magna blandit adipiscing eu felis iaculis volutpat lorem ipsum dolor.

+
+ +
+ + +

Preformatted

+
i = 0;
+
+while (!deck.isInOrder()) {
+    print 'Iteration ' + i;
+    deck.shuffle();
+    i++;
+}
+
+print 'It took ' + i + ' iterations to sort the deck.';
+
+ +
+ +
+ + + + + + + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/generic.html b/generic.html index dd63d86..d1b899c 100644 --- a/generic.html +++ b/generic.html @@ -1,126 +1,126 @@ - - - - - Generic Page - Massively by HTML5 UP - - - - - - - - -
- - - - - - - - -
- - -
-
- April 25, 2017 -

This is a
- Generic Page

-

Aenean ornare velit lacus varius enim ullamcorper proin aliquam
- facilisis ante sed etiam magna interdum congue. Lorem ipsum dolor
- amet nullam sed etiam veroeros.

-
-
-

Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis. Praesent rutrum sem diam, vitae egestas enim auctor sit amet. Pellentesque leo mauris, consectetur id ipsum sit amet, fergiat. Pellentesque in mi eu massa lacinia malesuada et a elit. Donec urna ex, lacinia in purus ac, pretium pulvinar mauris. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur sapien risus, commodo eget turpis at, elementum convallis enim turpis, lorem ipsum dolor sit amet nullam.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis dapibus rutrum facilisis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam tristique libero eu nibh porttitor fermentum. Nullam venenatis erat id vehicula viverra. Nunc ultrices eros ut ultricies condimentum. Mauris risus lacus, blandit sit amet venenatis non, bibendum vitae dolor. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In non lorem sit amet elit placerat maximus. Pellentesque aliquam maximus risus. Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis. Praesent rutrum sem diam, vitae egestas enim auctor sit amet. Pellentesque leo mauris, consectetur id ipsum.

-
- -
- - - - - - - -
- - - - - - - - - - - + + + + + Generic Page - Massively by HTML5 UP + + + + + + + + +
+ + + + + + + + +
+ + +
+
+ April 25, 2017 +

This is a
+ Generic Page

+

Aenean ornare velit lacus varius enim ullamcorper proin aliquam
+ facilisis ante sed etiam magna interdum congue. Lorem ipsum dolor
+ amet nullam sed etiam veroeros.

+
+
+

Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis. Praesent rutrum sem diam, vitae egestas enim auctor sit amet. Pellentesque leo mauris, consectetur id ipsum sit amet, fergiat. Pellentesque in mi eu massa lacinia malesuada et a elit. Donec urna ex, lacinia in purus ac, pretium pulvinar mauris. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur sapien risus, commodo eget turpis at, elementum convallis enim turpis, lorem ipsum dolor sit amet nullam.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis dapibus rutrum facilisis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam tristique libero eu nibh porttitor fermentum. Nullam venenatis erat id vehicula viverra. Nunc ultrices eros ut ultricies condimentum. Mauris risus lacus, blandit sit amet venenatis non, bibendum vitae dolor. Nunc lorem mauris, fringilla in aliquam at, euismod in lectus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In non lorem sit amet elit placerat maximus. Pellentesque aliquam maximus risus. Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis. Praesent rutrum sem diam, vitae egestas enim auctor sit amet. Pellentesque leo mauris, consectetur id ipsum.

+
+ +
+ + + + + + + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index 9e97f2a..79fd9f2 100644 --- a/index.html +++ b/index.html @@ -1,235 +1,235 @@ - - - - - marvashahid.dev - - - - - - - - -
- - -
-

Hi, I'm Marwa Shahid.

-

Skilled in Data Anaysis using Python,SQL and Tableau.
- and well-versed in C++, C# and Microsoft technologies.
- @marwashahid

- -
- - - - - - - - -
- - -
-
- -

About me

-

Adept in both front-end development (HTML, CSS, JavaScript) and back-end - technologies (Python, SQL, .NET, C++, C#, Microsoft SQL Server, Oracle Database), I - am a passionate problem solver eager to leverage my diverse skillset in data analysis. - Currently honing my analytical abilities with Python, SQL, and Tableau, I actively - contribute to the tech community through articles on Medium, hackathon participation, - and even organizing workshops as a Microsoft Learn Student Ambassador. - Driven by a thirst for knowledge, I consistently explore new tech trends and - remain abreast of industry advancements.This blend of technical proficiency, - analytical drive, and community engagement makes me a valuable asset for any team - seeking a dedicated and versatile tech professional. -

-
- - -
- - -
-
-
-

Data Cleaning
- in SQL

-
- -

In this project I took raw housing dataset from Kaggle and - transformed it in SQL Server to make it more usable for analysis.

- -
-
-
-

Movies Correlation
- using Python

-
- -

In this project I looked at what variables effect the gross revenue from movies. - I used Python libraries : pandas, matplotlib , seaborn and numpy for this project. -

- -
- -
-
-

Tableau Dashboards
-

-
- -

Tableau Dashboards for project on COVID 19. I made various visualizations depending on the nature of the data to be visualiazed.

- -
-
-
-

Contact Book
- Information System

-
- -

The project is an information system for a Contact Book. - It is implemented using Windows Forms and the Object Oriented Programming Principles of C++. - While it is not my best one but I am quite proud of myself for pulling it off in my second semester.

- -
-
-
-

Augue lorem
- primis vestibulum

-
- -

Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis magna etiam.

- -
-
- - - - -
- - - - - - - -
- - - - - - - - - - - + + + + + marvashahid.dev + + + + + + + + +
+ + +
+

Hi, I'm Marwa Shahid.

+

Skilled in Data Anaysis using Python,SQL and Tableau.
+ and well-versed in C++, C# and Microsoft technologies.
+ @marwashahid

+ +
+ + + + + + + + +
+ + +
+
+ +

About me

+

Adept in both front-end development (HTML, CSS, JavaScript) and back-end + technologies (Python, SQL, .NET, C++, C#, Microsoft SQL Server, Oracle Database), I + am a passionate problem solver eager to leverage my diverse skillset in data analysis. + Currently honing my analytical abilities with Python, SQL, and Tableau, I actively + contribute to the tech community through articles on Medium, hackathon participation, + and even organizing workshops as a Microsoft Learn Student Ambassador. + Driven by a thirst for knowledge, I consistently explore new tech trends and + remain abreast of industry advancements.This blend of technical proficiency, + analytical drive, and community engagement makes me a valuable asset for any team + seeking a dedicated and versatile tech professional. +

+
+ + +
+ + +
+
+
+

Data Cleaning
+ in SQL

+
+ +

In this project I took raw housing dataset from Kaggle and + transformed it in SQL Server to make it more usable for analysis.

+ +
+
+
+

Movies Correlation
+ using Python

+
+ +

In this project I looked at what variables effect the gross revenue from movies. + I used Python libraries : pandas, matplotlib , seaborn and numpy for this project. +

+ +
+ +
+
+

Tableau Dashboards
+

+
+ +

Tableau Dashboards for project on COVID 19. I made various visualizations depending on the nature of the data to be visualiazed.

+ +
+
+
+

Contact Book
+ Information System

+
+ +

The project is an information system for a Contact Book. + It is implemented using Windows Forms and the Object Oriented Programming Principles of C++. + While it is not my best one but I am quite proud of myself for pulling it off in my second semester.

+ +
+
+
+

Augue lorem
+ primis vestibulum

+
+ +

Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis magna etiam.

+ +
+
+ + + + +
+ + + + + + + +
+ + + + + + + + + + + \ No newline at end of file