-
Notifications
You must be signed in to change notification settings - Fork 1
5 info page Pull Request #5
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
base: main
Are you sure you want to change the base?
Changes from all commits
4fdd892
1007ca3
e23a7b1
0d3054e
6808f6e
e022348
733ff3f
cf588dc
be4d13e
5024258
8b9d8a1
8561961
230405a
47d2b71
6c7bf09
ce14ac8
74515cf
00e446b
42930fc
347ca96
5259cde
e03b9ef
0563180
cc511cb
577f09a
88cdf30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3278,4 +3278,194 @@ body.is-touch #banner { | |
margin: 0; | ||
padding: 0; | ||
} | ||
} | ||
|
||
/* style for flipping card starts here */ | ||
.flipping-cards { | ||
margin-top: -3rem; | ||
padding: 2rem 0; | ||
background-image: linear-gradient(to left bottom, #e44c65, #d6a334); | ||
font-family: 'Rubik', sans-serif; | ||
} | ||
|
||
.flipping-card-wrapper { | ||
padding: 2rem; | ||
margin: 2rem; | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
align-content: center; | ||
} | ||
|
||
.flipping-card-item-wrapper { | ||
perspective: 150rem; | ||
position: relative; | ||
width: 340px; | ||
height: 400px; | ||
margin: 1rem; | ||
} | ||
|
||
.flipping-card-item-side { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
-webkit-backface-visibility: hidden; | ||
backface-visibility: hidden; | ||
margin: 1.5rem; | ||
width: 100%; | ||
height: 100%; | ||
background-position: center; | ||
color: #ffffff; | ||
background-color: #121218cc; | ||
box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.18); | ||
transition: all 1s; | ||
} | ||
|
||
.flipping-card-item-side-back { | ||
color: rgb(255, 255, 255); | ||
transform: rotateY(180deg); | ||
} | ||
|
||
.flipping-card-item-wrapper:hover .flipping-card-item-side-front { | ||
transform: rotateY(-180deg); | ||
} | ||
|
||
.flipping-card-item-wrapper:hover .flipping-card-item-side-front { | ||
transform: rotateY(-180deg); | ||
} | ||
|
||
.flipping-card-item-wrapper:hover .flipping-card-item-side-back { | ||
transform: rotateY(0); | ||
} | ||
|
||
.flipping-card-item-img { | ||
width: 100%; | ||
height: 100%; | ||
background-size: cover; | ||
background-blend-mode: color; | ||
} | ||
|
||
.flipping-card-back-wrapper { | ||
font-weight: 200; | ||
position: relative; | ||
top: 25%; | ||
left: 0; | ||
margin: 2rem; | ||
text-align: center; | ||
} | ||
|
||
.flipping-card-back-wrapper__btn { | ||
margin-top: 2rem; | ||
padding: .7rem; | ||
text-align: center; | ||
color: #ffffff; | ||
border: 0; | ||
background-image: linear-gradient(to right bottom, #e44c65, #e92949); | ||
transition: all .5s; | ||
} | ||
|
||
.flipping-card-back-wrapper__btn:hover { | ||
background-image: none; | ||
color: #ffa41b; | ||
border: 1px solid #ffa41b; | ||
} | ||
|
||
.flip-card-text-header { | ||
position: absolute; | ||
top: 40%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.flip-card-text-paragraph2 { | ||
position: absolute; | ||
top: 65%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.flip-card-text-paragraph { | ||
position: absolute; | ||
top: 60%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.copyright { | ||
font-size: 11px; | ||
color: #ffffff; | ||
text-align: center; | ||
} | ||
|
||
/* This is for normal cards that don't flip*/ | ||
.card { | ||
/* Add shadows to create the "card" effect */ | ||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); | ||
transition: 0.3s; | ||
} | ||
|
||
/* On mouse-over, add a deeper shadow */ | ||
.card:hover { | ||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.card-footer { | ||
padding: .75rem 1.25rem; | ||
padding-top: 0.75rem; | ||
padding-right: 1.25rem; | ||
padding-bottom: 0.75rem; | ||
padding-left: 1.25rem; | ||
background-color: rgba(0, 0, 0, .3); | ||
border-top: 1px solid rgba(0, 0, 0, .125); | ||
border-top-color: rgba(0, 0, 0, 0.125); | ||
border-top-style: solid; | ||
border-top-width: 1px; | ||
} | ||
|
||
.card-footer:last-child { | ||
border-radius: 0 0 calc(.25rem - 1px) calc(.25rem - 1px); | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
border-bottom-right-radius: calc(-1px + 0.25rem); | ||
border-bottom-left-radius: calc(-1px + 0.25rem); | ||
} | ||
|
||
/* Add some padding inside the card container */ | ||
.cardcontainer { | ||
padding: 2px 16px; | ||
} | ||
|
||
.btn { | ||
display: inline-block; | ||
font-weight: 400; | ||
color: #ebebeb; | ||
text-align: center; | ||
vertical-align: middle; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 1px solid transparent; | ||
padding: .375rem .75rem; | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
border-radius: .25rem; | ||
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; | ||
} | ||
|
||
.cardfooter { | ||
padding: .75rem 1.25rem; | ||
background-color: rgba(0, 0, 0, .03); | ||
border-top: 1px solid rgba(0, 0, 0, .125); | ||
} | ||
|
||
/* CSS for putting text on an image*/ | ||
|
||
/* Centered text */ | ||
.centered { | ||
position: absolute; | ||
top: 40%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of your files should end in a new line. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -578,4 +578,12 @@ | |
|
||
function toggleSidePanel() { | ||
$('body').toggleClass('navPanel-show'); | ||
} | ||
|
||
function copyToClipboard(element) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where did you get this function? |
||
var $temp = $("<input>"); | ||
$("body").append($temp); | ||
$temp.val($(element).text()).select(); | ||
document.execCommand("copy"); | ||
$temp.remove(); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of your files should end in a new line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you find this CSS?