Commit e6bccd7471f5b937c277a99956c9ac1762d797b1
1 parent
bb655fdc
More fluid boxes in about section.
There is still some special handling neccessary when display width is to small.
Showing
3 changed files
with
34 additions
and
41 deletions
... | ... | @@ -70,20 +70,18 @@ p { |
70 | 70 | top: 50%; |
71 | 71 | left: 85%; |
72 | 72 | transform: translate(-50%, -50%); |
73 | - | |
74 | 73 | width: 26.875em; |
75 | 74 | clear: both; |
76 | 75 | } |
77 | 76 | #logo { |
78 | 77 | height: 100%; |
79 | - width: 100%; | |
78 | + width: 60%; | |
80 | 79 | } |
81 | 80 | #logo img, |
82 | -#logo a { | |
81 | +#logo .logotitle { | |
83 | 82 | position: relative; |
84 | 83 | top: 50%; |
85 | 84 | transform: translate(0, -50%); |
86 | - float: left; | |
87 | 85 | } |
88 | 86 | #logo img { |
89 | 87 | border: 0.125em solid white; |
... | ... | @@ -91,13 +89,19 @@ p { |
91 | 89 | padding: 2px; |
92 | 90 | opacity: 0.4; |
93 | 91 | margin: 0 1em; |
92 | + float: left; | |
94 | 93 | } |
95 | -#logo a { | |
94 | +#logo .logotitle a { | |
96 | 95 | color: rgb(255,255,255); |
97 | 96 | text-decoration: none; |
98 | 97 | font-size: 1.875em; |
99 | 98 | font-family: Arkitech; |
100 | 99 | } |
100 | +#logo .logotitle span { | |
101 | + color: rgb(255,255,255); | |
102 | + text-decoration: none; | |
103 | + font-family: Arkitech; | |
104 | +} | |
101 | 105 | |
102 | 106 | #nav ul { |
103 | 107 | display: block; |
... | ... | @@ -190,6 +194,7 @@ p { |
190 | 194 | list-style: none; |
191 | 195 | text-align: justify; |
192 | 196 | width: 100%; |
197 | + height: 20em; | |
193 | 198 | top: 50%; |
194 | 199 | transform: translate(0, -50%); |
195 | 200 | position: absolute; |
... | ... | @@ -202,15 +207,20 @@ p { |
202 | 207 | } |
203 | 208 | #about .textbox { |
204 | 209 | text-align: justify; |
205 | - padding: 10px; | |
206 | - width: 30%; | |
207 | - height: 10em; | |
210 | + padding: 0.625em; | |
211 | + width: calc(32% - 1.625em); | |
212 | + height: calc(100% - 1.625em); | |
208 | 213 | overflow: hidden; |
209 | 214 | box-shadow: 0.625em 0.625em 0.625em rgba(0,0,0,0.7); |
210 | 215 | } |
211 | 216 | #about a { |
212 | 217 | outline: 0; |
213 | 218 | } |
219 | +#about .source { | |
220 | + width: calc(32% - 2.875em); | |
221 | + bottom: 1.4375em; | |
222 | +} | |
223 | + | |
214 | 224 | |
215 | 225 | .textbox { |
216 | 226 | display: inline-block; |
... | ... | @@ -221,23 +231,6 @@ p { |
221 | 231 | text-align: center; |
222 | 232 | } |
223 | 233 | |
224 | -.projectspace { | |
225 | - display: inline-block; | |
226 | - width: 35%; | |
227 | -} | |
228 | -.projects { | |
229 | - display: inline-block; | |
230 | - width: 60%; | |
231 | - list-style: none; | |
232 | - text-align: justify; | |
233 | - vertical-align: top; | |
234 | -} | |
235 | -.projects .textbox { | |
236 | - padding: 3px; | |
237 | - margin-top: 3px; | |
238 | - background-color: rgba(0,0,0,0); | |
239 | -} | |
240 | - | |
241 | 234 | .section { |
242 | 235 | position: relative; |
243 | 236 | overflow: hidden; |
... | ... | @@ -422,8 +415,6 @@ p { |
422 | 415 | .source { |
423 | 416 | position: absolute; |
424 | 417 | font-size: x-small; |
425 | - bottom: 3.5em; | |
426 | - width: 30%; | |
427 | 418 | } |
428 | 419 | /* |
429 | 420 | #title { | ... | ... |
... | ... | @@ -10,8 +10,10 @@ |
10 | 10 | <header id="header"> |
11 | 11 | <div id="logo"> |
12 | 12 | <%= image_tag "me-white.png", width: "62", height: "70" %> |
13 | - <a href=""> Georg Hopp </a> | |
14 | - <span>aka Steffers</span> | |
13 | + <div class="logotitle"> | |
14 | + <a href=""> Georg Hopp </a> | |
15 | + <span>aka Steffers</span> | |
16 | + </div> | |
15 | 17 | </div> |
16 | 18 | <nav id="nav"> |
17 | 19 | <ul> | ... | ... |
... | ... | @@ -4,8 +4,8 @@ |
4 | 4 | <div class="textbox"> |
5 | 5 | <h1>COMPUTER SCIENTIST</h1> |
6 | 6 | <div class="dictionary"> |
7 | - <div class="headword">Computer-scientist <i>n.s.</i></div> | |
8 | - <div class="pronounciation">/kəmˈpjuːtə-ˈsaɪəntɪst/</div> | |
7 | + <span class="headword">Computer-scientist <i>n.s.</i></span> | |
8 | + <span class="pronounciation">/kəmˈpjuːtə-ˈsaɪəntɪst/</span> | |
9 | 9 | <ol class="sense"> |
10 | 10 | <li> |
11 | 11 | A writer of computer programs; a harmless drudge that busies |
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | </li> |
15 | 15 | </ol> |
16 | 16 | </div> |
17 | - <div class="source"> | |
17 | + <p class="source"> | |
18 | 18 | Shamelessly taken and slightly modified definition of lexicographer |
19 | 19 | from Samual Johnsons |
20 | 20 | <a href="http://johnsonsdictionaryonline.com/?p=4848"> |
... | ... | @@ -24,13 +24,13 @@ |
24 | 24 | <a href="http://www.photransedit.com/online/text2phonetics.aspx"> |
25 | 25 | PhoTransEdit |
26 | 26 | </a> |
27 | - </div> | |
27 | + </p> | |
28 | 28 | </div> |
29 | 29 | <div class="textbox"> |
30 | 30 | <h1>DAD</h1> |
31 | 31 | <div class="dictionary"> |
32 | - <div class="headword">Dad <i>n.s.</i></div> | |
33 | - <div class="pronounciation">/dæd/</div> | |
32 | + <span class="headword">Dad <i>n.s.</i></span> | |
33 | + <span class="pronounciation">/dæd/</span> | |
34 | 34 | <ol class="sense"> |
35 | 35 | <li> |
36 | 36 | [The child's way of expressing father. It is remarkable, that, |
... | ... | @@ -41,7 +41,7 @@ |
41 | 41 | </li> |
42 | 42 | </ol> |
43 | 43 | </div> |
44 | - <div class="source"> | |
44 | + <p class="source"> | |
45 | 45 | Taken from the |
46 | 46 | <a href="http://johnsonsdictionaryonline.com/?p=4848"> |
47 | 47 | "Dictionary of the english language (1755)" |
... | ... | @@ -50,13 +50,13 @@ |
50 | 50 | <a href="http://www.photransedit.com/online/text2phonetics.aspx"> |
51 | 51 | PhoTransEdit |
52 | 52 | </a> |
53 | - </div> | |
53 | + </p> | |
54 | 54 | </div> |
55 | 55 | <div class="textbox"> |
56 | 56 | <h1>HUMANIST</h1> |
57 | 57 | <div class="dictionary"> |
58 | - <div class="headword">Humanist <i>n.s.</i></div> | |
59 | - <div class="pronounciation">/ˈhjuːmənɪst/</div> | |
58 | + <span class="headword">Humanist <i>n.s.</i></span> | |
59 | + <span class="pronounciation">/ˈhjuːmənɪst/</span> | |
60 | 60 | <ol class="sense"> |
61 | 61 | <li>a person devoted to or versed in the humanities.</li> |
62 | 62 | <li>a person who follows a form of scientific or philosophical |
... | ... | @@ -68,14 +68,14 @@ |
68 | 68 | </li> |
69 | 69 | </ol> |
70 | 70 | </div> |
71 | - <div class="source"> | |
71 | + <p class="source"> | |
72 | 72 | Taken from the |
73 | 73 | <a href="http://www.dictionary.com/">Dictionary.com</a> |
74 | 74 | Phonetics from |
75 | 75 | <a href="http://www.photransedit.com/online/text2phonetics.aspx"> |
76 | 76 | PhoTransEdit |
77 | 77 | </a> |
78 | - </div> | |
78 | + </p> | |
79 | 79 | </div> |
80 | 80 | </div> |
81 | 81 | </div> | ... | ... |
Please
register
or
login
to post a comment