-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
87 lines (75 loc) · 2.82 KB
/
Copy pathstyles.css
File metadata and controls
87 lines (75 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
* {
margin: 0;
padding: 0;
}
*, *:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.grid {
margin: 0 auto;
width: 100%;
max-width: 100%;
}
.grid:before,
.grid:after {
margin: 0 auto;
content:"";
display: table ;
clear:both;
}
[class*='col-'] {
float: left;
padding: .25em;
}
/* Percentage Grid Area */
.col-25 { width: 25%; } /* Changes to 50% on tablets, 100% on phones */
.col-30 { width: 30%; } /* Changes to 50% on tablets, 100% on phones */
.col-40 { width: 40%; } /* 100% on phones */
.col-50 {width: 50%; } /* Stays 50% on all devices */
.col-60 {width: 60%; } /* 100% on phones */
.col-70 {width: 70%; } /* Changes to 50% on tablets, 100% on phones */
.col-75 {width: 75%; } /* Changes to 50% on tablets, 100% on phones */
.col-100 {width: 100%; } /* Stays 100% */
/* based on number of col */
.col-1 {width: 100%; } /* Stays 100% */
.col-2 {width: 50%; } /* Changes to 50% on tablets, 100% on phones */
.col-3 {width: 33.333333333%; } /* Changes to 100% on phones */
.col-4 {width: 25%; } /* Changes to 50% on tablets and phones */
.col-5 {width: 20%; } /* Changes to 100% on phones */
.col-6 {width: 16.666666667%; } /* Changes to 50% on phones */
.col-7 {width: 14.285714286%; } /* Changes to 100% on phones and tablets */
.col-8 {width: 12.5%;} /* Changes to 50% on tablets and phones */
.col-9 {width: 11.111111111%; } /* Changes to 100% on phones */
.col-10 {width: 10%; } /* Changes to 50% on tablets and phones */
.col-11 {width: 9.0909090909%; } /* Changes to 100% on phones */
.col-12 {width: 8.3333333333%; } /* Changes to 50% on tablets */
.col-13 {width: 7.6923076923%; } /* Changes to 100% on phones */
.col-14 {width: 7.1428571429%; } /* Changes to 50% on phones */
.col-15 {width: 6.6666666667%; } /* Changes to 100% on phones */
/* made responsive */
/* roughly phone screen */
@media only screen and (max-width: 35em), only screen and (max-device-width: 35em) {
*[class^="col-"] {
width: 100%;
}
}
/* roughly large phones, phablets, and small tablet screens */
@media (min-width: 35em) and (max-width: 50em) {
.col-4, .col-6, .col-8, .col-10, .col-12, .col-14 {
width: 50%;
}
.col-1, .col-2, .col-3, .col-5, .col-7, .col-9, .col-11, .col-13, .col-15, .col-60, .col-25, .col-30, .col-40, .col-70, .col-75 {
width: 100%;
}
}
/* roughly tablet / ereader screen */
@media (min-width:50em) and (max-width: 68em) {
.col-2, .col-7, .col-9, .col-11, .col-13, .col-15 {
width: 100%;
}
.col-4, .col-8, .col-10, .col-12, .col-14, .col-25, .col-30, .col-70, .col-75 {
width: 50%;
}
}