-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smooth Display on load and css fixes (#2)
- Loading branch information
Marcos Vinícius Rubido
authored
Apr 13, 2019
1 parent
36ace7c
commit 0b579fc
Showing
3 changed files
with
90 additions
and
73 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,121 @@ | ||
@import 'reboot.css'; | ||
@import "reboot.css"; | ||
@font-face { | ||
font-family: 'fontello'; | ||
src: url(./font/fontello.eot?94163368); | ||
src: url(./font/fontello.eot?94163368#iefix) format("embedded-opentype"), url(./font/fontello.woff2?94163368) format("woff2"), url(./font/fontello.woff?94163368) format("woff"), url(./font/fontello.ttf?94163368) format("truetype"), url(./font/fontello.svg?94163368#fontello) format("svg"); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-family: fontello; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url("./font/fontello.eot?94163368"); | ||
src: url("./font/fontello.eot?94163368#iefix") format("embedded-opentype"), url("./font/fontello.woff2?94163368") format("woff2"), url("./font/fontello.woff?94163368") format("woff"), url("./font/fontello.ttf?94163368") format("truetype"), url("./font/fontello.svg?94163368#fontello") format("svg"); | ||
} | ||
|
||
.icon:before { | ||
speak: none; | ||
display: inline-block; | ||
text-decoration: inherit; | ||
text-align: center; | ||
text-transform: none; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
background-color: #DDD; | ||
color: #222; | ||
padding: .25em 0; | ||
width: 1.75em; | ||
border-radius: .1em; | ||
transition: background-color .75s .375s, color .75s; | ||
font: 400 1.5em "fontello"; | ||
.icon::before { | ||
display: inline-block; | ||
width: 1.75em; | ||
padding: .25em 0; | ||
font: 400 1.5em fontello; | ||
color: #222; | ||
text-align: center; | ||
text-decoration: inherit; | ||
text-transform: none; | ||
background-color: #ddd; | ||
border-radius: .1em; | ||
transition: background-color .75s .375s, color .75s; | ||
speak: none; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
.xing:before { | ||
content: '\f168'; | ||
.xing::before { | ||
content: "\f168"; | ||
} | ||
|
||
.skype:before { | ||
content: '\f17e'; | ||
.skype::before { | ||
content: "\f17e"; | ||
} | ||
|
||
.mail:before { | ||
content: '\f0e0'; | ||
.mail::before { | ||
content: "\f0e0"; | ||
} | ||
|
||
.doc-inv:before { | ||
content: '\f15b'; | ||
.doc-inv::before { | ||
content: "\f15b"; | ||
} | ||
|
||
.github:before { | ||
content: '\f09b'; | ||
.github::before { | ||
content: "\f09b"; | ||
} | ||
|
||
.linkedin:before { | ||
content: '\f0e1'; | ||
.linkedin::before { | ||
content: "\f0e1"; | ||
} | ||
|
||
.main { | ||
background-color: #222; | ||
position: relative; | ||
text-align: center; | ||
overflow: hidden; | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100vw; | ||
height: 100vh; | ||
text-align: center; | ||
background-color: #222; | ||
} | ||
|
||
.container { | ||
vertical-align: middle; | ||
width: 75%; | ||
margin: 0 auto; | ||
margin-top: 10em; | ||
display: flex; | ||
flex-flow: column wrap; | ||
width: 75vw; | ||
} | ||
|
||
.header { | ||
color: #FFF; | ||
letter-spacing: -.015em; | ||
font: 600 3.5em/1.25em "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif; | ||
font: 600 3.5em/1.25em "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
color: #fff; | ||
letter-spacing: -.015em; | ||
opacity: 0; | ||
animation: .75s ease-in .25s 1 forwards smoothDisplay; | ||
} | ||
|
||
.description { | ||
color: #DDD; | ||
color: #ddd; | ||
opacity: 0; | ||
animation: .75s ease-in .75s 1 forwards smoothDisplay; | ||
} | ||
|
||
.icons { | ||
padding: 0; | ||
margin-top: 2em; | ||
list-style-type: none; | ||
display: flex; | ||
flex-flow: row; | ||
justify-content: center; | ||
padding: 0; | ||
margin-top: 2em; | ||
list-style-type: none; | ||
opacity: 0; | ||
animation: .75s ease-in 1.5s 1 forwards smoothDisplay; | ||
} | ||
|
||
.icons>li { | ||
display: inline; | ||
} | ||
|
||
.icons>li:not(:last-child) { | ||
margin-right: .75em; | ||
.icons > li:not(:last-child) { | ||
margin-right: .75em; | ||
} | ||
|
||
.icon:hover::before, | ||
.icon:active::before { | ||
transition: background-color .75s, color .75s .375s; | ||
background-color: #222; | ||
color: #DDD; | ||
color: #ddd; | ||
background-color: #222; | ||
transition: background-color .75s, color .75s .375s; | ||
} | ||
|
||
@keyframes smoothDisplay { | ||
0% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.container { | ||
width: 85%; | ||
margin-top: 2.5em; | ||
} | ||
.icons { | ||
margin-top: 0; | ||
} | ||
} | ||
.container { | ||
width: 85%; | ||
margin-top: 2.5em; | ||
} | ||
.icons { | ||
margin-top: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,11 @@ | |
<h1 class="header">Marcos Vinícius Rubido</h1> | ||
<p class="description">Web Developer and Software Engineer in Hamburg</p> | ||
<ul class="icons"> | ||
<li><a href="https://www.linkedin.com/in/marcosvrs" title="LinkedIn Profile" onclick="ga('send', 'event', 'Link', 'LinkedIn');"><i class="icon linkedin"></i></a></li> | ||
<li><a href="https://www.xing.com/profile/MarcosVinicius_Rubido" title="Xing Profile" onclick="ga('send', 'event', 'Link', 'Xing');"><i | ||
<li><a href="https://www.linkedin.com/in/marcosvrs" title="LinkedIn Profile" onclick="gtag('event', 'Link', {'event_category': 'HomePage', 'event_label': 'LinkedIn'});"><i class="icon linkedin"></i></a></li> | ||
<li><a href="https://www.xing.com/profile/MarcosVinicius_Rubido" title="Xing Profile" onclick="gtag('event', 'Link', {'event_category': 'HomePage', 'event_label': 'Xing'});"><i | ||
class="icon xing"></i></a></li> | ||
<li><a href="https://github.com/marcosvrs" title="Github Profile" onclick="ga('send', 'event', 'Link', 'Github');"><i class="icon github"></i></a></li> | ||
<li><a href="mailto:[email protected]?subject=Website Contact" title="Email for Contact" onclick="ga('send', 'event', 'Link', 'Mail');"><i | ||
<li><a href="https://github.com/marcosvrs" title="Github Profile" onclick="gtag('event', 'Link', {'event_category': 'HomePage', 'event_label': 'Github'});"><i class="icon github"></i></a></li> | ||
<li><a href="mailto:[email protected]?subject=Website Contact" title="Email for Contact" onclick="gtag('event', 'Link', {'event_category': 'HomePage', 'event_label': 'Mail'});"><i | ||
class="icon mail"></i></a></li> | ||
</ul> | ||
</div> | ||
|