Init base for ST
35
Gemfile
Normal file
@ -0,0 +1,35 @@
|
||||
source "https://rubygems.org"
|
||||
# Hello! This is where you manage which Jekyll version is used to run.
|
||||
# When you want to use a different version, change it below, save the
|
||||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
||||
#
|
||||
# bundle exec jekyll serve
|
||||
#
|
||||
# This will help ensure the proper Jekyll version is running.
|
||||
# Happy Jekylling!
|
||||
gem "jekyll", "~> 4.0.0"
|
||||
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
||||
# gem "minima", "~> 2.5"
|
||||
|
||||
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
||||
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
||||
# gem "github-pages", group: :jekyll_plugins
|
||||
# If you have any plugins, put them here!
|
||||
group :jekyll_plugins do
|
||||
gem "jekyll-feed", "~> 0.12"
|
||||
gem "jekyll-menus"
|
||||
gem "jekyll-tagging"
|
||||
gem "jekyll-archives"
|
||||
gem "jekyll-paginate-v2"
|
||||
gem 'jekyll_picture_tag', '~> 1.6'
|
||||
end
|
||||
|
||||
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||
# and associated library.
|
||||
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
|
||||
gem "tzinfo", "~> 1.2"
|
||||
gem "tzinfo-data"
|
||||
end
|
||||
|
||||
# Performance-booster for watching directories on Windows
|
||||
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
|
104
Gemfile.lock
Normal file
@ -0,0 +1,104 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
colorator (1.1.0)
|
||||
concurrent-ruby (1.1.7)
|
||||
em-websocket (0.5.2)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
eventmachine (1.2.7)
|
||||
ffi (1.13.1)
|
||||
forwardable-extended (2.6.0)
|
||||
http_parser.rb (0.6.0)
|
||||
i18n (1.8.5)
|
||||
concurrent-ruby (~> 1.0)
|
||||
jekyll (4.0.1)
|
||||
addressable (~> 2.4)
|
||||
colorator (~> 1.0)
|
||||
em-websocket (~> 0.5)
|
||||
i18n (>= 0.9.5, < 2)
|
||||
jekyll-sass-converter (~> 2.0)
|
||||
jekyll-watch (~> 2.0)
|
||||
kramdown (~> 2.1)
|
||||
kramdown-parser-gfm (~> 1.0)
|
||||
liquid (~> 4.0)
|
||||
mercenary (~> 0.3.3)
|
||||
pathutil (~> 0.9)
|
||||
rouge (~> 3.0)
|
||||
safe_yaml (~> 1.0)
|
||||
terminal-table (~> 1.8)
|
||||
jekyll-archives (2.2.1)
|
||||
jekyll (>= 3.6, < 5.0)
|
||||
jekyll-feed (0.15.1)
|
||||
jekyll (>= 3.7, < 5.0)
|
||||
jekyll-menus (0.6.1)
|
||||
jekyll (>= 3.6, < 5.0)
|
||||
jekyll-paginate-v2 (3.0.0)
|
||||
jekyll (>= 3.0, < 5.0)
|
||||
jekyll-sass-converter (2.1.0)
|
||||
sassc (> 2.0.1, < 3.0)
|
||||
jekyll-tagging (1.1.0)
|
||||
nuggets
|
||||
jekyll-watch (2.2.1)
|
||||
listen (~> 3.0)
|
||||
jekyll_picture_tag (1.12.0)
|
||||
addressable (~> 2.6)
|
||||
jekyll (< 5)
|
||||
mime-types (~> 3)
|
||||
mini_magick (~> 4)
|
||||
objective_elements (~> 1.1.2)
|
||||
kramdown (2.3.0)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
liquid (4.0.3)
|
||||
listen (3.3.1)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
mercenary (0.3.6)
|
||||
mime-types (3.3.1)
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2020.1104)
|
||||
mini_magick (4.11.0)
|
||||
nuggets (1.6.0)
|
||||
objective_elements (1.1.2)
|
||||
pathutil (0.16.2)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (4.0.6)
|
||||
rb-fsevent (0.10.4)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rexml (3.2.4)
|
||||
rouge (3.25.0)
|
||||
safe_yaml (1.0.5)
|
||||
sassc (2.4.0)
|
||||
ffi (~> 1.9)
|
||||
terminal-table (1.8.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
thread_safe (0.3.6)
|
||||
tzinfo (1.2.8)
|
||||
thread_safe (~> 0.1)
|
||||
tzinfo-data (1.2020.4)
|
||||
tzinfo (>= 1.0.0)
|
||||
unicode-display_width (1.7.0)
|
||||
wdm (0.1.1)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
jekyll (~> 4.0.0)
|
||||
jekyll-archives
|
||||
jekyll-feed (~> 0.12)
|
||||
jekyll-menus
|
||||
jekyll-paginate-v2
|
||||
jekyll-tagging
|
||||
jekyll_picture_tag (~> 1.6)
|
||||
tzinfo (~> 1.2)
|
||||
tzinfo-data
|
||||
wdm (~> 0.1.1)
|
||||
|
||||
BUNDLED WITH
|
||||
2.1.4
|
678
LICENSE
Normal file
@ -0,0 +1,678 @@
|
||||
© 2020 SharpeTronics.Com by Charles Sharpe
|
||||
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
63
README.md
@ -1,3 +1,60 @@
|
||||
# SharpeTronics
|
||||
The web application for SharpeTronics homepage.
|
||||
This application will be the core information portal for supporting both remote and local community.
|
||||
# Summary
|
||||
This web application is the core website for SharpeTronics.com. It is a live JAMstack (Jekyll, API's, Markup) example of the power of static websites with micro services that includes all the bells and whistles for comments, newsletter subscriptions, content management systems (CMS), site generators, blog posts, continuous delivery (CD), version management, ecommerce shopping, progressive web applications (PWA), and many more.
|
||||
|
||||
Javascript frameworks create more complexity than needed, this example portrays minimal need for Javascript; therefore increasing security, reducing file size and complex work environments, increasing load times and reducing the learning curve for web developers, while keeping all the fun and speedy reactivity of the modern web architecture. We enable more focus on design and content; while enabling increased portability, automated testing, speed and security.
|
||||
|
||||
No proprietary operating system dependencies required, only Docker Engine super machines and some tender love and care. The base stack is Docker Engine + SCSS ready!
|
||||
|
||||
# Stack Architecture Features
|
||||
* JAMstack (Jekyll, API's, Markup)
|
||||
* Lightweight, Responsive & Fast!
|
||||
* SCSS ready!
|
||||
* Developer Friendly
|
||||
* Docker super machines!
|
||||
* Distributed CDN with automatic HTTPS
|
||||
* Blog ready with collections and pagination
|
||||
* Clean minimal design
|
||||
* GitHub Pages ready (Free hosting)
|
||||
* GitHub Actions for expanding Jekyll usability
|
||||
* < Siteleaf CMS ready with user roles
|
||||
* < Comments with administration
|
||||
* < Ecommerce shopping
|
||||
* < Newsletter subscriptions
|
||||
* < Search functionality
|
||||
* < Web workers for caching data for speedy progressive web application (PWA)
|
||||
|
||||
# Jekyll Plugins
|
||||
* Menus
|
||||
* Tagging
|
||||
* Feed
|
||||
* Archives
|
||||
* Picture Tagging
|
||||
* Pagination v2
|
||||
|
||||
# API's
|
||||
* Siteleaf CMS
|
||||
* Staticman with GitHub
|
||||
* Snipcart with Stripe
|
||||
* Mailjet Newsletters
|
||||
* Algolia Search
|
||||
|
||||
All Ruby dependencies are created and stored in the Docker container. Simple, smooth and sweet :)
|
||||
|
||||
# Requirements
|
||||
* Install Docker Engine (Community)
|
||||
* Install Docker-Compose
|
||||
* Install Git
|
||||
* Optional: If using Jekyll picture-tagging plugin, you will need to login to docker container and install the image-magick dependency; see docker-compose.yml file.
|
||||
|
||||
## Clone, Build & Launch
|
||||
1. In local directory for development, ```git clone https://github.com/SharpeTronics/folder-name-example/```
|
||||
2. ```cd folder-name-example``
|
||||
3. ```docker-compose up```
|
||||
|
||||
*Happy Hacking! :)*
|
||||
|
||||
## Further Reading
|
||||
* Docker Engine https://docs.docker.com/install/
|
||||
* Docker Compose https://docs.docker.com/compose/install/
|
||||
* Jekyll https://jekyllrb.com/
|
||||
* Git https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
|
||||
|
153
_config.yml
Normal file
@ -0,0 +1,153 @@
|
||||
# Welcome to Jekyll 4.0!
|
||||
#
|
||||
# This config file is meant for settings that affect your whole blog, values
|
||||
# which you are expected to set up once and rarely edit after that. If you find
|
||||
# yourself editing this file very often, consider using Jekyll's data files
|
||||
# feature for the data you need to update frequently.
|
||||
#
|
||||
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
||||
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
||||
#
|
||||
# If you need help with YAML syntax, here are some quick references for you:
|
||||
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
|
||||
# https://learnxinyminutes.com/docs/yaml/
|
||||
#
|
||||
# Site settings
|
||||
# These are used to personalize your new site. If you look in the HTML files,
|
||||
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
||||
# You can create any custom variable you would like, and they will be accessible
|
||||
# in the templates via {{ site.myvariable }}.
|
||||
|
||||
baseurl: "/" # the subpath of your site, e.g. /blog /galacticsociety.github.io
|
||||
url: "https://sharpetronics.github.io" # the base hostname & protocol for your site, e.g. https://sharpetronics.github.io
|
||||
|
||||
#Latent Semantic Indexing for similarity bewtween documents.
|
||||
lsi: true
|
||||
# Collection configurations
|
||||
# These collections will enable to sort types of products and loop through that
|
||||
# type to be displayed on a page. As an example, I have 10 "3D" items, all 10 items
|
||||
# will be displayed when a category is selected on the product main index page.
|
||||
collections_dir: collections
|
||||
|
||||
collections:
|
||||
products:
|
||||
output: true
|
||||
permalink: /products/:path/
|
||||
legal:
|
||||
output: true
|
||||
permalink: /legal/:path/
|
||||
|
||||
permalink: "/blog/:categories/:year/:month/:day/:title/" #Built in options include: date, pretty, ordinal, weekdate, none; learn more here: https://jekyllrb.com/docs/permalinks/
|
||||
#paginate: 7
|
||||
#paginate_path: "/journal/"
|
||||
|
||||
# Responsive images conversion; requires imageMagik
|
||||
# Test with convert --version SEE: docker-compose.yml for docker container setup.
|
||||
# Currently not being used
|
||||
picture:
|
||||
source: "assets/images"
|
||||
output: "assets/images/generated"
|
||||
suppress_warnings: true
|
||||
|
||||
# Build settings
|
||||
plugins:
|
||||
#- jekyll-feed #manually generated rss.xml https://jekyllrb.com/tutorials/convert-site-to-jekyll/#10-rss-feed
|
||||
- jekyll-menus
|
||||
- jekyll-archives
|
||||
- jekyll-paginate-v2
|
||||
- jekyll/tagging
|
||||
#- jekyll-picture-tag #currently not in use...see "picture settings above"
|
||||
|
||||
sass:
|
||||
style: compressed # possible values: nested expanded compact compressed
|
||||
sass_dir: _scss
|
||||
|
||||
############################################################
|
||||
# Site configuration for the Jekyll 3 Pagination Gem
|
||||
# The values here represent the defaults if nothing is set
|
||||
pagination:
|
||||
|
||||
# Site-wide kill switch, disabled here it doesn't run at all
|
||||
enabled: true
|
||||
|
||||
# Set to 'true' to enable pagination debugging. This can be enabled in the site config or only for individual pagination pages
|
||||
debug: true
|
||||
|
||||
# The default document collection to paginate if nothing is specified ('posts' is default)
|
||||
collection: 'posts'
|
||||
|
||||
# How many objects per paginated page, used to be `paginate` (default: 0, means all)
|
||||
per_page: 11
|
||||
|
||||
# The permalink structure for the paginated pages (this can be any level deep)
|
||||
permalink: '/:num/' # Pages are index.html inside this folder (default)
|
||||
#permalink: '/page/:num.html' # Pages are simple html files
|
||||
#permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style.
|
||||
|
||||
# Optional the title format for the paginated pages (supports :title for original page title, :num for pagination page number, :max for total number of pages)
|
||||
title: ':title - page :num'
|
||||
|
||||
# Limit how many pagenated pages to create (default: 0, means all)
|
||||
limit: 0
|
||||
|
||||
# Optional, defines the field that the posts should be sorted on (omit to default to 'date')
|
||||
sort_field: 'date'
|
||||
|
||||
# Optional, sorts the posts in reverse order (omit to default decending or sort_reverse: true)
|
||||
sort_reverse: true
|
||||
|
||||
# Optional, the default category to use, omit or just leave this as 'posts' to get a backwards-compatible behavior (all posts)
|
||||
category: 'posts'
|
||||
|
||||
# Optional, the default tag to use, omit to disable
|
||||
tag: ''
|
||||
|
||||
# Optional, the default locale to use, omit to disable (depends on a field 'locale' to be specified in the posts,
|
||||
# in reality this can be any value, suggested are the Microsoft locale-codes (e.g. en_US, en_GB) or simply the ISO-639 language code )
|
||||
locale: ''
|
||||
|
||||
# Optional,omit or set both before and after to zero to disable.
|
||||
# Controls how the pagination trail for the paginated pages look like.
|
||||
trail:
|
||||
before: 3
|
||||
after: 1
|
||||
|
||||
# Optional, the default file extension for generated pages (e.g html, json, xml).
|
||||
# Internally this is set to html by default
|
||||
extension: html
|
||||
|
||||
# Optional, the default name of the index file for generated pages (e.g. 'index.html')
|
||||
# Without file extension
|
||||
indexpage: 'index'
|
||||
|
||||
############################################################
|
||||
|
||||
# Exclude from processing.
|
||||
# The following items will not be processed, by default.
|
||||
# Any item listed under the `exclude:` key here will be automatically added to
|
||||
# the internal "default list".
|
||||
#
|
||||
# Excluded items can be processed by explicitly listing the directories or
|
||||
# their entries' file path in the `include:` list.
|
||||
|
||||
exclude:
|
||||
# - .sass-cache/
|
||||
# - .jekyll-cache/
|
||||
# - gemfiles/
|
||||
# - Gemfile
|
||||
# - Gemfile.lock
|
||||
# - node_modules/
|
||||
# - vendor/bundle/
|
||||
# - vendor/cache/
|
||||
# - vendor/gems/
|
||||
# - vendor/ruby/
|
||||
|
||||
# Reading extra files
|
||||
# Every file or directory beginning with the following characters: ., _ , # or ~
|
||||
# in the source directory will not be included in the destination folder. Such
|
||||
# paths will have to be explicitly specified via the config file in the include
|
||||
# directive to make sure they’re copied over:
|
||||
#
|
||||
|
||||
include:
|
||||
# - _pages
|
26
_data/authors.yml
Normal file
@ -0,0 +1,26 @@
|
||||
#This data file contains all the author(s) information. It enables us to make a one stop shop change for INF amount of posts to be updated.
|
||||
---
|
||||
Charles:
|
||||
first_name: "Charles"
|
||||
last_name: "Sharpe"
|
||||
site: "https://www.csharpe.me"
|
||||
avatar: "/uploads/authors/c-avatar.webp" #Size of avatar_image 36x36
|
||||
bio: "Independent Full-Stack Web Developer; curious about Astronomy, Information Technology, Privacy, Permaculture, Philosophy & Consciousness."
|
||||
email: "charles.sharpee@gmail.com"
|
||||
# Twitter nick for use in Twitter cards and follow button.
|
||||
twitter: "csharpe_me" # if no twitter in this config, the twitter follow button will be removed
|
||||
# GitHub nick for use in follow button in author block.
|
||||
github: "csharpee"
|
||||
social:
|
||||
- title: "github"
|
||||
url: "https://github.com/csharpee"
|
||||
- title: "linkedin"
|
||||
url: "https://www.linkedin.com/in/EXAMPLE"
|
||||
- title: "youtube"
|
||||
url: "https://www.youtube.com/channel/EXAMPLE"
|
||||
- title: "facebook"
|
||||
url: "https://www.facebook.com/EXAMPLE"
|
||||
|
||||
|
||||
Dexter:
|
||||
---
|
26
_data/global.yml
Normal file
@ -0,0 +1,26 @@
|
||||
#This data file contains all the global site information.
|
||||
---
|
||||
title: SharpeTronics
|
||||
support_email: support@sharpetronics.com
|
||||
sales_email: sales@sharpetronics.com
|
||||
info_email: info@sharpetronics.com
|
||||
creator: "Charles Sharpe"
|
||||
creator_link: https://www.csharpe.me
|
||||
logo: "/assets/images/st_logo125.svg"
|
||||
motto: "We Do Technology."
|
||||
keywords: >- # this means to ignore newlines
|
||||
JAMstack, Web Design, Information Technology, Newsletter, 3D Printing,
|
||||
Computer Technician, Hardware, Open Source, Stack Development,
|
||||
Web Apps, Development
|
||||
description: >- # this means to ignore newlines
|
||||
Easing the content creators experience sharing information
|
||||
through online information portals is our focus.
|
||||
|
||||
location_town: "Charles Town"
|
||||
location_state: "US_WV"
|
||||
location_coords: "39.63;-79,96"
|
||||
|
||||
terms_link: /legal/2020-02-03-terms-conditions/
|
||||
privacy_link: /legal/2020-02-03-privacy-policy/
|
||||
sitemap_link: /sitemap.xml
|
||||
---
|
13
_data/menus.yml
Normal file
@ -0,0 +1,13 @@
|
||||
#Documentation located here: https://github.com/forestryio/jekyll-menus
|
||||
---
|
||||
header:
|
||||
- url: /
|
||||
title: Home
|
||||
identifier: header
|
||||
- url: /blog/
|
||||
title: Journal
|
||||
identifier: header
|
||||
# - url: /products/
|
||||
# title: Shop
|
||||
# identifier: header
|
||||
---
|
9
_data/payments.yml
Normal file
@ -0,0 +1,9 @@
|
||||
#This data file contains all the payment address information.
|
||||
---
|
||||
paypal_acct: example
|
||||
cashapp_acct: example
|
||||
dwolla_acct: example
|
||||
patreon: example
|
||||
bitcoin: example
|
||||
ethereum: example
|
||||
---
|
10
_data/picture.yml
Normal file
@ -0,0 +1,10 @@
|
||||
#Documentation located here: https://rbuchberger.github.io/jekyll_picture_tag/
|
||||
---
|
||||
presets:
|
||||
default:
|
||||
formats: [webp, original]
|
||||
format_quality:
|
||||
jpg: 99
|
||||
png: 99
|
||||
webp: 99
|
||||
---
|
166
_data/products.yml
Normal file
@ -0,0 +1,166 @@
|
||||
#Product list for all items for SharpeTronics
|
||||
global-product:
|
||||
tax: 6%
|
||||
shipping: $5.00
|
||||
delivery: 3-5 days
|
||||
warranty: 30 days money back
|
||||
|
||||
product-ten:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-one:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-nine:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-two:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-three:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-four:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-five:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-six:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-seven:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
||||
|
||||
product-eight:
|
||||
title: Peppermint Lip Balm
|
||||
image: assets/images/Peppermint-Lip-Balm.jpg
|
||||
description: Our all natural Peppermint lip balm was a great hit with our family & friends. We hope you enjoy it too!
|
||||
excerpt: Our BEST SELLING lip balm - you'll love it!
|
||||
category: Lip Balm
|
||||
tag: Health
|
||||
id: 201806
|
||||
sku: 2020
|
||||
quantity: 14
|
||||
price: $5.00
|
||||
weight: Peppermint
|
||||
format: Physical
|
||||
material: Wood, Steel
|
||||
dimension: 15in x 35in
|
16
_data/social.yml
Normal file
@ -0,0 +1,16 @@
|
||||
#This data file contains all the social media information.
|
||||
---
|
||||
twitter_user: sharpetronics
|
||||
twitter_link: https://twitter.com/SharpeTronics
|
||||
twitter_desc: "This is a description"
|
||||
|
||||
github_user: sharpetronics
|
||||
github_link: https://github.com/SharpeTronics
|
||||
|
||||
facebook_user: example
|
||||
facebook_link: https://facebook.com/SharpeTronics
|
||||
facebook_admin_user: example
|
||||
|
||||
rss_link: /feed.xml/
|
||||
|
||||
---
|
8
_includes/author_card.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% comment %}
|
||||
The author metadata for both posts and post single pages.
|
||||
{% endcomment %}
|
||||
|
||||
<div class="meta">
|
||||
<time class="published">{{ post.date | date_to_string }} {{ page.date | date_to_string }}</time>
|
||||
<h5 class="author"><img src="{{ author.avatar }}" alt="{{ author.first_name }} {{ author.last_name }}" /><span class="name">{{ author.first_name }}</span></h5>
|
||||
</div>
|
12
_includes/banner.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!-- Banner -->
|
||||
<section id="banner">
|
||||
<header class="major">
|
||||
<!--<span class="icon solid fa-code style3"></span>-->
|
||||
<a href="/" class="logo"><img src="{{ site.logo }}" alt="{{ site.title }}" aria-hidden="true" /></a>
|
||||
<h1>Sharpetronics</h1>
|
||||
<p>We Do Technology.</p>
|
||||
</header>
|
||||
<ul class="actions special">
|
||||
<li><a href="#one" class="button scrolly">Proceed</a></li>
|
||||
</ul>
|
||||
</section>
|
22
_includes/footer.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!-- Footer -->
|
||||
<footer id="footer">
|
||||
<ul class="alt-icons">
|
||||
<li><a href="{{ site.data.social.twitter_link }}" class="icon brands fa-twitter" target="_blank"><span class="label">Twitter</span></a></li>
|
||||
<li><a href="{{ site.data.social.facebook_link }}" class="icon brands fa-facebook-f" target="_blank"><span class="label">Facebook</span></a></li>
|
||||
<li><a href="{{ site.data.social.github_link }}" class="icon brands fa-github" target="_blank"><span class="label">GitHub</span></a></li>
|
||||
<li><link rel="alternate" type="application/rss+xml" href="{{site.url}}{{ site.data.social.rss_link }}" class="icon solid fa-rss" target="_blank"></li>
|
||||
<li><a href="mailto:{{ site.data.global.info_email }}" class="icon solid fa-envelope" target="_blank"><span class="label">Email</span></a></li>
|
||||
</ul>
|
||||
<p class="copyright">
|
||||
© 2020 SharpeTronics <a href="{{ site.data.global.creator_link }}" target="_blank"></a><br />
|
||||
<a href="/humans.txt" target="_blank">Imagined by humans</a>, <a href="https://jekyllrb.com/" target="_blank">built with Jekyll</a>,
|
||||
<a href="https://github.com/" target="_blank">hosted by GitHub</a><br />
|
||||
<!-- Creative Commons Attribution-NoDerivs 3.0 United States License -->
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
|
||||
</p>
|
||||
<ul class="menu">
|
||||
<li><a href="{{ site.data.global.terms_link }}#">Terms of Use</a></li>
|
||||
<li><a href="{{ site.data.global.privacy_link }}">Privacy Policy</a></li>
|
||||
<li><a href="{{ site.data.global.sitemap_link }}">Sitemap</a></li>
|
||||
</ul>
|
||||
</footer>
|
72
_includes/head.html
Normal file
@ -0,0 +1,72 @@
|
||||
<!--
|
||||
* ____ __ ______
|
||||
* /\ _`\ /\ \ /\__ _\ __
|
||||
* \ \,\L\_\ \ \___ __ _ __ _____ _\/_/\ \/ _ __ ___ ___ /\_\ ___ ____
|
||||
* \/_\__ \\ \ _ `\ /'__`\ /\`'__/\ '__`\ /'__`\\ \ \/\`'__/ __`\/' _ `\/\ \ /'___\ /',__\
|
||||
* /\ \L\ \ \ \ \ \/\ \L\.\\ \ \/\ \ \L\ /\ __/ \ \ \ \ \/\ \L\ /\ \/\ \ \ \/\ \__//\__, `\
|
||||
* \ `\____\ \_\ \_\ \__/.\_\ \_\ \ \ ,__\ \____\ \ \_\ \_\ \____\ \_\ \_\ \_\ \____\/\____/
|
||||
* \/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/
|
||||
* \ \_\
|
||||
* \/_/
|
||||
Owner: @csharpe_me (Charles Sharpe)
|
||||
Designer: @ajlkn, @csharpe_me
|
||||
Developer: @ajlkn, @csharpe_me
|
||||
Editor: @csharpe_me
|
||||
Engineering: @csharpe_me
|
||||
Quality Assurance: @csharpe_me
|
||||
-->
|
||||
|
||||
<head>
|
||||
<META charset="utf-8">
|
||||
<META http-equiv="X-UA-Compatible" CONTENT="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<META NAME="robots" CONTENT="index, follow">
|
||||
|
||||
<META NAME="author" CONTENT="{{ site.data.global.author }}">
|
||||
<META NAME="description" CONTENT="{{ site.data.global.description }}">
|
||||
<META NAME="keywords" CONTENT="{{ site.data.global.keywords }}">
|
||||
|
||||
<!-- Geolocation Search Engine Optimization BING -->
|
||||
<META NAME="geo.position" CONTENT="{{ site.data.global.location_coords }}" />
|
||||
<META NAME="geo.placename" CONTENT="{{ site.data.global.location_town }}" />
|
||||
<META NAME="geo.region" CONTENT="{{ site.data.global.location_state }}" />
|
||||
<META NAME="ICBM" content="{{ site.data.global.location_coords }}" />
|
||||
|
||||
<!-- Standard SEO Twitter Card data -->
|
||||
<META NAME="twitter:card" content="summary">
|
||||
<META NAME="twitter:site" content="@{{ site.data.social.twitter_user }}">
|
||||
<META NAME="twitter:title" content="{{ page.title }}">
|
||||
<META NAME="twitter:description" content="{{ page.description }}">
|
||||
<META NAME="twitter:creator" content="@{{ site.data.social.twitter_user }}">
|
||||
|
||||
<!-- Standard SEO Twitter Summary card images must be at least 120x120px -->
|
||||
<META NAME="twitter:image" content="{{ page.image_url }}">
|
||||
<META NAME="twitter:alt" content="{{ page.image_alt }}">
|
||||
|
||||
<!-- Standard SEO Open Graph data -->
|
||||
<META property="og:title" content="{{ page.title }}" />
|
||||
<META property="og:type" content="article" />
|
||||
<META property="og:url" content="{{ page.url }}" />
|
||||
<META property="og:image" content="{{ page.image_url }}" />
|
||||
<META property="og:image" content="{{ page.image_alt }}" />
|
||||
<META property="og:description" content="{{ site.data.global.description }}" />
|
||||
<META property="og:site_name" content="{{ site.data.global.title }}" />
|
||||
<META property="fb:admins" content="{{ site.data.social.facebook_admin_user }}" />
|
||||
|
||||
<!-- Favicons for various browsers including mobile -->
|
||||
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico" sizes="64x49">
|
||||
|
||||
<!-- Jekyll RSS Feed Plugin -->
|
||||
{%- feed_meta -%}
|
||||
|
||||
<!-- Site title goes here -->
|
||||
<title> {{ site.data.global.title }} | {{ page.title }} </title>
|
||||
|
||||
<!-- Linking local cascading stylesheet CSS -->
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
|
||||
<!-- Loading local fonts ; preload for fast generation-->
|
||||
<link rel="preload" href="/assets/webfonts/fa-regular-400.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="/assets/webfonts/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
<link rel="preload" href="/assets/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
||||
</head>
|
5
_includes/header.html
Normal file
@ -0,0 +1,5 @@
|
||||
<!-- Header Menus -->
|
||||
<header id="header">
|
||||
<a href="#menu">Menu</a>
|
||||
<a href="{{site.url}}/blog" class="button">Journal</a>
|
||||
</header>
|
12
_includes/navigation.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!-- Nav -->
|
||||
<nav id="menu">
|
||||
<ul class="links">
|
||||
{% for item in site.menus.header %}
|
||||
<li class="menu-item-{{ loop.index }}">
|
||||
<a href="{{ item.url }}" title="Go to {{ item.title }}">{{ item.title }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<!-- <ul class="actions stacked">
|
||||
<li><a href="#" class="button primary fit">Log In</a></li>
|
||||
</ul> -->
|
||||
</nav>
|
30
_includes/pagination.html
Normal file
@ -0,0 +1,30 @@
|
||||
<!-- Pagination Next & Previous Button Logic -->
|
||||
<ul class="actions pagination">
|
||||
{% if paginator.previous_page %}
|
||||
<li><a href="{{ paginator.previous_page_path }}" class="button primary previous"><< Prev</a></li>
|
||||
{% else %}
|
||||
<li><a href="#" class="disabled button primary previous"><< Prev</a></li>
|
||||
{% endif %}
|
||||
|
||||
<div class="ptrail">
|
||||
<!-- Pagination Trail -->
|
||||
{% if paginator.page_trail %}
|
||||
{% for trail in paginator.page_trail %}
|
||||
<li {% if page.url == trail.path %} class="selected" {% endif %}>
|
||||
<a href="{{ trail.path | prepend: site.url }}" title="{{trail.title}}">{{ trail.num }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<li><a href="{{ paginator.next_page_path }}" class="button primary next">Next >></a></li>
|
||||
{% else %}
|
||||
<li><a href="#" class="disabled button primary next">Next >></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<!-- Pagination Page Number -->
|
||||
<span class="page_number ">
|
||||
Page: {{ paginator.page }} of {{ paginator.total_pages }}
|
||||
</span>
|
11
_includes/product_cat.html
Normal file
@ -0,0 +1,11 @@
|
||||
<section class="row product-cat">
|
||||
<div class="col-12">
|
||||
<ul class="">
|
||||
<a href="#"><li>Shop</li></a>
|
||||
<a href="#"><li>Laptops</li></a>
|
||||
<a href="#"><li>Models</li></a>
|
||||
<a href="#"><li>Parts</li></a>
|
||||
<a href="#"><li>Categories</li></a>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
11
_includes/product_featured.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Featured products collection -->
|
||||
<div class="col-6 col-12-small vert-expand">
|
||||
<article class="post product no-padding">
|
||||
<a href="{{ post.url | absolute_url }}"><img alt="{{ post.title }}" src="{{ post.banner_image }}" class="image fit" /></a>
|
||||
<a href="{{ post.url | absolute_url }}"><h4> {{ post.title }} </h4></a>
|
||||
<p>{{ post.content | strip_html | truncatewords: 25 }}</p>
|
||||
<ul class="actions">
|
||||
<li><a href="{{ post.url | absolute_url }}" class="button">Continue ></a></li>
|
||||
</ul>
|
||||
</article>
|
||||
</div>
|
22
_includes/product_headline.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!-- Initial headline product collection post -->
|
||||
<article class="post featured product no-padding">
|
||||
<section class="row">
|
||||
|
||||
<div class="col-6 col-12-small headline-col-limit">
|
||||
<picture>
|
||||
<a href="{{ paginator.posts[0].url | absolute_url }}">
|
||||
<img alt="{{ paginator.posts[0].title }}" src="{{ paginator.posts[0].banner_image }}" class="product-headline-flex" />
|
||||
</a>
|
||||
</picture>
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-12-small product-hero-text">
|
||||
<a href="{{ paginator.posts[0].url | absolute_url }}"><h3> {{ paginator.posts[0].title }} </h3></a>
|
||||
<p>{{ paginator.posts[0].content | strip_html | truncatewords: 50 }}</p>
|
||||
<ul class="actions">
|
||||
<li><a href="{{ paginator.posts[0].url | absolute_url }}" class="button">Continue ></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</article>
|
0
_includes/product_hero.html
Normal file
12
_includes/product_related.html
Normal file
@ -0,0 +1,12 @@
|
||||
{%- for post in related_posts -%}
|
||||
<div class="col-4 col-12-small vert-expand">
|
||||
<article class="post product no-padding">
|
||||
<a href="{{ post.url | absolute_url }}"><img alt="{{ post.title }}" src="{{ post.banner_image }}" class="image fit" /></a>
|
||||
<a href="{{ post.url | absolute_url }}"><h4> {{ post.title }} </h4></a>
|
||||
<p>{{ post.content | strip_html | truncatewords: 10 }}</p>
|
||||
<ul class="actions">
|
||||
<li><a href="{{ post.url | absolute_url }}" class="button">Continue ></a></li>
|
||||
</ul>
|
||||
</article>
|
||||
</div>
|
||||
{% endfor %}
|
11
_includes/product_rest.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!-- Rest of products collection -->
|
||||
<div class="col-4 col-12-small vert-expand">
|
||||
<article class="post product no-padding">
|
||||
<a href="{{ post.url | absolute_url }}"><img alt="{{ post.title }}" src="{{ post.banner_image }}" class="image fit" /></a>
|
||||
<a href="{{ post.url | absolute_url }}"><h4> {{ post.title }} </h4></a>
|
||||
<p>{{ post.content | strip_html | truncatewords: 10 }}</p>
|
||||
<ul class="actions">
|
||||
<li><a href="{{ post.url | absolute_url }}" class="button">Continue ></a></li>
|
||||
</ul>
|
||||
</article>
|
||||
</div>
|
164
_includes/sections.html
Normal file
@ -0,0 +1,164 @@
|
||||
<!-- One -->
|
||||
<div class="wave-container">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#7cafa3" fill-opacity="1" d="M0,288L80,288C160,288,320,288,480,266.7C640,245,800,203,960,208C1120,213,1280,267,1360,293.3L1440,320L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>
|
||||
<section id="one" class="wrapper style2 special">
|
||||
<div class="inner">
|
||||
<header class="major">
|
||||
<h2>JAMstack Architecture</h2>
|
||||
<p>Welcome to the Future of Web Development</p>
|
||||
</header>
|
||||
<section class="spotlights">
|
||||
<section>
|
||||
<span class="image"><img src="assets/images/design.webp" alt="Web Architecture and Design" /></span>
|
||||
<h4>Design</h4>
|
||||
<p>Your website will be unique & visually stunning – it will be fully responsive, mobile friendly, search engine optimized & accessible. </p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="image"><img src="assets/images/programming.webp" alt="Web Programming and Coding" /></span>
|
||||
<h4>Develop</h4>
|
||||
<p>Your webstack architecture will be powerful, fast & built with the future in mind. We provide a seamless developer experience & content driven focus. </p>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#7cafa3" fill-opacity="1" d="M0,128L120,106.7C240,85,480,43,720,69.3C960,96,1200,192,1320,240L1440,288L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"></path></svg>
|
||||
</div>
|
||||
|
||||
<!-- Three -->
|
||||
<section id="three" class="wrapper style1 special">
|
||||
<div class="inner">
|
||||
<header class="major">
|
||||
<h2>Why JAMstack?</h2>
|
||||
<p>Faster, Straightforward and a more Secure Architecture</p>
|
||||
</header>
|
||||
<section class="features">
|
||||
<section>
|
||||
<span class="fas fa-bolt fa-3x" aria-hidden="true"></span>
|
||||
<h4>Performance</h4>
|
||||
<p>Super fast loading times for Search Engine Optimization (SEO) and the viewers pleasure.
|
||||
Higher rankings on Search Engine Results Page (SERP). Less talk, more bang for your buck. </p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-expand fa-3x" aria-hidden="true"></span>
|
||||
<h4>Scalable</h4>
|
||||
<p>Less complexity means easier scalability and more money saved. Ease of use for administrators, developers and editors. The future is highly distributed.</p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-shield-alt fa-3x" aria-hidden="true"></span>
|
||||
<h4>Rock Solid Security</h4>
|
||||
<p>Our information stack is static with higher standards of security. Client-server topology systems like SQL/PHP based Joomla or
|
||||
Wordpress enables a larger area of attack through SQL injections and other known vulnerabilities. </p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-cloud fa-3x" aria-hidden="true"></span>
|
||||
<h4>Auto Backups</h4>
|
||||
<p>We make use of continuous delivery (CD) systems, including auto deployment too production for version management.
|
||||
If your website breaks, we run a one liner command to deploy the most recent working version.</p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-hammer fa-3x" aria-hidden="true"></span>
|
||||
<h4>Easy Maintenance</h4>
|
||||
<p>Hassle-free maintenance with focus on content creation;
|
||||
saving time for your community and business.</p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-shipping-fast fa-3x" aria-hidden="true"></span>
|
||||
<h4>Portability</h4>
|
||||
<p>No more infrastructure lock-in. You may host your pre-generated website with a wide array of hosting services. Easy pack up and unwrap for any hosting solution.</p>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Two -->
|
||||
<div class="wave-container">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#6c85ab" fill-opacity="1" d="M0,224L120,218.7C240,213,480,203,720,213.3C960,224,1200,256,1320,272L1440,288L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z"></path></svg>
|
||||
<section id="two" class="wrapper style3 special">
|
||||
<div class="inner">
|
||||
<header class="major">
|
||||
<h2>Technical Support</h2>
|
||||
<p>Solutions to your Technological Needs</p>
|
||||
</header>
|
||||
<section class="spotlights">
|
||||
<section>
|
||||
<span class="image"><img src="assets/images/hardware.webp" alt="Computer Hardware" /></span>
|
||||
<h4>Hardware</h4>
|
||||
<p>We build custom computers & do hardware repairs. Installing or upgrading components like a network card, motherboard, cabling, computer processing
|
||||
unit (CPU), printers and graphical processing unit (GPU). </p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="image"><img src="assets/images/software.webp" alt="Computer Software Linux" /></span>
|
||||
<h4>Software</h4>
|
||||
<p>We work with Linux and Windows operating systems. A variety of common software issues we work on are: PC tune-ups, virus or trojans, system errors or blue screen, diagnostics and troubleshooting.
|
||||
We are available both remotely and locally. If we are unable to fix it, you will not be charged. </p>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#6c85ab" fill-opacity="1" d="M0,288L120,256C240,224,480,160,720,122.7C960,85,1200,75,1320,69.3L1440,64L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"></path></svg>
|
||||
</div>
|
||||
|
||||
<!-- Three -->
|
||||
<section id="three" class="wrapper style1 special">
|
||||
<div class="inner">
|
||||
<header class="major">
|
||||
<h2>Why Choose Us?</h2>
|
||||
<p>Service To Others</p>
|
||||
</header>
|
||||
<section class="features">
|
||||
<section>
|
||||
<span class="fas fa-cubes fa-3x" aria-hidden="true"></span>
|
||||
<h4>Innovative</h4>
|
||||
<p>Information Technology (IT) is always evolving and so do we. We pride ourselves in being modern, creative and malleable.</p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-user-tie fa-3x" aria-hidden="true"></span>
|
||||
<h4>Professional</h4>
|
||||
<p>Reliability and organization are an integral quality. We are proud to be of service.</p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-medal fa-3x" aria-hidden="true"></span>
|
||||
<h4>Excellence</h4>
|
||||
<p>We strive for excellence in all we do. Satisfaction of your needs comes first and the quality of our work exceeds expectations.</p>
|
||||
</section>
|
||||
<section>
|
||||
<span class="fas fa-heart fa-3x" aria-hidden="true"></span>
|
||||
<h4>Friendly</h4>
|
||||
<p>We are homegrown mountaineers that have a passion for technology. We are patient, professional and reliable.</p>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Four -->
|
||||
<div class="wave-container">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#b67e96" fill-opacity="1" d="M0,64L80,101.3C160,139,320,213,480,250.7C640,288,800,288,960,277.3C1120,267,1280,245,1360,234.7L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>
|
||||
<section id="four" class="wrapper style4 special-alt">
|
||||
<div class="inner split">
|
||||
<section>
|
||||
<header class="major">
|
||||
<h2>Join The Movement</h2>
|
||||
</header>
|
||||
<p>Join our occasional newsletter for product launches, availability, job openings, and news.
|
||||
We provide value to communities and businesses in a friendly super awesome way.</p>
|
||||
</section>
|
||||
<form method="post" action="https://gs-bot-staticapi.herokuapp.com/v2/entry/GalacticSociety/galacticsociety.github.io">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" id="name" name="name" />
|
||||
<label for="email">Email</label>
|
||||
<input type="email" id="email" name="email" />
|
||||
<ul class="actions">
|
||||
<button type="submit">Get started</button>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- Five -->
|
||||
<section id="five" class="wrapper style1 special alt">
|
||||
<div class="inner">
|
||||
<h4>A West Virginian Based Company</h4>
|
||||
<p>Montani Semper Liberi</p>
|
||||
</div>
|
||||
</section>
|
19
_layouts/archive.html
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
layout: generic
|
||||
---
|
||||
{% comment %}
|
||||
This layout is used by the jekyll-archives plugin to generate
|
||||
archive pages for all posts
|
||||
{% endcomment %}
|
||||
|
||||
|
||||
<h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>
|
||||
|
||||
<ul class="posts-list">
|
||||
{% for post in page.posts %}
|
||||
<li>
|
||||
<a class="post-link" href="{{ post.url | absolute_url }}">{{ post.title }}</a>
|
||||
<div class="post-date">{{ post.date | date: "%b %-d, %Y" }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
46
_layouts/default.html
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
|
||||
---
|
||||
{% comment %}
|
||||
The default layout for the site, which is extended by all other layouts.
|
||||
{% endcomment %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
{% if page.title == "Home" %}
|
||||
<body class="landing is-preload">
|
||||
{% else %}
|
||||
<body class="landing is-preload single">
|
||||
{% endif %}
|
||||
<div class="page-wrapper">
|
||||
|
||||
{% include header.html %}
|
||||
{% include navigation.html %}
|
||||
|
||||
<main class="page-content" aria-label="Content">
|
||||
{% comment %}
|
||||
Any layout that extends this layout will have its contents
|
||||
added as the content variable
|
||||
{% endcomment %}
|
||||
|
||||
{{ content }}
|
||||
</main>
|
||||
|
||||
<!-- JS scripts get loaded last-->
|
||||
<script src="{{ "/assets/js/jquery.min.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/jquery.scrolly.min.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/jquery.scrollex.min.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/browser.min.js" | relative_url }}"></script>
|
||||
|
||||
<script src="{{ "/assets/js/breakpoints.min.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/util.js" | relative_url }}"></script>
|
||||
<script src="{{ "/assets/js/main.js" | relative_url }}"></script>
|
||||
|
||||
</div>
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
|
||||
</html>
|
42
_layouts/journal_single.html
Normal file
@ -0,0 +1,42 @@
|
||||
---
|
||||
layout: default
|
||||
pagination:
|
||||
enabled: false
|
||||
---
|
||||
{% comment %}
|
||||
This layout is the single page of a blog post.
|
||||
{% endcomment %}
|
||||
|
||||
<section id="main" class="wrapper style1">
|
||||
<div class="inner">
|
||||
<!-- Shopping Cart -->
|
||||
<section class="row product-cart journal">
|
||||
<div class="col-12">
|
||||
<a href="{{site.url}}/blog"><h5 class="button back">< Go Back</h5></a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Title -->
|
||||
<header class="major special journal">
|
||||
<div class="hero"> <img class="image fit" src="{{ page.banner_image }}" alt="{{ page.banner_image_alt }}"> </div>
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.sub_heading }}</p>
|
||||
</header>
|
||||
<!-- Content -->
|
||||
<div class="content">
|
||||
{{ content }}
|
||||
{% assign author = site.data.authors[page.author] %}
|
||||
{%- include author_card.html -%}
|
||||
|
||||
<!-- Related posts collection -->
|
||||
<section class="row related-items">
|
||||
<div class="col-12">
|
||||
<h3>More Posts</h3>
|
||||
</div>
|
||||
{%- assign related_posts = site.posts | where_exp:"post", "post.url != page.url" | sample:3 -%}
|
||||
{%- include product_related.html -%}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
43
_layouts/journals.html
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
layout: post
|
||||
---
|
||||
{% comment %}
|
||||
This layout is the posts index (a collection of all blog posts).
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Title -->
|
||||
<header class="major special">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.sub_title }}</p>
|
||||
</header>
|
||||
|
||||
<!-- Main Body Content -->
|
||||
<div class="content">
|
||||
<!-- This loops through the paginated posts collection posts-->
|
||||
{% for post in paginator.posts %}
|
||||
<!-- Post layout structure -->
|
||||
<article class="post">
|
||||
<header>
|
||||
<a href="{{ post.url | absolute_url }}" class="hero image fit"><img src="{{ post.banner_image }}" alt="{{ post.title }}" /></a>
|
||||
|
||||
<div class="title">
|
||||
<h2><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
|
||||
<p>{{ post.sub_heading }}</p>
|
||||
</div>
|
||||
{% assign author = site.data.authors[post.author] %}
|
||||
{%- include author_card.html -%}
|
||||
</header>
|
||||
<p>{{ post.content | strip_html | truncatewords: 50 }}</p>
|
||||
<footer>
|
||||
<ul class="actions">
|
||||
<li><a href="{{ post.url | absolute_url }}" class="button">Continue Reading</a></li>
|
||||
</ul>
|
||||
<ul class="stats">
|
||||
<li>{{ post.category }}</li>
|
||||
<!-- <li class="icon solid fa-heart">144</li> -->
|
||||
<li><a href="{{ post.url | absolute_url }}" class="icon solid fa-comment">88</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
11
_layouts/landing.html
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{% comment %}
|
||||
This layout is the homepage layout.
|
||||
{% endcomment %}
|
||||
|
||||
|
||||
{%- include banner.html -%}
|
||||
|
||||
{%- include sections.html -%}
|
20
_layouts/page.html
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{% comment %}
|
||||
This layout is a page without pagination.
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Main -->
|
||||
<section id="main" class="wrapper style1">
|
||||
<div class="inner">
|
||||
|
||||
<!-- Content -->
|
||||
<div class="content">
|
||||
|
||||
{{ content }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
16
_layouts/post.html
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{% comment %}
|
||||
This layout is a post with pagination.
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Main -->
|
||||
<section id="main" class="wrapper style1">
|
||||
<div class="inner">
|
||||
|
||||
<!-- Content -->
|
||||
{{ content }}
|
||||
|
||||
</div>
|
||||
</section>
|
49
_layouts/shop.html
Normal file
@ -0,0 +1,49 @@
|
||||
---
|
||||
layout: post
|
||||
---
|
||||
{%- comment -%}
|
||||
This layout is the shop index of products with pagination & collections.
|
||||
{%- endcomment -%}
|
||||
|
||||
<!-- Shopping Cart -->
|
||||
<section class="row product-cart">
|
||||
<div class="col-12">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#"><span class="fas fa-shopping-basket fa-2x" aria-hidden="true"></span>My Cart</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Page Heading -->
|
||||
<header class="major special">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.sub_title }}</p>
|
||||
</header>
|
||||
|
||||
<!-- <!-- Shop navigation for categories -->
|
||||
<!-- {%- include product_cat.html -%} -->
|
||||
|
||||
<div class="content">
|
||||
<!-- Hero Product Post -->
|
||||
{%- include product_headline.html -%}
|
||||
|
||||
<!-- Featured Product Posts -->
|
||||
<section class="row">
|
||||
{%- assign featured_posts = paginator.posts | slice: 1, 4 -%}
|
||||
{%- for post in featured_posts -%}
|
||||
{%- include product_featured.html -%}
|
||||
{%- endfor -%}
|
||||
</section>
|
||||
|
||||
<!-- More Products -->
|
||||
<section class="row">
|
||||
{%- assign rest = paginator.posts | slice: 5, 11 -%}
|
||||
{%- for post in rest -%}
|
||||
{%- include product_rest.html -%}
|
||||
{%- endfor -%}
|
||||
</section>
|
||||
|
||||
<!-- Pagination to navigate to another collection of posts -->
|
||||
{% include pagination.html %}
|
||||
</div>
|
81
_layouts/shop_single.html
Normal file
@ -0,0 +1,81 @@
|
||||
---
|
||||
layout: default
|
||||
pagination:
|
||||
enabled: false
|
||||
---
|
||||
{% comment %}
|
||||
This layout is the single page of a product post.
|
||||
{% endcomment %}
|
||||
|
||||
<section id="main" class="wrapper style1">
|
||||
<div class="inner">
|
||||
|
||||
<!-- Shopping Cart -->
|
||||
<section class="row product-cart">
|
||||
<div class="col-6">
|
||||
<a href="{{site.url}}/products"><h5 class="button back">< Go Back</h5></a>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#"><span class="fas fa-shopping-basket fa-2x" aria-hidden="true"></span>My Cart</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Page Heading -->
|
||||
<header class="major special">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.sub_heading }}</p>
|
||||
</header>
|
||||
<!-- Main Body Content -->
|
||||
<div class="content">
|
||||
<section class="row">
|
||||
<!-- Product Image Banner -->
|
||||
<div class="col-6 col-12-small product-image">
|
||||
<section class="">
|
||||
<a href="#"><img alt="{{ page.title }}" src="{{ page.banner_image }}" class="product-flex" /></a>
|
||||
</section>
|
||||
</div>
|
||||
<!-- Product Details List -->
|
||||
<div class="col-6 col-12-small product-details">
|
||||
<section class="">
|
||||
<ul>
|
||||
<li>Price:</li>
|
||||
<li>Weight:</li>
|
||||
<li>Stock:</li>
|
||||
<li>Sku:</li>
|
||||
<li>Format:</li>
|
||||
<li>Material:</li>
|
||||
<li>Reviews:</li>
|
||||
</ul>
|
||||
<!-- Product Add To Cart Button -->
|
||||
<a href="#" class="button fit">Add To Cart</a>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Product Description -->
|
||||
<section class="row product-desc">
|
||||
<div class="col-12">
|
||||
<h3>Product Description</h3>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
{{ content }}
|
||||
{% assign author = site.data.authors[page.author] %}
|
||||
{%- include author_card.html -%}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Related product collection -->
|
||||
<section class="row related-items">
|
||||
<div class="col-12">
|
||||
<h3>More Products</h3>
|
||||
</div>
|
||||
{%- assign related_posts = site.products | where_exp:"post", "post.url != page.url" | sample:3 -%}
|
||||
{%- include product_related.html -%}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div> <!-- Closing Inner -->
|
||||
</section> <!-- Closing Main Body -->
|
6
_plugins/ext.rb
Normal file
@ -0,0 +1,6 @@
|
||||
# _plugins/ext.rb allows you to define custom plugins and/or require
|
||||
# plugins that otherwise wouldn't work with Jekyll
|
||||
|
||||
# Activate jekyll-tagging
|
||||
# https://github.com/pattex/jekyll-tagging
|
||||
require 'jekyll/tagging'
|
55
_scss/base/_page.scss
Normal file
@ -0,0 +1,55 @@
|
||||
/* 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-attachment: scroll, fixed;
|
||||
background-image: url('images/angular-lines-up.svg'), url('/assets/images/bg.webp');
|
||||
background-position: center -315px, center top;
|
||||
background-repeat: no-repeat;
|
||||
background-size: auto, auto;
|
||||
|
||||
&.landing {
|
||||
background-attachment: scroll, fixed;
|
||||
background-image: url('images/angular-lines-up.svg'), url('/assets/images/bg.webp');
|
||||
background-position: center top, center top;
|
||||
background-size: auto, auto;
|
||||
}
|
||||
|
||||
// Stops initial animations until page loads.
|
||||
&.is-preload {
|
||||
*, *:before, *:after {
|
||||
@include vendor('animation', 'none !important');
|
||||
@include vendor('transition', 'none !important');
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
background-attachment: scroll !important;
|
||||
}
|
||||
}
|
70
_scss/base/_reset.scss
Normal file
@ -0,0 +1,70 @@
|
||||
// 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;
|
||||
}
|
193
_scss/base/_typography.scss
Normal file
@ -0,0 +1,193 @@
|
||||
/* Type */
|
||||
|
||||
body {
|
||||
background-color: _palette(bg);
|
||||
color: _palette(fg);
|
||||
}
|
||||
|
||||
body, input, select, textarea {
|
||||
font-family: _font(family);
|
||||
font-size: 14.75pt;
|
||||
font-weight: _font(weight);
|
||||
line-height: 1.82;
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
font-size: 14.75pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
font-size: 12pt;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
strong, b {
|
||||
font-weight: _font(weight-bold);
|
||||
}
|
||||
|
||||
em, i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: _font(weight-bolder);
|
||||
letter-spacing: 0.2em;
|
||||
line-height: 1.5;
|
||||
margin: 0 0 (_size(element-margin) * 0.4) 0;
|
||||
text-transform: uppercase;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
h1 {
|
||||
font-size: 2.1em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
sub {
|
||||
font-size: 0.8em;
|
||||
position: relative;
|
||||
top: 0.5em;
|
||||
}
|
||||
|
||||
sup {
|
||||
font-size: 0.8em;
|
||||
position: relative;
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: solid (_size(border-width) * 4);
|
||||
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 _size(border-width);
|
||||
font-family: _font(family-fixed);
|
||||
font-size: 0.9em;
|
||||
margin: 0 0.25em;
|
||||
padding: 0.25em 0.65em;
|
||||
}
|
||||
|
||||
pre {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
font-family: _font(family-fixed);
|
||||
font-size: 0.9em;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
|
||||
code {
|
||||
display: block;
|
||||
line-height: 1.75;
|
||||
padding: 1em 1.5em;
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
border-bottom: solid _size(border-width);
|
||||
margin: _size(element-margin) 0;
|
||||
|
||||
&.major {
|
||||
margin: (_size(element-margin) * 1.5) 0;
|
||||
}
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@mixin color-typography($p: null) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
@if $p != null {
|
||||
background-color: _palette($p, bg);
|
||||
color: _palette($p, fg);
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
a {
|
||||
color: _palette($highlight, bg);
|
||||
}
|
||||
|
||||
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;
|
95
_scss/components/_actions.scss
Normal file
@ -0,0 +1,95 @@
|
||||
/* 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.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
59
_scss/components/_alt-icons.scss
Normal file
@ -0,0 +1,59 @@
|
||||
/* Alt Icons */
|
||||
|
||||
ul.alt-icons {
|
||||
@include vendor('display', 'inline-flex');
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width);
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
|
||||
> li {
|
||||
border-left: solid _size(border-width);
|
||||
height: 2.5em;
|
||||
line-height: 2.5em;
|
||||
padding: 0;
|
||||
width: 2.6em;
|
||||
|
||||
&:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
transition: color _duration(transition), background-color _duration(transition);
|
||||
|
||||
&:before {
|
||||
font-size: 1.1em;
|
||||
line-height: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-alt-icons($p: null) {
|
||||
ul.alt-icons {
|
||||
border-color: _palette($p, border);
|
||||
|
||||
li {
|
||||
border-left-color: _palette($p, border);
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: _palette($p, fg-light);
|
||||
|
||||
&:hover {
|
||||
background-color: _palette($p, border-bg);
|
||||
color: _palette($p, fg);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: _palette($p, border2-bg);
|
||||
color: _palette($p, fg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-alt-icons;
|
28
_scss/components/_box.scss
Normal file
@ -0,0 +1,28 @@
|
||||
/* Box */
|
||||
|
||||
.box {
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width);
|
||||
margin-bottom: _size(element-margin);
|
||||
padding: 1.5em;
|
||||
|
||||
> :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;
|
102
_scss/components/_button.scss
Normal file
@ -0,0 +1,102 @@
|
||||
/* 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, color #{_duration(transition)} ease-in-out');
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width);
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 0.75em;
|
||||
font-weight: _font(weight-bold);
|
||||
height: 3.7em;
|
||||
letter-spacing: 0.13em;
|
||||
line-height: 3.6em;
|
||||
padding: 0 2.9em;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
|
||||
&.icon {
|
||||
border-bottom: solid _size(border-width);
|
||||
|
||||
&:before {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
&.fit {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: 0.6em;
|
||||
}
|
||||
|
||||
&.large {
|
||||
font-size: 1.35em;
|
||||
height: 3em;
|
||||
line-height: 2.9em;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&:disabled {
|
||||
@include vendor('pointer-events', 'none');
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-button($p: null) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button,
|
||||
.button {
|
||||
background-color: transparent;
|
||||
border-color: _palette($p, border);
|
||||
color: _palette($p, fg-bold) !important;
|
||||
|
||||
&:hover {
|
||||
background-color: _palette($p, border-bg);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: _palette($p, border2-bg);
|
||||
}
|
||||
|
||||
&.icon {
|
||||
border-bottom-color: _palette($p, border);
|
||||
|
||||
&:before {
|
||||
color: _palette($p, fg-light);
|
||||
}
|
||||
}
|
||||
|
||||
&.primary {
|
||||
background-color: _palette($p, fg);
|
||||
border-color: transparent;
|
||||
color: _palette($p, bg) !important;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten(_palette($p, fg), 7.5);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: darken(_palette($p, fg), 7.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-button;
|
63
_scss/components/_features.scss
Normal file
@ -0,0 +1,63 @@
|
||||
/* Features */
|
||||
|
||||
.features {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
border-bottom: solid _size(border-width);
|
||||
margin-bottom: (_size(element-margin));
|
||||
|
||||
> section {
|
||||
@include padding(4.5em, 3em);
|
||||
border-top: solid _size(border-width);
|
||||
width: 50%;
|
||||
|
||||
.icon {
|
||||
font-size: 2.5em;
|
||||
margin-bottom: _size(element-margin);
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-bottom: (_size(element-margin) * 0.35);
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
border-left-style: solid;
|
||||
border-left-width: _size(border-width);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
> section {
|
||||
@include padding(3em, 2em);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
> section {
|
||||
@include padding(2em, 2em);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
> section {
|
||||
@include padding(2em, 1.5em);
|
||||
width: 100%;
|
||||
|
||||
&:nth-child(even) {
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-features($p: null) {
|
||||
.features {
|
||||
border-color: _palette($p, border-bg);
|
||||
|
||||
> section {
|
||||
border-color: _palette($p, border-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-features;
|
222
_scss/components/_form.scss
Normal file
@ -0,0 +1,222 @@
|
||||
/* Form */
|
||||
|
||||
form {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
font-size: 0.8em;
|
||||
font-weight: _font(weight-bold);
|
||||
font-weight: _font(weight-bold);
|
||||
letter-spacing: 0.2em;
|
||||
margin: 0 0 1em 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select,
|
||||
textarea {
|
||||
@include vendor('appearance', 'none');
|
||||
border-radius: _size(border-radius);
|
||||
border: none;
|
||||
border: solid _size(border-width);
|
||||
color: inherit;
|
||||
display: block;
|
||||
margin-bottom: (_size(element-margin) * 0.7);
|
||||
outline: 0;
|
||||
padding: 0 1em;
|
||||
text-decoration: none;
|
||||
transition: border-color _duration(transition);
|
||||
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.75em 1em;
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"], {
|
||||
@include vendor('appearance', 'none');
|
||||
display: block;
|
||||
float: left;
|
||||
margin-right: -2em;
|
||||
opacity: 0;
|
||||
width: 1em;
|
||||
z-index: -1;
|
||||
|
||||
& + label {
|
||||
@include icon(false, solid);
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: _font(weight);
|
||||
margin-bottom: (_size(element-margin) * 0.9);
|
||||
padding-left: (_size(element-height) * 0.6) + 0.75em;
|
||||
padding-right: 0.75em;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
border-radius: _size(border-radius);
|
||||
border: solid _size(border-width);
|
||||
content: '';
|
||||
display: inline-block;
|
||||
font-size: 0.8em;
|
||||
height: (_size(element-height) * 0.75);
|
||||
left: 0;
|
||||
line-height: (_size(element-height) * 0.75);
|
||||
padding-left: 3px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 2px;
|
||||
width: (_size(element-height) * 0.75);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
content: '\f00c';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
& + label {
|
||||
&:before {
|
||||
border-radius: _size(border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
label {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select,
|
||||
textarea {
|
||||
background-color: _palette($p, border-bg);
|
||||
border-color: _palette($p, border);
|
||||
|
||||
&:focus {
|
||||
border-color: _palette($p, fg-bold);
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
background-image: svg-url("<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'><path d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='#{_palette($p, border)}' /></svg>");
|
||||
|
||||
option {
|
||||
color: _palette($p, fg-bold);
|
||||
background: _palette($p, bg);
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"], {
|
||||
& + label {
|
||||
color: _palette($p, fg);
|
||||
|
||||
&:before {
|
||||
background: _palette($p, border-bg);
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
background-color: _palette($p, fg);
|
||||
border-color: _palette($p, fg);
|
||||
color: _palette($p, bg);
|
||||
}
|
||||
}
|
||||
|
||||
&:focus + label {
|
||||
&:before {
|
||||
border-color: _palette($p, fg-bold);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::-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;
|
39
_scss/components/_icon.scss
Normal file
@ -0,0 +1,39 @@
|
||||
/* Icon */
|
||||
|
||||
.icon {
|
||||
@include icon;
|
||||
border-bottom: none;
|
||||
position: relative;
|
||||
|
||||
> .label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.solid {
|
||||
&:before {
|
||||
font-weight: 900;
|
||||
}
|
||||
}
|
||||
|
||||
&.brands {
|
||||
&:before {
|
||||
font-family: 'Font Awesome 5 Brands';
|
||||
}
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
color: _palette(accent1, fg-light);
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
color: _palette(accent2, fg-light);
|
||||
}
|
||||
|
||||
&.style3 {
|
||||
color: _palette(accent3, fg-light);
|
||||
}
|
||||
|
||||
&.style4 {
|
||||
color: _palette(accent4, fg-light);
|
||||
}
|
||||
}
|
22
_scss/components/_icons.scss
Normal file
@ -0,0 +1,22 @@
|
||||
/* Icons */
|
||||
|
||||
ul.icons {
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
padding: 0 1em 0 0;
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
&:before {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
54
_scss/components/_image.scss
Normal file
@ -0,0 +1,54 @@
|
||||
/* Image */
|
||||
|
||||
.image {
|
||||
border-radius: _size(border-radius);
|
||||
border: 0;
|
||||
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 1.5em 1em 0;
|
||||
top: 0.25em;
|
||||
}
|
||||
|
||||
&.right {
|
||||
float: right;
|
||||
margin: 0 0 1em 1.5em;
|
||||
top: 0.25em;
|
||||
}
|
||||
|
||||
&.fit {
|
||||
display: block;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.main {
|
||||
display: block;
|
||||
margin: 0 0 (_size(element-margin) * 1.5) 0;
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
62
_scss/components/_list.scss
Normal file
@ -0,0 +1,62 @@
|
||||
/* List */
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
padding-left: 1.25em;
|
||||
|
||||
li {
|
||||
padding-left: 0.25em;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
padding-left: 1em;
|
||||
|
||||
li {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
border-top: solid _size(border-width);
|
||||
padding: 0.5em 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 {
|
||||
&.alt {
|
||||
li {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-list;
|
31
_scss/components/_menu.scss
Normal file
@ -0,0 +1,31 @@
|
||||
/* Menu */
|
||||
|
||||
ul.menu {
|
||||
li {
|
||||
border-left: solid _size(border-width);
|
||||
display: inline-block;
|
||||
list-style: none;
|
||||
margin-left: 1em;
|
||||
padding-left: 1em;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-left: 0;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-menu($p: null) {
|
||||
ul.menu {
|
||||
li {
|
||||
border-left-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-menu;
|
25
_scss/components/_row.scss
Normal file
@ -0,0 +1,25 @@
|
||||
/* Row */
|
||||
|
||||
.row {
|
||||
@include html-grid(2em);
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
@include html-grid(2em, 'xlarge');
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
@include html-grid(1.5em, 'large');
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
@include html-grid(1.5em, 'medium');
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include html-grid(1.25em, 'small');
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
@include html-grid(1.25em, 'xsmall');
|
||||
}
|
||||
}
|
204
_scss/components/_section.scss
Normal file
@ -0,0 +1,204 @@
|
||||
/* Section/Article */
|
||||
|
||||
section, article, header {
|
||||
&.special {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.special-alt {
|
||||
text-align: center;
|
||||
|
||||
ul.actions {
|
||||
@include vendor('justify-content', 'center');
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
p {
|
||||
position: relative;
|
||||
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
||||
}
|
||||
|
||||
h2 + p {
|
||||
font-size: 1.25em;
|
||||
margin-top: (_size(element-margin) * -0.5);
|
||||
}
|
||||
|
||||
h3 + p {
|
||||
font-size: 1.1em;
|
||||
margin-top: (_size(element-margin) * -0.4);
|
||||
}
|
||||
|
||||
h4 + p,
|
||||
h5 + p,
|
||||
h6 + p {
|
||||
font-size: 0.9em;
|
||||
margin-top: (_size(element-margin) * -0.3);
|
||||
}
|
||||
|
||||
&.major {
|
||||
@include padding(5.5em, 0);
|
||||
|
||||
h1, h2 {
|
||||
color: inherit;
|
||||
font-size: 2.1em;
|
||||
margin-bottom: 0.8em;
|
||||
position: relative;
|
||||
padding-bottom: 0.65em;
|
||||
|
||||
&:before, &:after {
|
||||
background-color: currentColor;
|
||||
content: '';
|
||||
opacity: 0.2;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
&:before {
|
||||
bottom: -4px;
|
||||
height: 10px;
|
||||
left: 30px;
|
||||
width: 2px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
bottom: 0;
|
||||
height: 2px;
|
||||
left: 0;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
+ p {
|
||||
font-size: 0.9em;
|
||||
font-weight: _font(weight-bold);
|
||||
letter-spacing: 0.2em;
|
||||
margin-top: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
.special &, &.special {
|
||||
h1, h2 {
|
||||
&:before {
|
||||
left: calc(50% - 1px);
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: calc(50% - 30px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.alt {
|
||||
@include padding(7em, 0);
|
||||
}
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
background-color: _palette(accent1, bg);
|
||||
color: _palette(accent1, fg)
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
background-color: _palette(accent2, bg);
|
||||
color: _palette(accent2, fg)
|
||||
}
|
||||
|
||||
&.style3 {
|
||||
background-color: _palette(accent3, bg);
|
||||
color: _palette(accent3, fg)
|
||||
}
|
||||
|
||||
&.style4 {
|
||||
background-color: _palette(accent4, bg);
|
||||
color: _palette(accent4, fg)
|
||||
}
|
||||
|
||||
/* &.style1, &.style2, &.style3, &.style4 {
|
||||
background-image: url('images/overlay.png'), url('images/checker-pattern.svg');
|
||||
background-position: center top;
|
||||
background-repeat: repeat;
|
||||
} */
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
&.major {
|
||||
@include padding(4em, 2em);
|
||||
|
||||
h1, h2 {
|
||||
font-size: 1.9em;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
@include padding(6em, 2em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.major {
|
||||
@include padding(3em, 2em);
|
||||
|
||||
h1, h2 {
|
||||
font-size: 1.8em;
|
||||
|
||||
+ p {
|
||||
margin-bottom: (_size(element-margin) * 1.1);
|
||||
}
|
||||
}
|
||||
|
||||
&.alt {
|
||||
@include padding(3em, 2em);
|
||||
}
|
||||
|
||||
.special-alt &, &.special-alt {
|
||||
h1, h2 {
|
||||
&:before {
|
||||
left: calc(50% - 1px);
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: calc(50% - 30px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
&.major {
|
||||
@include padding(2.5em, 1.5em);
|
||||
|
||||
&.alt {
|
||||
@include padding(2.5em, 1.5em);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
&.major {
|
||||
margin: (_size(element-margin) * 1.25) 0 (_size(element-margin) * 1.35);
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.major {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
&.major {
|
||||
@include padding(0, 1.5em);
|
||||
}
|
||||
}
|
||||
}
|
65
_scss/components/_split.scss
Normal file
@ -0,0 +1,65 @@
|
||||
/* Split */
|
||||
|
||||
.split {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
|
||||
> * {
|
||||
@include padding(4.5em, 2.5em);
|
||||
margin-bottom: 0;
|
||||
width: 50%;
|
||||
|
||||
&:nth-child(odd) {
|
||||
border-right: solid _size(border-width);
|
||||
}
|
||||
|
||||
&:nth-child(n+3) {
|
||||
// Add top border only on the third element and after
|
||||
border-top: solid _size(border-width);
|
||||
}
|
||||
|
||||
> header.major {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
> * {
|
||||
@include padding(4em, 2em);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
> * {
|
||||
@include padding(2.5em, 2em);
|
||||
width: 100%;
|
||||
|
||||
&:nth-child(2) {
|
||||
// Show the top border on the second element too
|
||||
border-top: solid _size(border-width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
> * {
|
||||
@include padding(2.5em, 1.5em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-split($p: null) {
|
||||
.split {
|
||||
> * {
|
||||
&:nth-child(odd) {
|
||||
border-right-color: _palette($p, border-bg);
|
||||
}
|
||||
|
||||
&:nth-child(n+2) {
|
||||
border-top-color: _palette($p, border-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-split;
|
90
_scss/components/_spotlights.scss
Normal file
@ -0,0 +1,90 @@
|
||||
/* Spotlights */
|
||||
|
||||
.spotlights {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
margin-bottom: 0;
|
||||
|
||||
> section {
|
||||
@include padding(3em, 2.5em);
|
||||
position: relative;
|
||||
width: 50%;
|
||||
|
||||
.image {
|
||||
margin-bottom: _size(element-margin);
|
||||
max-width: 100%;
|
||||
|
||||
> img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&:before {
|
||||
// Simulate a full-width top border
|
||||
content: '';
|
||||
height: _size(border-width);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
&:nth-child(odd) {
|
||||
border-right: solid _size(border-width);
|
||||
|
||||
&:before {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
&:before {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 3.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
> section {
|
||||
@include padding(2.5em, 2em);
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
> section {
|
||||
@include padding(2.5em, 1.5em);
|
||||
width: 100%;
|
||||
|
||||
&:nth-child(odd) {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-spotlights($p: null) {
|
||||
.spotlights {
|
||||
> section {
|
||||
&:before {
|
||||
background-color: _palette($p, border-bg);
|
||||
}
|
||||
|
||||
&:nth-child(odd) {
|
||||
border-right-color: _palette($p, border-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-spotlights;
|
108
_scss/components/_table.scss
Normal file
@ -0,0 +1,108 @@
|
||||
/* Table */
|
||||
|
||||
.table-wrapper {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
width: 100%;
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
border: solid _size(border-width);
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0.75em 0.75em;
|
||||
}
|
||||
|
||||
th {
|
||||
font-size: 0.9em;
|
||||
font-weight: _font(weight-bold);
|
||||
padding: 0 0.75em 0.75em 0.75em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
thead {
|
||||
border-bottom: solid _size(border-width);
|
||||
}
|
||||
|
||||
tfoot {
|
||||
border-top: solid _size(border-width);
|
||||
}
|
||||
|
||||
&.alt {
|
||||
border-collapse: separate;
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
td {
|
||||
border: solid _size(border-width);
|
||||
border-left-width: 0;
|
||||
border-top-width: 0;
|
||||
|
||||
&:first-child {
|
||||
border-left-width: _size(border-width);
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
td {
|
||||
border-top-width: _size(border-width);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
68
_scss/components/_wrapper.scss
Normal file
@ -0,0 +1,68 @@
|
||||
/* Wrapper */
|
||||
|
||||
.wrapper {
|
||||
padding-bottom: 0.01em;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
|
||||
> .inner {
|
||||
margin: 0 auto;
|
||||
padding-bottom: 0.01em;
|
||||
width: 100%;
|
||||
max-width: _size(inner);
|
||||
}
|
||||
|
||||
&.alt {
|
||||
> .inner {
|
||||
@include padding(4.5em, 4em);
|
||||
}
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
> .inner {
|
||||
background-color: _palette(accent1, bg);
|
||||
}
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
@include color(accent2);
|
||||
}
|
||||
|
||||
&.style3 {
|
||||
@include color(accent3);
|
||||
}
|
||||
|
||||
&.style4 {
|
||||
@include color(accent4);
|
||||
}
|
||||
|
||||
/* &.style2, &.style3, &.style4 {
|
||||
background-image: url('images/overlay.png'), url('images/checker-pattern.svg');
|
||||
background-position: center top;
|
||||
background-repeat: repeat, repeat;
|
||||
} */
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
&.alt {
|
||||
> .inner {
|
||||
@include padding(4em, 2em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.alt {
|
||||
> .inner {
|
||||
@include padding(3em, 2em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
&.alt {
|
||||
> .inner {
|
||||
@include padding(2em, 1.5em);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
512
_scss/custom.scss
Normal file
@ -0,0 +1,512 @@
|
||||
body a {
|
||||
color: #5b5b5b;
|
||||
}
|
||||
|
||||
body.landing {
|
||||
background-attachment: scroll !important;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
body.single {
|
||||
background-image: none;
|
||||
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, header.major h1, .icon.style3 {
|
||||
color: #404040;
|
||||
}
|
||||
|
||||
header.major {
|
||||
padding: 5.5em 0 .5em 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-right: 21px;
|
||||
}
|
||||
|
||||
.features {
|
||||
margin-bottom: 0px;
|
||||
border: none;
|
||||
}
|
||||
.features h4 {
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
#banner {
|
||||
padding: 6em 2em 10em 2em;
|
||||
}
|
||||
|
||||
.wave-container > svg {
|
||||
display: block;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
#main .inner {
|
||||
border-radius: .3em;
|
||||
}
|
||||
|
||||
.no-padding {
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: flex;
|
||||
max-height: 35vw;
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
margin-bottom: 2.4em;
|
||||
border-top-left-radius: .3em;
|
||||
border-top-right-radius: .3em;
|
||||
}
|
||||
|
||||
.hero > .image.fit {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
.meta {
|
||||
-moz-align-items: left;
|
||||
-webkit-align-items: left;
|
||||
-ms-align-items: left;
|
||||
display: -moz-flex;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flex;
|
||||
display: flex;
|
||||
-moz-justify-content: left;
|
||||
-webkit-justify-content: left;
|
||||
-ms-justify-content: left;
|
||||
justify-content: left;
|
||||
border-left: 0;
|
||||
margin: 0 0 1em 0;
|
||||
padding-top: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.meta > * {
|
||||
border-left: solid 1px rgba(160, 160, 160, 0.3);
|
||||
margin-left: 2em;
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
.meta .published {
|
||||
color: #3c3b3b;
|
||||
display: block;
|
||||
font-size: 0.7em;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.25em;
|
||||
margin-top: 0.5em;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.meta > :first-child {
|
||||
border-left: 0;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.meta .author .name {
|
||||
margin: 0 0 0 1.5em;
|
||||
}
|
||||
|
||||
.author {
|
||||
display: -moz-flex;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flex;
|
||||
display: flex;
|
||||
-moz-flex-direction: row;
|
||||
-webkit-flex-direction: row;
|
||||
-ms-flex-direction: row;
|
||||
flex-direction: row;
|
||||
-moz-align-items: center;
|
||||
-webkit-align-items: center;
|
||||
-ms-align-items: center;
|
||||
align-items: center;
|
||||
-moz-justify-content: -moz-flex-end;
|
||||
-webkit-justify-content: -webkit-flex-end;
|
||||
-ms-justify-content: -ms-flex-end;
|
||||
justify-content: flex-end;
|
||||
border-bottom: 0;
|
||||
font-size: 0.6em;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.25em;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.author .name {
|
||||
-moz-transition: border-bottom-color 0.2s ease;
|
||||
-webkit-transition: border-bottom-color 0.2s ease;
|
||||
-ms-transition: border-bottom-color 0.2s ease;
|
||||
transition: border-bottom-color 0.2s ease;
|
||||
border-bottom: dotted 1px rgba(160, 160, 160, 0.65);
|
||||
display: block;
|
||||
margin: 0 1.5em 0 0;
|
||||
}
|
||||
|
||||
.author:hover .name {
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
|
||||
a.author {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.author img {
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
.post {
|
||||
padding: 1em 1em 0em 1em;
|
||||
margin-bottom: 2em;
|
||||
border-radius: .3em;
|
||||
box-shadow: 1px 3px 7px -2px #777;
|
||||
-webkit-box-shadow: 1px 3px 7px -2px #777;
|
||||
-moz-box-shadow: 1px 3px 7px -2px #777;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: .25s ease;
|
||||
}
|
||||
|
||||
.vert-expand {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.post:hover {
|
||||
-webkit-box-shadow: 1px 9px 7px -2px #888;
|
||||
-moz-box-shadow: 1px 9px 7px -2px #888;
|
||||
box-shadow: 1px 9px 7px -2px #888;
|
||||
transition: .25s ease;
|
||||
}
|
||||
|
||||
.post > footer .stats {
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.post > footer .stats > :first-child {
|
||||
border-left: 0;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.post > footer {
|
||||
display: -moz-flex;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flex;
|
||||
display: flex;
|
||||
-moz-align-items: center;
|
||||
-webkit-align-items: center;
|
||||
-ms-align-items: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap-reverse;
|
||||
}
|
||||
|
||||
.post > footer .stats li {
|
||||
border-left: solid 1px rgba(160, 160, 160, 0.3);
|
||||
display: inline-block;
|
||||
font-family: "Raleway", Helvetica, sans-serif;
|
||||
font-size: 0.6em;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.25em;
|
||||
line-height: 1;
|
||||
margin: 0 0 0 2em;
|
||||
margin-left: 2em;
|
||||
padding: 0 0 0 2em;
|
||||
padding-left: 2em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.post > footer ul {
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
|
||||
.post > footer ul.actions li {
|
||||
padding: 0 0 0 1.2em !important;
|
||||
}
|
||||
|
||||
.post > footer .actions {
|
||||
-moz-flex-grow: 1;
|
||||
-webkit-flex-grow: 1;
|
||||
-ms-flex-grow: 1;
|
||||
flex-grow: 1;
|
||||
margin-left: -1.2em;
|
||||
}
|
||||
|
||||
.button.primary {
|
||||
background-color: #dbdbdb;
|
||||
color: #5b5b5b;
|
||||
}
|
||||
|
||||
.button.primary:hover {
|
||||
background-color: gray;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 480px) {
|
||||
ul.actions:not(.fixed) li {
|
||||
padding: .5em 0 .5em 0;
|
||||
}
|
||||
ul.actions:not(.fixed) li:first-child {
|
||||
padding-top: .5em;
|
||||
}
|
||||
.ptrail {
|
||||
margin-left: 0em !important;
|
||||
text-align: center;
|
||||
}
|
||||
.ptrail li {
|
||||
padding: 0 0 0 0em !important;
|
||||
}
|
||||
.ptrail li:first-child {
|
||||
margin: 0px;
|
||||
}
|
||||
input[type="submit"], input[type="reset"], input[type="button"], button, .button {
|
||||
padding: 0 2.9em;
|
||||
}
|
||||
}
|
||||
|
||||
#footer .copyright a, #footer .copyright {
|
||||
text-decoration: none;
|
||||
color: #5b5b5b;
|
||||
}
|
||||
|
||||
#footer .copyright a:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#footer .menu a {
|
||||
color: #5b5b5b;
|
||||
}
|
||||
|
||||
.major.special.journal {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
//Core Media Landing Page Resolution Fix
|
||||
@media only screen and (min-width: 2000px) {
|
||||
#banner {
|
||||
padding: 6em 2em 40em 2em;
|
||||
}
|
||||
body {
|
||||
background-size: auto, contain;
|
||||
|
||||
&.landing {
|
||||
background-size: auto, contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1300px) {
|
||||
#banner {
|
||||
padding: 6em 2em 25em 2em;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 770px) {
|
||||
#banner {
|
||||
padding: 6em 2em 30em 2em;
|
||||
}
|
||||
}
|
||||
|
||||
//Paginations
|
||||
|
||||
.page_number {
|
||||
-moz-justify-content: right;
|
||||
-webkit-justify-content: right;
|
||||
-ms-justify-content: right;
|
||||
justify-content: right;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.actions.pagination {
|
||||
-moz-justify-content: space-between;
|
||||
-webkit-justify-content: space-between;
|
||||
-ms-justify-content: space-between;
|
||||
justify-content: space-between;
|
||||
margin-top: 2em;
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
.pagination .button.primary {
|
||||
background: #f2f2f2;
|
||||
color: #5b5b5b !important;
|
||||
border: 1px #b7b7b7 solid;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pagination .button.primary li a {
|
||||
color: #5b5b5b;
|
||||
}
|
||||
|
||||
//Page trail
|
||||
.ptrail {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ptrail li {
|
||||
height: auto;
|
||||
width: 3em;
|
||||
border: 1px solid #b7b7b7;
|
||||
background-color: #f2f2f2;
|
||||
border-radius: .25em;
|
||||
margin-left: .25em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
||||
.ptrail .selected {
|
||||
background-color: #6c6a6a;
|
||||
}
|
||||
|
||||
.ptrail .selected a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
//Products Listing Page
|
||||
|
||||
//Product Categories Navbar
|
||||
.product-cat ul {
|
||||
list-style:none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 1em;
|
||||
}
|
||||
.product-cat a {
|
||||
font-weight: bold;
|
||||
}
|
||||
//Product Headline Image
|
||||
.product-headline-flex {
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
margin: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.product-hero-text p {
|
||||
padding-bottom: .5em;
|
||||
}
|
||||
@media only screen and (min-width: 1680px) {
|
||||
.product-hero-text p {
|
||||
padding-bottom: 1.5em;
|
||||
}
|
||||
}
|
||||
.headline-col-limit { //a weird bug when setting max-height on .product-headline-flex, therefore, setting col max-height did the trick.
|
||||
max-height: 25.5em;
|
||||
}
|
||||
|
||||
.product a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.product .image.fit {
|
||||
height: 12em;
|
||||
}
|
||||
|
||||
.product img {
|
||||
border-radius: .3em .3em 0 0;
|
||||
}
|
||||
|
||||
.product img.image.fit {
|
||||
margin: 0 0 1em 0;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.product p {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.product p, .product h2, .product h3, .product h4, .product ul.actions {
|
||||
padding-left: .5em;
|
||||
padding-right: .5em;
|
||||
}
|
||||
|
||||
.product ul.actions {
|
||||
margin-bottom: .5em;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.featured.product picture {
|
||||
object-fit:cover;
|
||||
}
|
||||
|
||||
.featured.product h3, .featured.product h4 {
|
||||
padding-top: .5em;
|
||||
}
|
||||
|
||||
.featured.product img.image.fit {
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-top-right-radius: 0em;
|
||||
border-bottom-left-radius: .3em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Product Single Page
|
||||
|
||||
//Product Shopping Cart
|
||||
.product-cart ul {
|
||||
list-style:none;
|
||||
padding: 1em;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
.product-cart a {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
.product-cart span {
|
||||
padding: 0 .5em 0 .5em;
|
||||
}
|
||||
.product-cart .button.back {
|
||||
margin: 1.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
//Product Details
|
||||
.headline h1 {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
.product-details ul {
|
||||
list-style:none;
|
||||
padding-left: 0px;
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
.product-details ul li {
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
//Product Image
|
||||
.product-flex {
|
||||
max-height: 16em;
|
||||
min-height: 16em;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
width: 100%;
|
||||
height: 16em;
|
||||
border-radius: .3em;
|
||||
}
|
||||
|
||||
//Product Description
|
||||
.product-desc h3 {
|
||||
margin-bottom: 0em;
|
||||
margin-top: .5em;
|
||||
}
|
||||
|
||||
.product-desc p {
|
||||
margin: 0 0 1.0em 0;
|
||||
}
|
||||
|
||||
//Related Products Section
|
||||
.related-items {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.related-products h3 {
|
||||
margin-bottom: .5em;
|
||||
}
|
106
_scss/layout/_banner.scss
Normal file
@ -0,0 +1,106 @@
|
||||
/* Banner */
|
||||
|
||||
#banner {
|
||||
$count: 3;
|
||||
|
||||
@include padding(8em, 0);
|
||||
text-align: center;
|
||||
|
||||
header {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
|
||||
> * {
|
||||
@include vendor('transition', (
|
||||
'opacity 1s ease-in-out',
|
||||
'transform 0.65s ease-out',
|
||||
'filter 0.65s ease-out'
|
||||
));
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@for $i from 1 through $count {
|
||||
> :nth-child(#{$i}) {
|
||||
@include vendor('transition-delay', '#{0s + (($i - 1) * 0.125s)} !important');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: block;
|
||||
font-size: 4em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.4em;
|
||||
margin-bottom: 0.7em;
|
||||
padding-bottom: 0.5em;
|
||||
|
||||
&:before {
|
||||
left: calc(50% - 1px);
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: calc(50% - 30px);
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 0.9em;
|
||||
margin-bottom: 3.15em;
|
||||
}
|
||||
|
||||
.button {
|
||||
min-width: 15em;
|
||||
}
|
||||
|
||||
.actions {
|
||||
@include vendor('transition', (
|
||||
'opacity 1s ease-in-out',
|
||||
'transform 0.65s ease-in-out',
|
||||
'filter 0.85s ease-out'
|
||||
));
|
||||
@include vendor('transition-delay', '#{0.125s + (($count - 1) * 0.25s)}');
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body.is-preload & {
|
||||
header {
|
||||
> * {
|
||||
opacity: 0;
|
||||
@include vendor('transform', 'scale(1.1)');
|
||||
@include vendor('filter', 'blur(4px)');
|
||||
}
|
||||
}
|
||||
|
||||
.actions {
|
||||
opacity: 0;
|
||||
@include vendor('transform', 'translateY(0.25em)');
|
||||
@include vendor('filter', 'blur(2px)');
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
@include padding(8em, 0);
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
@include padding(6em, 0);
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
@include padding(8em, 2em);
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include padding(2em, 2em);
|
||||
|
||||
h1 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
@include padding(4em, 2em);
|
||||
}
|
||||
}
|
39
_scss/layout/_footer.scss
Normal file
@ -0,0 +1,39 @@
|
||||
/* Footer */
|
||||
|
||||
#footer {
|
||||
@include padding(4em, 0);
|
||||
text-align: center;
|
||||
|
||||
.alt-icons {
|
||||
margin-bottom: 3.5em;
|
||||
}
|
||||
|
||||
.menu {
|
||||
font-size: 0.8em;
|
||||
margin-bottom: 1.1em;
|
||||
|
||||
a {
|
||||
color: _palette(fg-light);
|
||||
}
|
||||
}
|
||||
|
||||
.copyright {
|
||||
color: _palette(fg-light);
|
||||
font-size: 0.8em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
.menu {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
@include padding(3em, 1.5em);
|
||||
}
|
||||
}
|
97
_scss/layout/_header.scss
Normal file
@ -0,0 +1,97 @@
|
||||
/* Header */
|
||||
|
||||
@include keyframes('reveal-header') {
|
||||
0% { top: -4em; opacity: 0; }
|
||||
100% { top: 0; opacity: 1; }
|
||||
}
|
||||
|
||||
#header {
|
||||
@include vendor('animation', 'none');
|
||||
@include vendor('display', 'flex');
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: _misc(z-index-base) + 1;
|
||||
padding: 1em;
|
||||
-ms-flex-pack: justify;
|
||||
|
||||
> a {
|
||||
color: inherit;
|
||||
font-size: 0.75em;
|
||||
font-weight: _font(weight-bold);
|
||||
letter-spacing: 0.13em;
|
||||
height: 3em;
|
||||
line-height: 3em;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
margin-left: 2em;
|
||||
|
||||
&.button {
|
||||
padding: 0 1.5em;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&[href="#menu"] {
|
||||
@include icon(false, solid);
|
||||
margin-right: auto;
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
padding-left: 0.5em;
|
||||
|
||||
&:before {
|
||||
content: '\f0c9';
|
||||
line-height: inherit;
|
||||
margin: 0 0.5em 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.alt {
|
||||
@include vendor('animation', 'reveal-header 0.5s ease');
|
||||
box-shadow: 0 0 0.15em 0 rgba(0,0,0,0.1);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-color: transparentize(_palette(bg), 0.05);
|
||||
padding: 0.5em;
|
||||
|
||||
a {
|
||||
&[href="#menu"] {
|
||||
padding-left: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
#header {
|
||||
> h1 {
|
||||
left: 1em;
|
||||
|
||||
a {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
#header {
|
||||
padding: 0.5em;
|
||||
min-width: 320px;
|
||||
|
||||
&.alt {
|
||||
padding: 0.5em;
|
||||
|
||||
a {
|
||||
&[href="#menu"] {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
41
_scss/layout/_main.scss
Normal file
@ -0,0 +1,41 @@
|
||||
/* Main */
|
||||
|
||||
#main {
|
||||
padding-top: 10em;
|
||||
|
||||
> .inner {
|
||||
> .content {
|
||||
padding: 2em 3em 3em;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
padding-top: 8em;
|
||||
|
||||
> .inner {
|
||||
> .content {
|
||||
padding: 2.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
> .inner {
|
||||
> .content {
|
||||
padding: 2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
padding-top: 6em;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
> .inner {
|
||||
> .content {
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
102
_scss/layout/_menu.scss
Normal file
@ -0,0 +1,102 @@
|
||||
/* Menu */
|
||||
|
||||
$menu-palette: accent1;
|
||||
|
||||
#menu {
|
||||
@include vendor('transform', 'translateX(-100%)');
|
||||
@include vendor('transition', ('transform #{_duration(menu)} ease', 'box-shadow #{_duration(menu)} ease', 'visibility #{_duration(menu)}'));
|
||||
-webkit-overflow-scrolling: touch;
|
||||
background: _palette($menu-palette, bg);
|
||||
box-shadow: none;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
max-width: 80%;
|
||||
overflow-y: auto;
|
||||
padding: 3em 2em;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
width: 20em;
|
||||
z-index: _misc(z-index-base) + 2;
|
||||
|
||||
> ul {
|
||||
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||
|
||||
&.links {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
> li {
|
||||
font-weight: _font(weight-bold);
|
||||
letter-spacing: 0.15em;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
|
||||
> a:not(.button) {
|
||||
border: 0;
|
||||
border-top: solid 1px _palette($menu-palette, border);
|
||||
color: inherit;
|
||||
display: block;
|
||||
letter-spacing: _size(letter-spacing-alt);
|
||||
line-height: 3.5em;
|
||||
text-decoration: none;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
> .button {
|
||||
display: block;
|
||||
margin: 0.5em 0 0 0;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
> a:not(.button) {
|
||||
border-top: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.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($menu-palette, fg-light);
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 3.25em;
|
||||
line-height: 3.25em;
|
||||
padding-right: 1.25em;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: right;
|
||||
top: 0;
|
||||
vertical-align: middle;
|
||||
width: 7em;
|
||||
|
||||
&:before {
|
||||
content: '\f00d';
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: _palette($menu-palette, fg);
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
height: 4em;
|
||||
line-height: 4em;
|
||||
}
|
||||
}
|
||||
|
||||
&.visible {
|
||||
@include vendor('transform', 'translateX(0)');
|
||||
box-shadow: 0 0 4em 0 rgba(0,0,0,0.1);
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
padding: 2.5em 1.75em;
|
||||
}
|
||||
}
|
223
_scss/libs/_breakpoints.scss
Normal file
@ -0,0 +1,223 @@
|
||||
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Vars.
|
||||
|
||||
/// Breakpoints.
|
||||
/// @var {list}
|
||||
$breakpoints: () !global;
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Sets breakpoints.
|
||||
/// @param {map} $x Breakpoints.
|
||||
@mixin breakpoints($x: ()) {
|
||||
$breakpoints: $x !global;
|
||||
}
|
||||
|
||||
/// Wraps @content in a @media block targeting a specific orientation.
|
||||
/// @param {string} $orientation Orientation.
|
||||
@mixin orientation($orientation) {
|
||||
@media screen and (orientation: #{$orientation}) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
/// Wraps @content in a @media block using a given query.
|
||||
/// @param {string} $query Query.
|
||||
@mixin breakpoint($query: null) {
|
||||
|
||||
$breakpoint: null;
|
||||
$op: null;
|
||||
$media: null;
|
||||
|
||||
// Determine operator, breakpoint.
|
||||
|
||||
// Greater than or equal.
|
||||
@if (str-slice($query, 0, 2) == '>=') {
|
||||
|
||||
$op: 'gte';
|
||||
$breakpoint: str-slice($query, 3);
|
||||
|
||||
}
|
||||
|
||||
// Less than or equal.
|
||||
@elseif (str-slice($query, 0, 2) == '<=') {
|
||||
|
||||
$op: 'lte';
|
||||
$breakpoint: str-slice($query, 3);
|
||||
|
||||
}
|
||||
|
||||
// Greater than.
|
||||
@elseif (str-slice($query, 0, 1) == '>') {
|
||||
|
||||
$op: 'gt';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Less than.
|
||||
@elseif (str-slice($query, 0, 1) == '<') {
|
||||
|
||||
$op: 'lt';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Not.
|
||||
@elseif (str-slice($query, 0, 1) == '!') {
|
||||
|
||||
$op: 'not';
|
||||
$breakpoint: str-slice($query, 2);
|
||||
|
||||
}
|
||||
|
||||
// Equal.
|
||||
@else {
|
||||
|
||||
$op: 'eq';
|
||||
$breakpoint: $query;
|
||||
|
||||
}
|
||||
|
||||
// Build media.
|
||||
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
||||
|
||||
$a: map-get($breakpoints, $breakpoint);
|
||||
|
||||
// Range.
|
||||
@if (type-of($a) == 'list') {
|
||||
|
||||
$x: nth($a, 1);
|
||||
$y: nth($a, 2);
|
||||
|
||||
// Max only.
|
||||
@if ($x == null) {
|
||||
|
||||
// Greater than or equal (>= 0 / anything)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen';
|
||||
}
|
||||
|
||||
// Less than or equal (<= y)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
// Greater than (> y)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Less than (< 0 / invalid)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: -1px)';
|
||||
}
|
||||
|
||||
// Not (> y)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (<= y)
|
||||
@else {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Min only.
|
||||
@else if ($y == null) {
|
||||
|
||||
// Greater than or equal (>= x)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
// Less than or equal (<= inf / anything)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen';
|
||||
}
|
||||
|
||||
// Greater than (> inf / invalid)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (max-width: -1px)';
|
||||
}
|
||||
|
||||
// Less than (< x)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Not (< x)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (>= x)
|
||||
@else {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Min and max.
|
||||
@else {
|
||||
|
||||
// Greater than or equal (>= x)
|
||||
@if ($op == 'gte') {
|
||||
$media: 'screen and (min-width: ' + $x + ')';
|
||||
}
|
||||
|
||||
// Less than or equal (<= y)
|
||||
@elseif ($op == 'lte') {
|
||||
$media: 'screen and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
// Greater than (> y)
|
||||
@elseif ($op == 'gt') {
|
||||
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Less than (< x)
|
||||
@elseif ($op == 'lt') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||
}
|
||||
|
||||
// Not (< x and > y)
|
||||
@elseif ($op == 'not') {
|
||||
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
||||
}
|
||||
|
||||
// Equal (>= x and <= y)
|
||||
@else {
|
||||
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// String.
|
||||
@else {
|
||||
|
||||
// Missing a media type? Prefix with "screen".
|
||||
@if (str-slice($a, 0, 1) == '(') {
|
||||
$media: 'screen and ' + $a;
|
||||
}
|
||||
|
||||
// Otherwise, use as-is.
|
||||
@else {
|
||||
$media: $a;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Output.
|
||||
@media #{$media} {
|
||||
@content;
|
||||
}
|
||||
|
||||
}
|
90
_scss/libs/_functions.scss
Normal file
@ -0,0 +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...);
|
||||
}
|
149
_scss/libs/_html-grid.scss
Normal file
@ -0,0 +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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
78
_scss/libs/_mixins.scss
Normal file
@ -0,0 +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}");
|
||||
|
||||
}
|
89
_scss/libs/_vars.scss
Normal file
@ -0,0 +1,89 @@
|
||||
// Misc.
|
||||
$misc: (
|
||||
z-index-base: 10000
|
||||
);
|
||||
|
||||
// Duration.
|
||||
$duration: (
|
||||
menu: 0.5s,
|
||||
transition: 0.2s
|
||||
);
|
||||
|
||||
// Size.
|
||||
$size: (
|
||||
border-radius: 4px,
|
||||
border-width: 2px,
|
||||
element-height: 2.75em,
|
||||
element-margin: 1em,
|
||||
inner: 58.5em
|
||||
);
|
||||
|
||||
// Font.
|
||||
$font: (
|
||||
family: ('Ubuntu', Arial, Helvetica, sans-serif),
|
||||
family-fixed: ('Courier New', monospace),
|
||||
weight: 300,
|
||||
weight-bold: 400,
|
||||
weight-bolder: 600
|
||||
);
|
||||
|
||||
// Palette.
|
||||
$palette: (
|
||||
bg: #fff,
|
||||
fg: #484459,
|
||||
fg-bold: #413D53,
|
||||
fg-light: #999,
|
||||
border: rgba(144,144,144,0.25),
|
||||
border-bg: rgba(144,144,144,0.15),
|
||||
border2: rgba(144,144,144,0.5),
|
||||
border2-bg: rgba(144,144,144,0.2),
|
||||
highlight: accent3,
|
||||
|
||||
accent1: (
|
||||
bg: #fff,
|
||||
fg: #484459,
|
||||
fg-bold: #413D53,
|
||||
fg-light: #999,
|
||||
border: rgba(144,144,144,0.25),
|
||||
border-bg: rgba(144,144,144,0.15),
|
||||
border2: rgba(144,144,144,0.5),
|
||||
border2-bg: rgba(144,144,144,0.2),
|
||||
highlight: accent3,
|
||||
),
|
||||
|
||||
accent2: (
|
||||
bg: #7cafa3,
|
||||
fg: #fff,
|
||||
fg-bold: #fff,
|
||||
fg-light: #a8cebd,
|
||||
border: rgba(255,255,255,0.15),
|
||||
border-bg: rgba(255,255,255,0.075),
|
||||
border2: rgba(255,255,255,0.5),
|
||||
border2-bg: rgba(255,255,255,0.2),
|
||||
highlight: accent1
|
||||
),
|
||||
|
||||
accent3: (
|
||||
bg: #6c85ab,
|
||||
fg: #fff,
|
||||
fg-bold: #fff,
|
||||
fg-light: #bec4dd,
|
||||
border: rgba(255,255,255,0.15),
|
||||
border-bg: rgba(255,255,255,0.075),
|
||||
border2: rgba(255,255,255,0.5),
|
||||
border2-bg: rgba(255,255,255,0.2),
|
||||
highlight: accent1
|
||||
),
|
||||
|
||||
accent4: (
|
||||
bg: #b67e96,
|
||||
fg: #fff,
|
||||
fg-bold: #fff,
|
||||
fg-light: #81c1cd,
|
||||
border: rgba(255,255,255,0.15),
|
||||
border-bg: rgba(255,255,255,0.075),
|
||||
border2: rgba(255,255,255,0.5),
|
||||
border2-bg: rgba(255,255,255,0.2),
|
||||
highlight: accent1
|
||||
)
|
||||
);
|
376
_scss/libs/_vendor.scss
Normal file
@ -0,0 +1,376 @@
|
||||
// vendor.scss v1.0 | @ajlkn | MIT licensed */
|
||||
|
||||
// Vars.
|
||||
|
||||
/// Vendor prefixes.
|
||||
/// @var {list}
|
||||
$vendor-prefixes: (
|
||||
'-moz-',
|
||||
'-webkit-',
|
||||
'-ms-',
|
||||
''
|
||||
);
|
||||
|
||||
/// Properties that should be vendorized.
|
||||
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||
/// @var {list}
|
||||
$vendor-properties: (
|
||||
|
||||
// Animation.
|
||||
'animation',
|
||||
'animation-delay',
|
||||
'animation-direction',
|
||||
'animation-duration',
|
||||
'animation-fill-mode',
|
||||
'animation-iteration-count',
|
||||
'animation-name',
|
||||
'animation-play-state',
|
||||
'animation-timing-function',
|
||||
|
||||
// Appearance.
|
||||
'appearance',
|
||||
|
||||
// Backdrop filter.
|
||||
'backdrop-filter',
|
||||
|
||||
// Background image options.
|
||||
'background-clip',
|
||||
'background-origin',
|
||||
'background-size',
|
||||
|
||||
// Box sizing.
|
||||
'box-sizing',
|
||||
|
||||
// Clip path.
|
||||
'clip-path',
|
||||
|
||||
// Filter effects.
|
||||
'filter',
|
||||
|
||||
// Flexbox.
|
||||
'align-content',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'flex',
|
||||
'flex-basis',
|
||||
'flex-direction',
|
||||
'flex-flow',
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-wrap',
|
||||
'justify-content',
|
||||
'order',
|
||||
|
||||
// Font feature.
|
||||
'font-feature-settings',
|
||||
'font-language-override',
|
||||
'font-variant-ligatures',
|
||||
|
||||
// Font kerning.
|
||||
'font-kerning',
|
||||
|
||||
// Fragmented borders and backgrounds.
|
||||
'box-decoration-break',
|
||||
|
||||
// Grid layout.
|
||||
'grid-column',
|
||||
'grid-column-align',
|
||||
'grid-column-end',
|
||||
'grid-column-start',
|
||||
'grid-row',
|
||||
'grid-row-align',
|
||||
'grid-row-end',
|
||||
'grid-row-start',
|
||||
'grid-template-columns',
|
||||
'grid-template-rows',
|
||||
|
||||
// Hyphens.
|
||||
'hyphens',
|
||||
'word-break',
|
||||
|
||||
// Masks.
|
||||
'mask',
|
||||
'mask-border',
|
||||
'mask-border-outset',
|
||||
'mask-border-repeat',
|
||||
'mask-border-slice',
|
||||
'mask-border-source',
|
||||
'mask-border-width',
|
||||
'mask-clip',
|
||||
'mask-composite',
|
||||
'mask-image',
|
||||
'mask-origin',
|
||||
'mask-position',
|
||||
'mask-repeat',
|
||||
'mask-size',
|
||||
|
||||
// Multicolumn.
|
||||
'break-after',
|
||||
'break-before',
|
||||
'break-inside',
|
||||
'column-count',
|
||||
'column-fill',
|
||||
'column-gap',
|
||||
'column-rule',
|
||||
'column-rule-color',
|
||||
'column-rule-style',
|
||||
'column-rule-width',
|
||||
'column-span',
|
||||
'column-width',
|
||||
'columns',
|
||||
|
||||
// Object fit.
|
||||
'object-fit',
|
||||
'object-position',
|
||||
|
||||
// Regions.
|
||||
'flow-from',
|
||||
'flow-into',
|
||||
'region-fragment',
|
||||
|
||||
// Scroll snap points.
|
||||
'scroll-snap-coordinate',
|
||||
'scroll-snap-destination',
|
||||
'scroll-snap-points-x',
|
||||
'scroll-snap-points-y',
|
||||
'scroll-snap-type',
|
||||
|
||||
// Shapes.
|
||||
'shape-image-threshold',
|
||||
'shape-margin',
|
||||
'shape-outside',
|
||||
|
||||
// Tab size.
|
||||
'tab-size',
|
||||
|
||||
// Text align last.
|
||||
'text-align-last',
|
||||
|
||||
// Text decoration.
|
||||
'text-decoration-color',
|
||||
'text-decoration-line',
|
||||
'text-decoration-skip',
|
||||
'text-decoration-style',
|
||||
|
||||
// Text emphasis.
|
||||
'text-emphasis',
|
||||
'text-emphasis-color',
|
||||
'text-emphasis-position',
|
||||
'text-emphasis-style',
|
||||
|
||||
// Text size adjust.
|
||||
'text-size-adjust',
|
||||
|
||||
// Text spacing.
|
||||
'text-spacing',
|
||||
|
||||
// Transform.
|
||||
'transform',
|
||||
'transform-origin',
|
||||
|
||||
// Transform 3D.
|
||||
'backface-visibility',
|
||||
'perspective',
|
||||
'perspective-origin',
|
||||
'transform-style',
|
||||
|
||||
// Transition.
|
||||
'transition',
|
||||
'transition-delay',
|
||||
'transition-duration',
|
||||
'transition-property',
|
||||
'transition-timing-function',
|
||||
|
||||
// Unicode bidi.
|
||||
'unicode-bidi',
|
||||
|
||||
// User select.
|
||||
'user-select',
|
||||
|
||||
// Writing mode.
|
||||
'writing-mode',
|
||||
|
||||
);
|
||||
|
||||
/// Values that should be vendorized.
|
||||
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||
/// @var {list}
|
||||
$vendor-values: (
|
||||
|
||||
// Cross fade.
|
||||
'cross-fade',
|
||||
|
||||
// Element function.
|
||||
'element',
|
||||
|
||||
// Filter function.
|
||||
'filter',
|
||||
|
||||
// Flexbox.
|
||||
'flex',
|
||||
'inline-flex',
|
||||
|
||||
// Grab cursors.
|
||||
'grab',
|
||||
'grabbing',
|
||||
|
||||
// Gradients.
|
||||
'linear-gradient',
|
||||
'repeating-linear-gradient',
|
||||
'radial-gradient',
|
||||
'repeating-radial-gradient',
|
||||
|
||||
// Grid layout.
|
||||
'grid',
|
||||
'inline-grid',
|
||||
|
||||
// Image set.
|
||||
'image-set',
|
||||
|
||||
// Intrinsic width.
|
||||
'max-content',
|
||||
'min-content',
|
||||
'fit-content',
|
||||
'fill',
|
||||
'fill-available',
|
||||
'stretch',
|
||||
|
||||
// Sticky position.
|
||||
'sticky',
|
||||
|
||||
// Transform.
|
||||
'transform',
|
||||
|
||||
// Zoom cursors.
|
||||
'zoom-in',
|
||||
'zoom-out',
|
||||
|
||||
);
|
||||
|
||||
// Functions.
|
||||
|
||||
/// 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;
|
||||
|
||||
}
|
||||
|
||||
/// Replaces a substring within another string.
|
||||
/// @author Hugo Giraudel
|
||||
/// @param {string} $string String.
|
||||
/// @param {string} $search Substring.
|
||||
/// @param {string} $replace Replacement.
|
||||
/// @return {string} Updated string.
|
||||
@function str-replace($string, $search, $replace: '') {
|
||||
|
||||
$index: str-index($string, $search);
|
||||
|
||||
@if $index {
|
||||
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
||||
}
|
||||
|
||||
@return $string;
|
||||
|
||||
}
|
||||
|
||||
/// Replaces a substring within each string in a list.
|
||||
/// @param {list} $strings List of strings.
|
||||
/// @param {string} $search Substring.
|
||||
/// @param {string} $replace Replacement.
|
||||
/// @return {list} Updated list of strings.
|
||||
@function str-replace-all($strings, $search, $replace: '') {
|
||||
|
||||
@each $string in $strings {
|
||||
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
|
||||
}
|
||||
|
||||
@return $strings;
|
||||
|
||||
}
|
||||
|
||||
// Mixins.
|
||||
|
||||
/// Wraps @content in vendorized keyframe blocks.
|
||||
/// @param {string} $name Name.
|
||||
@mixin keyframes($name) {
|
||||
|
||||
@-moz-keyframes #{$name} { @content; }
|
||||
@-webkit-keyframes #{$name} { @content; }
|
||||
@-ms-keyframes #{$name} { @content; }
|
||||
@keyframes #{$name} { @content; }
|
||||
|
||||
}
|
||||
|
||||
/// Vendorizes a declaration's property and/or value(s).
|
||||
/// @param {string} $property Property.
|
||||
/// @param {mixed} $value String/list of value(s).
|
||||
@mixin vendor($property, $value) {
|
||||
|
||||
// Determine if property should expand.
|
||||
$expandProperty: index($vendor-properties, $property);
|
||||
|
||||
// Determine if value should expand (and if so, add '-prefix-' placeholder).
|
||||
$expandValue: false;
|
||||
|
||||
@each $x in $value {
|
||||
@each $y in $vendor-values {
|
||||
@if $y == str-slice($x, 1, str-length($y)) {
|
||||
|
||||
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
|
||||
$expandValue: true;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Expand property?
|
||||
@if $expandProperty {
|
||||
@each $vendor in $vendor-prefixes {
|
||||
#{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||
}
|
||||
}
|
||||
|
||||
// Expand just the value?
|
||||
@elseif $expandValue {
|
||||
@each $vendor in $vendor-prefixes {
|
||||
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||
}
|
||||
}
|
||||
|
||||
// Neither? Treat them as a normal declaration.
|
||||
@else {
|
||||
#{$property}: #{$value};
|
||||
}
|
||||
|
||||
}
|
70
_scss/styles.scss
Normal file
@ -0,0 +1,70 @@
|
||||
@import 'libs/vars';
|
||||
@import 'libs/functions';
|
||||
@import 'libs/mixins';
|
||||
@import 'libs/vendor';
|
||||
@import 'libs/breakpoints';
|
||||
@import 'libs/html-grid';
|
||||
@import 'fontawesome-all.min.css';
|
||||
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap');
|
||||
|
||||
|
||||
@include breakpoints((
|
||||
xlarge: ( 1281px, 1680px ),
|
||||
large: ( 981px, 1280px ),
|
||||
medium: ( 737px, 980px ),
|
||||
small: ( 481px, 736px ),
|
||||
xsmall: ( null, 480px )
|
||||
));
|
||||
|
||||
// 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-menu($p);
|
||||
@include color-alt-icons($p);
|
||||
@include color-table($p);
|
||||
@include color-split($p);
|
||||
@include color-spotlights($p);
|
||||
@include color-features($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/list';
|
||||
@import 'components/actions';
|
||||
@import 'components/icons';
|
||||
@import 'components/menu';
|
||||
@import 'components/alt-icons';
|
||||
@import 'components/section';
|
||||
@import 'components/table';
|
||||
@import 'components/split';
|
||||
@import 'components/spotlights';
|
||||
@import 'components/features';
|
||||
@import 'components/wrapper';
|
||||
|
||||
// Layout.
|
||||
|
||||
@import 'layout/header';
|
||||
@import 'layout/menu';
|
||||
@import 'layout/banner';
|
||||
@import 'layout/main';
|
||||
@import 'layout/footer';
|
||||
|
||||
// Custom.
|
||||
@import 'custom';
|
5
assets/css/fontawesome-all.min.css
vendored
Normal file
51
assets/css/images/angular-lines-down_backup.svg
Normal file
@ -0,0 +1,51 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="2630" height="1000">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
line {
|
||||
stroke: rgba(0,0,0,0.1);
|
||||
stroke-width: 0.85px;
|
||||
}
|
||||
]]></style>
|
||||
|
||||
<!-- Center line -->
|
||||
<line x1="1315" y1="0" x2="1315" y2="1000"/>
|
||||
|
||||
<!-- Lines -->
|
||||
<line x1="0" y1="0" x2="1315" y2="1315" />
|
||||
<line x1="2630" y1="0" x2="1315" y2="1315" />
|
||||
<line x1="75" y1="0" x2="1315" y2="1240" />
|
||||
<line x1="2555" y1="0" x2="1315" y2="1240" />
|
||||
<line x1="150" y1="0" x2="1315" y2="1165" />
|
||||
<line x1="2480" y1="0" x2="1315" y2="1165" />
|
||||
<line x1="225" y1="0" x2="1315" y2="1090" />
|
||||
<line x1="2405" y1="0" x2="1315" y2="1090" />
|
||||
<line x1="300" y1="0" x2="1315" y2="1015" />
|
||||
<line x1="2330" y1="0" x2="1315" y2="1015" />
|
||||
<line x1="375" y1="0" x2="1315" y2="940" />
|
||||
<line x1="2255" y1="0" x2="1315" y2="940" />
|
||||
<line x1="450" y1="0" x2="1315" y2="865" />
|
||||
<line x1="2180" y1="0" x2="1315" y2="865" />
|
||||
<line x1="525" y1="0" x2="1315" y2="790" />
|
||||
<line x1="2105" y1="0" x2="1315" y2="790" />
|
||||
<line x1="600" y1="0" x2="1315" y2="715" />
|
||||
<line x1="2030" y1="0" x2="1315" y2="715" />
|
||||
<line x1="675" y1="0" x2="1315" y2="640" />
|
||||
<line x1="1955" y1="0" x2="1315" y2="640" />
|
||||
<line x1="750" y1="0" x2="1315" y2="565" />
|
||||
<line x1="1880" y1="0" x2="1315" y2="565" />
|
||||
<line x1="825" y1="0" x2="1315" y2="490" />
|
||||
<line x1="1805" y1="0" x2="1315" y2="490" />
|
||||
<line x1="900" y1="0" x2="1315" y2="415" />
|
||||
<line x1="1730" y1="0" x2="1315" y2="415" />
|
||||
<line x1="975" y1="0" x2="1315" y2="340" />
|
||||
<line x1="1655" y1="0" x2="1315" y2="340" />
|
||||
<line x1="1050" y1="0" x2="1315" y2="265" />
|
||||
<line x1="1580" y1="0" x2="1315" y2="265" />
|
||||
<line x1="1125" y1="0" x2="1315" y2="190" />
|
||||
<line x1="1505" y1="0" x2="1315" y2="190" />
|
||||
<line x1="1200" y1="0" x2="1315" y2="115" />
|
||||
<line x1="1430" y1="0" x2="1315" y2="115" />
|
||||
<line x1="1275" y1="0" x2="1315" y2="40" />
|
||||
<line x1="1355" y1="0" x2="1315" y2="40" />
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
61
assets/css/images/angular-lines-up.svg
Normal file
@ -0,0 +1,61 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="3370" height="2000">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
line {
|
||||
stroke: rgba(0,0,0,0.1);
|
||||
stroke-width: 0.85px;
|
||||
}
|
||||
]]></style>
|
||||
|
||||
<!-- Center line -->
|
||||
<line x1="1685" y1="0" x2="1685" y2="2000"/>
|
||||
|
||||
<!-- Lines -->
|
||||
<line x1="0" y1="2000" x2="1685" y2="315" />
|
||||
<line x1="3370" y1="2000" x2="1685" y2="315" />
|
||||
<line x1="75" y1="2000" x2="1685" y2="390" />
|
||||
<line x1="3295" y1="2000" x2="1685" y2="390" />
|
||||
<line x1="150" y1="2000" x2="1685" y2="465" />
|
||||
<line x1="3220" y1="2000" x2="1685" y2="465" />
|
||||
<line x1="225" y1="2000" x2="1685" y2="540" />
|
||||
<line x1="3145" y1="2000" x2="1685" y2="540" />
|
||||
<line x1="300" y1="2000" x2="1685" y2="615" />
|
||||
<line x1="3070" y1="2000" x2="1685" y2="615" />
|
||||
<line x1="375" y1="2000" x2="1685" y2="690" />
|
||||
<line x1="2995" y1="2000" x2="1685" y2="690" />
|
||||
<line x1="450" y1="2000" x2="1685" y2="765" />
|
||||
<line x1="2920" y1="2000" x2="1685" y2="765" />
|
||||
<line x1="525" y1="2000" x2="1685" y2="840" />
|
||||
<line x1="2845" y1="2000" x2="1685" y2="840" />
|
||||
<line x1="600" y1="2000" x2="1685" y2="915" />
|
||||
<line x1="2770" y1="2000" x2="1685" y2="915" />
|
||||
<line x1="675" y1="2000" x2="1685" y2="990" />
|
||||
<line x1="2695" y1="2000" x2="1685" y2="990" />
|
||||
<line x1="750" y1="2000" x2="1685" y2="1065" />
|
||||
<line x1="2620" y1="2000" x2="1685" y2="1065" />
|
||||
<line x1="825" y1="2000" x2="1685" y2="1140" />
|
||||
<line x1="2545" y1="2000" x2="1685" y2="1140" />
|
||||
<line x1="900" y1="2000" x2="1685" y2="1215" />
|
||||
<line x1="2470" y1="2000" x2="1685" y2="1215" />
|
||||
<line x1="975" y1="2000" x2="1685" y2="1290" />
|
||||
<line x1="2395" y1="2000" x2="1685" y2="1290" />
|
||||
<line x1="1050" y1="2000" x2="1685" y2="1365" />
|
||||
<line x1="2320" y1="2000" x2="1685" y2="1365" />
|
||||
<line x1="1125" y1="2000" x2="1685" y2="1440" />
|
||||
<line x1="2245" y1="2000" x2="1685" y2="1440" />
|
||||
<line x1="1200" y1="2000" x2="1685" y2="1515" />
|
||||
<line x1="2170" y1="2000" x2="1685" y2="1515" />
|
||||
<line x1="1275" y1="2000" x2="1685" y2="1590" />
|
||||
<line x1="2095" y1="2000" x2="1685" y2="1590" />
|
||||
<line x1="1350" y1="2000" x2="1685" y2="1665" />
|
||||
<line x1="2020" y1="2000" x2="1685" y2="1665" />
|
||||
<line x1="1425" y1="2000" x2="1685" y2="1740" />
|
||||
<line x1="1945" y1="2000" x2="1685" y2="1740" />
|
||||
<line x1="1500" y1="2000" x2="1685" y2="1815" />
|
||||
<line x1="1870" y1="2000" x2="1685" y2="1815" />
|
||||
<line x1="1575" y1="2000" x2="1685" y2="1890" />
|
||||
<line x1="1795" y1="2000" x2="1685" y2="1890" />
|
||||
<line x1="1650" y1="2000" x2="1685" y2="1965" />
|
||||
<line x1="1720" y1="2000" x2="1685" y2="1965" />
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
17
assets/css/images/checker-pattern.svg
Normal file
@ -0,0 +1,17 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1700" height="1700">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
rect {
|
||||
fill: rgba(0,0,0,0.04);
|
||||
}
|
||||
.alt {
|
||||
fill: rgba(0,0,0,0.03);
|
||||
}
|
||||
]]></style>
|
||||
|
||||
<!-- Polygons -->
|
||||
<rect width="1202" height="1202" transform="rotate(45)" />
|
||||
<rect width="1202" height="1202" transform="translate(850 0) rotate(45)" class="alt" />
|
||||
<rect width="1202" height="1202" transform="translate(1700 0) rotate(45)" />
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 507 B |
BIN
assets/css/images/overlay.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
4
assets/css/main.scss
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# Only the main Sass file needs front matter (the dashes are enough)
|
||||
---
|
||||
@import "styles"
|
BIN
assets/icons/favicon.ico
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
assets/images/andy-holmes-EOAKUQcsFIU-unsplash.jpg
Normal file
After Width: | Height: | Size: 2.5 MiB |
BIN
assets/images/bg.webp
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
assets/images/design.webp
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
assets/images/hardware.webp
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
assets/images/hardware2.webp
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
assets/images/pic01.jpg
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/images/pic02.jpg
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/images/pic03.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
assets/images/pic04.jpg
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
assets/images/pic05.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
assets/images/pic06.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
assets/images/pic07.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
assets/images/programming.webp
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
assets/images/software.webp
Normal file
After Width: | Height: | Size: 30 KiB |
1291
assets/images/st_logo125.svg
Normal file
After Width: | Height: | Size: 46 KiB |
2
assets/js/breakpoints.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/* 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;e<t.events.length;e++)n=t.events[e],t.active(n.query)?n.state||(n.state=!0,n.handler()):n.state&&(n.state=!1)}};return e._=t,e.on=function(e,n){t.on(e,n)},e.active=function(e){return t.active(e)},e}();!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.breakpoints=t()}(this,function(){return breakpoints});
|
2
assets/js/browser.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/* browser.js v1.0 | @ajlkn | MIT licensed */
|
||||
var browser=function(){"use strict";var e={name:null,version:null,os:null,osVersion:null,touch:null,mobile:null,_canUse:null,canUse:function(n){e._canUse||(e._canUse=document.createElement("div"));var o=e._canUse.style,r=n.charAt(0).toUpperCase()+n.slice(1);return n in o||"Moz"+r in o||"Webkit"+r in o||"O"+r in o||"ms"+r in o},init:function(){var n,o,r,i,t=navigator.userAgent;for(n="other",o=0,r=[["firefox",/Firefox\/([0-9\.]+)/],["bb",/BlackBerry.+Version\/([0-9\.]+)/],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/],["opera",/OPR\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)/],["edge",/Edge\/([0-9\.]+)/],["safari",/Version\/([0-9\.]+).+Safari/],["chrome",/Chrome\/([0-9\.]+)/],["ie",/MSIE ([0-9]+)/],["ie",/Trident\/.+rv:([0-9]+)/]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(RegExp.$1);break}for(e.name=n,e.version=o,n="other",o=0,r=[["ios",/([0-9_]+) like Mac OS X/,function(e){return e.replace("_",".").replace("_","")}],["ios",/CPU like Mac OS X/,function(e){return 0}],["wp",/Windows Phone ([0-9\.]+)/,null],["android",/Android ([0-9\.]+)/,null],["mac",/Macintosh.+Mac OS X ([0-9_]+)/,function(e){return e.replace("_",".").replace("_","")}],["windows",/Windows NT ([0-9\.]+)/,null],["bb",/BlackBerry.+Version\/([0-9\.]+)/,null],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/,null],["linux",/Linux/,null],["bsd",/BSD/,null],["unix",/X11/,null]],i=0;i<r.length;i++)if(t.match(r[i][1])){n=r[i][0],o=parseFloat(r[i][2]?r[i][2](RegExp.$1):RegExp.$1);break}e.os=n,e.osVersion=o,e.touch="wp"==e.os?navigator.msMaxTouchPoints>0:!!("ontouchstart"in window),e.mobile="wp"==e.os||"android"==e.os||"ios"==e.os||"bb"==e.os}};return e.init(),e}();!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.browser=n()}(this,function(){return browser});
|
2
assets/js/jquery.min.js
vendored
Normal file
2
assets/js/jquery.scrollex.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/* jquery.scrollex v0.2.1 | (c) @ajlkn | github.com/ajlkn/jquery.scrollex | MIT licensed */
|
||||
!function(t){function e(t,e,n){return"string"==typeof t&&("%"==t.slice(-1)?t=parseInt(t.substring(0,t.length-1))/100*e:"vh"==t.slice(-2)?t=parseInt(t.substring(0,t.length-2))/100*n:"px"==t.slice(-2)&&(t=parseInt(t.substring(0,t.length-2)))),t}var n=t(window),i=1,o={};n.on("scroll",function(){var e=n.scrollTop();t.map(o,function(t){window.clearTimeout(t.timeoutId),t.timeoutId=window.setTimeout(function(){t.handler(e)},t.options.delay)})}).on("load",function(){n.trigger("scroll")}),jQuery.fn.scrollex=function(l){var s=t(this);if(0==this.length)return s;if(this.length>1){for(var r=0;r<this.length;r++)t(this[r]).scrollex(l);return s}if(s.data("_scrollexId"))return s;var a,u,h,c,p;switch(a=i++,u=jQuery.extend({top:0,bottom:0,delay:0,mode:"default",enter:null,leave:null,initialize:null,terminate:null,scroll:null},l),u.mode){case"top":h=function(t,e,n,i,o){return t>=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;n<this.length;n++)t(this[n]).unscrollex();return e}var i,l;return(i=e.data("_scrollexId"))?(l=o[i],window.clearTimeout(l.timeoutId),delete o[i],e.removeData("_scrollexId"),l.options.terminate&&l.options.terminate.apply(this),e):e}}(jQuery);
|
2
assets/js/jquery.scrolly.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/* jquery.scrolly v1.0.0-dev | (c) @ajlkn | MIT licensed */
|
||||
(function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o<this[t];o++)e(this[o]).scrolly(i);return c}l=n,f=c.attr("href");if(f.charAt(0)!="#"||f[t]<2)return c;a=jQuery.extend({anchor:r,easing:"swing",offset:0,parent:e("body,html"),pollOnce:!1,speed:1e3},i),a.pollOnce&&(l=u(f,a)),c.off(s).on(s,function(e){var t=l!==n?l:u(f,a);t!==n&&(e.preventDefault(),a.parent.stop().animate({scrollTop:t},a.speed,a.easing))})}})(jQuery);
|
51
assets/js/main.js
Normal file
@ -0,0 +1,51 @@
|
||||
(function($) {
|
||||
|
||||
var $window = $(window),
|
||||
$body = $('body'),
|
||||
$header = $('#header');
|
||||
|
||||
// Breakpoints.
|
||||
breakpoints({
|
||||
xlarge: [ '1281px', '1680px' ],
|
||||
large: [ '981px', '1280px' ],
|
||||
medium: [ '737px', '980px' ],
|
||||
small: [ '481px', '736px' ],
|
||||
xsmall: [ null, '480px' ]
|
||||
});
|
||||
|
||||
// Play initial animations on page load.
|
||||
$window.on('load', function() {
|
||||
window.setTimeout(function() {
|
||||
$body.removeClass('is-preload');
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Scrolly.
|
||||
$('.scrolly').scrolly({
|
||||
offset: function() { return $header.outerHeight() }
|
||||
});
|
||||
|
||||
// Menu.
|
||||
$('#menu')
|
||||
.append('<a href="#menu" class="close"></a>')
|
||||
.appendTo($body)
|
||||
.panel({
|
||||
delay: 500,
|
||||
hideOnClick: true,
|
||||
hideOnSwipe: true,
|
||||
resetScroll: true,
|
||||
resetForms: true,
|
||||
side: 'right'
|
||||
});
|
||||
|
||||
// Header.
|
||||
$window.on('resize', function() { $window.trigger('scroll'); });
|
||||
|
||||
$body.scrollex({
|
||||
top: '25vh',
|
||||
mode: 'top',
|
||||
enter: function() { $header.addClass('alt'); },
|
||||
leave: function() { $header.removeClass('alt'); }
|
||||
});
|
||||
|
||||
})(jQuery);
|
587
assets/js/util.js
Normal file
@ -0,0 +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(
|
||||
'<a ' +
|
||||
'class="link depth-' + indent + '"' +
|
||||
( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') +
|
||||
( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') +
|
||||
'>' +
|
||||
'<span class="indent-' + indent + '"></span>' +
|
||||
$this.text() +
|
||||
'</a>'
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
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 = $(
|
||||
$('<div>')
|
||||
.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);
|