Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

course-main-page.css #8

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions css/course-main-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
@import url(https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic);

.transition {
transition: .3s cubic-bezier(.3, 0, 0, 1.3)
}
.card {
background-color: #fff;
height: 400px;
width: 300px;
position: relative;
margin: 20px;
box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
overflow: hidden;
float:left;
}
.card:hover {
box-shadow: 0px 30px 30px rgba(0,0,0,0.2);
}
.card_circle {
height: 380px;
width: 450px;
background-color: #02b3e4;
position: absolute;
border-radius: 50%;
margin-left: -75px;
margin-top: -270px;
}
.card:hover .card_circle {
border-radius: 0;
margin-top: -270px;
}
h2 {
text-align: center;
margin-top: 210px;
position: absolute;
z-index: 1;
font-size: 26px;
color: #02b3e4;
width: 100%;
font-family: 'Noto Sans', serif;
}
h2 small {
font-weight: normal;
font-size: 65%;
color: #2b2b2b;
padding: 0 10px;
line-height:0.5;
}
.card:hover h2 {
margin-top: 15px;
color: #fff;
}
.card:hover h2 small {
color: #fff;
}
p {
color:#2b2b2b;
position: absolute;
bottom:-100%;
padding: 20px;
font-family: 'Noto Sans', serif;
font-size:17px;
}
.card:hover .pone{
bottom:0%;
}
.card:hover .ptwo{
bottom:15%;
}
.card:hover .pthree{
bottom:15%;
}
.fa, .fas, .fab{
position: absolute;
z-index: 1;
top: 150px;
left: 40%;
font-size:55px;
}
.fa-user-circle{
color:#2b2b2b;
}
.card:hover .fa, .card:hover .fas, .card:hover .fab{
top: -60px;
}
.card:hover .fa-user-circle{
color:#fff;
}