Skip to content

Commit 501a07e

Browse files
committed
Fixed #3 Bug, Added Menu Item Animation, Changed Signature's Font
Thanks to https://ianlunn.github.io/Hover/ for the Animation
1 parent 73b16e8 commit 501a07e

7 files changed

Lines changed: 64 additions & 11 deletions

File tree

css/fonts.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@font-face {
2+
font-family: "Jey";
3+
src: url('fonts/jey.ttf');
4+
}

css/stile.css

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ a:hover {
4141
.menu {
4242
background: #353535;
4343
position: fixed;
44-
width: 300px;
44+
width: 320px;
4545
height: 100%;
46-
padding: 10px;
4746
box-sizing: content-box;
4847
-moz-box-sizing: content-box;
4948
-webkit-box-sizing: content-box;
@@ -83,6 +82,10 @@ a:hover {
8382
display: none;
8483
background: #353535;
8584
}
85+
.signature {
86+
font-family: "Jey", sans-serif;
87+
font-size: 70px;
88+
}
8689

8790
/* IDs */
8891

@@ -94,10 +97,55 @@ a:hover {
9497
bottom: 0px;
9598
z-index: 999999;
9699
}
97-
#logo {
100+
#mobile_logo {
98101
display: none;
99102
}
100103

104+
/* Hover Menu Link [Thanks to Hover.css]*/
105+
106+
.sweep-to-right {
107+
display: block;
108+
vertical-align: middle;
109+
-webkit-transform: translateZ(0);
110+
transform: translateZ(0);
111+
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
112+
-webkit-backface-visibility: hidden;
113+
backface-visibility: hidden;
114+
-moz-osx-font-smoothing: grayscale;
115+
position: relative;
116+
-webkit-transition-property: color;
117+
transition-property: color;
118+
-webkit-transition-duration: 0.3s;
119+
transition-duration: 0.3s;
120+
}
121+
.sweep-to-right:before {
122+
content: "";
123+
position: absolute;
124+
z-index: -1;
125+
top: 0;
126+
left: 0;
127+
right: 0;
128+
bottom: 0;
129+
background: #616161;
130+
-webkit-transform: scaleX(0);
131+
transform: scaleX(0);
132+
-webkit-transform-origin: 0 50%;
133+
transform-origin: 0 50%;
134+
-webkit-transition-property: transform;
135+
transition-property: transform;
136+
-webkit-transition-duration: 0.3s;
137+
transition-duration: 0.3s;
138+
-webkit-transition-timing-function: ease-out;
139+
transition-timing-function: ease-out;
140+
}
141+
.sweep-to-right:hover, .sweep-to-right:focus, .sweep-to-right:active {
142+
color: white;
143+
}
144+
.sweep-to-right:hover:before, .sweep-to-right:focus:before, .sweep-to-right:active:before {
145+
-webkit-transform: scaleX(1);
146+
transform: scaleX(1);
147+
}
148+
101149
/* Responsive Sets */
102150

103151
@media screen and (min-device-width: 930px) and (max-device-width: 1500px) {

fonts/jey.ttf

40.7 KB
Binary file not shown.

head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
<link href='https://fonts.googleapis.com/css?family=Oswald:400,700,300|Open+Sans:400,700,400italic,300,300italic,700italic' rel='stylesheet' type='text/css'>
1616
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
17+
<link href="css/fonts.css" rel='stylesheet' type='text/css'>
1718

1819
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
1920

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
<div class="mobile_bottom">
1010
<a href="policy.pdf" class="link" id="policy">Privacy Policy</a><br />
1111
</div>
12-
<div id="logo">
12+
<div id="mobile_logo">
1313
<a href="index.php"><img alt="logo" src="img/logo.png" height="150" width="150" style="padding:15px;"/></a>
1414
</div>
1515

1616
<?php include("nav.php"); ?>
1717

18-
<div class="text" id="home_text">
18+
<div class="text long_text" id="home_text">
1919
<h1 style="color: #FFA200;">Sito <strong style="color: #ff6600;">OpenSource</strong> su <a href="https://github.com/morrolinuxyt/website">GitHub</a>!</h1><br /><br /><br />
2020
<?php include("letter.html"); ?>
2121
</div>

letter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ <h2>Conclusioni</h2>
5050
Come riassumere tutto il sito in una parola? Love.<br />
5151
Ci siamo affezzionati a questo progetto, lo stiamo portando avanti da un po', con costanti aggiornamenti e, adesso che è su GitHub, potete vedere anche voi quanti aggiornamenti giornalieri
5252
ci sono sul sito. Purtroppo non è un sito perfetto, ma pieno di <strong>Amore</strong>. Vi invitiamo a partecipare al progetto, contribuendo su GitHub. Per il resto, <br />Grazie di Tutto.
53-
<br /><br /><i><b>Morrolinux<br />MrRiky54</b></i><br /><br /><br /><br />
53+
<br /><br /><span class="signature"><i><b>Moreno e Riccardo</b></i></span><br /><br /><br /><br />
5454
</p>

nav.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="menu">
2-
<a href="index.php"><img alt="logo" src="img/logo.png" height="150" width="150" style="padding:15px;"/></a>
3-
<div class="menu_link">
2+
<a href="index.php"><img id="logo" alt="logo" src="img/logo.png" height="150" width="150" style="padding:15px;"/></a>
3+
<div class="menu_link sweep-to-right">
44
<a href="http://morrolinux.it:43110" class="link">BLOG</a><br />
55
</div>
6-
<div class="menu_link">
6+
<div class="menu_link sweep-to-right">
77
<a href="lpi.php" class="link">LPI</a><br />
88
</div>
9-
<div class="menu_link">
9+
<div class="menu_link sweep-to-right">
1010
<a href="chisono.php" class="link">CHI SONO</a><br />
1111
</div>
12-
<div class="menu_link">
12+
<div class="menu_link sweep-to-right">
1313
<a href="contatti.php" class="link">CONTATTI</a><br />
1414
</div>
1515
<div id="bottom">

0 commit comments

Comments
 (0)