Created
August 2, 2024 02:11
-
-
Save bananatron/093ff895bbf7336d5f9639776a519f65 to your computer and use it in GitHub Desktop.
Tachyons Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! TACHYONS v4.12.0 | http://tachyons.io */ | |
/* | |
* | |
* ________ ______ | |
* ___ __/_____ _________ /______ ______________________ | |
* __ / _ __ `/ ___/_ __ \_ / / / __ \_ __ \_ ___/ | |
* _ / / /_/ // /__ _ / / / /_/ // /_/ / / / /(__ ) | |
* /_/ \__,_/ \___/ /_/ /_/_\__, / \____//_/ /_//____/ | |
* | |
* ---- LITE VERSION (BLUEPRINT SPECIAL) ---- | |
*/ | |
/* | |
SPACING | |
Docs: http://tachyons.io/docs/layout/spacing/ | |
An eight step powers of two scale ranging from 0 to 16rem. | |
Base: | |
p = padding | |
m = margin | |
Modifiers: | |
a = all | |
h = horizontal | |
v = vertical | |
t = top | |
r = right | |
b = bottom | |
l = left | |
0 = none | |
1 = 1st step in spacing scale | |
2 = 2nd step in spacing scale | |
3 = 3rd step in spacing scale | |
4 = 4th step in spacing scale | |
5 = 5th step in spacing scale | |
6 = 6th step in spacing scale | |
7 = 7th step in spacing scale | |
*/ | |
.pa0 { padding: 0; } | |
.pa1 { padding: .25rem; } | |
.pa2 { padding: .5rem; } | |
.pa3 { padding: 1rem; } | |
.pa4 { padding: 2rem; } | |
.pa5 { padding: 4rem; } | |
.pa6 { padding: 8rem; } | |
.pa7 { padding: 16rem; } | |
.pl0 { padding-left: 0; } | |
.pl1 { padding-left: .25rem; } | |
.pl2 { padding-left: .5rem; } | |
.pl3 { padding-left: 1rem; } | |
.pl4 { padding-left: 2rem; } | |
.pl5 { padding-left: 4rem; } | |
.pl6 { padding-left: 8rem; } | |
.pl7 { padding-left: 16rem; } | |
.pr0 { padding-right: 0; } | |
.pr1 { padding-right: .25rem; } | |
.pr2 { padding-right: .5rem; } | |
.pr3 { padding-right: 1rem; } | |
.pr4 { padding-right: 2rem; } | |
.pr5 { padding-right: 4rem; } | |
.pr6 { padding-right: 8rem; } | |
.pr7 { padding-right: 16rem; } | |
.pb0 { padding-bottom: 0; } | |
.pb1 { padding-bottom: .25rem; } | |
.pb2 { padding-bottom: .5rem; } | |
.pb3 { padding-bottom: 1rem; } | |
.pb4 { padding-bottom: 2rem; } | |
.pb5 { padding-bottom: 4rem; } | |
.pb6 { padding-bottom: 8rem; } | |
.pb7 { padding-bottom: 16rem; } | |
.pt0 { padding-top: 0; } | |
.pt1 { padding-top: .25rem; } | |
.pt2 { padding-top: .5rem; } | |
.pt3 { padding-top: 1rem; } | |
.pt4 { padding-top: 2rem; } | |
.pt5 { padding-top: 4rem; } | |
.pt6 { padding-top: 8rem; } | |
.pt7 { padding-top: 16rem; } | |
.pv0 { padding-top: 0; padding-bottom: 0; } | |
.pv1 { padding-top: .25rem; padding-bottom: .25rem; } | |
.pv2 { padding-top: .5rem; padding-bottom: .5rem; } | |
.pv3 { padding-top: 1rem; padding-bottom: 1rem; } | |
.pv4 { padding-top: 2rem; padding-bottom: 2rem; } | |
.pv5 { padding-top: 4rem; padding-bottom: 4rem; } | |
.pv6 { padding-top: 8rem; padding-bottom: 8rem; } | |
.pv7 { padding-top: 16rem; padding-bottom: 16rem; } | |
.ph0 { padding-left: 0; padding-right: 0; } | |
.ph1 { padding-left: .25rem; padding-right: .25rem; } | |
.ph2 { padding-left: .5rem; padding-right: .5rem; } | |
.ph3 { padding-left: 1rem; padding-right: 1rem; } | |
.ph4 { padding-left: 2rem; padding-right: 2rem; } | |
.ph5 { padding-left: 4rem; padding-right: 4rem; } | |
.ph6 { padding-left: 8rem; padding-right: 8rem; } | |
.ph7 { padding-left: 16rem; padding-right: 16rem; } | |
.ma0 { margin: 0 !important; } | |
.ma1 { margin: .25rem; } | |
.ma2 { margin: .5rem; } | |
.ma3 { margin: 1rem; } | |
.ma4 { margin: 2rem; } | |
.ma5 { margin: 4rem; } | |
.ma6 { margin: 8rem; } | |
.ma7 { margin: 16rem; } | |
.ml0 { margin-left: 0; } | |
.ml1 { margin-left: .25rem; } | |
.ml2 { margin-left: .5rem; } | |
.ml3 { margin-left: 1rem; } | |
.ml4 { margin-left: 2rem; } | |
.ml5 { margin-left: 4rem; } | |
.ml6 { margin-left: 8rem; } | |
.ml7 { margin-left: 16rem; } | |
.mr0 { margin-right: 0; } | |
.mr1 { margin-right: .25rem; } | |
.mr2 { margin-right: .5rem; } | |
.mr3 { margin-right: 1rem; } | |
.mr4 { margin-right: 2rem; } | |
.mr5 { margin-right: 4rem; } | |
.mr6 { margin-right: 8rem; } | |
.mr7 { margin-right: 16rem; } | |
.mb0 { margin-bottom: 0; } | |
.mb1 { margin-bottom: .25rem; } | |
.mb2 { margin-bottom: .5rem; } | |
.mb3 { margin-bottom: 1rem; } | |
.mb4 { margin-bottom: 2rem; } | |
.mb5 { margin-bottom: 4rem; } | |
.mb6 { margin-bottom: 8rem; } | |
.mb7 { margin-bottom: 16rem; } | |
.mt0 { margin-top: 0; } | |
.mt1 { margin-top: .25rem; } | |
.mt2 { margin-top: .5rem; } | |
.mt3 { margin-top: 1rem; } | |
.mt4 { margin-top: 2rem; } | |
.mt5 { margin-top: 4rem; } | |
.mt6 { margin-top: 8rem; } | |
.mt7 { margin-top: 16rem; } | |
.mv0 { margin-top: 0; margin-bottom: 0; } | |
.mv1 { margin-top: .25rem; margin-bottom: .25rem; } | |
.mv2 { margin-top: .5rem; margin-bottom: .5rem; } | |
.mv3 { margin-top: 1rem; margin-bottom: 1rem; } | |
.mv4 { margin-top: 2rem; margin-bottom: 2rem; } | |
.mv5 { margin-top: 4rem; margin-bottom: 4rem; } | |
.mv6 { margin-top: 8rem; margin-bottom: 8rem; } | |
.mv7 { margin-top: 16rem; margin-bottom: 16rem; } | |
.mh0 { margin-left: 0; margin-right: 0; } | |
.mh1 { margin-left: .25rem; margin-right: .25rem; } | |
.mh2 { margin-left: .5rem; margin-right: .5rem; } | |
.mh3 { margin-left: 1rem; margin-right: 1rem; } | |
.mh4 { margin-left: 2rem; margin-right: 2rem; } | |
.mh5 { margin-left: 4rem; margin-right: 4rem; } | |
.mh6 { margin-left: 8rem; margin-right: 8rem; } | |
.mh7 { margin-left: 16rem; margin-right: 16rem; } | |
/* | |
FLEXBOX | |
*/ | |
.flex { display: flex; } | |
.inline-flex { display: inline-flex; } | |
/* 1. Fix for Chrome 44 bug. | |
* https://code.google.com/p/chromium/issues/detail?id=506893 */ | |
.flex-auto { flex: 1 1 auto; min-width: 0; /* 1 */ min-height: 0; /* 1 */ } | |
.flex-none { flex: none; } | |
.flex-column { flex-direction: column; } | |
.flex-row { flex-direction: row; } | |
.flex-wrap { flex-wrap: wrap; } | |
.flex-nowrap { flex-wrap: nowrap; } | |
.flex-wrap-reverse { flex-wrap: wrap-reverse; } | |
.flex-column-reverse { flex-direction: column-reverse; } | |
.flex-row-reverse { flex-direction: row-reverse; } | |
.items-start { align-items: flex-start; } | |
.items-end { align-items: flex-end; } | |
.items-center { align-items: center; } | |
.items-baseline { align-items: baseline; } | |
.items-stretch { align-items: stretch; } | |
.self-start { align-self: flex-start; } | |
.self-end { align-self: flex-end; } | |
.self-center { align-self: center; } | |
.self-baseline { align-self: baseline; } | |
.self-stretch { align-self: stretch; } | |
.justify-start { justify-content: flex-start; } | |
.justify-end { justify-content: flex-end; } | |
.justify-center { justify-content: center; } | |
.justify-between { justify-content: space-between; } | |
.justify-around { justify-content: space-around; } | |
.content-start { align-content: flex-start; } | |
.content-end { align-content: flex-end; } | |
.content-center { align-content: center; } | |
.content-between { align-content: space-between; } | |
.content-around { align-content: space-around; } | |
.content-stretch { align-content: stretch; } | |
.order-0 { order: 0; } | |
.order-1 { order: 1; } | |
.order-2 { order: 2; } | |
.order-3 { order: 3; } | |
.order-4 { order: 4; } | |
.order-5 { order: 5; } | |
.order-6 { order: 6; } | |
.order-7 { order: 7; } | |
.order-8 { order: 8; } | |
.order-last { order: 99999; } | |
.flex-grow-0 { flex-grow: 0; } | |
.flex-grow-1 { flex-grow: 1; } | |
.flex-shrink-0 { flex-shrink: 0; } | |
.flex-shrink-1 { flex-shrink: 1; } | |
.fg0 { flex-grow: 0; } | |
.fg1 { flex-grow: 1; } | |
.fs0 { flex-shrink: 0; } | |
.fs1 { flex-shrink: 1; } | |
/* | |
FLOATS | |
http://tachyons.io/docs/layout/floats/ | |
1. Floated elements are automatically rendered as block level elements. | |
Setting floats to display inline will fix the double margin bug in | |
ie6. You know... just in case. | |
2. Don't forget to clearfix your floats with .cf | |
Base: | |
f = float | |
Modifiers: | |
l = left | |
r = right | |
n = none | |
*/ | |
.fl { float: left; _display: inline; } | |
.fr { float: right; _display: inline; } | |
.fn { float: none; } | |
/* | |
FONT WEIGHT | |
Docs: http://tachyons.io/docs/typography/font-weight/ | |
Base | |
fw = font-weight | |
Modifiers: | |
1 = literal value 100 | |
2 = literal value 200 | |
3 = literal value 300 | |
4 = literal value 400 | |
5 = literal value 500 | |
6 = literal value 600 | |
7 = literal value 700 | |
8 = literal value 800 | |
9 = literal value 900 | |
*/ | |
.normal { font-weight: normal; } | |
.b { font-weight: bold; } | |
.fw1 { font-weight: 100; } | |
.fw2 { font-weight: 200; } | |
.fw3 { font-weight: 300; } | |
.fw4 { font-weight: 400; } | |
.fw5 { font-weight: 500; } | |
.fw6 { font-weight: 600; } | |
.fw7 { font-weight: 700; } | |
.fw8 { font-weight: 800; } | |
.fw9 { font-weight: 900; } | |
/* | |
HEIGHTS | |
Docs: http://tachyons.io/docs/layout/heights/ | |
Base: | |
h = height | |
min-h = min-height | |
min-vh = min-height vertical screen height | |
vh = vertical screen height | |
Modifiers | |
1 = 1st step in height scale | |
2 = 2nd step in height scale | |
3 = 3rd step in height scale | |
4 = 4th step in height scale | |
5 = 5th step in height scale | |
-25 = literal value 25% | |
-50 = literal value 50% | |
-75 = literal value 75% | |
-100 = literal value 100% | |
-auto = string value of auto | |
-inherit = string value of inherit | |
*/ | |
/* Height Scale */ | |
.h1 { height: 1rem; } | |
.h2 { height: 2rem; } | |
.h3 { height: 4rem; } | |
.h4 { height: 8rem; } | |
.h5 { height: 16rem; } | |
/* Height Percentages - Based off of height of parent */ | |
.h-25 { height: 25%; } | |
.h-50 { height: 50%; } | |
.h-75 { height: 75%; } | |
.h-100 { height: 100%; } | |
.min-h-100 { min-height: 100%; } | |
/* Screen Height Percentage */ | |
.vh-25 { height: 25vh; } | |
.vh-50 { height: 50vh; } | |
.vh-75 { height: 75vh; } | |
.vh-100 { height: 100vh; } | |
.min-vh-100 { min-height: 100vh; } | |
/* String Properties */ | |
.h-auto { height: auto; } | |
.h-inherit { height: inherit; } | |
/* | |
MAX WIDTHS | |
Docs: http://tachyons.io/docs/layout/max-widths/ | |
Base: | |
mw = max-width | |
Modifiers | |
1 = 1st step in width scale | |
2 = 2nd step in width scale | |
3 = 3rd step in width scale | |
4 = 4th step in width scale | |
5 = 5th step in width scale | |
6 = 6st step in width scale | |
7 = 7nd step in width scale | |
8 = 8rd step in width scale | |
9 = 9th step in width scale | |
-100 = literal value 100% | |
-none = string value none | |
*/ | |
/* Max Width Percentages */ | |
.mw-100 { max-width: 100%; } | |
/* Max Width Scale */ | |
.mw1 { max-width: 1rem; } | |
.mw2 { max-width: 2rem; } | |
.mw3 { max-width: 4rem; } | |
.mw4 { max-width: 8rem; } | |
.mw5 { max-width: 16rem; } | |
.mw6 { max-width: 32rem; } | |
.mw7 { max-width: 48rem; } | |
.mw8 { max-width: 64rem; } | |
.mw9 { max-width: 96rem; } | |
/* Max Width String Properties */ | |
.mw-none { max-width: none; } | |
/* | |
WIDTHS | |
Docs: http://tachyons.io/docs/layout/widths/ | |
Base: | |
w = width | |
Modifiers | |
1 = 1st step in width scale | |
2 = 2nd step in width scale | |
3 = 3rd step in width scale | |
4 = 4th step in width scale | |
5 = 5th step in width scale | |
-10 = literal value 10% | |
-20 = literal value 20% | |
-25 = literal value 25% | |
-30 = literal value 30% | |
-33 = literal value 33% | |
-34 = literal value 34% | |
-40 = literal value 40% | |
-50 = literal value 50% | |
-60 = literal value 60% | |
-70 = literal value 70% | |
-75 = literal value 75% | |
-80 = literal value 80% | |
-90 = literal value 90% | |
-100 = literal value 100% | |
-third = 100% / 3 (Not supported in opera mini or IE8) | |
-two-thirds = 100% / 1.5 (Not supported in opera mini or IE8) | |
-auto = string value auto | |
*/ | |
/* Width Scale */ | |
.w1 { width: 1rem; } | |
.w2 { width: 2rem; } | |
.w3 { width: 4rem; } | |
.w4 { width: 8rem; } | |
.w5 { width: 16rem; } | |
.w-10 { width: 10%; } | |
.w-20 { width: 20%; } | |
.w-25 { width: 25%; } | |
.w-30 { width: 30%; } | |
.w-33 { width: 33%; } | |
.w-34 { width: 34%; } | |
.w-40 { width: 40%; } | |
.w-50 { width: 50%; } | |
.w-60 { width: 60%; } | |
.w-70 { width: 70%; } | |
.w-75 { width: 75%; } | |
.w-80 { width: 80%; } | |
.w-90 { width: 90%; } | |
.w-100 { width: 100%; } | |
.w-third { width: 33.33333%; } | |
.w-two-thirds { width: 66.66667%; } | |
.w-auto { width: auto; } | |
/* | |
OVERFLOW | |
*/ | |
.overflow-visible { overflow: visible; } | |
.overflow-hidden { overflow: hidden; } | |
.overflow-scroll { overflow: scroll; } | |
.overflow-auto { overflow: auto; } | |
.overflow-x-visible { overflow-x: visible; } | |
.overflow-x-hidden { overflow-x: hidden; } | |
.overflow-x-scroll { overflow-x: scroll; } | |
.overflow-x-auto { overflow-x: auto; } | |
.overflow-y-visible { overflow-y: visible; } | |
.overflow-y-hidden { overflow-y: hidden; } | |
.overflow-y-scroll { overflow-y: scroll; } | |
.overflow-y-auto { overflow-y: auto; } | |
/* | |
POSITIONING | |
Docs: http://tachyons.io/docs/layout/position/ | |
*/ | |
.static { position: static; } | |
.relative { position: relative; } | |
.absolute { position: absolute; } | |
.fixed { position: fixed; } | |
/* | |
OPACITY | |
Docs: http://tachyons.io/docs/themes/opacity/ | |
*/ | |
.o-100 { opacity: 1; } | |
.o-90 { opacity: .9; } | |
.o-80 { opacity: .8; } | |
.o-70 { opacity: .7; } | |
.o-60 { opacity: .6; } | |
.o-50 { opacity: .5; } | |
.o-40 { opacity: .4; } | |
.o-30 { opacity: .3; } | |
.o-20 { opacity: .2; } | |
.o-10 { opacity: .1; } | |
.o-05 { opacity: .05; } | |
.o-025 { opacity: .025; } | |
.o-0 { opacity: 0; } | |
/* | |
SKINS | |
Docs: http://tachyons.io/docs/themes/skins/ | |
Classes for setting foreground and background colors on elements. | |
If you haven't declared a border color, but set border on an element, it will | |
be set to the current text color. | |
*/ | |
/* Text colors */ | |
.black-90 { color: rgba( 0, 0, 0, .9 ); } | |
.black-80 { color: rgba( 0, 0, 0, .8 ); } | |
.black-70 { color: rgba( 0, 0, 0, .7 ); } | |
.black-60 { color: rgba( 0, 0, 0, .6 ); } | |
.black-50 { color: rgba( 0, 0, 0, .5 ); } | |
.black-40 { color: rgba( 0, 0, 0, .4 ); } | |
.black-30 { color: rgba( 0, 0, 0, .3 ); } | |
.black-20 { color: rgba( 0, 0, 0, .2 ); } | |
.black-10 { color: rgba( 0, 0, 0, .1 ); } | |
.black-05 { color: rgba( 0, 0, 0, .05 ); } | |
.white-90 { color: rgba( 255, 255, 255, .9 ); } | |
.white-80 { color: rgba( 255, 255, 255, .8 ); } | |
.white-70 { color: rgba( 255, 255, 255, .7 ); } | |
.white-60 { color: rgba( 255, 255, 255, .6 ); } | |
.white-50 { color: rgba( 255, 255, 255, .5 ); } | |
.white-40 { color: rgba( 255, 255, 255, .4 ); } | |
.white-30 { color: rgba( 255, 255, 255, .3 ); } | |
.white-20 { color: rgba( 255, 255, 255, .2 ); } | |
.white-10 { color: rgba( 255, 255, 255, .1 ); } | |
.black { color: #000; } | |
.near-black { color: #111; } | |
.dark-gray { color: #333; } | |
.mid-gray { color: #555; } | |
.gray { color: #777; } | |
.silver { color: #999; } | |
.light-silver { color: #aaa; } | |
.moon-gray { color: #ccc; } | |
.light-gray { color: #eee; } | |
.near-white { color: #f4f4f4; } | |
.white { color: #fff; } | |
.dark-red { color: #e7040f; } | |
.red { color: $color-red !important; } | |
.light-red { color: #ff725c; } | |
.orange { color: #ff6300; } | |
.gold { color: #ffb700; } | |
.yellow { color: #ffd700; } | |
.light-yellow { color: #fbf1a9; } | |
.purple { color: #5e2ca5; } | |
.light-purple { color: #a463f2; } | |
.dark-pink { color: #d5008f; } | |
.hot-pink { color: #ff41b4; } | |
.pink { color: #ff80cc; } | |
.light-pink { color: #ffa3d7; } | |
.dark-green { color: #137752; } | |
.green { color: lime !important; } | |
.light-green { color: #9eebcf; } | |
.navy { color: #001b44; } | |
.dark-blue { color: #00449e; } | |
.blue { color: #357edd; } | |
.light-blue { color: #96ccff; } | |
.lightest-blue { color: #cdecff; } | |
.washed-blue { color: #f6fffe; } | |
.washed-green { color: #e8fdf5; } | |
.washed-yellow { color: #fffceb; } | |
.washed-red { color: #ffdfdf; } | |
.color-inherit { color: inherit; } | |
/* Background colors */ | |
.bg-black-90 { background-color: rgba( 0, 0, 0, .9 ); } | |
.bg-black-80 { background-color: rgba( 0, 0, 0, .8 ); } | |
.bg-black-70 { background-color: rgba( 0, 0, 0, .7 ); } | |
.bg-black-60 { background-color: rgba( 0, 0, 0, .6 ); } | |
.bg-black-50 { background-color: rgba( 0, 0, 0, .5 ); } | |
.bg-black-40 { background-color: rgba( 0, 0, 0, .4 ); } | |
.bg-black-30 { background-color: rgba( 0, 0, 0, .3 ); } | |
.bg-black-20 { background-color: rgba( 0, 0, 0, .2 ); } | |
.bg-black-10 { background-color: rgba( 0, 0, 0, .1 ); } | |
.bg-black-05 { background-color: rgba( 0, 0, 0, .05 ); } | |
.bg-white-90 { background-color: rgba( 255, 255, 255, .9 ); } | |
.bg-white-80 { background-color: rgba( 255, 255, 255, .8 ); } | |
.bg-white-70 { background-color: rgba( 255, 255, 255, .7 ); } | |
.bg-white-60 { background-color: rgba( 255, 255, 255, .6 ); } | |
.bg-white-50 { background-color: rgba( 255, 255, 255, .5 ); } | |
.bg-white-40 { background-color: rgba( 255, 255, 255, .4 ); } | |
.bg-white-30 { background-color: rgba( 255, 255, 255, .3 ); } | |
.bg-white-20 { background-color: rgba( 255, 255, 255, .2 ); } | |
.bg-white-10 { background-color: rgba( 255, 255, 255, .1 ); } | |
.bg-black { background-color: #000; } | |
.bg-near-black { background-color: #111; } | |
.bg-dark-gray { background-color: #333; } | |
.bg-mid-gray { background-color: #555; } | |
.bg-gray { background-color: #777; } | |
.bg-silver { background-color: #999; } | |
.bg-light-silver { background-color: #aaa; } | |
.bg-moon-gray { background-color: #ccc; } | |
.bg-light-gray { background-color: #eee; } | |
.bg-near-white { background-color: #f4f4f4; } | |
.bg-white { background-color: #fff; } | |
.bg-transparent { background-color: transparent; } | |
.bg-dark-red { background-color: #e7040f; } | |
.bg-red { background-color: #ff4136; } | |
.bg-light-red { background-color: #ff725c; } | |
.bg-orange { background-color: #ff6300; } | |
.bg-gold { background-color: #ffb700; } | |
.bg-yellow { background-color: #ffd700; } | |
.bg-light-yellow { background-color: #fbf1a9; } | |
.bg-purple { background-color: #5e2ca5; } | |
.bg-light-purple { background-color: #a463f2; } | |
.bg-dark-pink { background-color: #d5008f; } | |
.bg-hot-pink { background-color: #ff41b4; } | |
.bg-pink { background-color: #ff80cc; } | |
.bg-light-pink { background-color: #ffa3d7; } | |
.bg-dark-green { background-color: #137752; } | |
.bg-green { background-color: lime !important; } | |
.bg-light-green { background-color: #9eebcf; } | |
.bg-navy { background-color: #001b44; } | |
.bg-dark-blue { background-color: #00449e; } | |
.bg-blue { background-color: #357edd; } | |
.bg-light-blue { background-color: #96ccff; } | |
.bg-lightest-blue { background-color: #cdecff; } | |
.bg-washed-blue { background-color: #f6fffe; } | |
.bg-washed-green { background-color: #e8fdf5; } | |
.bg-washed-yellow { background-color: #fffceb; } | |
.bg-washed-red { background-color: #ffdfdf; } | |
.bg-inherit { background-color: inherit; } | |
/* | |
TEXT ALIGN | |
Docs: http://tachyons.io/docs/typography/text-align/ | |
Base | |
t = text-align | |
Modifiers | |
l = left | |
r = right | |
c = center | |
j = justify | |
*/ | |
.tl { text-align: left; } | |
.tr { text-align: right; } | |
.tc { text-align: center; } | |
.tj { text-align: justify; } | |
/* | |
TEXT TRANSFORM | |
Docs: http://tachyons.io/docs/typography/text-transform/ | |
Base: | |
tt = text-transform | |
Modifiers | |
c = capitalize | |
l = lowercase | |
u = uppercase | |
n = none | |
*/ | |
.ttc { text-transform: capitalize; } | |
.ttl { text-transform: lowercase; } | |
.ttu { text-transform: uppercase; } | |
.ttn { text-transform: none; } | |
/* | |
TYPE SCALE | |
Docs: http://tachyons.io/docs/typography/scale/ | |
Base: | |
f = font-size | |
Modifiers | |
1 = 1st step in size scale | |
2 = 2nd step in size scale | |
3 = 3rd step in size scale | |
4 = 4th step in size scale | |
5 = 5th step in size scale | |
6 = 6th step in size scale | |
7 = 7th step in size scale | |
*/ | |
/* | |
* For Hero/Marketing Titles | |
* | |
* These generally are too large for mobile | |
* so be careful using them on smaller screens. | |
* */ | |
/* Type Scale */ | |
.f1 { font-size: 3rem; } | |
.f2 { font-size: 2.25rem; } | |
.f3 { font-size: 1.5rem; } | |
.f4 { font-size: 1.25rem; } | |
.f5 { font-size: 1rem; } | |
.f6 { font-size: .875rem; } | |
.f7 { font-size: .75rem; } | |
/* | |
UTILITIES | |
*/ | |
/* Equivalent to .overflow-y-scroll */ | |
.overflow-container { overflow-y: scroll; } | |
.center { margin-right: auto; margin-left: auto; } | |
.mr-auto { margin-right: auto; } | |
.ml-auto { margin-left: auto; } | |
/* | |
Z-INDEX | |
Base | |
z = z-index | |
Modifiers | |
-0 = literal value 0 | |
-1 = literal value 1 | |
-2 = literal value 2 | |
-3 = literal value 3 | |
-4 = literal value 4 | |
-5 = literal value 5 | |
-999 = literal value 999 | |
-9999 = literal value 9999 | |
-max = largest accepted z-index value as integer | |
-inherit = string value inherit | |
-initial = string value initial | |
-unset = string value unset | |
MDN: https://developer.mozilla.org/en/docs/Web/CSS/z-index | |
Spec: http://www.w3.org/TR/CSS2/zindex.html | |
Articles: | |
https://philipwalton.com/articles/what-no-one-told-you-about-z-index/ | |
Tips on extending: | |
There might be a time worth using negative z-index values. | |
Or if you are using tachyons with another project, you might need to | |
adjust these values to suit your needs. | |
*/ | |
.z-0 { z-index: 0; } | |
.z-1 { z-index: 1; } | |
.z-2 { z-index: 2; } | |
.z-3 { z-index: 3; } | |
.z-4 { z-index: 4; } | |
.z-5 { z-index: 5; } | |
.z-999 { z-index: 999; } | |
.z-9999 { z-index: 9999; } | |
.z-max { z-index: 2147483647; } | |
.z-inherit { z-index: inherit; } | |
.z-initial { z-index: initial; } | |
.z-unset { z-index: unset; } | |
/* | |
DEBUG CHILDREN | |
Docs: http://tachyons.io/docs/debug/ | |
Just add the debug class to any element to see outlines on its | |
children. | |
*/ | |
.debug * { outline: 1px solid gold; } | |
.debug-white * { outline: 1px solid white; } | |
.debug-black * { outline: 1px solid black; } | |
/* | |
DEBUG GRID | |
http://tachyons.io/docs/debug-grid/ | |
Can be useful for debugging layout issues | |
or helping to make sure things line up perfectly. | |
Just tack one of these classes onto a parent element. | |
*/ | |
.debug-grid { background: transparent url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAFElEQVR4AWPAC97/9x0eCsAEPgwAVLshdpENIxcAAAAASUVORK5CYII= ) repeat top left; } | |
.debug-grid-16 { background: transparent url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMklEQVR4AWOgCLz/b0epAa6UGuBOqQHOQHLUgFEDnAbcBZ4UGwDOkiCnkIhdgNgNxAYAiYlD+8sEuo8AAAAASUVORK5CYII= ) repeat top left; } | |
.debug-grid-8-solid { background: white url( data:image/gif;base64,R0lGODdhCAAIAPEAAADw/wDx/////wAAACwAAAAACAAIAAACDZQvgaeb/lxbAIKA8y0AOw== ) repeat top left; } | |
.debug-grid-16-solid { background: white url( data:image/gif;base64,R0lGODdhEAAQAPEAAADw/wDx/xXy/////ywAAAAAEAAQAAACIZyPKckYDQFsb6ZqD85jZ2+BkwiRFKehhqQCQgDHcgwEBQA7 ) repeat top left; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment