diff options
author | Akshay <[email protected]> | 2020-01-27 12:31:44 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-01-27 12:31:44 +0000 |
commit | db8b64d063b9f2ea9f2caf18c030c5170bcc4748 (patch) | |
tree | 54e92da2b17112252d9582e072f62c38e1016b0d /docs/style.css | |
parent | 5ff6a15f1b493b7b44909acd7cab6dfb06d648f5 (diff) |
responsive styles
Diffstat (limited to 'docs/style.css')
-rw-r--r-- | docs/style.css | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/docs/style.css b/docs/style.css index fd7e37f..bdda208 100644 --- a/docs/style.css +++ b/docs/style.css | |||
@@ -30,10 +30,6 @@ html { | |||
30 | font-size: 20px; | 30 | font-size: 20px; |
31 | } | 31 | } |
32 | 32 | ||
33 | .posts { | ||
34 | width: 40%; | ||
35 | } | ||
36 | |||
37 | table { | 33 | table { |
38 | width: 100%; | 34 | width: 100%; |
39 | border-collapse: collapse; | 35 | border-collapse: collapse; |
@@ -52,8 +48,11 @@ td { | |||
52 | padding: 0.5rem 0; | 48 | padding: 0.5rem 0; |
53 | } | 49 | } |
54 | 50 | ||
55 | /* mobile devices */ | 51 | .posts { |
56 | @media only screen and (max-width: 70em) { | 52 | width: 100%; |
53 | } | ||
54 | |||
55 | @media only screen and (min-width: 600px) { | ||
57 | .posts { | 56 | .posts { |
58 | width: 100%; | 57 | width: 100%; |
59 | } | 58 | } |
@@ -62,6 +61,33 @@ td { | |||
62 | } | 61 | } |
63 | } | 62 | } |
64 | 63 | ||
64 | @media only screen and (min-width: 768px) { | ||
65 | .posts { | ||
66 | width: 80%; | ||
67 | } | ||
68 | html { | ||
69 | font-size: 18px; | ||
70 | } | ||
71 | } | ||
72 | |||
73 | @media only screen and (min-width: 992px) { | ||
74 | .posts { | ||
75 | width: 70%; | ||
76 | } | ||
77 | html { | ||
78 | font-size: 20px; | ||
79 | } | ||
80 | } | ||
81 | |||
82 | @media only screen and (min-width: 1200px) { | ||
83 | .posts { | ||
84 | width: 50%; | ||
85 | } | ||
86 | html { | ||
87 | font-size: 20px; | ||
88 | } | ||
89 | } | ||
90 | |||
65 | .posts { | 91 | .posts { |
66 | text-align: left; | 92 | text-align: left; |
67 | display: inline-block; | 93 | display: inline-block; |