diff options
Diffstat (limited to 'app/assets/stylesheets/main/layout.scss')
-rw-r--r-- | app/assets/stylesheets/main/layout.scss | 51 |
1 files changed, 32 insertions, 19 deletions
diff --git a/app/assets/stylesheets/main/layout.scss b/app/assets/stylesheets/main/layout.scss index 5f5d0e6..ef31ada 100644 --- a/app/assets/stylesheets/main/layout.scss +++ b/app/assets/stylesheets/main/layout.scss | |||
@@ -1,42 +1,47 @@ | |||
1 | body#main-body { | 1 | body#main-body { |
2 | height: 100%; | 2 | height: 100%; |
3 | font-family: sans-serif; | 3 | font-family: sans-serif; |
4 | font-size: 16px; | ||
4 | } | 5 | } |
5 | 6 | ||
6 | #container { | 7 | #container { |
7 | height: 100%; | 8 | height: 100%; |
8 | margin: 10px auto; | ||
9 | width: 75%; /* 66% */ | ||
10 | box-sizing: border-box; | 9 | box-sizing: border-box; |
11 | min-width: 910px; | 10 | |
11 | @media only screen and (min-width: 768px) { | ||
12 | margin: 10px auto; | ||
13 | width: 75%; /* 66% */ | ||
14 | min-width: 910px; | ||
15 | } | ||
12 | } | 16 | } |
13 | 17 | ||
14 | #banner { | 18 | #banner { |
15 | background-image: image-url("fourisland_header.png"); | ||
16 | width: 900px; | ||
17 | height: 200px; | ||
18 | margin: 0 auto; | 19 | margin: 0 auto; |
19 | 20 | ||
20 | h1 { | 21 | h1 { |
21 | margin: 0; | 22 | display: none; |
23 | } | ||
22 | 24 | ||
23 | a { | 25 | img { |
24 | display: block; | 26 | width: 100%; |
25 | width: 900px; | 27 | max-width: 900px; |
26 | height: 200px; | 28 | display: block; |
27 | text-indent: -5000px; | 29 | margin: 0 auto; |
28 | text-decoration: none; | ||
29 | margin: 0; | ||
30 | } | ||
31 | } | 30 | } |
32 | } | 31 | } |
33 | 32 | ||
34 | #page-body { | 33 | #page-body { |
35 | display: flex; | 34 | display: flex; |
35 | |||
36 | @media only screen and (max-width: 767px) { | ||
37 | flex-direction: column-reverse; | ||
38 | } | ||
36 | } | 39 | } |
37 | 40 | ||
38 | #main { | 41 | #main { |
39 | width: 70%; | 42 | @media only screen and (min-width: 768px) { |
43 | width: 70%; | ||
44 | } | ||
40 | } | 45 | } |
41 | 46 | ||
42 | #content { | 47 | #content { |
@@ -48,7 +53,8 @@ body#main-body { | |||
48 | width: 100%; | 53 | width: 100%; |
49 | text-align: center; | 54 | text-align: center; |
50 | padding: .25em; | 55 | padding: .25em; |
51 | font-weight: bold | 56 | font-weight: bold; |
57 | box-sizing: border-box; | ||
52 | } | 58 | } |
53 | 59 | ||
54 | .flash-notice { | 60 | .flash-notice { |
@@ -61,15 +67,22 @@ body#main-body { | |||
61 | 67 | ||
62 | #sidebar { | 68 | #sidebar { |
63 | box-sizing: border-box; | 69 | box-sizing: border-box; |
64 | width: 30%; | ||
65 | font-size: .75em; | 70 | font-size: .75em; |
66 | color: black; | 71 | color: black; |
67 | margin-top: 1em; | 72 | margin-top: 1em; |
68 | margin-bottom: 2em; | 73 | margin-bottom: 2em; |
69 | font-family: sans-serif; | 74 | font-family: sans-serif; |
75 | |||
76 | @media only screen and (max-width: 767px) { | ||
77 | width: 100%; | ||
78 | } | ||
79 | |||
80 | @media only screen and (min-width: 768px) { | ||
81 | width: 30%; | ||
82 | } | ||
70 | } | 83 | } |
71 | 84 | ||
72 | #sidebar h2 { | 85 | #sidebar h2, #mobile-header h2 { |
73 | font-size: 1em; | 86 | font-size: 1em; |
74 | } | 87 | } |
75 | 88 | ||