Commit e6bccd7471f5b937c277a99956c9ac1762d797b1

Authored by Georg Hopp
1 parent bb655fdc

More fluid boxes in about section.

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