1
- /*
2
-
3
- TACHYONS
4
-
5
- */
6
- /* Variables */
1
+ /* TACHYONS v4.0.0-beta.34| github.com/tachyons-css/tachyons */
2
+ /* External Library Includes */
7
3
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
8
4
/**
9
5
* 1. Change the default font family in all browsers (opinionated).
@@ -202,42 +198,7 @@ textarea { overflow: auto; }
202
198
* 2. Change font properties to `inherit` in Safari.
203
199
*/
204
200
::-webkit-file-upload-button { -webkit-appearance : button; /* 1 */ font : inherit; /* 2 */ }
205
- /*
206
-
207
- CUSTOM MEDIA QUERIES
208
-
209
- Media query values can be changed to fit your own content.
210
- There are no magic bullets when it comes to media query width values.
211
- They should be declared in em units - and they should be set to meet
212
- the needs of your content.
213
-
214
- These media queries can be referenced like so:
215
-
216
- @media (--breakpoint-not-small) {
217
- .medium-and-larger-specific-style {
218
- background-color: red;
219
- }
220
- }
221
-
222
- @media (--breakpoint-medium) {
223
- .medium-screen-specific-style {
224
- background-color: red;
225
- }
226
- }
227
-
228
- @media (--breakpoint-large) {
229
- .large-screen-specific-style {
230
- background-color: red;
231
- }
232
- }
233
-
234
- @media (--breakpoint-extra-large) {
235
- .extra-large-screen-specific-style {
236
- background-color: red;
237
- }
238
- }
239
-
240
- */
201
+ /* Variables */
241
202
/*
242
203
243
204
Tachyons
@@ -252,8 +213,9 @@ textarea { overflow: auto; }
252
213
Box Sizing
253
214
*/
254
215
html , body , div , article , section , main , footer , header , form , fieldset , pre ,
255
- code , p , ul , ol , li , dl , dt , dd , textarea , input [type = "text" ], input [type = "tel" ],
256
- input [type = "email" ], input [type = "url" ], input [type = "password" ], .border-box { box-sizing : border-box; }
216
+ code , p , ul , ol , li , dl , dt , dd , textarea , input [type = "email" ],
217
+ input [type = "number" ], input [type = "password" ], input [type = "tel" ],
218
+ input [type = "text" ], input [type = "url" ], .border-box { box-sizing : border-box; }
257
219
/*
258
220
259
221
BACKGROUND SIZE
@@ -425,6 +387,21 @@ input[type="email"], input[type="url"], input[type="password"], .border-box { bo
425
387
.bw3 { border-width : .5rem ; }
426
388
.bw4 { border-width : 1rem ; }
427
389
.bw5 { border-width : 2rem ; }
390
+ /*
391
+
392
+ BOX-SHADOW
393
+
394
+ Media Query Extensions:
395
+ -ns = not-small
396
+ -m = medium
397
+ -l = large
398
+
399
+ */
400
+ .shadow-1 { box-shadow : 0px 0px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
401
+ .shadow-2 { box-shadow : 0px 0px 8px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
402
+ .shadow-3 { box-shadow : 2px 2px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
403
+ .shadow-4 { box-shadow : 2px 2px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
404
+ .shadow-5 { box-shadow : 4px 4px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
428
405
/*
429
406
430
407
CODE
@@ -756,6 +733,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
756
733
.o-10 { opacity : .1 ; }
757
734
.o-05 { opacity : .05 ; }
758
735
.o-025 { opacity : .025 ; }
736
+ .o-0 { opacity : 0 ; }
759
737
/*
760
738
761
739
COLOR VARIABLES
@@ -1087,18 +1065,31 @@ code, .code { font-family: Consolas, monaco, monospace; }
1087
1065
.measure-narrow { max-width : 20em ; }
1088
1066
/* Book paragraph style - paragraphs are indented with no vertical spacing. */
1089
1067
.indent { text-indent : 1em ; margin-top : 0 ; margin-bottom : 0 ; }
1090
- /* Combine this class with a width to truncate text */
1068
+ .small-caps { font-variant : small-caps; }
1069
+ /* Combine this class with a width to truncate text (or just leave as is to truncate at width of containing element. */
1091
1070
.truncate { white-space : nowrap; overflow : hidden; text-overflow : ellipsis; }
1092
1071
/*
1093
1072
1094
1073
UTILITIES
1095
1074
1096
1075
*/
1076
+ /* This is for fluid media that is embedded from third party sites like youtube, vimeo etc.
1077
+ * Wrap the outer element in aspect-ratio and then extend it with the desired ratio i.e
1078
+ * Make sure there are no height and width attributes on the embedded media.
1079
+ * Adapted from: https://github.com/suitcss/components-flex-embed
1080
+ *
1081
+ * Example:
1082
+ *
1083
+ * <div class="aspect-ratio aspect-ratio--16x9">
1084
+ * <iframe class="aspect-ratio--object"></iframe>
1085
+ * </div>
1086
+ *
1087
+ * */
1097
1088
.aspect-ratio { height : 0 ; position : relative; }
1098
1089
.aspect-ratio--16x9 { padding-bottom : 56.25% ; }
1099
1090
.aspect-ratio--4x3 { padding-bottom : 75% ; }
1100
1091
.aspect-ratio--8x5 { padding-bottom : 62.5% ; }
1101
- .aspect-ratio--object { bottom : 0 ; height : 100 % ; left : 0 ; position : absolute; right : 0 ; top : 0 ; width : 100% ; z-index : 100 ; }
1092
+ .aspect-ratio--object { position : absolute; top : 0 ; right : 0 ; bottom : 0 ; left : 0 ; width : 100 % ; height : 100% ; z-index : 100 ; }
1102
1093
.overflow-container { overflow-y : scroll; }
1103
1094
.center { margin-right : auto; margin-left : auto; }
1104
1095
/*
@@ -1148,7 +1139,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1148
1139
.dim : active { opacity : .8 ; transition : opacity .15s ease-out; }
1149
1140
/*
1150
1141
1151
- Hide child on hover:
1142
+ Hide child & reveal on hover:
1152
1143
1153
1144
Put the hide-child class on a parent element and any nested element with the
1154
1145
child class will be hidden and displayed on hover or focus.
@@ -1163,13 +1154,61 @@ code, .code { font-family: Consolas, monaco, monospace; }
1163
1154
.hide-child .child { opacity : 0 ; transition : opacity .15s ease-in; }
1164
1155
.hide-child : hover .child , .hide-child : focus .child , .hide-child : active .child { opacity : 1 ; transition : opacity .15s ease-in; }
1165
1156
.underline-hover : hover , .underline-hover : focus { text-decoration : underline; }
1157
+ /* Can combine this with overflow-hidden to make background images grow on hover
1158
+ * even if you are using background-size: cover */
1159
+ .grow { transition : transform .2s ; }
1160
+ .grow : hover { transform : scale ( 1.05 ); }
1161
+ .grow-large { transition : transform .2s ; }
1162
+ .grow-large : hover { transform : scale ( 1.2 ); }
1163
+ /* Add pointer on hover */
1164
+ .pointer : hover { cursor : pointer; }
1166
1165
/*
1167
1166
1168
1167
STYLES
1169
1168
1170
1169
Add custom styles here.
1171
1170
1172
1171
*/
1172
+ /* Import media queries at end as this will allow you to customize them
1173
+ * and override what is currently declared in each module.
1174
+ */
1175
+ /*
1176
+
1177
+ CUSTOM MEDIA QUERIES
1178
+
1179
+ Media query values can be changed to fit your own content.
1180
+ There are no magic bullets when it comes to media query width values.
1181
+ They should be declared in em units - and they should be set to meet
1182
+ the needs of your content.
1183
+
1184
+ These media queries can be referenced like so:
1185
+
1186
+ @media (--breakpoint-not-small) {
1187
+ .medium-and-larger-specific-style {
1188
+ background-color: red;
1189
+ }
1190
+ }
1191
+
1192
+ @media (--breakpoint-medium) {
1193
+ .medium-screen-specific-style {
1194
+ background-color: red;
1195
+ }
1196
+ }
1197
+
1198
+ @media (--breakpoint-large) {
1199
+ .large-screen-specific-style {
1200
+ background-color: red;
1201
+ }
1202
+ }
1203
+
1204
+ @media (--breakpoint-extra-large) {
1205
+ .extra-large-screen-specific-style {
1206
+ background-color: red;
1207
+ }
1208
+ }
1209
+
1210
+ */
1211
+ /* DEBUGGING */
1173
1212
/*
1174
1213
1175
1214
DEBUG CHILDREN
@@ -1179,9 +1218,9 @@ code, .code { font-family: Consolas, monaco, monospace; }
1179
1218
1180
1219
*/
1181
1220
.debug * { outline : 1px solid gold; }
1182
- /* Uncomment out this line if you want to debug your layout */
1221
+ /* Uncomment out this line and rebuild if you want to debug your layout. */
1183
1222
/* @import './_debug'; */
1184
- @media screen and (min-width : 48 em ) {
1223
+ @media screen and (min-width : 30 em ) {
1185
1224
.bg-cv-ns { background-size : cover; }
1186
1225
.bg-cn-ns { background-size : contain; }
1187
1226
.ba-ns { border-style : solid; border-width : 1px ; }
@@ -1208,6 +1247,11 @@ code, .code { font-family: Consolas, monaco, monospace; }
1208
1247
.bw3-ns { border-width : .5rem ; }
1209
1248
.bw4-ns { border-width : 1rem ; }
1210
1249
.bw5-ns { border-width : 2rem ; }
1250
+ .shadow-1-ns { box-shadow : 0px 0px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1251
+ .shadow-2-ns { box-shadow : 0px 0px 8px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1252
+ .shadow-3-ns { box-shadow : 2px 2px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1253
+ .shadow-4-ns { box-shadow : 2px 2px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
1254
+ .shadow-5-ns { box-shadow : 4px 4px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
1211
1255
.top-0-ns { top : 0 ; }
1212
1256
.left-0-ns { left : 0 ; }
1213
1257
.right-0-ns { right : 0 ; }
@@ -1456,6 +1500,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1456
1500
.measure-wide-ns { max-width : 34em ; }
1457
1501
.measure-narrow-ns { max-width : 20em ; }
1458
1502
.indent-ns { text-indent : 1em ; margin-top : 0 ; margin-bottom : 0 ; }
1503
+ .small-caps-ns { font-variant : small-caps; }
1459
1504
.truncate-ns { white-space : nowrap; overflow : hidden; text-overflow : ellipsis; }
1460
1505
.clip-ns { position : fixed !important ; position : absolute !important ; clip : rect ( 1px 1px 1px 1px ); /* IE6, IE7 */ clip : rect ( 1px , 1px , 1px , 1px ); }
1461
1506
.ws-normal-ns { white-space : normal; }
@@ -1470,7 +1515,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1470
1515
.v-top-ns { vertical-align : top; }
1471
1516
.v-btm-ns { vertical-align : bottom; }
1472
1517
}
1473
- @media screen and (min-width : 48 em ) and (max-width : 64 em ) {
1518
+ @media screen and (min-width : 30 em ) and (max-width : 60 em ) {
1474
1519
.bg-cv-m { background-size : cover; }
1475
1520
.bg-cn-m { background-size : contain; }
1476
1521
.ba-m { border-style : solid; border-width : 1px ; }
@@ -1497,6 +1542,11 @@ code, .code { font-family: Consolas, monaco, monospace; }
1497
1542
.bw3-m { border-width : .5rem ; }
1498
1543
.bw4-m { border-width : 1rem ; }
1499
1544
.bw5-m { border-width : 2rem ; }
1545
+ .shadow-1-m { box-shadow : 0px 0px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1546
+ .shadow-2-m { box-shadow : 0px 0px 8px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1547
+ .shadow-3-m { box-shadow : 2px 2px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1548
+ .shadow-4-m { box-shadow : 2px 2px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
1549
+ .shadow-5-m { box-shadow : 4px 4px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
1500
1550
.top-0-m { top : 0 ; }
1501
1551
.left-0-m { left : 0 ; }
1502
1552
.right-0-m { right : 0 ; }
@@ -1745,6 +1795,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1745
1795
.measure-wide-m { max-width : 34em ; }
1746
1796
.measure-narrow-m { max-width : 20em ; }
1747
1797
.indent-m { text-indent : 1em ; margin-top : 0 ; margin-bottom : 0 ; }
1798
+ .small-caps-m { font-variant : small-caps; }
1748
1799
.truncate-m { white-space : nowrap; overflow : hidden; text-overflow : ellipsis; }
1749
1800
.clip-m { position : fixed !important ; position : absolute !important ; clip : rect ( 1px 1px 1px 1px ); /* IE6, IE7 */ clip : rect ( 1px , 1px , 1px , 1px ); }
1750
1801
.ws-normal-m { white-space : normal; }
@@ -1759,7 +1810,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
1759
1810
.v-top-m { vertical-align : top; }
1760
1811
.v-btm-m { vertical-align : bottom; }
1761
1812
}
1762
- @media screen and (min-width : 64 em ) {
1813
+ @media screen and (min-width : 60 em ) {
1763
1814
.bg-cv-l { background-size : cover; }
1764
1815
.bg-cn-l { background-size : contain; }
1765
1816
.ba-l { border-style : solid; border-width : 1px ; }
@@ -1786,6 +1837,11 @@ code, .code { font-family: Consolas, monaco, monospace; }
1786
1837
.bw3-l { border-width : .5rem ; }
1787
1838
.bw4-l { border-width : 1rem ; }
1788
1839
.bw5-l { border-width : 2rem ; }
1840
+ .shadow-1-l { box-shadow : 0px 0px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1841
+ .shadow-2-l { box-shadow : 0px 0px 8px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1842
+ .shadow-3-l { box-shadow : 2px 2px 4px 2px rgba ( 0 , 0 , 0 , 0.2 ); }
1843
+ .shadow-4-l { box-shadow : 2px 2px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
1844
+ .shadow-5-l { box-shadow : 4px 4px 8px 0px rgba ( 0 , 0 , 0 , 0.2 ); }
1789
1845
.top-0-l { top : 0 ; }
1790
1846
.left-0-l { left : 0 ; }
1791
1847
.right-0-l { right : 0 ; }
@@ -2034,6 +2090,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
2034
2090
.measure-wide-l { max-width : 34em ; }
2035
2091
.measure-narrow-l { max-width : 20em ; }
2036
2092
.indent-l { text-indent : 1em ; margin-top : 0 ; margin-bottom : 0 ; }
2093
+ .small-caps-l { font-variant : small-caps; }
2037
2094
.truncate-l { white-space : nowrap; overflow : hidden; text-overflow : ellipsis; }
2038
2095
.clip-l { position : fixed !important ; position : absolute !important ; clip : rect ( 1px 1px 1px 1px ); /* IE6, IE7 */ clip : rect ( 1px , 1px , 1px , 1px ); }
2039
2096
.ws-normal-l { white-space : normal; }
0 commit comments