Browse Source

More fluid boxes in about section.

There is still some special handling neccessary when display width is to
small.
responsive
Georg Hopp 9 years ago
parent
commit
e6bccd7471
  1. 45
      app/assets/stylesheets/welcome.scss
  2. 6
      app/views/layouts/application.html.erb
  3. 24
      app/views/welcome/index.html.erb

45
app/assets/stylesheets/welcome.scss

@ -70,20 +70,18 @@ p {
top: 50%; top: 50%;
left: 85%; left: 85%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 26.875em; width: 26.875em;
clear: both; clear: both;
} }
#logo { #logo {
height: 100%; height: 100%;
width: 100%;
width: 60%;
} }
#logo img, #logo img,
#logo a {
#logo .logotitle {
position: relative; position: relative;
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
float: left;
} }
#logo img { #logo img {
border: 0.125em solid white; border: 0.125em solid white;
@ -91,13 +89,19 @@ p {
padding: 2px; padding: 2px;
opacity: 0.4; opacity: 0.4;
margin: 0 1em; margin: 0 1em;
float: left;
} }
#logo a {
#logo .logotitle a {
color: rgb(255,255,255); color: rgb(255,255,255);
text-decoration: none; text-decoration: none;
font-size: 1.875em; font-size: 1.875em;
font-family: Arkitech; font-family: Arkitech;
} }
#logo .logotitle span {
color: rgb(255,255,255);
text-decoration: none;
font-family: Arkitech;
}
#nav ul { #nav ul {
display: block; display: block;
@ -190,6 +194,7 @@ p {
list-style: none; list-style: none;
text-align: justify; text-align: justify;
width: 100%; width: 100%;
height: 20em;
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
position: absolute; position: absolute;
@ -202,15 +207,20 @@ p {
} }
#about .textbox { #about .textbox {
text-align: justify; text-align: justify;
padding: 10px;
width: 30%;
height: 10em;
padding: 0.625em;
width: calc(32% - 1.625em);
height: calc(100% - 1.625em);
overflow: hidden; overflow: hidden;
box-shadow: 0.625em 0.625em 0.625em rgba(0,0,0,0.7); box-shadow: 0.625em 0.625em 0.625em rgba(0,0,0,0.7);
} }
#about a { #about a {
outline: 0; outline: 0;
} }
#about .source {
width: calc(32% - 2.875em);
bottom: 1.4375em;
}
.textbox { .textbox {
display: inline-block; display: inline-block;
@ -221,23 +231,6 @@ p {
text-align: center; text-align: center;
} }
.projectspace {
display: inline-block;
width: 35%;
}
.projects {
display: inline-block;
width: 60%;
list-style: none;
text-align: justify;
vertical-align: top;
}
.projects .textbox {
padding: 3px;
margin-top: 3px;
background-color: rgba(0,0,0,0);
}
.section { .section {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@ -422,8 +415,6 @@ p {
.source { .source {
position: absolute; position: absolute;
font-size: x-small; font-size: x-small;
bottom: 3.5em;
width: 30%;
} }
/* /*
#title { #title {

6
app/views/layouts/application.html.erb

@ -10,8 +10,10 @@
<header id="header"> <header id="header">
<div id="logo"> <div id="logo">
<%= image_tag "me-white.png", width: "62", height: "70" %> <%= image_tag "me-white.png", width: "62", height: "70" %>
<a href=""> Georg Hopp </a>
<span>aka Steffers</span>
<div class="logotitle">
<a href=""> Georg Hopp </a>
<span>aka Steffers</span>
</div>
</div> </div>
<nav id="nav"> <nav id="nav">
<ul> <ul>

24
app/views/welcome/index.html.erb

@ -4,8 +4,8 @@
<div class="textbox"> <div class="textbox">
<h1>COMPUTER SCIENTIST</h1> <h1>COMPUTER SCIENTIST</h1>
<div class="dictionary"> <div class="dictionary">
<div class="headword">Computer-scientist <i>n.s.</i></div>
<div class="pronounciation">/kəmˈpjuːtə-ˈsaɪəntɪst/</div>
<span class="headword">Computer-scientist <i>n.s.</i></span>
<span class="pronounciation">/kəmˈpjuːtə-ˈsaɪəntɪst/</span>
<ol class="sense"> <ol class="sense">
<li> <li>
A writer of computer programs; a harmless drudge that busies A writer of computer programs; a harmless drudge that busies
@ -14,7 +14,7 @@
</li> </li>
</ol> </ol>
</div> </div>
<div class="source">
<p class="source">
Shamelessly taken and slightly modified definition of lexicographer Shamelessly taken and slightly modified definition of lexicographer
from Samual Johnsons from Samual Johnsons
<a href="http://johnsonsdictionaryonline.com/?p=4848"> <a href="http://johnsonsdictionaryonline.com/?p=4848">
@ -24,13 +24,13 @@
<a href="http://www.photransedit.com/online/text2phonetics.aspx"> <a href="http://www.photransedit.com/online/text2phonetics.aspx">
PhoTransEdit PhoTransEdit
</a> </a>
</div>
</p>
</div> </div>
<div class="textbox"> <div class="textbox">
<h1>DAD</h1> <h1>DAD</h1>
<div class="dictionary"> <div class="dictionary">
<div class="headword">Dad <i>n.s.</i></div>
<div class="pronounciation">/dæd/</div>
<span class="headword">Dad <i>n.s.</i></span>
<span class="pronounciation">/dæd/</span>
<ol class="sense"> <ol class="sense">
<li> <li>
[The child's way of expressing father. It is remarkable, that, [The child's way of expressing father. It is remarkable, that,
@ -41,7 +41,7 @@
</li> </li>
</ol> </ol>
</div> </div>
<div class="source">
<p class="source">
Taken from the Taken from the
<a href="http://johnsonsdictionaryonline.com/?p=4848"> <a href="http://johnsonsdictionaryonline.com/?p=4848">
"Dictionary of the english language (1755)" "Dictionary of the english language (1755)"
@ -50,13 +50,13 @@
<a href="http://www.photransedit.com/online/text2phonetics.aspx"> <a href="http://www.photransedit.com/online/text2phonetics.aspx">
PhoTransEdit PhoTransEdit
</a> </a>
</div>
</p>
</div> </div>
<div class="textbox"> <div class="textbox">
<h1>HUMANIST</h1> <h1>HUMANIST</h1>
<div class="dictionary"> <div class="dictionary">
<div class="headword">Humanist <i>n.s.</i></div>
<div class="pronounciation">/ˈhjuːmənɪst/</div>
<span class="headword">Humanist <i>n.s.</i></span>
<span class="pronounciation">/ˈhjuːmənɪst/</span>
<ol class="sense"> <ol class="sense">
<li>a person devoted to or versed in the humanities.</li> <li>a person devoted to or versed in the humanities.</li>
<li>a person who follows a form of scientific or philosophical <li>a person who follows a form of scientific or philosophical
@ -68,14 +68,14 @@
</li> </li>
</ol> </ol>
</div> </div>
<div class="source">
<p class="source">
Taken from the Taken from the
<a href="http://www.dictionary.com/">Dictionary.com</a> <a href="http://www.dictionary.com/">Dictionary.com</a>
Phonetics from Phonetics from
<a href="http://www.photransedit.com/online/text2phonetics.aspx"> <a href="http://www.photransedit.com/online/text2phonetics.aspx">
PhoTransEdit PhoTransEdit
</a> </a>
</div>
</p>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save