1
- /* TACHYONS v4.0.8 | github.com/tachyons-css/tachyons */
1
+ /* TACHYONS v4.1.3 | github.com/tachyons-css/tachyons */
2
2
/*
3
3
* ████████╗ █████╗ ██████╗██╗ ██╗██╗ ██╗ ██████╗ ███╗ ██╗███████╗
4
4
* ╚══██╔══╝██╔══██╗██╔════╝██║ ██║╚██╗ ██╔╝██╔═══██╗████╗ ██║██╔════╝
@@ -228,6 +228,13 @@ html, body, div, article, section, main, footer, header, form, fieldset, pre,
228
228
code , p , ul , ol , li , dl , dt , dd , textarea , input [type = "email" ],
229
229
input [type = "number" ], input [type = "password" ], input [type = "tel" ],
230
230
input [type = "text" ], input [type = "url" ], .border-box { box-sizing : border-box; }
231
+ /*
232
+
233
+ IMAGES
234
+
235
+ */
236
+ /* Responsive images! */
237
+ img { max-width : 100% ; }
231
238
/*
232
239
233
240
BACKGROUND SIZE
@@ -244,6 +251,14 @@ input[type="text"], input[type="url"], .border-box { box-sizing: border-box; }
244
251
*/
245
252
.cover { background-size : cover; }
246
253
.contain { background-size : contain; }
254
+ /*
255
+
256
+ OUTLINES
257
+
258
+ */
259
+ .outline { outline : 1px solid; }
260
+ .outline-transparent { outline : 1px solid transparent; }
261
+ .outline-0 { outline : 0 ; }
247
262
/*
248
263
249
264
BORDER BASE
@@ -354,6 +369,7 @@ input[type="text"], input[type="url"], .border-box { box-sizing: border-box; }
354
369
.br3 { border-radius : .5rem ; }
355
370
.br4 { border-radius : 1rem ; }
356
371
.br-100 { border-radius : 100% ; }
372
+ .br-pill { border-radius : 9999px ; }
357
373
.br--bottom { border-top-left-radius : 0 ; border-top-right-radius : 0 ; }
358
374
.br--top { border-bottom-left-radius : 0 ; border-bottom-right-radius : 0 ; }
359
375
.br--right { border-top-left-radius : 0 ; border-bottom-left-radius : 0 ; }
@@ -655,11 +671,16 @@ code, .code { font-family: Consolas, monaco, monospace; }
655
671
.h3 { height : 4rem ; }
656
672
.h4 { height : 8rem ; }
657
673
.h5 { height : 16rem ; }
658
- /* Height Percentages */
674
+ /* Height Percentages - Based off of height of parent */
659
675
.h-25 { height : 25% ; }
660
676
.h-50 { height : 50% ; }
661
677
.h-75 { height : 75% ; }
662
678
.h-100 { height : 100% ; }
679
+ /* Screen Height Percentage */
680
+ .vh-25 { height : 25vh ; }
681
+ .vh-50 { height : 50vh ; }
682
+ .vh-75 { height : 75vh ; }
683
+ .vh-100 { height : 100vh ; }
663
684
/* String Properties */
664
685
.h-auto { height : auto; }
665
686
.h-inherit { height : inherit; }
@@ -677,8 +698,8 @@ code, .code { font-family: Consolas, monaco, monospace; }
677
698
678
699
*/
679
700
.lh-solid { line-height : 1 ; }
680
- .lh-title { line-height : 1.3 ; }
681
- .lh-copy { line-height : 1.6 ; }
701
+ .lh-title { line-height : 1.25 ; }
702
+ .lh-copy { line-height : 1.5 ; }
682
703
/*
683
704
684
705
LINKS
@@ -1266,14 +1287,44 @@ code, .code { font-family: Consolas, monaco, monospace; }
1266
1287
.underline-hover : hover , .underline-hover : focus { text-decoration : underline; }
1267
1288
/* Can combine this with overflow-hidden to make background images grow on hover
1268
1289
* even if you are using background-size: cover */
1269
- .grow { -webkit-transition : - webkit-transform .2 s ; transition : -webkit-transform .2 s ; transition : transform .2 s ; transition : transform .2 s , -webkit-transform .2 s ; }
1290
+ .grow { -moz-osx-font-smoothing : grayscale; - webkit-backface-visibility : hidden; backface-visibility : hidden; - webkit-transform: translateZ ( 0 ); transform : translateZ ( 0 ); -webkit- transition: 0.25 s -webkit-transform ease-out ; transition : 0.25 s -webkit- transform ease-out ; transition : 0.25 s transform ease-out; transition : 0.25 s transform ease-out , 0.25 s -webkit-transform ease-out ; }
1270
1291
.grow : hover , .grow : focus { -webkit-transform : scale ( 1.05 ); transform : scale ( 1.05 ); }
1271
- .grow-large { -webkit-transition : -webkit-transform .2s ; transition : -webkit-transform .2s ; transition : transform .2s ; transition : transform .2s , -webkit-transform .2s ; }
1292
+ .grow : active { -webkit-transform : scale ( .90 ); transform : scale ( .90 ); }
1293
+ .grow-large { -moz-osx-font-smoothing : grayscale; -webkit-backface-visibility : hidden; backface-visibility : hidden; -webkit-transform : translateZ ( 0 ); transform : translateZ ( 0 ); -webkit-transition : 0.25s -webkit-transform ease-in-out; transition : 0.25s -webkit-transform ease-in-out; transition : 0.25s transform ease-in-out; transition : 0.25s transform ease-in-out, 0.25s -webkit-transform ease-in-out; }
1272
1294
.grow-large : hover , .grow-large : focus { -webkit-transform : scale ( 1.2 ); transform : scale ( 1.2 ); }
1295
+ .grow-large : active { -webkit-transform : scale ( .95 ); transform : scale ( .95 ); }
1273
1296
/* Add pointer on hover */
1274
1297
.pointer : hover { cursor : pointer; }
1275
1298
/* Add shadow on hover */
1276
1299
.shadow-hover : hover , .shadow-hover : focus { box-shadow : 0px 0px 8px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1300
+ /*
1301
+
1302
+ Tachyons
1303
+ z-index
1304
+
1305
+ DOCUMENTATION
1306
+
1307
+ MDN: https://developer.mozilla.org/en/docs/Web/CSS/z-index
1308
+ Spec: http://www.w3.org/TR/CSS2/zindex.html
1309
+
1310
+ Tips on extending:
1311
+ There might be a time worth using negative z-index values.
1312
+ Or if you are using tachyons with another project, you might need to
1313
+ adjust these values to suit your needs.
1314
+
1315
+ */
1316
+ .z-0 { z-index : 0 ; }
1317
+ .z-1 { z-index : 1 ; }
1318
+ .z-2 { z-index : 2 ; }
1319
+ .z-3 { z-index : 3 ; }
1320
+ .z-4 { z-index : 4 ; }
1321
+ .z-5 { z-index : 5 ; }
1322
+ .z-999 { z-index : 999 ; }
1323
+ .z-9999 { z-index : 9999 ; }
1324
+ .z-max { z-index : 2147483647 ; }
1325
+ .z-inherit { z-index : inherit; }
1326
+ .z-initial { z-index : initial; }
1327
+ .z-unset { z-index : unset; }
1277
1328
/*
1278
1329
1279
1330
STYLES
@@ -1334,11 +1385,27 @@ code, .code { font-family: Consolas, monaco, monospace; }
1334
1385
1335
1386
*/
1336
1387
.debug * { outline : 1px solid gold; }
1337
- /* Uncomment out the line below and rebuild the css if you want to use pesticide.io to debug layout .*/
1388
+ /*
1389
+
1390
+ DEBUG GRID
1391
+
1392
+ Can be useful for debugging layout issues
1393
+ or helping to make sure things line up perfectly.
1394
+ Just tack one of these classes onto a parent element.
1395
+
1396
+ */
1397
+ .debug-grid { background : transparent url ( http://tachyons.io/img/8-grid-blue-alpha.png ) repeat top left; }
1398
+ .debug-grid-16 { background : transparent url ( http://tachyons.io/img/16-grid-blue-alpha.png ) repeat top left; }
1399
+ .debug-grid-8-solid { background : white url ( http://tachyons.io/img/8-grid.jpg ) repeat top left; }
1400
+ .debug-grid-16-solid { background : white url ( http://tachyons.io/img/16-grid.png ) repeat top left; }
1401
+ /* Uncomment out the line below to help debug layout issues */
1338
1402
/* @import './_debug'; */
1339
1403
@media screen and (min-width : 30em ) {
1340
1404
.cover-ns { background-size : cover; }
1341
1405
.contain-ns { background-size : contain; }
1406
+ .outline-ns { outline : 1px solid; }
1407
+ .outline-transparent-ns { outline : 1px solid transparent; }
1408
+ .outline-0-ns { outline : 0 ; }
1342
1409
.ba-ns { border-style : solid; border-width : 1px ; }
1343
1410
.bt-ns { border-top-style : solid; border-top-width : 1px ; }
1344
1411
.br-ns { border-right-style : solid; border-right-width : 1px ; }
@@ -1351,6 +1418,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1351
1418
.br3-ns { border-radius : .5rem ; }
1352
1419
.br4-ns { border-radius : 1rem ; }
1353
1420
.br-100-ns { border-radius : 100% ; }
1421
+ .br-pill-ns { border-radius : 9999px ; }
1354
1422
.br--bottom-ns { border-top-left-radius : 0 ; border-top-right-radius : 0 ; }
1355
1423
.br--top-ns { border-bottom-left-radius : 0 ; border-bottom-right-radius : 0 ; }
1356
1424
.br--right-ns { border-top-left-radius : 0 ; border-bottom-left-radius : 0 ; }
@@ -1473,15 +1541,19 @@ code, .code { font-family: Consolas, monaco, monospace; }
1473
1541
.h-25-ns { height : 25% ; }
1474
1542
.h-50-ns { height : 50% ; }
1475
1543
.h-75-ns { height : 75% ; }
1544
+ .vh-25-ns { height : 25vh ; }
1545
+ .vh-50-ns { height : 50vh ; }
1546
+ .vh-75-ns { height : 75vh ; }
1547
+ .vh-100-ns { height : 100vh ; }
1476
1548
.h-100-ns { height : 100% ; }
1477
1549
.h-auto-ns { height : auto; }
1478
1550
.h-inherit-ns { height : inherit; }
1479
1551
.tracked-ns { letter-spacing : .1em ; }
1480
1552
.tracked-tight-ns { letter-spacing : -.05em ; }
1481
1553
.tracked-mega-ns { letter-spacing : .25em ; }
1482
1554
.lh-solid-ns { line-height : 1 ; }
1483
- .lh-title-ns { line-height : 1.3 ; }
1484
- .lh-copy-ns { line-height : 1.6 ; }
1555
+ .lh-title-ns { line-height : 1.25 ; }
1556
+ .lh-copy-ns { line-height : 1.5 ; }
1485
1557
.mw-100-ns { max-width : 100% ; }
1486
1558
.mw1-ns { max-width : 1rem ; }
1487
1559
.mw2-ns { max-width : 2rem ; }
@@ -1674,6 +1746,12 @@ code, .code { font-family: Consolas, monaco, monospace; }
1674
1746
@media screen and (min-width : 30em ) and (max-width : 60em ) {
1675
1747
.cover-m { background-size : cover; }
1676
1748
.contain-m { background-size : contain; }
1749
+ .outline-m { outline : 1px solid; }
1750
+ .outline-transparent-m { outline : 1px solid transparent; }
1751
+ .outline-0-m { outline : 0 ; }
1752
+ .outline-l { outline : 1px solid; }
1753
+ .outline-transparent-l { outline : 1px solid transparent; }
1754
+ .outline-0-l { outline : 0 ; }
1677
1755
.ba-m { border-style : solid; border-width : 1px ; }
1678
1756
.bt-m { border-top-style : solid; border-top-width : 1px ; }
1679
1757
.br-m { border-right-style : solid; border-right-width : 1px ; }
@@ -1686,6 +1764,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1686
1764
.br3-m { border-radius : .5rem ; }
1687
1765
.br4-m { border-radius : 1rem ; }
1688
1766
.br-100-m { border-radius : 100% ; }
1767
+ .br-pill-m { border-radius : 9999px ; }
1689
1768
.br--bottom-m { border-top-left-radius : 0 ; border-top-right-radius : 0 ; }
1690
1769
.br--top-m { border-bottom-left-radius : 0 ; border-bottom-right-radius : 0 ; }
1691
1770
.br--right-m { border-top-left-radius : 0 ; border-bottom-left-radius : 0 ; }
@@ -1809,14 +1888,18 @@ code, .code { font-family: Consolas, monaco, monospace; }
1809
1888
.h-50-m { height : 50% ; }
1810
1889
.h-75-m { height : 75% ; }
1811
1890
.h-100-m { height : 100% ; }
1891
+ .vh-25-m { height : 25vh ; }
1892
+ .vh-50-m { height : 50vh ; }
1893
+ .vh-75-m { height : 75vh ; }
1894
+ .vh-100-m { height : 100vh ; }
1812
1895
.h-auto-m { height : auto; }
1813
1896
.h-inherit-m { height : inherit; }
1814
1897
.tracked-m { letter-spacing : .1em ; }
1815
1898
.tracked-tight-m { letter-spacing : -.05em ; }
1816
1899
.tracked-mega-m { letter-spacing : .25em ; }
1817
1900
.lh-solid-m { line-height : 1 ; }
1818
- .lh-title-m { line-height : 1.3 ; }
1819
- .lh-copy-m { line-height : 1.6 ; }
1901
+ .lh-title-m { line-height : 1.25 ; }
1902
+ .lh-copy-m { line-height : 1.5 ; }
1820
1903
.mw-100-m { max-width : 100% ; }
1821
1904
.mw1-m { max-width : 1rem ; }
1822
1905
.mw2-m { max-width : 2rem ; }
@@ -2021,6 +2104,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
2021
2104
.br3-l { border-radius : .5rem ; }
2022
2105
.br4-l { border-radius : 1rem ; }
2023
2106
.br-100-l { border-radius : 100% ; }
2107
+ .br-pill-l { border-radius : 9999px ; }
2024
2108
.br--bottom-l { border-radius-top-left : 0 ; border-radius-top-right : 0 ; }
2025
2109
.br--top-l { border-bottom-left-radius : 0 ; border-bottom-right-radius : 0 ; }
2026
2110
.br--right-l { border-top-left-radius : 0 ; border-bottom-left-radius : 0 ; }
@@ -2144,14 +2228,18 @@ code, .code { font-family: Consolas, monaco, monospace; }
2144
2228
.h-50-l { height : 50% ; }
2145
2229
.h-75-l { height : 75% ; }
2146
2230
.h-100-l { height : 100% ; }
2231
+ .vh-25-l { height : 25vh ; }
2232
+ .vh-50-l { height : 50vh ; }
2233
+ .vh-75-l { height : 75vh ; }
2234
+ .vh-100-l { height : 100vh ; }
2147
2235
.h-auto-l { height : auto; }
2148
2236
.h-inherit-l { height : inherit; }
2149
2237
.tracked-l { letter-spacing : .1em ; }
2150
2238
.tracked-tight-l { letter-spacing : -.05em ; }
2151
2239
.tracked-mega-l { letter-spacing : .25em ; }
2152
2240
.lh-solid-l { line-height : 1 ; }
2153
- .lh-title-l { line-height : 1.3 ; }
2154
- .lh-copy-l { line-height : 1.6 ; }
2241
+ .lh-title-l { line-height : 1.25 ; }
2242
+ .lh-copy-l { line-height : 1.5 ; }
2155
2243
.mw-100-l { max-width : 100% ; }
2156
2244
.mw1-l { max-width : 1rem ; }
2157
2245
.mw2-l { max-width : 2rem ; }
0 commit comments