Skip to content

Commit

Permalink
Fixed navbar, need to add dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
lraton committed Oct 19, 2023
2 parents ce90afd + ca7662c commit f018333
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ body {
nav {
height: var(--nav-height);
width: 100%;
position: fixed;
top: 0;
background-color: #26358c;
z-index: 1;
}

Expand Down
2 changes: 1 addition & 1 deletion tutorial/tutorial-pages.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.list {
display: grid;
width: 100%;
margin: 10vh auto;
margin: 15vh auto;
grid-template-columns: repeat(4, auto);
}
/* ---------------- */
Expand Down
33 changes: 20 additions & 13 deletions tutorial/tutorial.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,58 @@

/* CARD */
.card {
max-width: 346px;
max-height: 28em;
text-align: center;
width: 346px;
height: 28em;
position: relative;
margin: 0 auto;
border: 3px solid black;
border-radius: 30px;
box-shadow: 10px 10px 10px gray;
overflow: hidden;
cursor: pointer;
transition: max-height 0.5s;
}

.card:hover {
max-height: 50em;
}
/* ---------------- */

/* IMMAGINE */
.icon {
position: absolute;
border-radius: 25px 25px 0 0;
transition: filter 0.5s;
}

.card:hover .icon {
filter: blur(2px) brightness(50%);
}
/* ---------------- */

/* TESTO PICCOLO */
.didascalia {
font-family: sans-serif;
max-height: 0;
font-size: 1.5em;
position: absolute;
color: white;
text-align: center;
padding: 0 5%;
opacity: 0;
margin: 0;
overflow: hidden;
transition: max-height 0.5s, opacity 0.5s;
z-index: 10;
transition: padding 0.5s, opacity 0.5s;
}

.card:hover .didascalia {
max-height: 20vh;
opacity: 1;
transition: max-height 1s, opacity 0.5s;
padding: 20% 5%;
transition: padding 0.5s, opacity 0.5s;
}
/* ---------------- */

/* TESTO GROSSO */
.titolo {
font-size: 1.5em;
font-family: sans-serif;
margin: 0;
text-align: center;
margin: 406px 0 0 0;
padding: 5px;
border-top: 3px solid black;
}
Expand Down

0 comments on commit f018333

Please sign in to comment.