| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,129 @@ |
| 1 |
+/* |
|
| 2 |
+RESPONSIVE GRID LAYOUT |
|
| 3 |
+created by http://artphilia.de |
|
| 4 |
+ */ |
|
| 5 |
+ |
|
| 6 |
+* {
|
|
| 7 |
+ margin: 0; |
|
| 8 |
+ padding: 0; |
|
| 9 |
+ } |
|
| 10 |
+ |
|
| 11 |
+*, *:after, *:before {
|
|
| 12 |
+ -webkit-box-sizing: border-box; |
|
| 13 |
+ -moz-box-sizing: border-box; |
|
| 14 |
+ box-sizing: border-box; |
|
| 15 |
+} |
|
| 16 |
+ |
|
| 17 |
+.grid-wrapper {
|
|
| 18 |
+ width: 100%; |
|
| 19 |
+ max-width: 1280px; |
|
| 20 |
+ min-width: 755px; |
|
| 21 |
+ margin: 0 auto; |
|
| 22 |
+ padding: 6px; |
|
| 23 |
+ overflow: hidden; |
|
| 24 |
+} |
|
| 25 |
+ |
|
| 26 |
+.grid-wrapper:after {
|
|
| 27 |
+ content: ""; |
|
| 28 |
+ display: table; |
|
| 29 |
+ clear: both; |
|
| 30 |
+} |
|
| 31 |
+ |
|
| 32 |
+[class*='gb-'] {
|
|
| 33 |
+ float: left; |
|
| 34 |
+ padding: 6px; |
|
| 35 |
+} |
|
| 36 |
+ |
|
| 37 |
+[class*='gb-']:last-of-type {
|
|
| 38 |
+ padding-right: 0; |
|
| 39 |
+} |
|
| 40 |
+ |
|
| 41 |
+/* class gb -- grid box */ |
|
| 42 |
+.gb-100, .gb-full {
|
|
| 43 |
+ width: 100%; |
|
| 44 |
+} |
|
| 45 |
+ |
|
| 46 |
+.gb-90 {
|
|
| 47 |
+ width: 90%; |
|
| 48 |
+} |
|
| 49 |
+ |
|
| 50 |
+.gb-80 {
|
|
| 51 |
+ width: 80%; |
|
| 52 |
+} |
|
| 53 |
+ |
|
| 54 |
+.gb-70 {
|
|
| 55 |
+ width: 70%; |
|
| 56 |
+} |
|
| 57 |
+ |
|
| 58 |
+.gb-60 {
|
|
| 59 |
+ width: 60%; |
|
| 60 |
+} |
|
| 61 |
+ |
|
| 62 |
+.gb-50, .gb-half, .gb-2qrt {
|
|
| 63 |
+ width: 50%; |
|
| 64 |
+} |
|
| 65 |
+ |
|
| 66 |
+.gb-40 {
|
|
| 67 |
+ width: 40%; |
|
| 68 |
+} |
|
| 69 |
+ |
|
| 70 |
+.gb-30 {
|
|
| 71 |
+ width: 30%; |
|
| 72 |
+} |
|
| 73 |
+ |
|
| 74 |
+.gb-20 {
|
|
| 75 |
+ width: 20%; |
|
| 76 |
+} |
|
| 77 |
+ |
|
| 78 |
+.gb-10 {
|
|
| 79 |
+ width: 10%; |
|
| 80 |
+} |
|
| 81 |
+ |
|
| 82 |
+.gb-1thrd, .gb-33 {
|
|
| 83 |
+ width: 33%; |
|
| 84 |
+} |
|
| 85 |
+ |
|
| 86 |
+.gb-2thrd {
|
|
| 87 |
+ width: 67%; |
|
| 88 |
+} |
|
| 89 |
+ |
|
| 90 |
+.gb-1qrt, .gb-25 {
|
|
| 91 |
+ width: 25%; |
|
| 92 |
+} |
|
| 93 |
+ |
|
| 94 |
+.gb-3qrt, .gb-75 {
|
|
| 95 |
+ width: 75%; |
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+/* golden ratio: http://en.wikipedia.org/wiki/Golden_ratio */ |
|
| 99 |
+.gb-golden1 {
|
|
| 100 |
+ width: 38.2%; |
|
| 101 |
+} |
|
| 102 |
+ |
|
| 103 |
+.gb-golden2 {
|
|
| 104 |
+ width: 61.8%; |
|
| 105 |
+} |
|
| 106 |
+ |
|
| 107 |
+@media handheld, only screen and (max-width: 825px) {
|
|
| 108 |
+.grid-wrapper {
|
|
| 109 |
+ width: 100%; |
|
| 110 |
+ min-width: 0; |
|
| 111 |
+ margin: 0; |
|
| 112 |
+ padding: 6px; |
|
| 113 |
+} |
|
| 114 |
+ |
|
| 115 |
+[class*="gb-"] {
|
|
| 116 |
+ display: block; |
|
| 117 |
+ float: none; |
|
| 118 |
+ padding: 0; |
|
| 119 |
+ margin: 0; |
|
| 120 |
+ width: 100% !important; |
|
| 121 |
+} |
|
| 122 |
+} |
|
| 123 |
+ |
|
| 124 |
+@media screen and ( max-width: 567px ) {
|
|
| 125 |
+.screen-micro, |
|
| 126 |
+ .screen-micro > [class*="gb-"] {
|
|
| 127 |
+ display: none; |
|
| 128 |
+ } |
|
| 129 |
+} |
|
| 0 | 130 |
\ No newline at end of file |