-
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.
Merge pull request #64 from yvonne-liu/styling-user-profiles
improved user profile styling
- Loading branch information
Showing
4 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
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
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,20 +1,72 @@ | ||
html, body { | ||
margin: 0 auto; | ||
font-size: 1.2em; | ||
font-family: 'Raleway', sans-serif; | ||
} | ||
|
||
h1 { | ||
margin-top: 0; | ||
text-align: center; | ||
} | ||
|
||
.userprofile { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 2rem; | ||
max-width: 40rem; | ||
border-radius: 1rem; | ||
border: 2px solid rgba(0, 0, 0, 0.5); | ||
margin: 2rem auto; | ||
transition: 0.4s all ease; | ||
} | ||
|
||
.userprofile:hover { | ||
-webkit-box-shadow: .5rem .5rem 0.33rem 0px rgba(0,0,0,0.10); | ||
-moz-box-shadow: .5rem .5rem 0.33rem 0px rgba(0,0,0,0.10); | ||
box-shadow: .5rem .5rem 0.33rem 0px rgba(0,0,0,0.10); | ||
} | ||
|
||
img { | ||
width: 30%; | ||
.userprofile__image { | ||
margin: 2rem auto; | ||
overflow: hidden; | ||
width: 15rem; | ||
height: 15rem; | ||
text-decoration: none; | ||
border-radius: 50%; | ||
display: block; | ||
} | ||
|
||
ul { | ||
.userprofile__image__img { | ||
border-radius: 50%; | ||
width: 100%; | ||
opacity: 1; | ||
transition: .5s all ease; | ||
} | ||
|
||
.userprofile__image__back { | ||
width: 15rem; | ||
height: 15rem; | ||
line-height: 15rem; | ||
color: white; | ||
text-align: center; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
} | ||
|
||
.userprofile__image:hover .userprofile__image__back { | ||
margin-top: -15rem; | ||
color: black; | ||
} | ||
.userprofile__image:hover .userprofile__image__img { | ||
opacity: 0.5; | ||
} | ||
|
||
table { | ||
margin: 0 auto; | ||
max-width: 46rem; | ||
list-style-type: none; | ||
} | ||
td { | ||
padding: 0.5rem; | ||
} | ||
tr:nth-child(odd) { | ||
background-color: rgba(0,0,0,0.05); | ||
} |
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
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