about summary refs log tree commit diff stats
path: root/app/assets/stylesheets/main/layout.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/main/layout.scss')
-rw-r--r--app/assets/stylesheets/main/layout.scss195
1 files changed, 150 insertions, 45 deletions
diff --git a/app/assets/stylesheets/main/layout.scss b/app/assets/stylesheets/main/layout.scss index 96aebea..d5fe7a7 100644 --- a/app/assets/stylesheets/main/layout.scss +++ b/app/assets/stylesheets/main/layout.scss
@@ -1,50 +1,47 @@
1body#main-body { 1body#main-body {
2 background-color: #bfefff;
3 height: 100%; 2 height: 100%;
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: 7em auto 2em;
9 width: 75%; /* 66% */
10 box-sizing: border-box; 9 box-sizing: border-box;
11 min-width: 890px;
12 display: flex;
13 flex-direction: row-reverse;
14}
15 10
16@keyframes trottingPonies { 11 @media only screen and (min-width: 768px) {
17 from { background-position-x: 0px; } 12 margin: 10px auto;
18 to { background-position-x: -1280px; } 13 width: 75%; /* 66% */
14 min-width: 910px;
15 }
19} 16}
20 17
21#banner { 18#banner {
22 background-image: image-url("walk_cycle.png"); 19 margin: 0 auto;
23 background-repeat: repeat-x;
24 animation: trottingPonies 1s steps(16) infinite;
25 width: 100%;
26 padding: 1em;
27 box-sizing: border-box;
28 text-indent: -9999px;
29 height: 80px;
30 margin-bottom: -80px;
31 position: relative;
32 top: -70px;
33 20
34 a { 21 h1 {
35 display: block; 22 display: none;
23 }
24
25 img {
36 width: 100%; 26 width: 100%;
37 height: 55px; 27 max-width: 900px;
28 display: block;
29 margin: 0 auto;
30 }
31}
32
33#page-body {
34 display: flex;
35
36 @media only screen and (max-width: 767px) {
37 flex-direction: column-reverse;
38 } 38 }
39} 39}
40 40
41#main { 41#main {
42 background-color: white; 42 @media only screen and (min-width: 768px) {
43 -webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75); 43 width: 70%;
44 -moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75); 44 }
45 box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
46 width: 75%;
47 min-width: 720px
48} 45}
49 46
50#content { 47#content {
@@ -56,7 +53,8 @@ body#main-body {
56 width: 100%; 53 width: 100%;
57 text-align: center; 54 text-align: center;
58 padding: .25em; 55 padding: .25em;
59 font-weight: bold 56 font-weight: bold;
57 box-sizing: border-box;
60} 58}
61 59
62.flash-notice { 60.flash-notice {
@@ -69,31 +67,31 @@ body#main-body {
69 67
70#sidebar { 68#sidebar {
71 box-sizing: border-box; 69 box-sizing: border-box;
72 width: 25%;
73 font-size: .75em; 70 font-size: .75em;
74 color: black; 71 color: black;
75 border-left: 1px solid #eee;
76 margin-top: 1em; 72 margin-top: 1em;
77 margin-bottom: 2em; 73 margin-bottom: 2em;
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 }
78} 83}
79 84
80#sidebar h2 { 85#sidebar h2, #mobile-header h2 {
81 font-size: 1em; 86 font-size: 1em;
82 margin: 0;
83} 87}
84 88
85.sidebar-module { 89.sidebar-module {
86 padding: 1em; 90 padding: 0 1em;
87 margin-top: 1em;
88 box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);
89}
90
91.sidebar-module:nth-child(2n+1) {
92 background-color: #feff8f;
93}
94 91
95.sidebar-module:nth-child(2n+2) { 92 & + .sidebar-module {
96 background-color: #8fefab; 93 margin-top: 1em;
94 }
97} 95}
98 96
99.sidebar-module p { 97.sidebar-module p {
@@ -121,8 +119,88 @@ body#main-body {
121 color: #352712; 119 color: #352712;
122} 120}
123 121
122blockquote.bubble {
123 margin: 0;
124 border: 1px solid #c9c2c1;
125 background-color: #fff;
126 position: relative;
127
128 div {
129 margin: 10px;
130 padding: 0;
131 }
132}
133
134.bubble {
135 width: auto;
136 margin-bottom: 24px;
137 padding: 0 1em 1em;
138
139 &.rounded {
140 margin-bottom: 10px;
141 border: 3px solid #fff;
142 background-color: #b7e0ff;
143 border-radius: 10px;
144
145 blockquote {
146 border: 0;
147 background-color: transparent;
148
149 div {
150 margin: 0 10px;
151 }
152 }
153 }
154
155 &.pimped {
156 color: white;
157 border: 3px solid white;
158 background-color: #111;
159 }
160
161 div.bquote blockquote {
162 margin: 0;
163 padding: 0;
164 border: 1px solid #c9c2c1;
165 background-color: white;
166 }
167}
168
169cite.bubble {
170 font-style: normal;
171 position: relative;
172 margin: 0;
173 padding: 7px 0px 0px 15px;
174}
175
176blockquote.bubble::after {
177 /* (B1-1) ATTACH TRANSPARENT BORDERS */
178 content: "";
179 border: 10px solid transparent;
180
181 /* (B1-2) NECESSARY TO POSITION THE "TAIL" */
182 position: absolute;
183}
184
185/* (B2) BOTTOM "CALLOUT TAIL" */
186blockquote.bubble.bottom::after {
187 /* (B2-1) DOWN TRIANGLE */
188 border-top-color: #b7e0ff;
189 border-bottom: 0;
190
191 /* (B2-2) POSITION AT BOTTOM */
192 bottom: -10px;
193 left: 3.5em;
194 margin-left: -20px;
195
196 &.pimped {
197 border-top-color: black;
198 }
199}
200
124.breadcrumb { 201.breadcrumb {
125 margin-left: 1em; 202 margin-left: 1em;
203 margin-bottom: 1em;
126 204
127 a, a:visited { 205 a, a:visited {
128 color: #555d66; 206 color: #555d66;
@@ -134,3 +212,30 @@ body#main-body {
134 text-decoration: underline; 212 text-decoration: underline;
135 } 213 }
136} 214}
215
216.clear {
217 clear: both;
218}
219
220h2.centered {
221 text-align: center;
222}
223
224.fun-links {
225 a {
226 font-size: 1.1em;
227 vertical-align: super;
228 text-decoration: none;
229 }
230}
231
232#scrobble-box {
233 img {
234 margin: 0 auto;
235 display: block;
236 }
237
238 p {
239 text-align: center;
240 }
241}