Elegant Business: Initial commit to GitHub repo.
This commit is contained in:
parent
0c3a65ab42
commit
a5ae15cd1e
62 changed files with 21537 additions and 0 deletions
674
elegant-business/LICENSE
Normal file
674
elegant-business/LICENSE
Normal file
|
@ -0,0 +1,674 @@
|
|||
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>.
|
133
elegant-business/functions.php
Normal file
133
elegant-business/functions.php
Normal file
|
@ -0,0 +1,133 @@
|
|||
<?php
|
||||
/**
|
||||
* Elegant Business functions and definitions.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package Elegant_Business
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'elegant_business_setup' ) ) :
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* Note that this function is hooked into the after_setup_theme hook, which
|
||||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*/
|
||||
function elegant_business_setup() {
|
||||
|
||||
/**
|
||||
* Add support for core custom logo.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Theme_Logo
|
||||
*/
|
||||
add_theme_support(
|
||||
'custom-logo',
|
||||
array(
|
||||
'height' => 128,
|
||||
'width' => 190,
|
||||
'flex-width' => true,
|
||||
'flex-height' => false,
|
||||
'header-text' => array( 'site-title' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
endif; // elegant_business_setup
|
||||
add_action( 'after_setup_theme', 'elegant_business_setup', 30 );
|
||||
|
||||
// Our filter callback function
|
||||
function elegant_business_primary_color_hue() {
|
||||
// Hue
|
||||
return 330;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_hue', 'elegant_business_primary_color_hue' );
|
||||
|
||||
// Our filter callback function
|
||||
function elegant_business_primary_color_saturation() {
|
||||
// Saturation
|
||||
return 53;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_saturation', 'elegant_business_primary_color_saturation' );
|
||||
|
||||
// Our filter callback function
|
||||
function elegant_business_primary_color_lightness() {
|
||||
// Lightness
|
||||
return 50;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_lightness', 'elegant_business_primary_color_lightness' );
|
||||
|
||||
// Our filter callback function
|
||||
function elegant_business_primary_color_lightness_hover() {
|
||||
// Lightness
|
||||
return 40;
|
||||
}
|
||||
add_filter( 'twentynineteen_default_lightness_hover', 'elegant_business_primary_color_lightness_hover' );
|
||||
|
||||
/**
|
||||
* Google font URLs.
|
||||
*/
|
||||
function elegant_business_fonts_url() {
|
||||
|
||||
$fonts_url = '';
|
||||
|
||||
/* Translators: If there are characters in your language that are not
|
||||
* supported by Open Sans, translate this to 'off'. Do not translate
|
||||
* into your own language.
|
||||
*/
|
||||
$source_serif_pro = esc_html_x( 'on', 'Source Serif Pro font: on or off', 'elegant-business' );
|
||||
|
||||
if ( 'off' !== $source_serif_pro ) {
|
||||
$font_families = array();
|
||||
|
||||
if ( 'off' !== $source_serif_pro ) {
|
||||
$font_families[] = 'Source Serif Pro:400,700,400italic';
|
||||
}
|
||||
|
||||
$query_args = array(
|
||||
'family' => urlencode( implode( '|', $font_families ) ),
|
||||
'subset' => urlencode( 'latin,latin-ext' ),
|
||||
);
|
||||
|
||||
$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||
}
|
||||
|
||||
return esc_url_raw( $fonts_url );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function elegant_business_scripts() {
|
||||
|
||||
/**
|
||||
* Styles
|
||||
*/
|
||||
wp_enqueue_style( 'elegant-business-fonts', elegant_business_fonts_url(), array(), null );
|
||||
|
||||
// Replace print styles
|
||||
wp_dequeue_style( 'twentynineteen-print-style' );
|
||||
wp_enqueue_style( 'elegant-business-print-style', get_stylesheet_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' );
|
||||
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'elegant_business_scripts', 99 );
|
||||
|
||||
/**
|
||||
* Load extras.php file (if necessary).
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/extras.php';
|
||||
|
||||
/**
|
||||
* Load wpcom compatibility file (if necessary).
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/wpcom.php';
|
||||
|
||||
/**
|
||||
* Load Jetpack compatibility file.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/jetpack.php';
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/customizer.php';
|
18
elegant-business/inc/customizer.php
Normal file
18
elegant-business/inc/customizer.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom functions that act independently of the theme templates.
|
||||
*
|
||||
* Eventually, some of the functionality here could be replaced by core features.
|
||||
*
|
||||
* @package Elegant_Business
|
||||
*/
|
||||
|
||||
/**
|
||||
* Change the label of the Site Title option.
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
function elegant_business_customize_register( $wp_customize ) {
|
||||
$wp_customize->get_control( 'header_text' )->label = __( 'Display Site Title', 'elegant-business' );
|
||||
}
|
||||
add_action( 'customize_register', 'elegant_business_customize_register' );
|
13
elegant-business/inc/extras.php
Normal file
13
elegant-business/inc/extras.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom functions that act independently of the theme templates.
|
||||
*
|
||||
* Eventually, some of the functionality here could be replaced by core features.
|
||||
*
|
||||
* @package Elegant_Business
|
||||
*/
|
||||
|
||||
/**
|
||||
* Probably not necessary, but this could be used to add extra
|
||||
* functionality that doesn’t exist in the parent theme.
|
||||
*/
|
36
elegant-business/inc/jetpack.php
Normal file
36
elegant-business/inc/jetpack.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
/**
|
||||
* Jetpack Compatibility File.
|
||||
*
|
||||
* @link https://jetpack.com/
|
||||
*
|
||||
* @package Elegant_Business
|
||||
*/
|
||||
|
||||
/**
|
||||
* Jetpack Setup
|
||||
*/
|
||||
function elegant_business_jetpack_setup() {
|
||||
/*
|
||||
* The Parent theme alredy comes with Jetpack compatibility
|
||||
*
|
||||
* Tweaking the compatibility rules might be done here,
|
||||
* if even necessary at all.
|
||||
*/
|
||||
}
|
||||
add_action( 'after_setup_theme', 'elegant_business_jetpack_setup' );
|
||||
|
||||
/**
|
||||
* Enqueue Jetpack-specific styles
|
||||
*
|
||||
* We need to enqueue some additional CSS to override the
|
||||
* parent theme’s fonts which are pre-baked into JetPack.
|
||||
*
|
||||
* See `elegant-business/style-jetpack.scss`
|
||||
* Also see: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||||
*/
|
||||
function elegant_business_jetpack_styles() {
|
||||
wp_enqueue_style( 'elegant-business-jetpack', get_stylesheet_directory_uri() . '/style-jetpack.css', '20181218' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'elegant_business_jetpack_styles' );
|
||||
|
38
elegant-business/inc/wpcom.php
Normal file
38
elegant-business/inc/wpcom.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* WordPress.com-specific functions and definitions.
|
||||
*
|
||||
* This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
|
||||
*
|
||||
* @package Elegant_Business
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds support for wp.com-specific theme functions.
|
||||
*
|
||||
* @global array $themecolors
|
||||
*/
|
||||
function elegant_business_wpcom_setup() {
|
||||
global $themecolors;
|
||||
|
||||
// Set theme colors for third party services.
|
||||
|
||||
/*
|
||||
* These colors match the parent theme’s blue default
|
||||
*
|
||||
* To introduce a non-blue color as the default, we’d
|
||||
* need to set the Custom Colors customizer option on
|
||||
* theme activation and also change the default hex
|
||||
* color here.
|
||||
*/
|
||||
if ( ! isset( $themecolors ) ) {
|
||||
$themecolors = array(
|
||||
'bg' => 'ffffff',
|
||||
'border' => '767676',
|
||||
'text' => '111111',
|
||||
'link' => '0073aa',
|
||||
'url' => '0073aa',
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'after_setup_theme', 'elegant_business_wpcom_setup' );
|
53
elegant-business/languages/elegant-business.pot
Normal file
53
elegant-business/languages/elegant-business.pot
Normal file
|
@ -0,0 +1,53 @@
|
|||
# Copyright (C) 2019 Automattic
|
||||
# This file is distributed under the GNU General Public License v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Elegant Business 1.0\n"
|
||||
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/elegant-business\n"
|
||||
"POT-Creation-Date: 2019-02-01 00:15:43+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
#. Translators: If there are characters in your language that are not supported
|
||||
#. by Open Sans, translate this to 'off'. Do not translate into your own
|
||||
#. language.
|
||||
#: functions.php:78
|
||||
msgctxt "Source Serif Pro font: on or off"
|
||||
msgid "on"
|
||||
msgstr ""
|
||||
|
||||
#: inc/customizer.php:16
|
||||
msgid "Display Site Title"
|
||||
msgstr ""
|
||||
|
||||
#. Theme Name of the plugin/theme
|
||||
#: wp-content/themes/pub/elegant-business/style.css
|
||||
msgid "Elegant Business"
|
||||
msgstr ""
|
||||
|
||||
#. Theme URI of the plugin/theme
|
||||
#: wp-content/themes/pub/elegant-business/style.css
|
||||
msgid "https://github.com/automattic/themes"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the plugin/theme
|
||||
#: wp-content/themes/pub/elegant-business/style.css
|
||||
msgid ""
|
||||
"Simple, yet sophisticated, with subtle, beautiful typography, Elegant "
|
||||
"Business conveys quality and integrity, which makes it especially good fit "
|
||||
"for coffee shops, pop-up shops, and brick & mortar store fronts."
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin/theme
|
||||
#: wp-content/themes/pub/elegant-business/style.css
|
||||
msgid "Automattic"
|
||||
msgstr ""
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
#: wp-content/themes/pub/elegant-business/style.css
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr ""
|
4447
elegant-business/package-lock.json
generated
Normal file
4447
elegant-business/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
45
elegant-business/package.json
Normal file
45
elegant-business/package.json
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"name": "twentynineteen",
|
||||
"version": "1.0.0",
|
||||
"description": "Default WP Theme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/WordPress/twentynineteen/issues"
|
||||
},
|
||||
"homepage": "https://github.com/WordPress/twentynineteen#readme",
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^2.2.2",
|
||||
"autoprefixer": "^9.1.5",
|
||||
"chokidar-cli": "^1.2.1",
|
||||
"node-sass": "^4.9.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-cli": "^6.0.1",
|
||||
"postcss-focus-within": "^3.0.0",
|
||||
"rtlcss": "^2.4.0"
|
||||
},
|
||||
"rtlcssConfig": {
|
||||
"options": {
|
||||
"autoRename": false,
|
||||
"autoRenameStrict": false,
|
||||
"blacklist": {},
|
||||
"clean": true,
|
||||
"greedy": false,
|
||||
"processUrls": false,
|
||||
"stringMap": []
|
||||
},
|
||||
"plugins": [],
|
||||
"map": false
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @wordpress/browserslist-config"
|
||||
],
|
||||
"scripts": {
|
||||
"build:style": "node-sass style.scss style.css --output-style expanded && postcss -r style.css",
|
||||
"build:style-editor": "node-sass style-editor.scss style-editor.css --output-style expanded && postcss -r style-editor.css",
|
||||
"build:style-editor-customizer": "node-sass style-editor-customizer.scss style-editor-customizer.css --output-style expanded && postcss -r style-editor-customizer.css",
|
||||
"build:style-jetpack": "node-sass style-jetpack.scss style-jetpack.css --output-style expanded && postcss -r style-jetpack.css",
|
||||
"build:rtl": "rtlcss style.css style-rtl.css",
|
||||
"build:print": "node-sass print.scss print.css --output-style expanded && postcss -r print.css",
|
||||
"build": "run-p \"build:*\"",
|
||||
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial"
|
||||
}
|
||||
}
|
13
elegant-business/postcss.config.js
Normal file
13
elegant-business/postcss.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
var postcssFocusWithin = require('postcss-focus-within');
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
postcssFocusWithin(/* pluginOptions */)
|
||||
]
|
||||
};
|
162
elegant-business/print.css
Normal file
162
elegant-business/print.css
Normal file
|
@ -0,0 +1,162 @@
|
|||
/*
|
||||
Theme Name: Twenty Nineteen
|
||||
|
||||
Adding print support. The print styles are based on the the great work of
|
||||
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
|
||||
*/
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Margins
|
||||
# Typography
|
||||
# Page breaks
|
||||
# Links
|
||||
# Visibility
|
||||
--------------------------------------------------------------*/
|
||||
@media print {
|
||||
/* Margins */
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
.entry {
|
||||
margin-top: 1em;
|
||||
}
|
||||
.entry .entry-header, .site-footer .site-info {
|
||||
margin: 0;
|
||||
}
|
||||
/* Fonts */
|
||||
body {
|
||||
font: 13pt Georgia, "Times New Roman", Times, serif;
|
||||
line-height: 1.3;
|
||||
background: #fff !important;
|
||||
color: #000;
|
||||
}
|
||||
h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
.comments-title, h3 {
|
||||
font-size: 14pt;
|
||||
margin-top: 25px;
|
||||
}
|
||||
/* Page breaks */
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
blockquote {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
page-break-after: avoid;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
ul, ol, dl {
|
||||
page-break-before: avoid;
|
||||
}
|
||||
/* Links */
|
||||
a:link, a:visited, a {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-align: left;
|
||||
}
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
a[href^=http]:after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
a:after > img {
|
||||
content: "";
|
||||
}
|
||||
article a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
a:not(:local-link):after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
/* Visibility */
|
||||
.main-navigation,
|
||||
.site-title + .main-navigation,
|
||||
.social-navigation,
|
||||
.site-branding-container:before,
|
||||
.entry .entry-title:before,
|
||||
.entry-footer,
|
||||
.author-description:before,
|
||||
.post-navigation,
|
||||
.widget-area,
|
||||
.comment-form-flex,
|
||||
.comment-reply,
|
||||
.comment .comment-metadata .edit-link {
|
||||
display: none;
|
||||
}
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link,
|
||||
.entry .entry-content .button {
|
||||
color: #000;
|
||||
background: none;
|
||||
}
|
||||
/* Site Header (With Featured Image) */
|
||||
.site-header.featured-image {
|
||||
min-height: 0;
|
||||
}
|
||||
.site-header.featured-image .main-navigation a,
|
||||
.site-header.featured-image .main-navigation a + svg,
|
||||
.site-header.featured-image .social-navigation a,
|
||||
.site-header.featured-image .site-title a,
|
||||
.site-header.featured-image .site-featured-image a,
|
||||
.site-header.featured-image .site-branding .site-title,
|
||||
.site-header.featured-image .site-branding .site-description,
|
||||
.site-header.featured-image .main-navigation a:after,
|
||||
.site-header.featured-image .main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.site-header.featured-image .main-navigation li,
|
||||
.site-header.featured-image .social-navigation li,
|
||||
.site-header.featured-image .entry-meta,
|
||||
.site-header.featured-image .entry-title,
|
||||
.site-header.featured-image#masthead .site-title a {
|
||||
color: #000;
|
||||
text-shadow: none;
|
||||
}
|
||||
.site-header.featured-image .site-featured-image .entry-header,
|
||||
.site-header.featured-image .site-branding-container {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
position: relative;
|
||||
height: initial;
|
||||
width: initial;
|
||||
object-fit: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
/* Remove image filters from featured image */
|
||||
.image-filters-enabled *:after {
|
||||
display: none !important;
|
||||
}
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image:before {
|
||||
display: none;
|
||||
}
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
filter: none;
|
||||
}
|
||||
}
|
198
elegant-business/print.scss
Normal file
198
elegant-business/print.scss
Normal file
|
@ -0,0 +1,198 @@
|
|||
/*
|
||||
Theme Name: Twenty Nineteen
|
||||
|
||||
Adding print support. The print styles are based on the the great work of
|
||||
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Margins
|
||||
# Typography
|
||||
# Page breaks
|
||||
# Links
|
||||
# Visibility
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@media print {
|
||||
|
||||
/* Margins */
|
||||
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
|
||||
.entry {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.entry .entry-header, .site-footer .site-info {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Fonts */
|
||||
|
||||
body {
|
||||
font: 13pt Georgia, "Times New Roman", Times, serif;
|
||||
line-height: 1.3;
|
||||
background: #fff !important;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
.comments-title, h3 {
|
||||
font-size: 14pt;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
/* Page breaks */
|
||||
|
||||
a {
|
||||
page-break-inside: avoid
|
||||
}
|
||||
|
||||
blockquote {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
page-break-after: avoid;
|
||||
page-break-inside: avoid
|
||||
}
|
||||
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
ul, ol, dl {
|
||||
page-break-before: avoid;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
|
||||
a:link, a:visited, a {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
a[href^=http]:after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
|
||||
a:after > img {
|
||||
content: "";
|
||||
}
|
||||
|
||||
article a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
a:not(:local-link):after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
|
||||
/* Visibility */
|
||||
.main-navigation,
|
||||
.site-title + .main-navigation,
|
||||
.social-navigation,
|
||||
.site-branding-container:before,
|
||||
.entry .entry-title:before,
|
||||
.entry-footer,
|
||||
.author-description:before,
|
||||
.post-navigation,
|
||||
.widget-area,
|
||||
.comment-form-flex,
|
||||
.comment-reply,
|
||||
.comment .comment-metadata .edit-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link,
|
||||
.entry .entry-content .button {
|
||||
color: #000;
|
||||
background: none;
|
||||
}
|
||||
|
||||
/* Site Header (With Featured Image) */
|
||||
.site-header.featured-image {
|
||||
min-height: 0;
|
||||
|
||||
.main-navigation a,
|
||||
.main-navigation a + svg,
|
||||
.social-navigation a,
|
||||
.site-title a,
|
||||
.site-featured-image a,
|
||||
.site-branding .site-title,
|
||||
.site-branding .site-description,
|
||||
.main-navigation a:after,
|
||||
.main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.main-navigation li,
|
||||
.social-navigation li,
|
||||
.entry-meta,
|
||||
.entry-title,
|
||||
&#masthead .site-title a {
|
||||
color: #000;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.site-featured-image .entry-header,
|
||||
.site-branding-container {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.site-featured-image .post-thumbnail img {
|
||||
position: relative;
|
||||
height: initial;
|
||||
width: initial;
|
||||
object-fit: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove image filters from featured image */
|
||||
.image-filters-enabled {
|
||||
|
||||
*:after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.site-header.featured-image .site-featured-image:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
}
|
341
elegant-business/sass/_normalize.scss
Normal file
341
elegant-business/sass/_normalize.scss
Normal file
|
@ -0,0 +1,341 @@
|
|||
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input { /* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select { /* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
960
elegant-business/sass/blocks/_blocks.scss
Normal file
960
elegant-business/sass/blocks/_blocks.scss
Normal file
|
@ -0,0 +1,960 @@
|
|||
/* !Block styles */
|
||||
|
||||
.entry .entry-content > *,
|
||||
.entry .entry-summary > * {
|
||||
margin: 32px 0;
|
||||
max-width: 100%;
|
||||
|
||||
@include postContentMaxWidth();
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 32px auto;
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&.alignwide {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
clear: both;
|
||||
|
||||
@include media(tablet) {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.alignfull {
|
||||
position: relative;
|
||||
left: -#{$size__spacing-unit };
|
||||
width: calc( 100% + #{2 * $size__spacing-unit} );
|
||||
max-width: calc( 100% + #{2 * $size__spacing-unit} );
|
||||
clear: both;
|
||||
|
||||
@include media(tablet) {
|
||||
margin-top: calc(2 * #{$size__spacing-unit});
|
||||
margin-bottom: calc(2 * #{$size__spacing-unit});
|
||||
left: calc( -12.5% - 75px + 1rem );
|
||||
width: calc( 125% + 150px );
|
||||
max-width: calc( 125% + 150px - 2rem );
|
||||
}
|
||||
}
|
||||
|
||||
&.alignleft {
|
||||
/*rtl:ignore*/
|
||||
float: left;
|
||||
max-width: calc(5 * (100vw / 12));
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
/*rtl:ignore*/
|
||||
margin-right: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: calc(4 * (100vw / 12));
|
||||
/*rtl:ignore*/
|
||||
margin-right: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
&.alignright {
|
||||
/*rtl:ignore*/
|
||||
float: right;
|
||||
max-width: calc(5 * (100vw / 12));
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
/*rtl:ignore*/
|
||||
margin-left: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: calc(4 * (100vw / 12));
|
||||
margin-right: 0;
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
&.aligncenter {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
@include postContentMaxWidth();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Unset nested content selector styles
|
||||
* - Prevents layout styles from cascading too deeply
|
||||
* - helps with plugin compatibility
|
||||
*/
|
||||
.entry .entry-content,
|
||||
.entry .entry-summary {
|
||||
|
||||
.entry-content,
|
||||
.entry-summary,
|
||||
.entry {
|
||||
margin: inherit;
|
||||
max-width: inherit;
|
||||
padding: inherit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: inherit;
|
||||
max-width: inherit;
|
||||
padding: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.entry .entry-content {
|
||||
|
||||
& > h1,
|
||||
& > h2,
|
||||
& > h3,
|
||||
& > h4,
|
||||
& > h5,
|
||||
& > h6 {
|
||||
text-align: center;
|
||||
margin-top: #{$size__spacing-unit * 2};
|
||||
margin-bottom: #{$size__spacing-unit * 2};
|
||||
}
|
||||
|
||||
//! Paragraphs
|
||||
p.has-background {
|
||||
padding: 20px 30px;
|
||||
}
|
||||
|
||||
//! Audio
|
||||
.wp-block-audio {
|
||||
|
||||
width: 100%;
|
||||
|
||||
audio {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.alignleft audio,
|
||||
&.alignright audio {
|
||||
|
||||
max-width: (0.33 * $mobile_width);
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: (0.5 * $tablet_width);
|
||||
}
|
||||
|
||||
@include media(wide) {
|
||||
max-width: (0.33 * $desktop_width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Video
|
||||
.wp-block-video {
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
//! Button
|
||||
.wp-block-button {
|
||||
|
||||
.wp-block-button__link {
|
||||
@include button-transition;
|
||||
border: none;
|
||||
font-size: $font__size-sm;
|
||||
font-family: $font__ui;
|
||||
line-height: $font__line-height-heading;
|
||||
box-sizing: border-box;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
padding: ($size__spacing-unit * .76) $size__spacing-unit;
|
||||
outline: none;
|
||||
outline: none;
|
||||
|
||||
&:not(.has-background) {
|
||||
background-color: $color__background-button;
|
||||
}
|
||||
|
||||
&:not(.has-text-color) {
|
||||
color: white;
|
||||
}
|
||||
|
||||
&:not(.has-background):hover,
|
||||
&:hover {
|
||||
color: white;
|
||||
background-color: $color__background-button-hover;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color: white;
|
||||
background-color: $color__background-button-hover;
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.is-style-squared) .wp-block-button__link {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
&.is-style-outline .wp-block-button__link,
|
||||
&.is-style-outline .wp-block-button__link:focus,
|
||||
&.is-style-outline .wp-block-button__link:active {
|
||||
@include button-all-transition;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
|
||||
&:not(.has-background) {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&:not(.has-text-color) {
|
||||
color: $color__background-button;
|
||||
border-color: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-style-outline .wp-block-button__link:hover {
|
||||
color: white;
|
||||
border-color: $color__background-button-hover;
|
||||
}
|
||||
}
|
||||
|
||||
//! Latest posts, categories, archives
|
||||
.wp-block-archives,
|
||||
.wp-block-categories,
|
||||
.wp-block-latest-posts {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: calc(#{$font__size_base} * #{$font__size-ratio});
|
||||
font-weight: bold;
|
||||
line-height: $font__line-height-heading;
|
||||
padding-bottom: ( .75 * $size__spacing-unit );
|
||||
|
||||
&.menu-item-has-children,
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Latest categories
|
||||
.wp-block-categories {
|
||||
|
||||
ul {
|
||||
padding-top: ( .75 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
li ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
@include nestedSubMenuPadding();
|
||||
}
|
||||
|
||||
//! Latest posts grid view
|
||||
.wp-block-latest-posts.is-grid {
|
||||
li {
|
||||
border-top: 2px solid $color__border;
|
||||
padding-top: (1 * $size__spacing-unit);
|
||||
margin-bottom: (2 * $size__spacing-unit);
|
||||
a {
|
||||
&:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom: auto;
|
||||
a:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Latest preformatted text
|
||||
.wp-block-preformatted {
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.8;
|
||||
padding: $size__spacing-unit;
|
||||
}
|
||||
|
||||
//! Verse
|
||||
.wp-block-verse {
|
||||
font-family: $font__body;
|
||||
font-size: $font__size_base;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
//! Paragraphs
|
||||
.has-drop-cap {
|
||||
&:not(:focus):first-letter {
|
||||
font-family: $font__heading;
|
||||
font-size: #{1.7 * $font__size-xxxl};
|
||||
line-height: 1;
|
||||
font-weight: normal;
|
||||
margin: 0 0.25em 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
//! Pullquote
|
||||
.wp-block-pullquote {
|
||||
border-color: transparent;
|
||||
border-width: 2px;
|
||||
padding: $size__spacing-unit;
|
||||
|
||||
blockquote {
|
||||
color: $color__text-main;
|
||||
border: none;
|
||||
margin-top: calc(4 * #{ $size__spacing-unit});
|
||||
margin-bottom: calc(4.33 * #{ $size__spacing-unit});
|
||||
margin-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: $font__size-lg;
|
||||
font-style: italic;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
|
||||
em {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
}
|
||||
|
||||
cite {
|
||||
display: inline-block;
|
||||
font-family: $font__heading;
|
||||
line-height: 1.6;
|
||||
text-transform: none;
|
||||
color: $color__text-light;
|
||||
|
||||
/*
|
||||
* This requires a rem-based font size calculation instead of our normal em-based one,
|
||||
* because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
|
||||
*/
|
||||
font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
|
||||
}
|
||||
|
||||
&.alignleft,
|
||||
&.alignright {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-style-solid-color {
|
||||
background-color: $color__link;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
|
||||
@include media(tablet) {
|
||||
padding-left: 10%;
|
||||
padding-right: 10%;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: $font__size-lg;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $color__background-body;
|
||||
}
|
||||
|
||||
cite {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
max-width: calc(100% - (2 * #{$size__spacing-unit}));
|
||||
color: $color__background-body;
|
||||
padding-left: 0;
|
||||
margin-left: $size__spacing-unit;
|
||||
|
||||
&.has-text-color p,
|
||||
&.has-text-color a,
|
||||
&.has-primary-color,
|
||||
&.has-secondary-color,
|
||||
&.has-dark-gray-color,
|
||||
&.has-light-gray-color,
|
||||
&.has-white-color {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.alignfull {
|
||||
|
||||
@include media(tablet) {
|
||||
padding-left: calc(10% + 58px + (2 * #{$size__spacing-unit}));
|
||||
padding-right: calc(10% + 58px + (2 * #{$size__spacing-unit}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Blockquote
|
||||
.wp-block-quote {
|
||||
|
||||
&:not(.is-large),
|
||||
&:not(.is-style-large) {
|
||||
border-left: 2px solid $color__link;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1em;
|
||||
font-style: normal;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
cite {
|
||||
/*
|
||||
* This requires a rem-based font size calculation instead of our normal em-based one,
|
||||
* because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
|
||||
*/
|
||||
font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
|
||||
}
|
||||
|
||||
&.is-large,
|
||||
&.is-style-large {
|
||||
margin: $size__spacing-unit auto;
|
||||
padding: 0;
|
||||
border-left: none;
|
||||
|
||||
p {
|
||||
font-size: $font__size-lg;
|
||||
line-height: 1.4;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
cite,
|
||||
footer {
|
||||
/*
|
||||
* This requires a rem-based font size calculation instead of our normal em-based one,
|
||||
* because the cite tag sometimes gets wrapped in a p tag. This is equivalent to $font-size_xs.
|
||||
*/
|
||||
font-size: calc(1rem / (1.25 * #{$font__size-ratio}));
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin: $size__spacing-unit auto;
|
||||
padding: $size__spacing-unit 0;
|
||||
|
||||
p {
|
||||
font-size: $font__size-lg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Image
|
||||
.wp-block-image {
|
||||
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.alignleft,
|
||||
&.alignright {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
&.alignfull img {
|
||||
width: 100vw;
|
||||
|
||||
@include media(tablet) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Cover Image
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover {
|
||||
position: relative;
|
||||
min-height: 420px;
|
||||
padding: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
min-height: 560px;
|
||||
padding: $size__spacing-unit 10%;
|
||||
}
|
||||
|
||||
& + .wp-block-cover:not(.alignleft):not(.alignrights),
|
||||
& + .wp-block-cover-image:not(.alignleft):not(.alignrights) {
|
||||
margin-top: 64px;
|
||||
}
|
||||
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text,
|
||||
h2 {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-lg;
|
||||
font-weight: bold;
|
||||
line-height: 1.25;
|
||||
padding: 0;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
-ms-hyphens: auto;
|
||||
-moz-hyphens: auto;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xl;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-left-content {
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text,
|
||||
h2 {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-right-content {
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text,
|
||||
h2 {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
&.alignleft,
|
||||
&.alignright {
|
||||
width: 100%;
|
||||
|
||||
@include media(tablet) {
|
||||
padding: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
&.alignfull {
|
||||
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text,
|
||||
h2 {
|
||||
@include postContentMaxWidth();
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
padding-left: calc(10% + 58px + #{2 * $size__spacing-unit});
|
||||
padding-right: calc(10% + 58px + #{2 * $size__spacing-unit});
|
||||
left: calc( -12.5% - 75px );
|
||||
width: calc( 125% + 150px );
|
||||
max-width: calc( 125% + 150px );
|
||||
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text,
|
||||
h2 {
|
||||
padding: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Galleries
|
||||
.wp-block-gallery {
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
|
||||
.blocks-gallery-image:last-child,
|
||||
.blocks-gallery-item:last-child {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
//! Captions
|
||||
.wp-block-audio figcaption,
|
||||
.wp-block-video figcaption,
|
||||
.wp-block-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption {
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
//! Separator
|
||||
.wp-block-separator,
|
||||
hr {
|
||||
background-color: #f1f1f1;
|
||||
border: 0;
|
||||
height: 2px;
|
||||
margin-bottom: (2 * $size__spacing-unit);
|
||||
margin-left: auto;
|
||||
margin-top: (2 * $size__spacing-unit);
|
||||
margin-right: auto;
|
||||
max-width: 5em;
|
||||
text-align: center;
|
||||
|
||||
&.is-style-wide {
|
||||
max-width: 100%;
|
||||
@include postContentMaxWidth();
|
||||
}
|
||||
|
||||
&.is-style-dots {
|
||||
max-width: 100%;
|
||||
@include postContentMaxWidth();
|
||||
background-color: inherit;
|
||||
border: inherit;
|
||||
height: inherit;
|
||||
text-align: center;
|
||||
|
||||
&:before {
|
||||
color: $color__text-light;
|
||||
font-size: $font__size-lg;
|
||||
letter-spacing: $font__size-sm;
|
||||
padding-left: $font__size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove duplicate rule-line when a separator
|
||||
* is followed by an H1, or H2 */
|
||||
& + h1,
|
||||
& + h2 {
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Separator
|
||||
.wp-block-spacer {
|
||||
margin-bottom: $size__spacing-unit;
|
||||
margin-top: $size__spacing-unit;
|
||||
}
|
||||
|
||||
//! Twitter Embed
|
||||
.wp-block-embed-twitter {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
//! Table
|
||||
.wp-block-table {
|
||||
|
||||
th,
|
||||
td {
|
||||
border-color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
//! File
|
||||
.wp-block-file {
|
||||
font-family: $font__heading;
|
||||
|
||||
.wp-block-file__button {
|
||||
display: table;
|
||||
@include button-transition;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background: $color__background-button;
|
||||
font-size: $font__size-base;
|
||||
font-family: $font__ui;
|
||||
line-height: $font__line-height-heading;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
padding: ($size__spacing-unit * .75) $size__spacing-unit;
|
||||
color: #fff;
|
||||
margin-left: 0;
|
||||
margin-top: calc(0.75 * #{$size__spacing-unit});
|
||||
|
||||
@include media(desktop) {
|
||||
font-size: $font__size-base;
|
||||
padding: ($size__spacing-unit * .875) ($size__spacing-unit * 1.5);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $color__background-button-hover;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background-color: $color__background-button-hover;
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Code
|
||||
.wp-block-code {
|
||||
border-radius: 0;
|
||||
|
||||
code {
|
||||
font-size: $font__size-md;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
//! Media & Text
|
||||
.wp-block-media-text {
|
||||
background: $color__background-screen;
|
||||
|
||||
& + .wp-block-media-text {
|
||||
margin-top: -32px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&.has-media-on-the-right.is-stacked-on-mobile {
|
||||
.wp-block-media-text__media {
|
||||
grid-area: media-text-content;
|
||||
}
|
||||
.wp-block-media-text__content {
|
||||
grid-area: media-text-media;
|
||||
}
|
||||
}
|
||||
|
||||
@include media(mobile) {
|
||||
&.has-media-on-the-right.is-stacked-on-mobile {
|
||||
.wp-block-media-text__media {
|
||||
grid-area: media-text-media;
|
||||
}
|
||||
.wp-block-media-text__content {
|
||||
grid-area: media-text-content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.alignfull {
|
||||
@include media(tablet) {
|
||||
left: calc( -12.5% - 75px );
|
||||
max-width: calc( 125% + 150px );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//! Columns
|
||||
.wp-block-columns {
|
||||
|
||||
&.alignfull {
|
||||
padding-left: $size__spacing-unit;
|
||||
padding-right: $size__spacing-unit;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
.wp-block-column > * {
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='has-'] > * {
|
||||
margin-right: $size__spacing-unit;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.alignfull,
|
||||
&.alignfull .wp-block-column {
|
||||
padding-left: calc(2 * #{$size__spacing-unit});
|
||||
padding-right: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//! Latest Comments
|
||||
.wp-block-latest-comments {
|
||||
|
||||
padding-left: 0;
|
||||
|
||||
.wp-block-latest-comments__comment-meta {
|
||||
font-family: $font__heading;
|
||||
font-weight: bold;
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment,
|
||||
.wp-block-latest-comments__comment-date,
|
||||
.wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
&.has-avatars {
|
||||
|
||||
}
|
||||
|
||||
&.has-dates {
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-excerpts {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//! Font Sizes
|
||||
.has-small-font-size {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
|
||||
.has-normal-font-size {
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
.has-large-font-size {
|
||||
font-size: $font__size-lg;
|
||||
}
|
||||
|
||||
.has-huge-font-size {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
|
||||
//! Custom background colors
|
||||
.has-primary-background-color,
|
||||
.has-secondary-background-color,
|
||||
.has-dark-gray-background-color,
|
||||
.has-light-gray-background-color {
|
||||
|
||||
// Use white text against these backgrounds by default.
|
||||
color: $color__background-body;
|
||||
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
a {
|
||||
color: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
.has-white-background-color {
|
||||
color: $color__text-main;
|
||||
|
||||
// Use dark gray text against this background by default.
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
a {
|
||||
color: $color__text-main;
|
||||
}
|
||||
}
|
||||
|
||||
.has-primary-background-color,
|
||||
.wp-block-pullquote.is-style-solid-color.has-primary-background-color {
|
||||
background-color: $color__link;
|
||||
}
|
||||
|
||||
.has-secondary-background-color,
|
||||
.wp-block-pullquote.is-style-solid-color.has-secondary-background-color {
|
||||
background-color: $color__border-link-hover;
|
||||
}
|
||||
|
||||
.has-dark-gray-background-color,
|
||||
.wp-block-pullquote.is-style-solid-color.has-dark-gray-background-color {
|
||||
background-color: $color__text-main;
|
||||
}
|
||||
|
||||
.has-light-gray-background-color,
|
||||
.wp-block-pullquote.is-style-solid-color.has-light-gray-background-color {
|
||||
background-color: $color__text-light;
|
||||
}
|
||||
|
||||
.has-white-background-color,
|
||||
.wp-block-pullquote.is-style-solid-color.has-white-background-color {
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
//! Custom foreground colors
|
||||
.has-primary-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-primary-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-primary-color p {
|
||||
color: $color__link;
|
||||
}
|
||||
|
||||
.has-secondary-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-secondary-color p {
|
||||
color: $color__border-link-hover;
|
||||
}
|
||||
|
||||
.has-dark-gray-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-dark-gray-color p {
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
.has-light-gray-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-light-gray-color p {
|
||||
color: $color__text-light;
|
||||
}
|
||||
|
||||
.has-white-color,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-white-color {
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
92
elegant-business/sass/elements/_elements.scss
Normal file
92
elegant-business/sass/elements/_elements.scss
Normal file
|
@ -0,0 +1,92 @@
|
|||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
background-color: $color__background_selection;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: $color__background_selection;
|
||||
}
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: $color__background-body;
|
||||
}
|
||||
|
||||
a {
|
||||
@include link-transition;
|
||||
color: $color__link;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active {
|
||||
color: $color__link-hover;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: thin;
|
||||
outline-style: dotted;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
clear: both;
|
||||
margin: $size__spacing-unit 0;
|
||||
}
|
||||
|
||||
h1:not(.site-title),
|
||||
h2 {
|
||||
@include post-section-dash;
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: $color__text-light;
|
||||
border: 0;
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
@import "lists";
|
||||
|
||||
img {
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 2px solid $color__link;
|
||||
margin-left: 0;
|
||||
padding: 0 0 0 $size__spacing-unit;
|
||||
|
||||
> p {
|
||||
margin: 0 0 $size__spacing-unit;
|
||||
}
|
||||
|
||||
cite {
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
@import "tables";
|
33
elegant-business/sass/elements/_lists.scss
Normal file
33
elegant-business/sass/elements/_lists.scss
Normal file
|
@ -0,0 +1,33 @@
|
|||
ul,
|
||||
ol {
|
||||
padding-left: ( 1 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
|
||||
ul {
|
||||
list-style-type: circle;
|
||||
}
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
li {
|
||||
line-height: $font__line-height-body;
|
||||
}
|
||||
|
||||
li > ul,
|
||||
li > ol {
|
||||
padding-left: ( 2 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0 $size__spacing-unit $size__spacing-unit;
|
||||
}
|
13
elegant-business/sass/elements/_tables.scss
Normal file
13
elegant-business/sass/elements/_tables.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
table {
|
||||
margin: 0 0 $size__spacing-unit;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-family: $font__heading;
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0.5em;
|
||||
border: 1px solid $color__text-light;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
37
elegant-business/sass/forms/_buttons.scss
Normal file
37
elegant-business/sass/forms/_buttons.scss
Normal file
|
@ -0,0 +1,37 @@
|
|||
.button,
|
||||
button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
|
||||
@include button-transition;
|
||||
background: $color__background-button;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
color: $color__background-body;
|
||||
font-family: $font__ui;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: 700;
|
||||
line-height: $font__line-height-heading;
|
||||
outline: none;
|
||||
padding: ( $size__spacing-unit * .76 ) $size__spacing-unit;
|
||||
text-decoration: none;
|
||||
vertical-align: bottom;
|
||||
|
||||
&:hover {
|
||||
background: $color__background-button-hover;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:visited {
|
||||
color: $color__background-body;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background: $color__background-button-hover;
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
58
elegant-business/sass/forms/_fields.scss
Normal file
58
elegant-business/sass/forms/_fields.scss
Normal file
|
@ -0,0 +1,58 @@
|
|||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
input[type="search"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
input[type="range"],
|
||||
input[type="date"],
|
||||
input[type="month"],
|
||||
input[type="week"],
|
||||
input[type="time"],
|
||||
input[type="datetime"],
|
||||
input[type="datetime-local"],
|
||||
input[type="color"],
|
||||
textarea {
|
||||
-webkit-backface-visibility: hidden;
|
||||
background: $color__background-input;
|
||||
border: solid 1px #CCC;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
padding: #{.36 * $size__spacing-unit} #{.66 * $size__spacing-unit};
|
||||
-webkit-appearance: none;
|
||||
outline-offset: 0;
|
||||
border-radius: 3px;
|
||||
|
||||
&:focus {
|
||||
border-color: $color__link;
|
||||
outline: thin solid rgba( $color__link, 0.15 );
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="search"] {
|
||||
&::-webkit-search-decoration {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
|
||||
}
|
||||
|
||||
textarea {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
form {
|
||||
|
||||
p {
|
||||
margin: $size__spacing-unit 0;
|
||||
}
|
||||
|
||||
}
|
3
elegant-business/sass/forms/_forms.scss
Normal file
3
elegant-business/sass/forms/_forms.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
@import "buttons";
|
||||
|
||||
@import "fields";
|
11
elegant-business/sass/layout/_layout.scss
Normal file
11
elegant-business/sass/layout/_layout.scss
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
/** === Layout === */
|
||||
|
||||
#page {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.site-content {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
32
elegant-business/sass/media/_captions.scss
Normal file
32
elegant-business/sass/media/_captions.scss
Normal file
|
@ -0,0 +1,32 @@
|
|||
.wp-caption {
|
||||
margin-bottom: calc(1.5 * #{$size__spacing-unit});
|
||||
|
||||
&.aligncenter {
|
||||
|
||||
@include media(tablet) {
|
||||
position: relative;
|
||||
left: calc( #{$size__site-tablet-content} / 2 );
|
||||
transform: translateX( -50% );
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
left: calc( #{$size__site-desktop-content} / 2 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-caption img[class*="wp-image-"] {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.wp-caption-text {
|
||||
color: $color__text-light;
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
text-align: center;
|
||||
}
|
52
elegant-business/sass/media/_galleries.scss
Normal file
52
elegant-business/sass/media/_galleries.scss
Normal file
|
@ -0,0 +1,52 @@
|
|||
.gallery {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: center;
|
||||
margin-bottom: calc(1.5 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
display: inline-block;
|
||||
margin-right: 16px;
|
||||
margin-bottom: 16px;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
|
||||
// Loops to enumerate the classes for gallery columns.
|
||||
@for $i from 2 through 9 {
|
||||
.gallery-columns-#{$i} & {
|
||||
max-width: calc((100% - 16px * #{ $i - 1 }) / #{ $i });
|
||||
|
||||
&:nth-of-type(#{$i}n+#{$i}) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.gallery-caption {
|
||||
display: block;
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
}
|
||||
|
||||
.gallery-item > div > a {
|
||||
display: block;
|
||||
line-height: 0;
|
||||
|
||||
// Accessibility
|
||||
box-shadow: 0 0 0 0 transparent;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 2px rgba( $color__link, 1 );
|
||||
}
|
||||
}
|
||||
|
41
elegant-business/sass/media/_media.scss
Normal file
41
elegant-business/sass/media/_media.scss
Normal file
|
@ -0,0 +1,41 @@
|
|||
.page-content .wp-smiley,
|
||||
.entry-content .wp-smiley,
|
||||
.comment-content .wp-smiley {
|
||||
border: none;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
embed,
|
||||
iframe,
|
||||
object {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.custom-logo-link {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
height: calc(2.25 * #{$size__spacing-unit});
|
||||
min-height: inherit;
|
||||
width: calc(2.25 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
svg {
|
||||
transition: fill $icon_transition ease-in-out;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Captions
|
||||
--------------------------------------------------------------*/
|
||||
@import "captions";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Galleries
|
||||
--------------------------------------------------------------*/
|
||||
@import "galleries";
|
206
elegant-business/sass/mixins/_mixins-master.scss
Normal file
206
elegant-business/sass/mixins/_mixins-master.scss
Normal file
|
@ -0,0 +1,206 @@
|
|||
// Rem output with px fallback
|
||||
@mixin font-size($sizeValue: 1) {
|
||||
font-size: ($sizeValue * 16) * 1px;
|
||||
font-size: $sizeValue * 1rem;
|
||||
}
|
||||
|
||||
// Center block
|
||||
@mixin center-block {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
// Clearfix
|
||||
@mixin clearfix() {
|
||||
content: "";
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
// Clear after (not all clearfix need this also)
|
||||
@mixin clearfix-after() {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
// Column width with margin
|
||||
@mixin column-width($numberColumns: 3) {
|
||||
width: map-get($columns, $numberColumns) - (($columns__margin * ($numberColumns - 1)) / $numberColumns);
|
||||
}
|
||||
|
||||
@mixin filter-duotone {
|
||||
|
||||
&:before {
|
||||
background: $color__link;
|
||||
mix-blend-mode: screen;
|
||||
opacity: 0.1;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
&:after {
|
||||
background: $color__link;
|
||||
mix-blend-mode: multiply;
|
||||
opacity: .8;
|
||||
z-index: 3;
|
||||
|
||||
/* Browsers supporting mix-blend-mode don't need opacity < 1 */
|
||||
@supports (mix-blend-mode: multiply) {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin filter-grayscale {
|
||||
|
||||
position: relative;
|
||||
filter: grayscale(100%);
|
||||
z-index: 1;
|
||||
|
||||
&:after {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin post-section-dash {
|
||||
/*
|
||||
&:before {
|
||||
background: $color__text-light;
|
||||
content: "\020";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: $size__spacing-unit 0;
|
||||
width: 1em;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||
* since its edges can look jagged due to lack of antialiasing. In this case, we are several
|
||||
* layers of box-shadow to add the border visually, which will render the border smoother. */
|
||||
|
||||
@mixin box-shadow( $size ) {
|
||||
box-shadow:
|
||||
0 0 0 $size $color__text-light inset, // Original border.
|
||||
0 0 0 ($size + 1px) $color__text-light inset, // Antialiasing, inner edge.
|
||||
0 0 1px 0 rgba( $color__text-light, 0.7 ); // Antialiasing, outer edge.
|
||||
}
|
||||
|
||||
/* Fallback for non-latin fonts */
|
||||
|
||||
@mixin non-latin-fonts( $wrapper_classname: '.site' ) {
|
||||
|
||||
/* Arabic */
|
||||
html[lang="ar"] #{$wrapper_classname} *,
|
||||
html[lang="ary"] #{$wrapper_classname} *,
|
||||
html[lang="azb"] #{$wrapper_classname} *,
|
||||
html[lang="ckb"] #{$wrapper_classname} *,
|
||||
html[lang="fa-IR"] #{$wrapper_classname} *,
|
||||
html[lang="haz"] #{$wrapper_classname} *,
|
||||
html[lang="ps"] #{$wrapper_classname} * {
|
||||
font-family: Tahoma, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Cyrillic */
|
||||
html[lang="be"] #{$wrapper_classname} *,
|
||||
html[lang="bg-BG"] #{$wrapper_classname} *,
|
||||
html[lang="kk"] #{$wrapper_classname} *,
|
||||
html[lang="mk-MK"] #{$wrapper_classname} *,
|
||||
html[lang="mn"] #{$wrapper_classname} *,
|
||||
html[lang="ru-RU"] #{$wrapper_classname} *,
|
||||
html[lang="sah"] #{$wrapper_classname} *,
|
||||
html[lang="sr-RS"] #{$wrapper_classname} *,
|
||||
html[lang="tt-RU"] #{$wrapper_classname} *,
|
||||
html[lang="uk"] #{$wrapper_classname} * {
|
||||
font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Hong Kong) */
|
||||
html[lang="zh-HK"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Taiwan) */
|
||||
html[lang="zh-TW"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (China) */
|
||||
html[lang="zh-CN"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Devanagari */
|
||||
html[lang="bn-BD"] #{$wrapper_classname} *,
|
||||
html[lang="hi-IN"] #{$wrapper_classname} *,
|
||||
html[lang="mr"] #{$wrapper_classname} *,
|
||||
html[lang="ne-NP"] #{$wrapper_classname} * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Greek */
|
||||
html[lang="el"] #{$wrapper_classname} * {
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Gujarati */
|
||||
html[lang="gu"] #{$wrapper_classname} * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Hebrew */
|
||||
html[lang="he-IL"] #{$wrapper_classname} * {
|
||||
font-family: 'Arial Hebrew', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Japanese */
|
||||
html[lang="ja"] #{$wrapper_classname} * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif !important;
|
||||
}
|
||||
|
||||
/* Korean */
|
||||
html[lang="ko-KR"] #{$wrapper_classname} * {
|
||||
font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Nanum Gothic', Dotum, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Thai */
|
||||
html[lang="th"] #{$wrapper_classname} * {
|
||||
font-family: 'Sukhumvit Set', 'Helvetica Neue', helvetica, arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Vietnamese */
|
||||
html[lang="vi"] #{$wrapper_classname} * {
|
||||
font-family: 'Libre Franklin', sans-serif !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Calculates maximum width for post content */
|
||||
@mixin postContentMaxWidth() {
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested sub-menu padding: 10 levels deep */
|
||||
@mixin nestedSubMenuPadding() {
|
||||
|
||||
ul {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
ul > li > a::before {
|
||||
font-family: $font__body;
|
||||
font-weight: normal;
|
||||
content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
|
||||
counter-increment: submenu
|
||||
}
|
||||
}
|
||||
|
||||
@import "utilities";
|
51
elegant-business/sass/mixins/_utilities.scss
Normal file
51
elegant-business/sass/mixins/_utilities.scss
Normal file
|
@ -0,0 +1,51 @@
|
|||
|
||||
@mixin media( $res ) {
|
||||
@if mobile == $res {
|
||||
@media only screen and (min-width: $mobile_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if tablet == $res {
|
||||
@media only screen and (min-width: $tablet_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if desktop == $res {
|
||||
@media only screen and (min-width: $desktop_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@if wide == $res {
|
||||
@media only screen and (min-width: $wide_width) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin link-transition( $attr: color ) {
|
||||
transition: $attr $link_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin button-transition() {
|
||||
transition: background $button_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin button-all-transition() {
|
||||
transition: all $button_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin background-transition() {
|
||||
transition: background $background_transition ease-in-out;
|
||||
}
|
||||
|
||||
@mixin selection {
|
||||
::-moz-selection {
|
||||
@content;
|
||||
}
|
||||
::selection {
|
||||
@content;
|
||||
}
|
||||
}
|
38
elegant-business/sass/modules/_accessibility.scss
Normal file
38
elegant-business/sass/modules/_accessibility.scss
Normal file
|
@ -0,0 +1,38 @@
|
|||
/* Text meant only for screen readers. */
|
||||
.screen-reader-text {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute !important;
|
||||
width: 1px;
|
||||
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
|
||||
|
||||
&:focus {
|
||||
background-color: $color__background-screen;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
clip-path: none;
|
||||
color: $color__text-screen;
|
||||
display: block;
|
||||
@include font-size(0.875);
|
||||
font-weight: bold;
|
||||
height: auto;
|
||||
left: 5px;
|
||||
line-height: normal;
|
||||
padding: 15px 23px 14px;
|
||||
text-decoration: none;
|
||||
top: 5px;
|
||||
width: auto;
|
||||
z-index: 100000; /* Above WP toolbar. */
|
||||
}
|
||||
}
|
||||
|
||||
/* Do not show the outline on the skip link target. */
|
||||
#content[tabindex="-1"]:focus {
|
||||
outline: 0;
|
||||
}
|
28
elegant-business/sass/modules/_alignments.scss
Normal file
28
elegant-business/sass/modules/_alignments.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
.alignleft {
|
||||
/*rtl:ignore*/
|
||||
float: left;
|
||||
/*rtl:ignore*/
|
||||
margin-right: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
/*rtl:ignore*/
|
||||
margin-right: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.alignright {
|
||||
/*rtl:ignore*/
|
||||
float: right;
|
||||
/*rtl:ignore*/
|
||||
margin-left: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.aligncenter {
|
||||
clear: both;
|
||||
@include center-block;
|
||||
}
|
23
elegant-business/sass/modules/_clearings.scss
Normal file
23
elegant-business/sass/modules/_clearings.scss
Normal file
|
@ -0,0 +1,23 @@
|
|||
.clear:before,
|
||||
.clear:after,
|
||||
.entry-content:before,
|
||||
.entry-content:after,
|
||||
.comment-content:before,
|
||||
.comment-content:after,
|
||||
.site-header:before,
|
||||
.site-header:after,
|
||||
.site-content:before,
|
||||
.site-content:after,
|
||||
.site-footer:before,
|
||||
.site-footer:after {
|
||||
@include clearfix;
|
||||
}
|
||||
|
||||
.clear:after,
|
||||
.entry-content:after,
|
||||
.comment-content:after,
|
||||
.site-header:after,
|
||||
.site-content:after,
|
||||
.site-footer:after {
|
||||
@include clearfix-after;
|
||||
}
|
21
elegant-business/sass/navigation/_links.scss
Normal file
21
elegant-business/sass/navigation/_links.scss
Normal file
|
@ -0,0 +1,21 @@
|
|||
a {
|
||||
|
||||
@include link-transition;
|
||||
color: $color__link;
|
||||
|
||||
&:visited {
|
||||
color: $color__link-visited;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $color__link-hover;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: thin dotted;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/** === Footer menu === */
|
||||
|
||||
.footer-navigation {
|
||||
|
||||
display: inline;
|
||||
|
||||
& > div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.footer-menu {
|
||||
|
||||
display: inline;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
497
elegant-business/sass/navigation/_menu-main-navigation.scss
Normal file
497
elegant-business/sass/navigation/_menu-main-navigation.scss
Normal file
|
@ -0,0 +1,497 @@
|
|||
/** === Main menu === */
|
||||
|
||||
.main-navigation {
|
||||
|
||||
display: block;
|
||||
margin-top: $size__spacing-unit;
|
||||
|
||||
body.page & {
|
||||
display: block;
|
||||
}
|
||||
|
||||
> div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Un-style buttons */
|
||||
button {
|
||||
display: inline-block;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: $font__heading;
|
||||
font-weight: 700;
|
||||
line-height: $font__line-height-heading;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
transition: background 250ms ease-in-out,
|
||||
transform 150ms ease;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 1px solid transparent;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
}
|
||||
|
||||
.main-menu {
|
||||
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
> li {
|
||||
|
||||
color: $color__link;
|
||||
display: inline;
|
||||
position: relative;
|
||||
|
||||
> a {
|
||||
|
||||
font-weight: 700;
|
||||
color: $color__link;
|
||||
margin-right: #{0.5 * $size__spacing-unit};
|
||||
|
||||
+ svg {
|
||||
margin-right: #{0.5 * $size__spacing-unit};
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:hover + svg {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
|
||||
&.menu-item-has-children {
|
||||
|
||||
display: inline-block;
|
||||
position: inherit;
|
||||
|
||||
@include media(tablet) {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
> a {
|
||||
margin-right: #{0.125 * $size__spacing-unit};
|
||||
}
|
||||
|
||||
& > a,
|
||||
.menu-item-has-children > a {
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
|
||||
display: inline-block;
|
||||
margin-right: #{0.25 * $size__spacing-unit};
|
||||
|
||||
/* Priority+ Menu */
|
||||
&.main-menu-more-toggle {
|
||||
|
||||
position: relative;
|
||||
height: 24px;
|
||||
line-height: $font__line-height-heading;
|
||||
width: 24px;
|
||||
padding: 0;
|
||||
margin-left: #{0.5 * $size__spacing-unit};
|
||||
|
||||
svg {
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
top: #{-0.125 * $size__spacing-unit};
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-customizer-unloading &,
|
||||
&.is-empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
position: relative;
|
||||
top: 0.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child > a,
|
||||
&:last-child.menu-item-has-children .submenu-expand {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
|
||||
background-color: $color__link;
|
||||
color: $color__background-body;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
text-align: left;
|
||||
left: -9999px;
|
||||
z-index: 99999;
|
||||
|
||||
@include media(tablet) {
|
||||
width: auto;
|
||||
min-width: -moz-max-content;
|
||||
min-width: -webkit-max-content;
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
> li {
|
||||
|
||||
display: block;
|
||||
float: none;
|
||||
position: relative;
|
||||
|
||||
&.menu-item-has-children {
|
||||
|
||||
.submenu-expand {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
width: calc( 24px + #{$size__spacing-unit} );
|
||||
right: 0;
|
||||
top: calc( .125 * #{$size__spacing-unit} );
|
||||
bottom: 0;
|
||||
color: white;
|
||||
line-height: 1;
|
||||
padding: calc( .5 * #{$size__spacing-unit} );
|
||||
|
||||
svg {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.menu-item-has-children > a {
|
||||
|
||||
&:after {
|
||||
content: "\203a";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> a,
|
||||
> .menu-item-link-return {
|
||||
|
||||
color: $color__background-body;
|
||||
display: block;
|
||||
line-height: $font__line-height-heading;
|
||||
padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: $color__link-hover;
|
||||
|
||||
&:after {
|
||||
background: $color__link-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> a:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.mobile-parent-nav-menu-item {
|
||||
|
||||
display: none;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: normal;
|
||||
|
||||
svg {
|
||||
position: relative;
|
||||
top: 0.2rem;
|
||||
margin-right: calc( .25 * #{$size__spacing-unit} );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sub-menu styles
|
||||
*
|
||||
* :focus-within needs its own selector so other similar
|
||||
* selectors don’t get ignored if a browser doesn’t recognize it
|
||||
*/
|
||||
.main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu {
|
||||
|
||||
display: block;
|
||||
left: 0;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: auto;
|
||||
height: auto;
|
||||
min-width: -moz-max-content;
|
||||
min-width: -webkit-max-content;
|
||||
min-width: max-content;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&.hidden-links {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: table;
|
||||
position: absolute;
|
||||
|
||||
@include media(tablet) {
|
||||
right: 0;
|
||||
left: auto;
|
||||
display: block;
|
||||
width: max-content;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
display: block;
|
||||
margin-top: inherit;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
opacity: 1;
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
float: none;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested sub-menu dashes */
|
||||
.sub-menu {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
.sub-menu > li > a::before {
|
||||
font-family: $font__body;
|
||||
font-weight: normal;
|
||||
content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
|
||||
counter-increment: submenu
|
||||
}
|
||||
}
|
||||
|
||||
.main-menu .menu-item-has-children:not(.off-canvas):hover > .sub-menu,
|
||||
.main-menu .menu-item-has-children:not(.off-canvas):focus > .sub-menu,
|
||||
.main-menu .menu-item-has-children.is-focused:not(.off-canvas) > .sub-menu {
|
||||
|
||||
display: block;
|
||||
left: 0;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
display: block;
|
||||
float: none;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: auto;
|
||||
height: auto;
|
||||
min-width: -moz-max-content;
|
||||
min-width: -webkit-max-content;
|
||||
min-width: max-content;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&.hidden-links {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
display: table;
|
||||
position: absolute;
|
||||
|
||||
@include media(tablet) {
|
||||
right: 0;
|
||||
left: auto;
|
||||
display: table;
|
||||
width: max-content;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu-expand {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
display: block;
|
||||
margin-top: inherit;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
opacity: 1;
|
||||
|
||||
/* Non-mobile position */
|
||||
@include media(tablet) {
|
||||
float: none;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested sub-menu dashes */
|
||||
.sub-menu {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
.sub-menu > li > a::before {
|
||||
font-family: $font__body;
|
||||
font-weight: normal;
|
||||
content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
|
||||
counter-increment: submenu
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fade-in animation for top-level submenus
|
||||
*/
|
||||
.main-menu > .menu-item-has-children:not(.off-canvas):hover > .sub-menu {
|
||||
animation: fade_in 0.1s forwards;
|
||||
}
|
||||
|
||||
/**
|
||||
* Off-canvas touch device styles
|
||||
*/
|
||||
.main-menu .menu-item-has-children.off-canvas .sub-menu {
|
||||
|
||||
.submenu-expand .svg-icon {
|
||||
transform: rotate(270deg);
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
li:hover,
|
||||
li:focus,
|
||||
li > a:hover,
|
||||
li > a:focus {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
> li > a,
|
||||
> li > .menu-item-link-return {
|
||||
white-space: inherit;
|
||||
}
|
||||
|
||||
&.expanded-true {
|
||||
|
||||
display: table;
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
padding-left: 0;
|
||||
|
||||
/* Mobile position */
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
position: fixed;
|
||||
z-index: 100000; /* Make sure appears above mobile admin bar */
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
max-width: 100vw;
|
||||
transform: translateX(+100%);
|
||||
animation: slide_in_right 0.3s forwards;
|
||||
|
||||
> .mobile-parent-nav-menu-item {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Prevent menu from being blocked by admin bar */
|
||||
.admin-bar & {
|
||||
top: 46px;
|
||||
height: calc( 100vh - 46px );
|
||||
|
||||
.sub-menu.expanded-true {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* WP core breakpoint */
|
||||
@media only screen and ( min-width: 782px ) {
|
||||
top: 32px;
|
||||
height: calc( 100vh - 32px );
|
||||
|
||||
.sub-menu.expanded-true {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hide duplicate menu-more-link when re-loading a menu in the customizer
|
||||
.main-menu-more {
|
||||
&:nth-child(n+3) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Menu animation */
|
||||
|
||||
@keyframes slide_in_right {
|
||||
100% {
|
||||
transform: translateX(0%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fade_in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
/* Social menu */
|
||||
|
||||
.social-navigation {
|
||||
margin-top: calc(#{$size__spacing-unit} / 2 );
|
||||
text-align: center;
|
||||
|
||||
ul.social-links-menu {
|
||||
@include clearfix;
|
||||
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
vertical-align: -webkit-baseline-middle;
|
||||
list-style: none;
|
||||
|
||||
&:nth-child(n+2) {
|
||||
margin-left: 0.1em;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 1px solid transparent;
|
||||
display: block;
|
||||
color: $color__text-main;
|
||||
margin-bottom: -1px;
|
||||
transition: opacity $link_transition ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $color__text-main;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color: $color__text-main;
|
||||
opacity: 1;
|
||||
border-bottom: 1px solid $color__text-main;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
|
||||
&#ui-icon-link {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-title + .social-navigation,
|
||||
.site-description + .social-navigation {
|
||||
|
||||
@include media(tablet) {
|
||||
margin-top: calc(#{$size__spacing-unit} / 5 );
|
||||
}
|
||||
}
|
16
elegant-business/sass/navigation/_navigation.scss
Normal file
16
elegant-business/sass/navigation/_navigation.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*--------------------------------------------------------------
|
||||
## Links
|
||||
--------------------------------------------------------------*/
|
||||
@import "links";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Menus
|
||||
--------------------------------------------------------------*/
|
||||
@import "menu-main-navigation";
|
||||
@import "menu-social-navigation";
|
||||
@import "menu-footer-navigation";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Next / Previous
|
||||
--------------------------------------------------------------*/
|
||||
@import "next-previous";
|
202
elegant-business/sass/navigation/_next-previous.scss
Normal file
202
elegant-business/sass/navigation/_next-previous.scss
Normal file
|
@ -0,0 +1,202 @@
|
|||
/* Next/Previous navigation */
|
||||
|
||||
// Singular navigation
|
||||
.post-navigation {
|
||||
|
||||
margin: calc(3 * 1rem) 0;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * 1rem) auto;
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
|
||||
margin: 0 $size__spacing-unit;
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
flex-direction: row;
|
||||
margin: 0 auto;
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
|
||||
a {
|
||||
.meta-nav {
|
||||
color: $color__text-light;
|
||||
user-select: none;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
display: none;
|
||||
content: "—";
|
||||
width: 2em;
|
||||
color: $color__text-light;
|
||||
height: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
.post-title {
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-previous,
|
||||
.nav-next {
|
||||
|
||||
@include media(desktop) {
|
||||
min-width: calc(50% - 2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.nav-previous {
|
||||
order: 2;
|
||||
|
||||
@include media(desktop) {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
+ .nav-next {
|
||||
margin-bottom: $size__spacing-unit;
|
||||
}
|
||||
|
||||
.meta-nav {
|
||||
&:before {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-next {
|
||||
order: 1;
|
||||
|
||||
@include media(desktop) {
|
||||
order: 2;
|
||||
padding-left: $size__spacing-unit;
|
||||
}
|
||||
|
||||
.meta-nav {
|
||||
&:after {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Index/archive navigation
|
||||
.pagination {
|
||||
|
||||
.nav-links {
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
padding: 0 calc(.5 * #{$size__spacing-unit});
|
||||
|
||||
|
||||
& > * {
|
||||
padding: calc(.5 * #{$size__spacing-unit});
|
||||
|
||||
&.dots,
|
||||
&.prev {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&.dots,
|
||||
&.next {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a:focus {
|
||||
text-decoration: underline;
|
||||
outline-offset: -1px;
|
||||
|
||||
&.prev,
|
||||
&.next {
|
||||
text-decoration: none;
|
||||
|
||||
.nav-prev-text,
|
||||
.nav-next-text {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-next-text,
|
||||
.nav-prev-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
margin-left: $size__site-margins;
|
||||
margin-right: $size__site-margins;
|
||||
padding: 0;
|
||||
|
||||
.prev,
|
||||
.next {
|
||||
|
||||
& > * {
|
||||
display: inline-block;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
& > * {
|
||||
padding: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Comments navigation
|
||||
.comment-navigation {
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.nav-previous,
|
||||
.nav-next {
|
||||
min-width: 50%;
|
||||
width: 100%;
|
||||
font-family: $font__heading;
|
||||
font-weight: bold;
|
||||
|
||||
.secondary-text {
|
||||
display: none;
|
||||
|
||||
@include media(tablet) {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
margin: 0 -0.35em;
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-next {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
27
elegant-business/sass/site/_site.scss
Normal file
27
elegant-business/sass/site/_site.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
/*--------------------------------------------------------------
|
||||
## Header
|
||||
--------------------------------------------------------------*/
|
||||
@import "header/site-header";
|
||||
@import "header/site-featured-image";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Posts and pages
|
||||
--------------------------------------------------------------*/
|
||||
@import "primary/posts-and-pages";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Comments
|
||||
--------------------------------------------------------------*/
|
||||
@import "primary/comments";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Archives
|
||||
--------------------------------------------------------------*/
|
||||
@import "primary/archives";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Footer
|
||||
--------------------------------------------------------------*/
|
||||
@import "footer/site-footer";
|
||||
|
53
elegant-business/sass/site/footer/_site-footer.scss
Normal file
53
elegant-business/sass/site/footer/_site-footer.scss
Normal file
|
@ -0,0 +1,53 @@
|
|||
/* Site footer */
|
||||
|
||||
#colophon {
|
||||
|
||||
.widget-area {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) auto;
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: calc(6 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
||||
.widget-column {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.widget {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.site-info {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
|
||||
}
|
||||
}
|
||||
|
||||
.site-info {
|
||||
color: $color__text-light;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: $color__link;
|
||||
}
|
||||
}
|
||||
|
||||
.imprint,
|
||||
.privacy-policy-link {
|
||||
margin-right: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
271
elegant-business/sass/site/header/_site-featured-image.scss
Normal file
271
elegant-business/sass/site/header/_site-featured-image.scss
Normal file
|
@ -0,0 +1,271 @@
|
|||
// Featured image styles
|
||||
|
||||
.site-header.featured-image {
|
||||
|
||||
/* Hide overflow for overflowing featured image */
|
||||
overflow: hidden;
|
||||
|
||||
/* Need relative positioning to properly align layers. */
|
||||
position: relative;
|
||||
|
||||
/* Add text shadow to text, to increase readability. */
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
|
||||
|
||||
/* Set white text color when featured image is set. */
|
||||
.site-branding .site-title,
|
||||
.site-branding .site-description,
|
||||
.main-navigation a:after,
|
||||
.main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.main-navigation li,
|
||||
.social-navigation li,
|
||||
.entry-meta,
|
||||
.entry-title {
|
||||
color: $color__background-body;
|
||||
}
|
||||
|
||||
.main-navigation a,
|
||||
.main-navigation a + svg,
|
||||
.social-navigation a,
|
||||
.site-title a,
|
||||
.site-featured-image a {
|
||||
color: $color__background-body;
|
||||
transition: opacity $link_transition ease-in-out;
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:hover + svg,
|
||||
&:active + svg {
|
||||
color: $color__background-body;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:focus + svg {
|
||||
color: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
/* add focus state to social media icons */
|
||||
.social-navigation a {
|
||||
&:focus {
|
||||
color: $color__background-body;
|
||||
opacity: 1;
|
||||
border-bottom: 1px solid $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
.social-navigation svg,
|
||||
.site-featured-image svg {
|
||||
/* Use -webkit- only if supporting: Chrome < 54, iOS < 9.3, Android < 4.4.4 */
|
||||
-webkit-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35) );
|
||||
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35) );
|
||||
}
|
||||
|
||||
/* Entry header */
|
||||
.site-featured-image {
|
||||
|
||||
/* First layer: grayscale. */
|
||||
.post-thumbnail img {
|
||||
height: auto;
|
||||
left: 50%;
|
||||
max-width: 1000%;
|
||||
min-height: 100%;
|
||||
min-width: 100vw;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
width: auto;
|
||||
z-index: 1;
|
||||
|
||||
@supports ( object-fit: cover ) {
|
||||
height: 100%;
|
||||
left: 0;
|
||||
object-fit: cover;
|
||||
top: 0;
|
||||
transform: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* When image filters are active, make it grayscale to colorize it blue. */
|
||||
.image-filters-enabled & {
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
}
|
||||
|
||||
.entry-header {
|
||||
|
||||
margin-top: calc( 4 * #{$size__spacing-unit});
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
||||
@include media (tablet) {
|
||||
|
||||
margin-left: $size__site-margins;
|
||||
margin-right: $size__site-margins;
|
||||
}
|
||||
|
||||
.entry-title {
|
||||
text-align: center;
|
||||
|
||||
&:before {
|
||||
background: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
/* Entry meta */
|
||||
|
||||
.entry-meta {
|
||||
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
|
||||
> span {
|
||||
|
||||
margin-right: $size__spacing-unit;
|
||||
display: inline-block;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
@include link-transition;
|
||||
color: currentColor;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.discussion-avatar-list {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-discussion {
|
||||
|
||||
@include media (tablet) {
|
||||
|
||||
.entry-meta {
|
||||
display: flex;
|
||||
position: relative;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Make sure important elements are above pseudo elements used for effects. */
|
||||
.site-branding {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.site-featured-image .entry-header {
|
||||
position: relative;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
/* Set up image filter layer positioning */
|
||||
.site-branding-container:after,
|
||||
.site-featured-image:before,
|
||||
.site-featured-image:after,
|
||||
&:after {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
content: "\020";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Background & Effects */
|
||||
/* Shared background settings between pseudo elements. */
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
|
||||
/* The intensity of each blend mode is controlled via layer opacity. */
|
||||
|
||||
/* Second layer: screen. */
|
||||
.image-filters-enabled & .site-featured-image:before {
|
||||
background: $color__link;
|
||||
mix-blend-mode: screen;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
/* Third layer: multiply. */
|
||||
/* When image filters are inactive, a black overlay is added. */
|
||||
.site-featured-image:after {
|
||||
background: #000;
|
||||
mix-blend-mode: multiply;
|
||||
opacity: .7;
|
||||
|
||||
/* When image filters are active, a blue overlay is added. */
|
||||
.image-filters-enabled & {
|
||||
background: $color__link;
|
||||
opacity: .8;
|
||||
z-index: 3;
|
||||
|
||||
/* Browsers supporting mix-blend-mode don't need opacity < 1 */
|
||||
@supports (mix-blend-mode: multiply) {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Fourth layer: overlay. */
|
||||
.image-filters-enabled & .site-branding-container:after {
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
mix-blend-mode: overlay;
|
||||
opacity: 0.5;
|
||||
z-index: 4;
|
||||
|
||||
/* Browsers supporting mix-blend-mode can have a light overlay */
|
||||
@supports (mix-blend-mode: overlay) {
|
||||
background: rgba($color__background-body, 0.35);
|
||||
}
|
||||
}
|
||||
|
||||
/* Fifth layer: readability overlay */
|
||||
&:after {
|
||||
background: #000;
|
||||
/**
|
||||
* Add a transition to the readability overlay, to add a subtle
|
||||
* but smooth effect when resizing the screen.
|
||||
*/
|
||||
transition: opacity 1200ms ease-in-out;
|
||||
opacity: 0.7;
|
||||
z-index: 5;
|
||||
|
||||
/* When image filters are active, a blue overlay is added. */
|
||||
.image-filters-enabled & {
|
||||
background: mix($color__link, black, 12%);
|
||||
opacity: 0.38;
|
||||
|
||||
@include media(tablet) {
|
||||
opacity: 0.18;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
::-moz-selection {
|
||||
background: rgba($color__background-body, 0.17);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba($color__background-body, 0.17);
|
||||
}
|
||||
}
|
102
elegant-business/sass/site/header/_site-header.scss
Normal file
102
elegant-business/sass/site/header/_site-header.scss
Normal file
|
@ -0,0 +1,102 @@
|
|||
// Site header
|
||||
|
||||
.site-header {
|
||||
padding: 1.5em 1em 1em;
|
||||
|
||||
&.featured-image {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
min-height: 90vh;
|
||||
|
||||
.site-branding-container {
|
||||
margin-bottom: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0;
|
||||
padding: 3rem 0 2rem;
|
||||
|
||||
&.featured-image {
|
||||
min-height: 100vh;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Site branding
|
||||
|
||||
.site-branding {
|
||||
|
||||
color: $color__text-light;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0 $size__site-margins;
|
||||
}
|
||||
}
|
||||
|
||||
// Site logo
|
||||
|
||||
.site-logo {
|
||||
|
||||
position: relative;
|
||||
z-index: 999;
|
||||
margin-bottom: calc(.66 * #{$size__spacing-unit});
|
||||
|
||||
.custom-logo-link {
|
||||
|
||||
.custom-logo {
|
||||
max-height: 64px;
|
||||
min-height: inherit;
|
||||
vertical-align: top;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Site title
|
||||
|
||||
.site-title {
|
||||
margin: auto;
|
||||
display: inline;
|
||||
color: $color__text-main;
|
||||
|
||||
a {
|
||||
color: $color__text-main;
|
||||
|
||||
&:link,
|
||||
&:visited {
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__text-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.featured-image & {
|
||||
margin: 0;
|
||||
|
||||
@include media(tablet) {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
/* When there is no description set, make sure navigation appears below title. */
|
||||
+ .main-navigation {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
// Site description
|
||||
|
||||
.site-description {
|
||||
color: $color__text-main;
|
||||
display: block;
|
||||
font-size: $font__size-xs;
|
||||
font-weight: normal;
|
||||
margin: 8px 0 0;
|
||||
}
|
70
elegant-business/sass/site/primary/_archives.scss
Normal file
70
elegant-business/sass/site/primary/_archives.scss
Normal file
|
@ -0,0 +1,70 @@
|
|||
.archive .page-header,
|
||||
.search .page-header,
|
||||
.error404 .page-header {
|
||||
|
||||
margin: $size__spacing-unit $size__spacing-unit;
|
||||
text-align: center;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0 $size__site-margins;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
|
||||
color: $color__text-light;
|
||||
display: inline;
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-term,
|
||||
.page-description {
|
||||
display: inherit;
|
||||
clear: both;
|
||||
|
||||
&:after {
|
||||
content: ".";
|
||||
font-weight: bold;
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.archive .page-header .page-description {
|
||||
display: block;
|
||||
color: $color__text-main;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.hfeed .entry .entry-header {
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) $size__site-margins calc(#{ $size__spacing-unit } / 2);
|
||||
}
|
||||
}
|
||||
|
||||
/* 404 & Not found */
|
||||
|
||||
.error-404.not-found,
|
||||
.no-results.not-found {
|
||||
|
||||
.page-content {
|
||||
|
||||
margin: calc(3 * #{$size__spacing-unit}) #{$size__spacing-unit};
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) $size__site-margins calc(#{ $size__spacing-unit } / 2);
|
||||
}
|
||||
}
|
||||
|
||||
.search-submit {
|
||||
vertical-align: middle;
|
||||
margin: $size__spacing-unit 0;
|
||||
}
|
||||
|
||||
.search-field {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
400
elegant-business/sass/site/primary/_comments.scss
Normal file
400
elegant-business/sass/site/primary/_comments.scss
Normal file
|
@ -0,0 +1,400 @@
|
|||
.comment-content a {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.bypostauthor {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.comments-area {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
|
||||
@include postContentMaxWidth();
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) auto;
|
||||
}
|
||||
|
||||
& > * {
|
||||
margin-top: calc(2 * #{$size__spacing-unit});
|
||||
margin-bottom: calc(2 * #{$size__spacing-unit});
|
||||
|
||||
@include media(tablet) {
|
||||
margin-top: calc(3 * #{$size__spacing-unit});
|
||||
margin-bottom: calc(3 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
/* Add extra margin when the comments section is located immediately after the
|
||||
* post itself (this happens on pages).
|
||||
*/
|
||||
.entry + & {
|
||||
margin-top: calc(3 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.comments-title-wrap {
|
||||
|
||||
@include media(tablet) {
|
||||
align-items: baseline;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.comments-title {
|
||||
@include post-section-dash;
|
||||
margin: 0;
|
||||
|
||||
@include media(tablet) {
|
||||
flex: 1 0 calc(3 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-meta {
|
||||
@include media(tablet) {
|
||||
flex: 0 0 calc(2 * (100vw / 12));
|
||||
margin-left: #{$size__spacing-unit};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#comment {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#respond {
|
||||
position: relative;
|
||||
|
||||
.comment-user-avatar {
|
||||
margin: $size__spacing-unit 0 -#{$size__spacing-unit};
|
||||
}
|
||||
|
||||
.comment .comment-form {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
> small {
|
||||
display: block;
|
||||
font-size: $font__size_base;
|
||||
position: absolute;
|
||||
left: calc(#{$size__spacing-unit} + 100%);
|
||||
top: calc(-3.5 * #{$size__spacing-unit});
|
||||
width: calc(100vw / 12 );
|
||||
}
|
||||
}
|
||||
|
||||
#comments {
|
||||
|
||||
> .comments-title:last-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-form-flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.comments-title {
|
||||
display: none;
|
||||
margin: 0;
|
||||
order: 1;
|
||||
}
|
||||
|
||||
#respond {
|
||||
order: 2;
|
||||
|
||||
+ .comments-title {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
.children {
|
||||
margin: 0;
|
||||
padding: 0 0 0 $size__spacing-unit;
|
||||
}
|
||||
|
||||
> .comment:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.pingback,
|
||||
.trackback {
|
||||
|
||||
.comment-body {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
font-weight: 500;
|
||||
margin-top: $size__spacing-unit;
|
||||
margin-bottom: $size__spacing-unit;
|
||||
|
||||
a:not(.comment-edit-link) {
|
||||
font-weight: bold;
|
||||
font-size: $font__size-base / (1 * $font__size-ratio);
|
||||
line-height: 1.5;
|
||||
padding-right: #{0.5 * $size__spacing-unit};
|
||||
display: block;
|
||||
}
|
||||
|
||||
.comment-edit-link {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-reply {
|
||||
|
||||
#respond + & {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-reply-link {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.comment {
|
||||
list-style: none;
|
||||
position: relative;
|
||||
|
||||
@include media(tablet) {
|
||||
padding-left: calc(.5 * (#{$size__spacing-unit} + calc(100vw / 12 )));
|
||||
|
||||
&.depth-1,
|
||||
.children {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&.depth-1 {
|
||||
margin-left: calc(3.25 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.comment-body {
|
||||
margin: calc(2 * #{$size__spacing-unit}) 0 0;
|
||||
}
|
||||
|
||||
|
||||
.comment-meta {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.comment-author {
|
||||
|
||||
.avatar {
|
||||
float: left;
|
||||
margin-right: $size__spacing-unit;
|
||||
position: relative;
|
||||
|
||||
@include media(tablet) {
|
||||
float: inherit;
|
||||
margin-right: inherit;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: calc(100% + #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
.fn {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-author-badge {
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
height: 18px;
|
||||
position: absolute;
|
||||
background: lighten( $color__link, 8% );
|
||||
right: calc(100% - #{$size__spacing-unit * 2.5});
|
||||
top: -3px;
|
||||
width: 18px;
|
||||
|
||||
@include media(tablet) {
|
||||
right: calc(100% + #{$size__spacing-unit * .75});
|
||||
}
|
||||
|
||||
svg {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
display: block;
|
||||
fill: white;
|
||||
transform: scale(0.875);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-metadata {
|
||||
|
||||
> a,
|
||||
.comment-edit-link {
|
||||
display: inline;
|
||||
font-weight: 500;
|
||||
color: $color__text-light;
|
||||
vertical-align: baseline;
|
||||
|
||||
time {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
> * {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.edit-link-sep {
|
||||
color: $color__text-light;
|
||||
margin: 0 0.2em;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.edit-link {
|
||||
color: $color__text-light;
|
||||
|
||||
svg {
|
||||
transform: scale(0.8);
|
||||
vertical-align: baseline;
|
||||
margin-right: 0.1em;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-edit-link {
|
||||
position: relative;
|
||||
padding-left: $size__spacing-unit;
|
||||
margin-left: -#{$size__spacing-unit};
|
||||
z-index: 1;
|
||||
|
||||
&:hover {
|
||||
color: $color__link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
|
||||
margin: $size__spacing-unit 0;
|
||||
|
||||
@include media(desktop) {
|
||||
padding-right: $size__spacing-unit;
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-reply-link,
|
||||
#cancel-comment-reply-link {
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-avatar-list {
|
||||
@include clearfix;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
margin: 0 -8px 0 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.comment-user-avatar {
|
||||
|
||||
img {
|
||||
height: calc(1.5 * #{$size__spacing-unit});
|
||||
width: calc(1.5 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-meta {
|
||||
|
||||
.discussion-meta-info {
|
||||
margin: 0;
|
||||
|
||||
.svg-icon {
|
||||
vertical-align: middle;
|
||||
fill: currentColor;
|
||||
transform: scale( 0.6 ) scaleX(-1) translateY(-0.1em);
|
||||
margin-left: -#{.25 * $size__spacing-unit}; // Align icon with avatars above.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.comment-form {
|
||||
|
||||
.comment-notes,
|
||||
label {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-sm;
|
||||
color: $color__text-light;
|
||||
}
|
||||
|
||||
.comment-form-author,
|
||||
.comment-form-email {
|
||||
@include media(tablet) {
|
||||
width: calc(50% - #{$size__spacing-unit / 2});
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-form-email {
|
||||
@include media(tablet) {
|
||||
margin-left: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
input[name="author"],
|
||||
input[name="email"],
|
||||
input[name="url"] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
293
elegant-business/sass/site/primary/_posts-and-pages.scss
Normal file
293
elegant-business/sass/site/primary/_posts-and-pages.scss
Normal file
|
@ -0,0 +1,293 @@
|
|||
.sticky {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sticky-post {
|
||||
background: $color__background-button;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
padding: .25rem;
|
||||
text-transform: uppercase;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.updated:not(.published) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page-links {
|
||||
clear: both;
|
||||
margin: 0 0 calc(1.5 * #{$size__spacing-unit});
|
||||
}
|
||||
|
||||
.entry {
|
||||
|
||||
margin-top: calc(6 * #{$size__spacing-unit});
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.entry-header {
|
||||
|
||||
margin: calc(3 * #{ $size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{ $size__spacing-unit}) $size__site-margins $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-title {
|
||||
|
||||
@include post-section-dash;
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
color: $color__text-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.entry-meta,
|
||||
.entry-footer {
|
||||
|
||||
color: $color__text-light;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
|
||||
> span {
|
||||
|
||||
margin-right: $size__spacing-unit;
|
||||
display: inline-block;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
@include link-transition;
|
||||
color: currentColor;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: $color__link;
|
||||
}
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-meta {
|
||||
margin: $size__spacing-unit auto;
|
||||
}
|
||||
|
||||
.entry-footer {
|
||||
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: $size__spacing-unit auto calc(3 * #{$size__spacing-unit});
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
}
|
||||
|
||||
.post-thumbnail {
|
||||
|
||||
margin: $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: $size__spacing-unit $size__site-margins;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.post-thumbnail-inner {
|
||||
display: block;
|
||||
|
||||
img {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.image-filters-enabled & {
|
||||
|
||||
.post-thumbnail {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
.post-thumbnail-inner {
|
||||
filter: grayscale(100%);
|
||||
|
||||
&:after {
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
content: "";
|
||||
display: block;
|
||||
height: 100%;
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 4;
|
||||
|
||||
@supports (mix-blend-mode: multiply) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:before,
|
||||
&:after, {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0; left: 0;
|
||||
content: "\020";
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@include filter-duotone;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content,
|
||||
.entry-summary {
|
||||
max-width: calc(100% - (2 * #{ $size__spacing-unit }));
|
||||
margin: 0 $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: 80%;
|
||||
margin: 0 10%;
|
||||
padding: 0 60px;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content {
|
||||
|
||||
p {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.more-link {
|
||||
@include link-transition;
|
||||
display: inline;
|
||||
color: inherit;
|
||||
|
||||
&:after {
|
||||
content: "\02192";
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color__link;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
|
||||
&.button,
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&.button:hover {
|
||||
background: $color__background-button-hover;
|
||||
color: $color__background-body;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
// Overwrite iframe embeds that have inline styles.
|
||||
> iframe[style] {
|
||||
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: $size__site-tablet-content !important;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: $size__site-desktop-content !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Page links
|
||||
.page-links a {
|
||||
margin: calc(0.5 * #{$size__spacing-unit});
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Classic editor audio embeds.
|
||||
.wp-audio-shortcode {
|
||||
max-width: calc(100vw - (2 * #{ $size__spacing-unit }));
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
max-width: $size__site-desktop-content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Author description */
|
||||
|
||||
.author-bio {
|
||||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
|
||||
|
||||
@include postContentMaxWidth();
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) auto;
|
||||
}
|
||||
|
||||
.author-title {
|
||||
@include post-section-dash;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.author-description {
|
||||
|
||||
display: inline;
|
||||
color: $color__text-light;
|
||||
|
||||
.author-link {
|
||||
display: inline-block;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
86
elegant-business/sass/site/secondary/_widgets.scss
Normal file
86
elegant-business/sass/site/secondary/_widgets.scss
Normal file
|
@ -0,0 +1,86 @@
|
|||
.widget {
|
||||
margin: 0 0 #{$size__spacing-unit};
|
||||
|
||||
/* Make sure select elements fit in widgets. */
|
||||
select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $color__link;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.widget_archive,
|
||||
.widget_categories,
|
||||
.widget_meta,
|
||||
.widget_nav_menu,
|
||||
.widget_pages,
|
||||
.widget_recent_comments,
|
||||
.widget_recent_entries,
|
||||
.widget_rss {
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: calc(#{$font__size_base} * #{$font__size-ratio});
|
||||
font-weight: 700;
|
||||
line-height: $font__line-height-heading;
|
||||
margin-top: #{0.5 * $size__spacing-unit};
|
||||
margin-bottom: #{0.5 * $size__spacing-unit};
|
||||
}
|
||||
|
||||
@include nestedSubMenuPadding();
|
||||
}
|
||||
}
|
||||
|
||||
.widget_tag_cloud {
|
||||
|
||||
.tagcloud {
|
||||
font-family: $font__heading;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.widget_search {
|
||||
|
||||
.search-field {
|
||||
width: 100%;
|
||||
|
||||
@include media(mobile) {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.search-submit {
|
||||
display: block;
|
||||
margin-top: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
.widget_calendar .calendar_wrap {
|
||||
text-align: center;
|
||||
|
||||
table td,
|
||||
table th {
|
||||
border: none;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.widget_links li,
|
||||
.widget_jp_blogs_i_follow li,
|
||||
.widget_rss_links li {
|
||||
font-family: inherit;
|
||||
}
|
62
elegant-business/sass/typography/_copy.scss
Normal file
62
elegant-business/sass/typography/_copy.scss
Normal file
|
@ -0,0 +1,62 @@
|
|||
p {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
dfn,
|
||||
cite,
|
||||
em,
|
||||
i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
|
||||
cite {
|
||||
font-size: $font__size-xs;
|
||||
font-style: normal;
|
||||
font-family: $font__heading;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
font-size: $font__size-sm;
|
||||
font-family: $font__pre;
|
||||
line-height: $font__line-height-body;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
tt,
|
||||
var {
|
||||
font-size: $font__size-sm;
|
||||
font-family: $font__code;
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border-bottom: 1px dotted #666;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
mark,
|
||||
ins {
|
||||
background: #fff9c0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
big {
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
157
elegant-business/sass/typography/_headings.scss
Normal file
157
elegant-business/sass/typography/_headings.scss
Normal file
|
@ -0,0 +1,157 @@
|
|||
.author-description .author-link,
|
||||
.comment-metadata,
|
||||
.comment-reply-link,
|
||||
.comments-title,
|
||||
.comment-author .fn,
|
||||
.discussion-meta-info,
|
||||
.entry-meta,
|
||||
.entry-footer,
|
||||
.main-navigation,
|
||||
.no-comments,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.post-navigation .post-title,
|
||||
.page-links,
|
||||
.page-description,
|
||||
.pagination .nav-links,
|
||||
.sticky-post,
|
||||
.site-title,
|
||||
.site-info,
|
||||
#cancel-comment-reply-link,
|
||||
img:after,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: $font__heading;
|
||||
}
|
||||
|
||||
.main-navigation,
|
||||
.page-description,
|
||||
.author-description .author-link,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.post-navigation .post-title,
|
||||
.pagination .nav-links,
|
||||
.comments-title,
|
||||
.comment-author .fn,
|
||||
.no-comments,
|
||||
.site-title,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: 700;
|
||||
line-height: $font__line-height-heading;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
.site-branding,
|
||||
.main-navigation ul.main-menu > li,
|
||||
.social-navigation,
|
||||
.author-bio .author-description,
|
||||
.nav-links {
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.entry-title,
|
||||
h1 {
|
||||
font-size: $font__size-md;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-lg;
|
||||
}
|
||||
}
|
||||
|
||||
.site-title,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.has-larger-font-size,
|
||||
h2 {
|
||||
font-size: $font__size-base;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
}
|
||||
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
.comments-title,
|
||||
h2.author-title,
|
||||
.author-description,
|
||||
h3 {
|
||||
font-size: $font__size-base;
|
||||
}
|
||||
|
||||
.site-description,
|
||||
.main-navigation,
|
||||
.nav-links,
|
||||
.page-title,
|
||||
.page-description,
|
||||
.comment-author .fn,
|
||||
.no-comments,
|
||||
p.author-bio,
|
||||
h4 {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
|
||||
.site-info,
|
||||
.pagination .nav-links,
|
||||
.comment-content,
|
||||
h5 {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
|
||||
.entry-meta,
|
||||
.entry-footer,
|
||||
.discussion-meta-info,
|
||||
.has-small-font-size,
|
||||
.comment-reply-link,
|
||||
.comment-metadata,
|
||||
.comment-notes,
|
||||
.sticky-post,
|
||||
#cancel-comment-reply-link,
|
||||
img:after,
|
||||
h6 {
|
||||
font-size: $font__size-xxs;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.page-description,
|
||||
.page-links a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.page-id-3669 .entry .entry-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.post-navigation .post-title,
|
||||
.entry-title,
|
||||
.not-found .page-title,
|
||||
.error-404 .page-title,
|
||||
.comments-title,
|
||||
blockquote {
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* Do not hyphenate entry title on tablet view and bigger. */
|
||||
.entry-title {
|
||||
@include media(tablet) {
|
||||
hyphens: none;
|
||||
}
|
||||
}
|
34
elegant-business/sass/typography/_typography.scss
Normal file
34
elegant-business/sass/typography/_typography.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
html {
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: $color__text-main;
|
||||
font-family: $font__body;
|
||||
font-weight: 400;
|
||||
font-size: 1em;
|
||||
line-height: $font__line-height-body;
|
||||
margin: 0;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
optgroup,
|
||||
textarea {
|
||||
color: $color__text-main;
|
||||
font-family: $font__body;
|
||||
font-weight: 400;
|
||||
line-height: $font__line-height-body;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
@import "headings";
|
||||
|
||||
@import "copy";
|
||||
|
||||
@include non-latin-fonts();
|
34
elegant-business/sass/variables-site/_colors.scss
Normal file
34
elegant-business/sass/variables-site/_colors.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
// Backgrounds
|
||||
$color__background-body: #fff;
|
||||
$color__background-input: #fff;
|
||||
$color__background-screen: #f7f7f7;
|
||||
$color__background-hr: #ccc;
|
||||
$color__background-button: #c43d80;
|
||||
$color__background-button-hover: #111;
|
||||
$color__background-pre: #eee;
|
||||
$color__background-ins: #fff9c0;
|
||||
$color__background_selection: mix( $color__background-body, $color__background-button, 75% ); // lighten( salmon, 22.5% ); // lighten( #0999d4, 48% );
|
||||
|
||||
// Text
|
||||
$color__text-main: #111;
|
||||
$color__text-light: #767676;
|
||||
$color__text-hover: lighten( #111, 22.5% );
|
||||
$color__text-screen: #21759b;
|
||||
$color__text-input: #666;
|
||||
$color__text-input-focus: #111;
|
||||
|
||||
// Links
|
||||
$color__link: #c43d80;
|
||||
$color__link-visited: #c43d80;
|
||||
$color__link-hover: darken( $color__link, 10% );
|
||||
|
||||
// Borders
|
||||
$color__border: rgba(0, 0, 0, .03); // #ccc;
|
||||
$color__border-link: #c43d80;
|
||||
$color__border-link-hover: darken( $color__link, 10% );
|
||||
$color__border-button: #ccc #ccc #bbb;
|
||||
$color__border-button-hover: #ccc #bbb #aaa;
|
||||
$color__border-button-focus: #aaa #bbb #bbb;
|
||||
$color__border-input: $color__border;
|
||||
$color__border-abbr: #666;
|
16
elegant-business/sass/variables-site/_columns.scss
Normal file
16
elegant-business/sass/variables-site/_columns.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
$columns: (
|
||||
1: calc(1 * (100vw / 12)),
|
||||
2: calc(2 * (100vw / 12)),
|
||||
3: calc(3 * (100vw / 12)),
|
||||
4: calc(4 * (100vw / 12)),
|
||||
5: calc(5 * (100vw / 12)),
|
||||
6: calc(6 * (100vw / 12)),
|
||||
7: calc(7 * (100vw / 12)),
|
||||
8: calc(8 * (100vw / 12)),
|
||||
9: calc(9 * (100vw / 12)),
|
||||
10: calc(10 * (100vw / 12)),
|
||||
11: calc(11 * (100vw / 12)),
|
||||
12: calc(12 * (100vw / 12))
|
||||
);
|
||||
|
||||
$columns__margin: $size__spacing-unit;
|
30
elegant-business/sass/variables-site/_fonts.scss
Normal file
30
elegant-business/sass/variables-site/_fonts.scss
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Source Serif Pro. (Google font)
|
||||
*/
|
||||
// @import url('https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,700');
|
||||
// See: elegant_business_fonts_url() in `functions.php`
|
||||
|
||||
// Font and typographic variables
|
||||
|
||||
$font__body: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
$font__heading: $font__body;
|
||||
$font__ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
$font__code: Menlo, monaco, Consolas, Lucida Console, monospace;
|
||||
$font__pre: "Courier 10 Pitch", Courier, monospace;
|
||||
|
||||
$font__size_base: 22px;
|
||||
$font__size-ratio: 1.125;
|
||||
|
||||
$font__size-xxs: 1em / (1.5 * $font__size-ratio);
|
||||
$font__size-xs: 1em / (1.25 * $font__size-ratio);
|
||||
$font__size-sm: 1em / (1 * $font__size-ratio);
|
||||
$font__size-md: 1em * (1 * $font__size-ratio);
|
||||
$font__size-lg: 1em * (1.5 * $font__size-ratio);
|
||||
$font__size-xl: 1em * (2 * $font__size-ratio);
|
||||
$font__size-xxl: 1em * (2.5 * $font__size-ratio);
|
||||
$font__size-xxxl: 1em * (3 * $font__size-ratio);
|
||||
|
||||
$font__line-height-body: 1.8;
|
||||
$font__line-height-pre: 1.6;
|
||||
$font__line-height-heading: 1.2;
|
||||
$font__line-height-double: 2 * $font__line-height-heading;
|
16
elegant-business/sass/variables-site/_structure.scss
Normal file
16
elegant-business/sass/variables-site/_structure.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Responsive widths.
|
||||
|
||||
$size__spacing-unit: 1rem;
|
||||
$size__site-main: 100%;
|
||||
$size__site-sidebar: 25%;
|
||||
$size__site-margins: calc(10% + 60px);
|
||||
$size__site-tablet-content: calc(8 * (100vw / 12) - 28px);
|
||||
$size__site-desktop-content: calc(6 * (100vw / 12) - 28px);
|
||||
|
||||
// Responsive widths.
|
||||
|
||||
$mobile_width: 600px;
|
||||
$tablet_width: 768px;
|
||||
$desktop_width: 1168px;
|
||||
$wide_width: 1379px;
|
||||
|
6
elegant-business/sass/variables-site/_transitions.scss
Normal file
6
elegant-business/sass/variables-site/_transitions.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Transition timeouts.
|
||||
|
||||
$link_transition: 110ms;
|
||||
$icon_transition: 120ms;
|
||||
$button_transition: 150ms;
|
||||
$background_transition: 200ms;
|
|
@ -0,0 +1,5 @@
|
|||
@import "colors";
|
||||
@import "fonts";
|
||||
@import "structure";
|
||||
@import "columns";
|
||||
@import "transitions";
|
BIN
elegant-business/screenshot.png
Normal file
BIN
elegant-business/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 983 KiB |
95
elegant-business/style-editor-customizer.css
Normal file
95
elegant-business/style-editor-customizer.css
Normal file
|
@ -0,0 +1,95 @@
|
|||
/*!
|
||||
Twenty Nineteen Customizer Styles & Non-latin Font Fallbacks
|
||||
|
||||
NOTE: This file is automatically populated with additional styles if the user selects a custom primary color in the customzier.
|
||||
*/
|
||||
/** === Includes === */
|
||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||
* since its edges can look jagged due to lack of antialiasing. In this case, we are several
|
||||
* layers of box-shadow to add the border visually, which will render the border smoother. */
|
||||
/* Fallback for non-latin fonts */
|
||||
/* Calculates maximum width for post content */
|
||||
/* Nested sub-menu padding: 10 levels deep */
|
||||
/** === Non-Latin font fallbacks === */
|
||||
/* Arabic */
|
||||
html[lang="ar"] .wp-block *,
|
||||
html[lang="ary"] .wp-block *,
|
||||
html[lang="azb"] .wp-block *,
|
||||
html[lang="ckb"] .wp-block *,
|
||||
html[lang="fa-IR"] .wp-block *,
|
||||
html[lang="haz"] .wp-block *,
|
||||
html[lang="ps"] .wp-block * {
|
||||
font-family: Tahoma, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Cyrillic */
|
||||
html[lang="be"] .wp-block *,
|
||||
html[lang="bg-BG"] .wp-block *,
|
||||
html[lang="kk"] .wp-block *,
|
||||
html[lang="mk-MK"] .wp-block *,
|
||||
html[lang="mn"] .wp-block *,
|
||||
html[lang="ru-RU"] .wp-block *,
|
||||
html[lang="sah"] .wp-block *,
|
||||
html[lang="sr-RS"] .wp-block *,
|
||||
html[lang="tt-RU"] .wp-block *,
|
||||
html[lang="uk"] .wp-block * {
|
||||
font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Hong Kong) */
|
||||
html[lang="zh-HK"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (Taiwan) */
|
||||
html[lang="zh-TW"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Chinese (China) */
|
||||
html[lang="zh-CN"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', "Microsoft YaHei New", STHeiti Light, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Devanagari */
|
||||
html[lang="bn-BD"] .wp-block *,
|
||||
html[lang="hi-IN"] .wp-block *,
|
||||
html[lang="mr"] .wp-block *,
|
||||
html[lang="ne-NP"] .wp-block * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Greek */
|
||||
html[lang="el"] .wp-block * {
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Gujarati */
|
||||
html[lang="gu"] .wp-block * {
|
||||
font-family: Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Hebrew */
|
||||
html[lang="he-IL"] .wp-block * {
|
||||
font-family: 'Arial Hebrew', Arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Japanese */
|
||||
html[lang="ja"] .wp-block * {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif !important;
|
||||
}
|
||||
|
||||
/* Korean */
|
||||
html[lang="ko-KR"] .wp-block * {
|
||||
font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Nanum Gothic', Dotum, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Thai */
|
||||
html[lang="th"] .wp-block * {
|
||||
font-family: 'Sukhumvit Set', 'Helvetica Neue', helvetica, arial, sans-serif !important;
|
||||
}
|
||||
|
||||
/* Vietnamese */
|
||||
html[lang="vi"] .wp-block * {
|
||||
font-family: 'Libre Franklin', sans-serif !important;
|
||||
}
|
13
elegant-business/style-editor-customizer.scss
Normal file
13
elegant-business/style-editor-customizer.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*!
|
||||
Twenty Nineteen Customizer Styles & Non-latin Font Fallbacks
|
||||
|
||||
NOTE: This file is automatically populated with additional styles if the user selects a custom primary color in the customzier.
|
||||
*/
|
||||
|
||||
/** === Includes === */
|
||||
|
||||
@import "sass/mixins/mixins-master";
|
||||
|
||||
/** === Non-Latin font fallbacks === */
|
||||
|
||||
@include non-latin-fonts( '.wp-block' );
|
801
elegant-business/style-editor.css
Normal file
801
elegant-business/style-editor.css
Normal file
|
@ -0,0 +1,801 @@
|
|||
@charset "UTF-8";
|
||||
/*!
|
||||
Twenty Nineteen Editor Styles
|
||||
*/
|
||||
/** === Includes === */
|
||||
/*
|
||||
* Source Serif Pro. (Google font)
|
||||
*/
|
||||
/* If we add the border using a regular CSS border, it won't look good on non-retina devices,
|
||||
* since its edges can look jagged due to lack of antialiasing. In this case, we are several
|
||||
* layers of box-shadow to add the border visually, which will render the border smoother. */
|
||||
/* Fallback for non-latin fonts */
|
||||
/* Calculates maximum width for post content */
|
||||
/* Nested sub-menu padding: 10 levels deep */
|
||||
/** === Editor Frame === */
|
||||
body .wp-block[data-align="full"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 600px) {
|
||||
body .wp-block[data-align="full"] {
|
||||
width: calc( 100% + 90px);
|
||||
max-width: calc( 100% + 90px);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
body .editor-writing-flow {
|
||||
max-width: 80%;
|
||||
margin: 0 10%;
|
||||
}
|
||||
body .wp-block[data-align="wide"] {
|
||||
width: 100%;
|
||||
}
|
||||
body .wp-block[data-align="full"] {
|
||||
position: relative;
|
||||
left: calc( -12.5% - 14px);
|
||||
width: calc( 125% + 116px);
|
||||
max-width: calc( 125% + 115px);
|
||||
}
|
||||
body .wp-block[data-align="right"] {
|
||||
max-width: 125%;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Editor Block Toolbar Position === */
|
||||
.editor-block-list__block[data-align="wide"] .editor-block-contextual-toolbar .editor-block-toolbar.editor-block-toolbar,
|
||||
.editor-block-list__block[data-align="full"] .editor-block-contextual-toolbar .editor-block-toolbar.editor-block-toolbar {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/** === Content Width === */
|
||||
.wp-block {
|
||||
width: calc(100vw - (2 * 1rem));
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block {
|
||||
width: calc(8 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1168px) {
|
||||
.wp-block {
|
||||
width: calc(6 * (100vw / 12 ));
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block .wp-block {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/** === Base Typography === */
|
||||
body {
|
||||
font-size: 22px;
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
line-height: 1.8;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-weight: 700;
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.125em;
|
||||
/*
|
||||
&:before {
|
||||
background: $color__text-light;
|
||||
content: "\020";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: $size__spacing-unit 0;
|
||||
width: 1em;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
h1 {
|
||||
font-size: 1.6875em;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
/*
|
||||
&:before {
|
||||
background: $color__text-light;
|
||||
content: "\020";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: $size__spacing-unit 0;
|
||||
width: 1em;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
h2 {
|
||||
font-size: 1.125em;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 0.88889em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.71111em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.59259em;
|
||||
}
|
||||
|
||||
a {
|
||||
transition: color 110ms ease-in-out;
|
||||
color: #c43d80;
|
||||
}
|
||||
|
||||
a:hover, a:active {
|
||||
color: #9e3067;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.has-primary-background-color,
|
||||
.has-secondary-background-color,
|
||||
.has-dark-gray-background-color,
|
||||
.has-light-gray-background-color {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.has-primary-background-color p,
|
||||
.has-primary-background-color h1,
|
||||
.has-primary-background-color h2,
|
||||
.has-primary-background-color h3,
|
||||
.has-primary-background-color h4,
|
||||
.has-primary-background-color h5,
|
||||
.has-primary-background-color h6,
|
||||
.has-primary-background-color a,
|
||||
.has-secondary-background-color p,
|
||||
.has-secondary-background-color h1,
|
||||
.has-secondary-background-color h2,
|
||||
.has-secondary-background-color h3,
|
||||
.has-secondary-background-color h4,
|
||||
.has-secondary-background-color h5,
|
||||
.has-secondary-background-color h6,
|
||||
.has-secondary-background-color a,
|
||||
.has-dark-gray-background-color p,
|
||||
.has-dark-gray-background-color h1,
|
||||
.has-dark-gray-background-color h2,
|
||||
.has-dark-gray-background-color h3,
|
||||
.has-dark-gray-background-color h4,
|
||||
.has-dark-gray-background-color h5,
|
||||
.has-dark-gray-background-color h6,
|
||||
.has-dark-gray-background-color a,
|
||||
.has-light-gray-background-color p,
|
||||
.has-light-gray-background-color h1,
|
||||
.has-light-gray-background-color h2,
|
||||
.has-light-gray-background-color h3,
|
||||
.has-light-gray-background-color h4,
|
||||
.has-light-gray-background-color h5,
|
||||
.has-light-gray-background-color h6,
|
||||
.has-light-gray-background-color a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.has-white-background-color {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.has-white-background-color p,
|
||||
.has-white-background-color h1,
|
||||
.has-white-background-color h2,
|
||||
.has-white-background-color h3,
|
||||
.has-white-background-color h4,
|
||||
.has-white-background-color h5,
|
||||
.has-white-background-color h6,
|
||||
.has-white-background-color a {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
figcaption,
|
||||
.gallery-caption {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
color: #767676;
|
||||
}
|
||||
|
||||
/** === Post Title === */
|
||||
.editor-post-title__block {
|
||||
/*
|
||||
&:before {
|
||||
background: $color__text-light;
|
||||
content: "\020";
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin: $size__spacing-unit 0;
|
||||
width: 1em;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
.editor-post-title__block:before {
|
||||
width: 2.8125em;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 1em;
|
||||
position: relative;
|
||||
top: 0.5em;
|
||||
}
|
||||
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 2.8125em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/** === Default Appender === */
|
||||
.editor-default-block-appender .editor-default-block-appender__content {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
/** === Heading === */
|
||||
.wp-block-heading strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/** === Paragraph === */
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 5.7375em;
|
||||
line-height: 1;
|
||||
font-weight: normal;
|
||||
margin: 0 0.25em 0 0;
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
.wp-block-table {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
/** === Cover === */
|
||||
.wp-block-cover,
|
||||
.wp-block-cover-image {
|
||||
min-height: 420px;
|
||||
}
|
||||
|
||||
.wp-block-cover h2,
|
||||
.wp-block-cover .wp-block-cover-text,
|
||||
.wp-block-cover-image h2,
|
||||
.wp-block-cover-image .wp-block-cover-text {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 1.6875em;
|
||||
font-weight: bold;
|
||||
line-height: 1.4;
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.wp-block-cover h2 strong,
|
||||
.wp-block-cover .wp-block-cover-text strong,
|
||||
.wp-block-cover-image h2 strong,
|
||||
.wp-block-cover-image .wp-block-cover-text strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-cover h2,
|
||||
.wp-block-cover .wp-block-cover-text,
|
||||
.wp-block-cover-image h2,
|
||||
.wp-block-cover-image .wp-block-cover-text {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-cover,
|
||||
.wp-block-cover-image {
|
||||
min-height: 560px;
|
||||
padding-left: 10%;
|
||||
padding-right: 10%;
|
||||
}
|
||||
.wp-block-cover h2,
|
||||
.wp-block-cover .wp-block-cover-text,
|
||||
.wp-block-cover-image h2,
|
||||
.wp-block-cover-image .wp-block-cover-text {
|
||||
font-size: 2.25em;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .editor-block-list__block-edit,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/cover"][data-align="left"] .wp-block-cover,
|
||||
.wp-block[data-type="core/cover"][data-align="right"] .wp-block-cover {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] .wp-block-cover-text {
|
||||
max-width: calc(8 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1168px) {
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] .wp-block-cover-text {
|
||||
max-width: calc(6 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/cover"][data-align="full"] h2,
|
||||
.wp-block[data-type="core/cover"][data-align="full"] .wp-block-cover-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
.wp-block[data-type="core/cover"][data-align="full"] .wp-block-cover {
|
||||
padding-left: calc(10% + 64px);
|
||||
padding-right: calc(10% + 64px);
|
||||
}
|
||||
}
|
||||
|
||||
/** === Gallery === */
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption,
|
||||
.wp-block-gallery .gallery-item .gallery-caption {
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/** === Button === */
|
||||
.wp-block-button .wp-block-button__link {
|
||||
line-height: 1.8;
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 0.88889em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
|
||||
background: #c43d80;
|
||||
}
|
||||
|
||||
.wp-block-button:not(.is-style-squared) .wp-block-button__link {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wp-block-button.is-style-outline, .wp-block-button.is-style-outline:hover, .wp-block-button.is-style-outline:focus, .wp-block-button.is-style-outline:active {
|
||||
background: transparent;
|
||||
color: #c43d80;
|
||||
}
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline:hover .wp-block-button__link, .wp-block-button.is-style-outline:focus .wp-block-button__link, .wp-block-button.is-style-outline:active .wp-block-button__link {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color), .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color) {
|
||||
color: #c43d80;
|
||||
}
|
||||
|
||||
/** === Blockquote === */
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large) {
|
||||
border-left: 2px solid #c43d80;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large, .wp-block-quote.is-style-large {
|
||||
margin-top: 2.8125em;
|
||||
margin-bottom: 2.8125em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 1.6875em;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-quote cite,
|
||||
.wp-block-quote footer,
|
||||
.wp-block-quote .wp-block-quote__citation {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
color: #767676;
|
||||
}
|
||||
|
||||
/** === Pullquote === */
|
||||
.wp-block-pullquote {
|
||||
border-color: transparent;
|
||||
border-width: 2px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
margin-top: calc(3 * 1rem);
|
||||
margin-bottom: calc(3.33 * 1rem);
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.wp-block-pullquote:not(.is-style-solid-color) .wp-block-pullquote__citation {
|
||||
color: #767676;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
width: calc(100% - (2 * 1rem));
|
||||
max-width: calc( 100% - (2 * 1rem));
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote a,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-text-color p,
|
||||
.wp-block-pullquote.is-style-solid-color blockquote.has-text-color a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote:not(.has-text-color) {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
max-width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
|
||||
background-color: #c43d80;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] p {
|
||||
font-size: 1.6875em;
|
||||
font-style: italic;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] p {
|
||||
font-size: 2.25em;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"] .wp-block-pullquote__citation,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .wp-block-pullquote__citation,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .wp-block-pullquote__citation {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 0.71111em;
|
||||
line-height: 1.6;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"] em,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] em,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] em {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit .wp-block-pullquote:not(.is-style-solid-color),
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote:not(.is-style-solid-color) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .editor-block-list__block-edit .wp-block-pullquote.is-style-solid-color {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"] .wp-block-pullquote__citation,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] blockquote > .editor-rich-text p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] p,
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] .wp-block-pullquote__citation {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.wp-block[data-type="core/pullquote"][data-align="full"] .wp-block-pullquote blockquote {
|
||||
max-width: calc(80% - 128px);
|
||||
}
|
||||
}
|
||||
|
||||
/** === File === */
|
||||
.wp-block-file {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__textlink {
|
||||
text-decoration: underline;
|
||||
color: #c43d80;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__textlink:hover {
|
||||
color: #9e3067;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
display: table;
|
||||
line-height: 1.8;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-size: 0.88889em;
|
||||
font-weight: bold;
|
||||
background-color: #c43d80;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button-richtext-wrapper {
|
||||
display: block;
|
||||
margin-top: calc(0.75 * 1rem);
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/** === Verse === */
|
||||
.wp-block-verse,
|
||||
.wp-block-verse pre {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/** === Code === */
|
||||
.wp-block-code {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/** === Media & Text === */
|
||||
[data-type="core/media-text"] .wp-block-media-text {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
[data-type="core/media-text"] .wp-block-heading h1,
|
||||
[data-type="core/media-text"] .wp-block-heading h2,
|
||||
[data-type="core/media-text"] .wp-block-heading h3,
|
||||
[data-type="core/media-text"] .wp-block-heading h4,
|
||||
[data-type="core/media-text"] .wp-block-heading h5,
|
||||
[data-type="core/media-text"] .wp-block-heading h6 {
|
||||
text-align: inherit;
|
||||
margin-bottom: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
[data-type="core/media-text"] + [data-type="core/media-text"] {
|
||||
margin-top: -32px;
|
||||
}
|
||||
|
||||
[data-type="core/media-text"] a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
.wp-block-table td, .wp-block-table th {
|
||||
border-color: #767676;
|
||||
}
|
||||
|
||||
/** === Separator === */
|
||||
.wp-block-separator {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.wp-block-separator:not(.is-style-dots) {
|
||||
border-bottom: 2px solid #f1f1f1;
|
||||
}
|
||||
|
||||
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
|
||||
width: 5em;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-dots:before {
|
||||
color: #767676;
|
||||
font-size: 1.6875em;
|
||||
letter-spacing: calc(2 * 1rem);
|
||||
padding-left: calc(2 * 1rem);
|
||||
}
|
||||
|
||||
/** === Latest Posts, Archives, Categories === */
|
||||
ul.wp-block-archives,
|
||||
.wp-block-categories,
|
||||
.wp-block-latest-posts {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul.wp-block-archives ul,
|
||||
.wp-block-categories ul,
|
||||
.wp-block-latest-posts ul {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li,
|
||||
.wp-block-categories li,
|
||||
.wp-block-latest-posts li {
|
||||
color: #767676;
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: calc(22px * 1.125);
|
||||
font-weight: bold;
|
||||
line-height: 1.2;
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li.menu-item-has-children, ul.wp-block-archives li:last-child,
|
||||
.wp-block-categories li.menu-item-has-children,
|
||||
.wp-block-categories li:last-child,
|
||||
.wp-block-latest-posts li.menu-item-has-children,
|
||||
.wp-block-latest-posts li:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li a,
|
||||
.wp-block-categories li a,
|
||||
.wp-block-latest-posts li a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul.wp-block-archives li ul,
|
||||
.wp-block-categories li ul,
|
||||
.wp-block-latest-posts li ul {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.wp-block-categories ul {
|
||||
padding-top: 0.75rem;
|
||||
}
|
||||
|
||||
.wp-block-categories ul ul {
|
||||
counter-reset: submenu;
|
||||
}
|
||||
|
||||
.wp-block-categories ul ul > li > a::before {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-weight: normal;
|
||||
content: "– " counters(submenu, "– ", none);
|
||||
counter-increment: submenu;
|
||||
}
|
||||
|
||||
.wp-block-categories li ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-bottom: -0.75rem;
|
||||
}
|
||||
|
||||
/** === Latest Posts grid view === */
|
||||
.wp-block-latest-posts.is-grid li {
|
||||
border-top: 2px solid rgba(0, 0, 0, 0.03);
|
||||
padding-top: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.wp-block-latest-posts.is-grid li a:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
.wp-block-latest-posts.is-grid li:last-child {
|
||||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
.wp-block-latest-posts.is-grid li:last-child a:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
/** === Latest Comments === */
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-meta {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-meta .wp-block-latest-comments__comment-date {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment,
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-date,
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment-date {
|
||||
font-size: 0.71111em;
|
||||
}
|
||||
|
||||
/** === Classic Editor === */
|
||||
/* Properly center-align captions in the classic-editor block */
|
||||
.wp-caption dd {
|
||||
color: #767676;
|
||||
font-size: 0.71111em;
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
-webkit-margin-start: 0px;
|
||||
margin-inline-start: 0px;
|
||||
}
|
||||
|
||||
.wp-block-freeform {
|
||||
/* Add style for galleries in classic-editor block */
|
||||
}
|
||||
|
||||
.wp-block-freeform blockquote {
|
||||
border-left: 2px solid #c43d80;
|
||||
}
|
||||
|
||||
.wp-block-freeform blockquote cite {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
font-size: 0.71111em;
|
||||
font-style: normal;
|
||||
line-height: 1.6;
|
||||
color: #767676;
|
||||
}
|
||||
|
||||
/* Make sure our non-latin font overrides don't overwrite the iconfont used in the classic editor toolbar */
|
||||
.wp-block[data-type="core/freeform"] .mce-btn i {
|
||||
font-family: dashicons !important;
|
||||
}
|
781
elegant-business/style-editor.scss
Normal file
781
elegant-business/style-editor.scss
Normal file
|
@ -0,0 +1,781 @@
|
|||
/*!
|
||||
Twenty Nineteen Editor Styles
|
||||
*/
|
||||
|
||||
/** === Includes === */
|
||||
|
||||
@import "sass/variables-site/variables-site";
|
||||
@import "sass/mixins/mixins-master";
|
||||
|
||||
/** === Editor Frame === */
|
||||
|
||||
body {
|
||||
|
||||
.wp-block[data-align="full"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@include media(mobile) {
|
||||
|
||||
.wp-block[data-align="full"] {
|
||||
width: calc( 100% + 90px );
|
||||
max-width: calc( 100% + 90px );
|
||||
}
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.editor-writing-flow {
|
||||
max-width: 80%;
|
||||
margin: 0 10%;
|
||||
}
|
||||
|
||||
.wp-block[data-align="wide"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block[data-align="full"] {
|
||||
position: relative;
|
||||
left: calc( -12.5% - 14px );
|
||||
width: calc( 125% + 116px );
|
||||
max-width: calc( 125% + 115px ); // Subtract 1px here to avoid the rounding errors that happen due to the usage of percentages.
|
||||
}
|
||||
|
||||
.wp-block[data-align="right"] {
|
||||
max-width: 125%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Editor Block Toolbar Position === */
|
||||
|
||||
// Since 2019 left-aligns wide and fullwide blocks, left align the toolbar too.
|
||||
.editor-block-list__block[data-align="wide"] .editor-block-contextual-toolbar .editor-block-toolbar.editor-block-toolbar,
|
||||
.editor-block-list__block[data-align="full"] .editor-block-contextual-toolbar .editor-block-toolbar.editor-block-toolbar {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/** === Content Width === */
|
||||
|
||||
.wp-block {
|
||||
width: calc(100vw - (2 * #{$size__spacing-unit}));
|
||||
max-width: 100%;
|
||||
|
||||
@include media(tablet) {
|
||||
width: calc(8 * (100vw / 12));
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
width: calc(6 * (100vw / 12 ));
|
||||
}
|
||||
|
||||
// Only the top level blocks need specific widths, therefore override for every nested block.
|
||||
.wp-block {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Base Typography === */
|
||||
|
||||
body {
|
||||
font-size: $font__size_base;
|
||||
font-family: $font__body;
|
||||
line-height: $font__line-height-body;
|
||||
color: $color__text-main;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: $font__heading;
|
||||
font-weight: 700;
|
||||
margin-top: #{$size__spacing-unit * 3};
|
||||
margin-bottom: #{$size__spacing-unit * 3};
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: $font__size-md;
|
||||
@include post-section-dash;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-lg;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: $font__size-base;
|
||||
@include post-section-dash;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-md;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: $font__size-base;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: $font__size-sm;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: $font__size-xxs;
|
||||
}
|
||||
|
||||
a {
|
||||
@include link-transition;
|
||||
color: $color__link;
|
||||
|
||||
*:visited {
|
||||
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $color__link-hover;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
// Use white text against these backgrounds by default.
|
||||
.has-primary-background-color,
|
||||
.has-secondary-background-color,
|
||||
.has-dark-gray-background-color,
|
||||
.has-light-gray-background-color {
|
||||
color: $color__background-body;
|
||||
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
a {
|
||||
color: $color__background-body;
|
||||
}
|
||||
}
|
||||
|
||||
// Use dark gray text against this background by default.
|
||||
.has-white-background-color {
|
||||
color: $color__text-main;
|
||||
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
a {
|
||||
color: $color__text-main;
|
||||
}
|
||||
}
|
||||
|
||||
figcaption,
|
||||
.gallery-caption {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
color: $color__text-light;
|
||||
}
|
||||
|
||||
/** === Post Title === */
|
||||
|
||||
.editor-post-title__block {
|
||||
@include post-section-dash;
|
||||
|
||||
&:before {
|
||||
width: $font__size-xxl;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 1em;
|
||||
position: relative;
|
||||
top: 0.5em;
|
||||
}
|
||||
|
||||
.editor-post-title__input {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xxl;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Default Appender === */
|
||||
|
||||
.editor-default-block-appender .editor-default-block-appender__content {
|
||||
font-family: $font__body;
|
||||
font-size: $font__size_base;
|
||||
}
|
||||
|
||||
/** === Heading === */
|
||||
|
||||
.wp-block-heading {
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
/** === Paragraph === */
|
||||
|
||||
.wp-block-paragraph {
|
||||
|
||||
&.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: $font__heading;
|
||||
font-size: #{1.7 * $font__size-xxxl};
|
||||
line-height: 1;
|
||||
font-weight: normal;
|
||||
margin: 0 0.25em 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
|
||||
.wp-block-table {
|
||||
font-family: $font__heading;
|
||||
}
|
||||
|
||||
/** === Cover === */
|
||||
|
||||
.wp-block-cover,
|
||||
.wp-block-cover-image {
|
||||
|
||||
min-height: 420px;
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-lg;
|
||||
font-weight: bold;
|
||||
line-height: 1.4;
|
||||
padding-left: $size__spacing-unit;
|
||||
padding-right: $size__spacing-unit;
|
||||
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
min-height: 560px;
|
||||
padding-left: 10%;
|
||||
padding-right: 10%;
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="left"],
|
||||
.wp-block[data-type="core/cover"][data-align="right"] {
|
||||
|
||||
.editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
}
|
||||
|
||||
.wp-block-cover {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.wp-block-cover {
|
||||
padding: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="wide"] {
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
max-width: calc(8 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
|
||||
@include media(desktop) {
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
max-width: calc(6 * (100vw / 12));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/cover"][data-align="full"] {
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
h2,
|
||||
.wp-block-cover-text {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-cover {
|
||||
padding-left: calc(10% + 64px);
|
||||
padding-right: calc(10% + 64px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Gallery === */
|
||||
|
||||
.wp-block-gallery {
|
||||
|
||||
.blocks-gallery-image figcaption,
|
||||
.blocks-gallery-item figcaption,
|
||||
.gallery-item .gallery-caption {
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Button === */
|
||||
|
||||
.wp-block-button {
|
||||
|
||||
.wp-block-button__link {
|
||||
line-height: 1.8;
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&:not(.is-style-outline) .wp-block-button__link {
|
||||
background: $color__background-button;
|
||||
}
|
||||
|
||||
&:not(.is-style-squared) .wp-block-button__link {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
&.is-style-outline,
|
||||
&.is-style-outline:hover,
|
||||
&.is-style-outline:focus,
|
||||
&.is-style-outline:active {
|
||||
background: transparent;
|
||||
color: $color__background-button;
|
||||
|
||||
.wp-block-button__link {
|
||||
background: transparent;
|
||||
|
||||
&:not(.has-text-color) {
|
||||
color: $color__background-button;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Blockquote === */
|
||||
|
||||
.wp-block-quote {
|
||||
|
||||
&:not(.is-large):not(.is-style-large) {
|
||||
border-left: 2px solid $color__link;
|
||||
}
|
||||
|
||||
&.is-large,
|
||||
&.is-style-large {
|
||||
margin-top: $font__size-xxl;
|
||||
margin-bottom: $font__size-xxl;
|
||||
}
|
||||
|
||||
&.is-large p,
|
||||
&.is-style-large p {
|
||||
font-size: $font__size-lg;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
cite,
|
||||
footer,
|
||||
.wp-block-quote__citation {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Pullquote === */
|
||||
|
||||
.wp-block-pullquote {
|
||||
border-color: transparent;
|
||||
border-width: 2px;
|
||||
color: #000;
|
||||
|
||||
blockquote {
|
||||
margin-top: calc(3 * #{ $size__spacing-unit});
|
||||
margin-bottom: calc(3.33 * #{ $size__spacing-unit});
|
||||
hyphens: auto;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
&:not(.is-style-solid-color) .wp-block-pullquote__citation {
|
||||
color: $color__text-light;
|
||||
}
|
||||
|
||||
&.is-style-solid-color {
|
||||
|
||||
blockquote {
|
||||
width: calc(100% - (2 * #{ $size__spacing-unit}));
|
||||
max-width: calc( 100% - (2 * #{ $size__spacing-unit}));
|
||||
|
||||
a,
|
||||
&.has-text-color p,
|
||||
&.has-text-color a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:not(.has-text-color) {
|
||||
color: $color__background-body;
|
||||
}
|
||||
|
||||
@include media(tablet) {
|
||||
max-width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.has-background-color) {
|
||||
background-color: $color__link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"],
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"],
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] {
|
||||
|
||||
blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
blockquote > .editor-rich-text p,
|
||||
p {
|
||||
font-size: $font__size-lg;
|
||||
font-style: italic;
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
|
||||
@include media(tablet) {
|
||||
font-size: $font__size-xl;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-pullquote__citation {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
line-height: 1.6;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
em {
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="left"],
|
||||
.wp-block[data-type="core/pullquote"][data-align="right"] {
|
||||
|
||||
.editor-block-list__block-edit {
|
||||
width: calc(4 * (100vw / 12));
|
||||
max-width: 50%;
|
||||
|
||||
.wp-block-pullquote:not(.is-style-solid-color) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
|
||||
blockquote > .editor-rich-text p,
|
||||
p,
|
||||
.wp-block-pullquote__citation {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block[data-type="core/pullquote"][data-align="full"] {
|
||||
|
||||
@include media(tablet) {
|
||||
|
||||
.wp-block-pullquote blockquote {
|
||||
max-width: calc(80% - 128px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** === File === */
|
||||
|
||||
.wp-block-file {
|
||||
font-family: $font__heading;
|
||||
|
||||
.wp-block-file__textlink {
|
||||
text-decoration: underline;
|
||||
color: $color__link;
|
||||
|
||||
&:hover {
|
||||
color: $color__link-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-file__button {
|
||||
display: table;
|
||||
line-height: 1.8;
|
||||
font-family: $font__ui;
|
||||
font-size: $font__size-sm;
|
||||
font-weight: bold;
|
||||
background-color: $color__link;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.wp-block-file__button-richtext-wrapper {
|
||||
display: block;
|
||||
margin-top: calc(0.75 * #{$size__spacing-unit});
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** === Verse === */
|
||||
|
||||
.wp-block-verse,
|
||||
.wp-block-verse pre {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/** === Code === */
|
||||
|
||||
.wp-block-code {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/** === Media & Text === */
|
||||
|
||||
// Remove spacing between consecutive Media & Text blocks.
|
||||
[data-type="core/media-text"] {
|
||||
|
||||
.wp-block-media-text {
|
||||
background: $color__background-screen;
|
||||
}
|
||||
|
||||
.wp-block-heading {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
text-align: inherit;
|
||||
margin-bottom: $size__spacing-unit;
|
||||
margin-top: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
|
||||
& + [data-type="core/media-text"] {
|
||||
margin-top: -32px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Table === */
|
||||
|
||||
.wp-block-table {
|
||||
|
||||
td, th {
|
||||
border-color: $color__text-light;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Separator === */
|
||||
|
||||
.wp-block-separator {
|
||||
|
||||
margin-top: #{$size__spacing-unit * 3};
|
||||
margin-bottom: #{$size__spacing-unit * 3};
|
||||
|
||||
&:not(.is-style-dots) {
|
||||
border-bottom: 2px solid #f1f1f1;
|
||||
}
|
||||
|
||||
&:not(.is-style-wide):not(.is-style-dots) {
|
||||
width: 5em;
|
||||
}
|
||||
|
||||
&.is-style-dots:before {
|
||||
color: $color__text-light;
|
||||
font-size: $font__size-lg;
|
||||
letter-spacing: calc(2 * #{$size__spacing-unit});
|
||||
padding-left: calc(2 * #{$size__spacing-unit});
|
||||
}
|
||||
}
|
||||
|
||||
/** === Latest Posts, Archives, Categories === */
|
||||
|
||||
ul.wp-block-archives,
|
||||
.wp-block-categories,
|
||||
.wp-block-latest-posts {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
li {
|
||||
color: $color__text-light;
|
||||
font-family: $font__heading;
|
||||
font-size: calc(#{$font__size_base} * #{$font__size-ratio});
|
||||
font-weight: bold;
|
||||
line-height: $font__line-height-heading;
|
||||
padding-bottom: ( .75 * $size__spacing-unit );
|
||||
|
||||
&.menu-item-has-children,
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-categories {
|
||||
|
||||
ul {
|
||||
padding-top: ( .75 * $size__spacing-unit );
|
||||
@include nestedSubMenuPadding();
|
||||
}
|
||||
|
||||
li ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-bottom: ( -.75 * $size__spacing-unit );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** === Latest Posts grid view === */
|
||||
.wp-block-latest-posts.is-grid {
|
||||
li {
|
||||
border-top: 2px solid $color__border;
|
||||
padding-top: (1 * $size__spacing-unit);
|
||||
margin-bottom: (2 * $size__spacing-unit);
|
||||
a {
|
||||
&:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom: auto;
|
||||
a:after {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** === Latest Comments === */
|
||||
|
||||
.wp-block-latest-comments {
|
||||
|
||||
.wp-block-latest-comments__comment-meta {
|
||||
font-family: $font__heading;
|
||||
font-weight: bold;
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment,
|
||||
.wp-block-latest-comments__comment-date,
|
||||
.wp-block-latest-comments__comment-excerpt p {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
font-size: $font__size-xs;
|
||||
}
|
||||
}
|
||||
|
||||
/** === Classic Editor === */
|
||||
|
||||
/* Properly center-align captions in the classic-editor block */
|
||||
.wp-caption {
|
||||
dd {
|
||||
color: $color__text-light;
|
||||
font-size: $font__size-xs;
|
||||
font-family: $font__heading;
|
||||
line-height: $font__line-height-pre;
|
||||
margin: 0;
|
||||
padding: ( $size__spacing-unit * .5 );
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
-webkit-margin-start: 0px;
|
||||
margin-inline-start: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-freeform {
|
||||
|
||||
/* Add style for galleries in classic-editor block */
|
||||
blockquote {
|
||||
border-left: 2px solid $color__link;
|
||||
|
||||
cite {
|
||||
font-family: $font__heading;
|
||||
font-size: $font__size-xs;
|
||||
font-style: normal;
|
||||
line-height: 1.6;
|
||||
color: $color__text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Make sure our non-latin font overrides don't overwrite the iconfont used in the classic editor toolbar */
|
||||
.wp-block[data-type="core/freeform"] .mce-btn i {
|
||||
font-family: dashicons !important;
|
||||
}
|
97
elegant-business/style-jetpack.css
Normal file
97
elegant-business/style-jetpack.css
Normal file
|
@ -0,0 +1,97 @@
|
|||
/* Reset font-family styles for Jetpack
|
||||
*
|
||||
* See: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||||
*
|
||||
* Note: Use $font__heading or $font__body variables approriately
|
||||
*/
|
||||
/*
|
||||
* Source Serif Pro. (Google font)
|
||||
*/
|
||||
/* Infinite scroll */
|
||||
.site-main #infinite-handle span button,
|
||||
.site-main #infinite-handle span button:hover,
|
||||
.site-main #infinite-handle span button:focus {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
background: #c43d80;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span button,
|
||||
.site-main #infinite-handle span button:hover,
|
||||
.site-main #infinite-handle span button:focus
|
||||
div.sharedaddy > *,
|
||||
#content div.sharedaddy > *,
|
||||
#main div.sharedaddy > * {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.entry div.sharedaddy h3.sd-title,
|
||||
.entry h3.sd-title {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.entry div.sharedaddy h3.sd-title:before,
|
||||
.entry h3.sd-title:before,
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Related Posts
|
||||
*/
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
|
||||
font-size: 0.88889em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stats
|
||||
*/
|
||||
/**
|
||||
* Comments
|
||||
*/
|
||||
/**
|
||||
* Widgets
|
||||
*/
|
||||
/* Authors Widget */
|
||||
.widget_authors > ul > li > a {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
/* Display WordPress Posts */
|
||||
/* GoodReads */
|
||||
/* EU cookie law */
|
||||
.widget_eu_cookie_law_widget #eu-cookie-law {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
/* RSS Links */
|
||||
.widget_rss_links li {
|
||||
font-family: "Source Serif Pro", "Baskerville Old Face", Garamond, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
/**
|
||||
* Content Options
|
||||
*/
|
||||
/**
|
||||
* Content Form
|
||||
*/
|
||||
.contact-form label span {
|
||||
color: #767676;
|
||||
}
|
113
elegant-business/style-jetpack.scss
Normal file
113
elegant-business/style-jetpack.scss
Normal file
|
@ -0,0 +1,113 @@
|
|||
/* Reset font-family styles for Jetpack
|
||||
*
|
||||
* See: https://github.com/Automattic/jetpack/blob/master/modules/theme-tools/compat/twentynineteen.css
|
||||
*
|
||||
* Note: Use $font__heading or $font__body variables approriately
|
||||
*/
|
||||
@import "sass/variables-site/variables-site";
|
||||
|
||||
/* Infinite scroll */
|
||||
.site-main #infinite-handle span button,
|
||||
.site-main #infinite-handle span button:hover,
|
||||
.site-main #infinite-handle span button:focus {
|
||||
font-family: $font__ui;
|
||||
background: $color__link;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span button,
|
||||
.site-main #infinite-handle span button:hover,
|
||||
.site-main #infinite-handle span button:focus
|
||||
|
||||
/**
|
||||
* Responsive Videos
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sharing
|
||||
*/
|
||||
|
||||
div.sharedaddy > *,
|
||||
#content div.sharedaddy > *,
|
||||
#main div.sharedaddy > * {
|
||||
margin-bottom: $size__spacing-unit;
|
||||
}
|
||||
|
||||
.entry div.sharedaddy h3.sd-title,
|
||||
.entry h3.sd-title {
|
||||
font-family: $font__heading;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.entry div.sharedaddy h3.sd-title:before,
|
||||
.entry h3.sd-title:before,
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Related Posts
|
||||
*/
|
||||
|
||||
.entry #jp-relatedposts h3.jp-relatedposts-headline {
|
||||
font-family: $font__heading;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
|
||||
font-family: $font__body;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context,
|
||||
.entry #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-date {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
|
||||
font-size: $font__size-sm;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stats
|
||||
*/
|
||||
|
||||
/**
|
||||
* Comments
|
||||
*/
|
||||
|
||||
/**
|
||||
* Widgets
|
||||
*/
|
||||
|
||||
/* Authors Widget */
|
||||
.widget_authors > ul > li > a {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/* Display WordPress Posts */
|
||||
|
||||
/* GoodReads */
|
||||
|
||||
/* EU cookie law */
|
||||
.widget_eu_cookie_law_widget #eu-cookie-law {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/* RSS Links */
|
||||
.widget_rss_links li {
|
||||
font-family: $font__body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Content Options
|
||||
*/
|
||||
|
||||
/**
|
||||
* Content Form
|
||||
*/
|
||||
|
||||
.contact-form label span {
|
||||
color: #767676;
|
||||
}
|
4591
elegant-business/style-rtl.css
Normal file
4591
elegant-business/style-rtl.css
Normal file
File diff suppressed because it is too large
Load diff
4604
elegant-business/style.css
Normal file
4604
elegant-business/style.css
Normal file
File diff suppressed because it is too large
Load diff
110
elegant-business/style.scss
Normal file
110
elegant-business/style.scss
Normal file
|
@ -0,0 +1,110 @@
|
|||
/*
|
||||
Theme Name: Elegant Business
|
||||
Theme URI: https://github.com/automattic/themes
|
||||
Author: Automattic
|
||||
Author URI: https://wordpress.org/
|
||||
Template: twentynineteen
|
||||
Description: Simple, yet sophisticated, with subtle, beautiful typography, Elegant Business conveys quality and integrity, which makes it especially good fit for coffee shops, pop-up shops, and brick & mortar store fronts.
|
||||
Requires at least: WordPress 4.9.6
|
||||
Version: 1.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
Text Domain: elegant-business
|
||||
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
|
||||
Twenty Nineteen is based on Underscores https://underscores.me/, (C) 2012-2018 Automattic, Inc.
|
||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||
|
||||
Normalizing styles have been helped along thanks to the fine work of
|
||||
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Variables
|
||||
# Normalize
|
||||
# Typography
|
||||
## Headings
|
||||
## Copy
|
||||
# Elements
|
||||
## Lists
|
||||
## Tables
|
||||
# Forms
|
||||
## Buttons
|
||||
## Fields
|
||||
# Navigation
|
||||
## Links
|
||||
## Menus
|
||||
## Next & Previous
|
||||
# Accessibility
|
||||
# Alignments
|
||||
# Clearings
|
||||
# Layout
|
||||
# Widgets
|
||||
# Content
|
||||
## Archives
|
||||
## Posts and pages
|
||||
## Comments
|
||||
# Blocks
|
||||
# Media
|
||||
## Captions
|
||||
## Galleries
|
||||
--------------------------------------------------------------*/
|
||||
@import "sass/variables-site/variables-site";
|
||||
@import "sass/mixins/mixins-master";
|
||||
|
||||
/* Normalize */
|
||||
|
||||
@import "sass/normalize";
|
||||
|
||||
/* Typography */
|
||||
|
||||
@import "sass/typography/typography";
|
||||
|
||||
/* Elements */
|
||||
|
||||
@import "sass/elements/elements";
|
||||
|
||||
/* Forms */
|
||||
|
||||
@import "sass/forms/forms";
|
||||
|
||||
/* Navigation */
|
||||
|
||||
@import "sass/navigation/navigation";
|
||||
|
||||
/* Accessibility */
|
||||
|
||||
@import "sass/modules/accessibility";
|
||||
|
||||
/* Alignments */
|
||||
|
||||
@import "sass/modules/alignments";
|
||||
|
||||
/* Clearings */
|
||||
|
||||
@import "sass/modules/clearings";
|
||||
|
||||
/* Layout */
|
||||
|
||||
@import "sass/layout/layout";
|
||||
|
||||
/* Content */
|
||||
|
||||
@import "sass/site/site";
|
||||
|
||||
/* Widgets */
|
||||
|
||||
@import "sass/site/secondary/widgets";
|
||||
|
||||
/* Blocks */
|
||||
|
||||
@import "sass/blocks/blocks";
|
||||
|
||||
/* Media */
|
||||
|
||||
@import "sass/media/media";
|
Loading…
Add table
Reference in a new issue