xstatic-package for Roboto Font Face
Roboto is the font for Google's Material Design. We plan on using this in Horizon to provide a theme that implements Google's Material Design. The 'material' theme gives an example of how to make use of a 3rd party theme using the theming functionality. In addition to incorporating a theme, loaded as a static asset using requirements.txt, it also gives examples of how to cleanly override styles, variables, icon fonts and Django templates. This theme is replacing 'blue' as the example of how to use a theme other than 'default'. Partially-Implements: blueprint horizon-theme-css-reorg Change-Id: I4773b35c18878e4bc20579eb21a7cc2cd8f7636e
9
.gitignore
vendored
Executable file
@ -0,0 +1,9 @@
|
||||
*.pyc
|
||||
*.sw?
|
||||
*.sqlite3
|
||||
.DS_STORE
|
||||
*.egg-info
|
||||
.venv
|
||||
.tox
|
||||
build
|
||||
dist
|
201
LICENSE
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2013 Christian Hoffmeister
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
7
MANIFEST.in
Normal file
@ -0,0 +1,7 @@
|
||||
include README.txt
|
||||
recursive-include xstatic/pkg/roboto_fontface *
|
||||
|
||||
global-exclude *.pyc
|
||||
global-exclude *.pyo
|
||||
global-exclude *.orig
|
||||
global-exclude *.rej
|
14
README.txt
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
XStatic-roboto-fontface
|
||||
-----------------------
|
||||
|
||||
roboto-fontface javascript library packaged for setuptools (easy_install) / pip.
|
||||
|
||||
This package is intended to be used by **any** project that needs these files.
|
||||
|
||||
It intentionally does **not** provide any extra code except some metadata
|
||||
**nor** has any extra requirements. You MAY use some minimal support code from
|
||||
the XStatic base package, if you like.
|
||||
|
||||
You can find more info about the xstatic packaging way in the package
|
||||
`XStatic`.
|
27
setup.py
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
from xstatic.pkg import roboto_fontface as xs
|
||||
|
||||
# The README.txt file should be written in reST so that PyPI can use
|
||||
# it to generate your project's PyPI page.
|
||||
long_description = open('README.txt').read()
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name=xs.PACKAGE_NAME,
|
||||
version=xs.PACKAGE_VERSION,
|
||||
description=xs.DESCRIPTION,
|
||||
long_description=long_description,
|
||||
classifiers=xs.CLASSIFIERS,
|
||||
keywords=xs.KEYWORDS,
|
||||
maintainer=xs.MAINTAINER,
|
||||
maintainer_email=xs.MAINTAINER_EMAIL,
|
||||
license=xs.LICENSE,
|
||||
url=xs.HOMEPAGE,
|
||||
platforms=xs.PLATFORMS,
|
||||
packages=find_packages(),
|
||||
namespace_packages=['xstatic', 'xstatic.pkg', ],
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=[],
|
||||
)
|
1
xstatic/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
1
xstatic/pkg/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
58
xstatic/pkg/roboto_fontface/__init__.py
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
"""
|
||||
XStatic resource package
|
||||
|
||||
See package 'XStatic' for documentation and basic tools.
|
||||
"""
|
||||
|
||||
# official name, upper/lowercase allowed, no spaces
|
||||
DISPLAY_NAME = 'roboto-fontface'
|
||||
|
||||
# name used for PyPi
|
||||
PACKAGE_NAME = 'XStatic-%s' % DISPLAY_NAME
|
||||
|
||||
NAME = __name__.split('.')[-1] # package name (e.g. 'foo' or 'foo_bar')
|
||||
# please use a all-lowercase valid python
|
||||
# package name
|
||||
|
||||
VERSION = '0.4.3' # version of the packaged files, please use the upstream
|
||||
# version number
|
||||
BUILD = '2' # our package build number, so we can release new builds
|
||||
# with fixes for xstatic stuff.
|
||||
PACKAGE_VERSION = VERSION + '.' + BUILD # version used for PyPi
|
||||
|
||||
DESCRIPTION = "%s %s (XStatic packaging standard)" % (DISPLAY_NAME, VERSION)
|
||||
|
||||
PLATFORMS = 'any'
|
||||
CLASSIFIERS = []
|
||||
KEYWORDS = 'roboto_fontface xstatic'
|
||||
|
||||
# XStatic-* package maintainer:
|
||||
MAINTAINER = 'Diana Whitten'
|
||||
MAINTAINER_EMAIL = 'hurgleburgler@gmail.com'
|
||||
|
||||
# this refers to the project homepage of the stuff we packaged:
|
||||
HOMEPAGE = 'https://github.com/choffmeister/roboto-fontface-bower'
|
||||
|
||||
# this refers to all files:
|
||||
LICENSE = '(same as %s)' % DISPLAY_NAME
|
||||
|
||||
from os.path import join, dirname
|
||||
BASE_DIR = join(dirname(__file__), 'data')
|
||||
# linux package maintainers just can point to their file locations like this:
|
||||
#BASE_DIR = '/usr/share/javascript/' + NAME
|
||||
|
||||
# location of the Javascript file that's the entry point for this package, if
|
||||
# one exists, relative to BASE_DIR
|
||||
MAIN="[u'./css/roboto-fontface.css', u'./fonts/Roboto-Black.eot', u'./fonts/Roboto-Black.svg', u'./fonts/Roboto-Black.ttf', u'./fonts/Roboto-Black.woff', u'./fonts/Roboto-Black.woff2', u'./fonts/Roboto-BlackItalic.eot', u'./fonts/Roboto-BlackItalic.svg', u'./fonts/Roboto-BlackItalic.ttf', u'./fonts/Roboto-BlackItalic.woff', u'./fonts/Roboto-BlackItalic.woff2', u'./fonts/Roboto-Bold.eot', u'./fonts/Roboto-Bold.svg', u'./fonts/Roboto-Bold.ttf', u'./fonts/Roboto-Bold.woff', u'./fonts/Roboto-Bold.woff2', u'./fonts/Roboto-BoldItalic.eot', u'./fonts/Roboto-BoldItalic.svg', u'./fonts/Roboto-BoldItalic.ttf', u'./fonts/Roboto-BoldItalic.woff', u'./fonts/Roboto-BoldItalic.woff2', u'./fonts/Roboto-Light.eot', u'./fonts/Roboto-Light.svg', u'./fonts/Roboto-Light.ttf', u'./fonts/Roboto-Light.woff', u'./fonts/Roboto-Light.woff2', u'./fonts/Roboto-LightItalic.eot', u'./fonts/Roboto-LightItalic.svg', u'./fonts/Roboto-LightItalic.ttf', u'./fonts/Roboto-LightItalic.woff', u'./fonts/Roboto-LightItalic.woff2', u'./fonts/Roboto-Medium.eot', u'./fonts/Roboto-Medium.svg', u'./fonts/Roboto-Medium.ttf', u'./fonts/Roboto-Medium.woff', u'./fonts/Roboto-Medium.woff2', u'./fonts/Roboto-MediumItalic.eot', u'./fonts/Roboto-MediumItalic.svg', u'./fonts/Roboto-MediumItalic.ttf', u'./fonts/Roboto-MediumItalic.woff', u'./fonts/Roboto-MediumItalic.woff2', u'./fonts/Roboto-Regular.eot', u'./fonts/Roboto-Regular.svg', u'./fonts/Roboto-Regular.ttf', u'./fonts/Roboto-Regular.woff', u'./fonts/Roboto-Regular.woff2', u'./fonts/Roboto-RegularItalic.eot', u'./fonts/Roboto-RegularItalic.svg', u'./fonts/Roboto-RegularItalic.ttf', u'./fonts/Roboto-RegularItalic.woff', u'./fonts/Roboto-RegularItalic.woff2', u'./fonts/Roboto-Thin.eot', u'./fonts/Roboto-Thin.svg', u'./fonts/Roboto-Thin.ttf', u'./fonts/Roboto-Thin.woff', u'./fonts/Roboto-Thin.woff2', u'./fonts/Roboto-ThinItalic.eot', u'./fonts/Roboto-ThinItalic.svg', u'./fonts/Roboto-ThinItalic.ttf', u'./fonts/Roboto-ThinItalic.woff', u'./fonts/Roboto-ThinItalic.woff2']"
|
||||
|
||||
LOCATIONS = {
|
||||
# CDN locations (if no public CDN exists, use an empty dict)
|
||||
# if value is a string, it is a base location, just append relative
|
||||
# path/filename. if value is a dict, do another lookup using the
|
||||
# relative path/filename you want.
|
||||
# your relative path/filenames should usually be without version
|
||||
# information, because either the base dir/url is exactly for this
|
||||
# version or the mapping will care for accessing this version.
|
||||
|
||||
}
|
201
xstatic/pkg/roboto_fontface/data/LICENSE
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2013 Christian Hoffmeister
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
27
xstatic/pkg/roboto_fontface/data/README.md
Normal file
@ -0,0 +1,27 @@
|
||||
# Roboto fontface
|
||||
|
||||
A simple package providing the [Roboto](http://www.google.com/fonts/specimen/Roboto) fontface. The font was created by [Christian Robertson](https://plus.google.com/110879635926653430880/about).
|
||||
|
||||
## Installing
|
||||
|
||||
Assuming you have [NodeJS](http://nodejs.org/), [NPM](https://www.npmjs.com/) and [Bower](http://bower.io/) installed globally just open up a terminal, navigate to your projects root directory and then execute
|
||||
|
||||
```
|
||||
# install via NPM
|
||||
$ npm install roboto-fontface --save
|
||||
|
||||
# install via Bower
|
||||
$ bower install roboto-fontface --save
|
||||
```
|
||||
|
||||
## Hinting
|
||||
|
||||
Some of the included font files have [hinting](http://en.wikipedia.org/wiki/Font_hinting).
|
||||
|
||||
| Files | Hinting |
|
||||
|----------|---------|
|
||||
| `.eot` | ? |
|
||||
| `.svg` | no |
|
||||
| `.ttf` | ? |
|
||||
| `.woff` | yes |
|
||||
| `.woff2` | ? |
|
263
xstatic/pkg/roboto_fontface/data/css/roboto-fontface.css
Normal file
@ -0,0 +1,263 @@
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-Thin.eot');
|
||||
src: url('../fonts/Roboto-Thin.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Thin.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Thin.woff') format('woff'),
|
||||
url('../fonts/Roboto-Thin.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Thin.svg#Roboto') format('svg');
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Thin';
|
||||
src: url('../fonts/Roboto-Thin.eot');
|
||||
src: url('../fonts/Roboto-Thin.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Thin.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Thin.woff') format('woff'),
|
||||
url('../fonts/Roboto-Thin.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Thin.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-ThinItalic.eot');
|
||||
src: url('../fonts/Roboto-ThinItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-ThinItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-ThinItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-ThinItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-ThinItalic.svg#Roboto') format('svg');
|
||||
font-weight: 100;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-ThinItalic';
|
||||
src: url('../fonts/Roboto-ThinItalic.eot');
|
||||
src: url('../fonts/Roboto-ThinItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-ThinItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-ThinItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-ThinItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-ThinItalic.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-Light.eot');
|
||||
src: url('../fonts/Roboto-Light.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Light.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Light.woff') format('woff'),
|
||||
url('../fonts/Roboto-Light.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Light.svg#Roboto') format('svg');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Light';
|
||||
src: url('../fonts/Roboto-Light.eot');
|
||||
src: url('../fonts/Roboto-Light.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Light.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Light.woff') format('woff'),
|
||||
url('../fonts/Roboto-Light.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Light.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-LightItalic.eot');
|
||||
src: url('../fonts/Roboto-LightItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-LightItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-LightItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-LightItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-LightItalic.svg#Roboto') format('svg');
|
||||
font-weight: 300;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-LightItalic';
|
||||
src: url('../fonts/Roboto-LightItalic.eot');
|
||||
src: url('../fonts/Roboto-LightItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-LightItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-LightItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-LightItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-LightItalic.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-Regular.eot');
|
||||
src: url('../fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Regular.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Regular.woff') format('woff'),
|
||||
url('../fonts/Roboto-Regular.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Regular.svg#Roboto') format('svg');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Regular';
|
||||
src: url('../fonts/Roboto-Regular.eot');
|
||||
src: url('../fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Regular.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Regular.woff') format('woff'),
|
||||
url('../fonts/Roboto-Regular.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Regular.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-RegularItalic.eot');
|
||||
src: url('../fonts/Roboto-RegularItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-RegularItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-RegularItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-RegularItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-RegularItalic.svg#Roboto') format('svg');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-RegularItalic';
|
||||
src: url('../fonts/Roboto-RegularItalic.eot');
|
||||
src: url('../fonts/Roboto-RegularItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-RegularItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-RegularItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-RegularItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-RegularItalic.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-Medium.eot');
|
||||
src: url('../fonts/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Medium.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Medium.woff') format('woff'),
|
||||
url('../fonts/Roboto-Medium.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Medium.svg#Roboto') format('svg');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Medium';
|
||||
src: url('../fonts/Roboto-Medium.eot');
|
||||
src: url('../fonts/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Medium.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Medium.woff') format('woff'),
|
||||
url('../fonts/Roboto-Medium.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Medium.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-MediumItalic.eot');
|
||||
src: url('../fonts/Roboto-MediumItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-MediumItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-MediumItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-MediumItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-MediumItalic.svg#Roboto') format('svg');
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-MediumItalic';
|
||||
src: url('../fonts/Roboto-MediumItalic.eot');
|
||||
src: url('../fonts/Roboto-MediumItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-MediumItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-MediumItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-MediumItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-MediumItalic.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-Bold.eot');
|
||||
src: url('../fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Bold.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Bold.woff') format('woff'),
|
||||
url('../fonts/Roboto-Bold.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Bold.svg#Roboto') format('svg');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Bold';
|
||||
src: url('../fonts/Roboto-Bold.eot');
|
||||
src: url('../fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Bold.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Bold.woff') format('woff'),
|
||||
url('../fonts/Roboto-Bold.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Bold.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-BoldItalic.eot');
|
||||
src: url('../fonts/Roboto-BoldItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-BoldItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-BoldItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-BoldItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-BoldItalic.svg#Roboto') format('svg');
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-BoldItalic';
|
||||
src: url('../fonts/Roboto-BoldItalic.eot');
|
||||
src: url('../fonts/Roboto-BoldItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-BoldItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-BoldItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-BoldItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-BoldItalic.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-Black.eot');
|
||||
src: url('../fonts/Roboto-Black.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Black.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Black.woff') format('woff'),
|
||||
url('../fonts/Roboto-Black.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Black.svg#Roboto') format('svg');
|
||||
font-weight: 900;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-Black';
|
||||
src: url('../fonts/Roboto-Black.eot');
|
||||
src: url('../fonts/Roboto-Black.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-Black.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-Black.woff') format('woff'),
|
||||
url('../fonts/Roboto-Black.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-Black.svg#Roboto') format('svg');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('../fonts/Roboto-BlackItalic.eot');
|
||||
src: url('../fonts/Roboto-BlackItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-BlackItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-BlackItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-BlackItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-BlackItalic.svg#Roboto') format('svg');
|
||||
font-weight: 900;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-BlackItalic';
|
||||
src: url('../fonts/Roboto-BlackItalic.eot');
|
||||
src: url('../fonts/Roboto-BlackItalic.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/Roboto-BlackItalic.woff2') format('woff2'),
|
||||
url('../fonts/Roboto-BlackItalic.woff') format('woff'),
|
||||
url('../fonts/Roboto-BlackItalic.ttf') format('truetype'),
|
||||
url('../fonts/Roboto-BlackItalic.svg#Roboto') format('svg');
|
||||
}
|
37
xstatic/pkg/roboto_fontface/data/css/roboto-fontface.less
Normal file
@ -0,0 +1,37 @@
|
||||
@roboto-font-path: '../fonts';
|
||||
|
||||
.roboto-font(@type, @weight, @style) {
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
||||
font-weight: @weight;
|
||||
font-style: @style;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-@{type}';
|
||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
||||
}
|
||||
}
|
||||
|
||||
.roboto-font-pair(@type, @weight) {
|
||||
.roboto-font('@{type}', @weight, normal);
|
||||
.roboto-font('@{type}Italic', @weight, italic);
|
||||
}
|
||||
|
||||
.roboto-font-pair('Thin', 100);
|
||||
.roboto-font-pair('Light', 300);
|
||||
.roboto-font-pair('Regular', 400);
|
||||
.roboto-font-pair('Medium', 500);
|
||||
.roboto-font-pair('Bold', 700);
|
||||
.roboto-font-pair('Black', 900);
|
37
xstatic/pkg/roboto_fontface/data/css/roboto-fontface.scss
Normal file
@ -0,0 +1,37 @@
|
||||
$roboto-font-path: '../fonts' !default;
|
||||
|
||||
@mixin roboto-font($type, $weight, $style: normal) {
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto-#{$type}';
|
||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
||||
}
|
||||
}
|
||||
|
||||
@mixin roboto-font-pair($type, $weight) {
|
||||
@include roboto-font($type, $weight);
|
||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
||||
}
|
||||
|
||||
@include roboto-font-pair('Thin', 100);
|
||||
@include roboto-font-pair('Light', 300);
|
||||
@include roboto-font-pair('Regular', 400);
|
||||
@include roboto-font-pair('Medium', 500);
|
||||
@include roboto-font-pair('Bold', 700);
|
||||
@include roboto-font-pair('Black', 900);
|
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Black.eot
Executable file
10968
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Black.svg
Executable file
After Width: | Height: | Size: 732 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Black.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Black.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Black.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BlackItalic.eot
Executable file
11086
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BlackItalic.svg
Executable file
After Width: | Height: | Size: 758 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BlackItalic.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BlackItalic.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BlackItalic.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Bold.eot
Executable file
11010
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Bold.svg
Executable file
After Width: | Height: | Size: 738 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Bold.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Bold.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Bold.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BoldItalic.eot
Executable file
11096
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BoldItalic.svg
Executable file
After Width: | Height: | Size: 760 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BoldItalic.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BoldItalic.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-BoldItalic.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Light.eot
Executable file
10564
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Light.svg
Executable file
After Width: | Height: | Size: 726 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Light.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Light.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Light.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-LightItalic.eot
Executable file
10646
xstatic/pkg/roboto_fontface/data/fonts/Roboto-LightItalic.svg
Executable file
After Width: | Height: | Size: 750 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-LightItalic.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-LightItalic.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-LightItalic.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Medium.eot
Executable file
10999
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Medium.svg
Executable file
After Width: | Height: | Size: 736 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Medium.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Medium.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Medium.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-MediumItalic.eot
Executable file
11100
xstatic/pkg/roboto_fontface/data/fonts/Roboto-MediumItalic.svg
Executable file
After Width: | Height: | Size: 761 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-MediumItalic.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-MediumItalic.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-MediumItalic.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Regular.eot
Executable file
10520
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Regular.svg
Executable file
After Width: | Height: | Size: 716 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Regular.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Regular.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Regular.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-RegularItalic.eot
Executable file
10629
xstatic/pkg/roboto_fontface/data/fonts/Roboto-RegularItalic.svg
Executable file
After Width: | Height: | Size: 743 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-RegularItalic.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-RegularItalic.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Thin.eot
Executable file
10617
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Thin.svg
Executable file
After Width: | Height: | Size: 726 KiB |
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Thin.ttf
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Thin.woff
Executable file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-Thin.woff2
Normal file
BIN
xstatic/pkg/roboto_fontface/data/fonts/Roboto-ThinItalic.eot
Executable file
10726
xstatic/pkg/roboto_fontface/data/fonts/Roboto-ThinItalic.svg
Executable file
After Width: | Height: | Size: 756 KiB |