Skip to content

Instantly share code, notes, and snippets.

@nelantone
Last active July 15, 2016 18:13
Show Gist options
  • Save nelantone/2b1639c1a1c925c0e299f9bea1a99d22 to your computer and use it in GitHub Desktop.
Save nelantone/2b1639c1a1c925c0e299f9bea1a99d22 to your computer and use it in GitHub Desktop.
Task 1.10 to 2.5
* { box-sizing: border-box; }
/*****navigation bar*****/
.nav {
display: inline-block;
background-color: black;
opacity: 0.8;
filter: alpha(opacity=80); /* For IE8 and earlier */
z-index: 1;
}
.nav ul li {
background-color: black;
}
.nav ul li a {
text-transform: uppercase;
letter-spacing: 0.5em;
color: white;
}
.nav a:hover {
color: #0EBFE9;
text-decoration: none;
font-variant: bold;
transition: color 600ms;
-webkit-transition: color 600ms;
}
.nelantone {
padding-top: 15px;
position: absolute;
text-transform: uppercase;
letter-spacing: 0.5em;
}
.nelantone a {
position: absolute;
position: fixed;
color: white;
text-decoration: none;
letter-spacing: 0.5em;
}
/**** index page ****/
.container {
width: 100%;
color: #000;
position: relative;
}
body {
position: relative;
background-color: #fffeea;
color: #34495e;
}
.sections {
padding-top: 50px;
}
.container.index {
width: 100%;
margin: 0 auto;
color: #000;
display: block;
position: absolute;
margin-top: 200px;
background-color: white;
z-index: 1;
opacity: 0.8;
filter: alpha(opacity=80); /* For IE8 and earlier */
}
.container.title {
width: 100%;
margin: 0 auto;
color: #000;
display: block;
position: absolute;
text-align: center;
margin-top: 70px;
z-index: 1;
}
/**** About page ****/
.tonioImage {
display: inline-block;
float: left;
}
#about-me {
clear: both;
padding-top: 50px;
}
.intro p {
font-size: 2em;
font-style: italic;
}
.bg-about {
width: 100%;
height: 100%;
background-image: url("http://nelantone.bitballoon.com/img/Peters_projection3.png");
background-size: 100%;
background-color: white;
background-repeat: no-repeat;
opacity: 1;
filter: alpha(opacity=1); /* For IE8 and earlier */
}
.description {
height: 100%;
width: 100%;
margin-left: 8%;
padding: 0 20%;
}
.work_bg {
height:100%;
width:100%;
background-attachment: fixed;
margin:0 0 10px;
background-image: url("http://nelantone.bitballoon.com/img/bln_about_bg.jpg");
background-repeat: no-repeat;
background-position: center;
display: inline-block;
}
.tonioImage {
margin: 20px;
}
/**** Contact page ****/
#name { text-transform: capitalize; }
.contact a:hover {
color: black;
text-decoration: none;
font-variant: bold;
transition: color 600ms;
-webkit-transition: color 600ms;
}
.contact-square {
width: 400px;
height: 250px;
margin-left: 35%;
}
.all-content.contact {
background-attachment: fixed;
padding-top: 70px;
padding-bottom: 30%;
margin-top: 0px;
width: 100%;
height:100%;
background-color: #e9e8e5;
background-image: url("https://c2.staticflickr.com/6/5192/5899011068_65171b330b_o.jpg");
background-size: cover;
background-repeat: no-repeat;
}
#name,
#email,
.message-box {
opacity: 0.7;
filter: alpha(opacity=70); /* For IE8 and earlier */
}
.form-group {
display: inline-block;
position: absolute;
float: left;
}
/**** FAQ & Learn-more page ****/
.container.faq {
width: 100%;
}
h1.learn-more {
text-align: left;
margin-left:2%;
display: inline-block;
}
.modal-button {
float: right;
padding: 15px;
}
#faq-section {
margin-bottom: 40px;
}
#CV-Resume {
height: 500px;
width: 100%;
padding: 5px;
}
/***** end sections and bottom *****/
#working_on_it {
padding-top: 75px;
}
footer{
display: block;
margin: auto;
width: 50%;
}
.end_bg {
height:100%;
width:100%;
margin:0 0 10px;
background-image: url("http://nelantone.bitballoon.com/img/albufer_bg.jpg");
background-position: 50% 70%;
background-color: black;
}
/*****Typography*****/
* { font-family: Futura, Helvetica, Arial, sans-serif; }
/*****Media medium screens*****/
@media (max-width: 990px) {
/***index***/
.container.index {
position: relative;
display: block;
}
.container.title {
width: 70%;
margin-right: 20%;
margin-left: 15%;
}
.container.title h1 {
margin: 0 auto;
font-size: 25px;
}
.all-content {
padding-top: 50px;
}
.all-content.contact {
padding-top: 0px;
padding-bottom: 100%;
}
#name h3{
font-size: 15px;
}
/***contact***/
.container.contact {
margin: auto auto auto;
}
.contact-square h1{
font-size: 20px;
}
.contact-square {
background-color: white;
padding-left: 20px;
z-index: 1;
opacity: 0.8;
filter: alpha(opacity=80); /* For IE8 and earlier */
}
/***work***/
.work_bg {
background-repeat: no-repeat;
}
/***navigator***/
.navbar-nav.navbar-right {
padding-left: 80%;
}
.form-group {
padding-left: 200px;
}
/*** end of section ***/
footer{
display: block;
margin: 0;
}
}
/*****Media phone screens*****/
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/***font sizes***/
* { font-size: 13px; }
h1 { font-size: 15px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
h4 { font-size: 13px; }
h5 { font-size: 13px; }
/***Navigation bar***/
.navbar-nav.navbar-right {
padding-left: 1%;
}
.navbar-toggle {
float: inherit;
margin-left: 5px;
}
.navbar-nav {
width: 100%;
margin-left: -15px;
}
.nav {
opacity: 1;
filter: alpha(opacity=100); /* For IE8 and earlier */
}
/***index***/
.all-content {
padding-top: 800px;
}
/*** end and bottom section***/
iframe {
width: 100%;
height: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment