site/_src/_assets/styles/_page-community.scss

170 lines
3.0 KiB
SCSS
Raw Normal View History

2016-01-21 11:51:05 +01:00
//
// Page: Community
// ---
2017-05-29 21:15:48 +02:00
// bigchaindb.com
2016-01-21 11:51:05 +01:00
//
2016-01-21 12:38:06 +01:00
.page-community {
.header {
2016-01-30 13:34:11 +01:00
background-position: center top;
2016-01-21 12:38:06 +01:00
}
}
2016-01-21 11:51:05 +01:00
.section-community {
text-align: center;
2016-02-09 19:20:30 +01:00
position: relative;
2016-02-10 19:48:31 +01:00
// make room for wrigely
2016-02-09 19:20:30 +01:00
padding-bottom: 200px;
@media ($screen-lg) {
padding-bottom: 0;
}
2016-02-09 19:08:43 +01:00
.section-header {
.section-description { margin-bottom: ($spacer * 2); }
}
2016-02-09 19:20:30 +01:00
.grid h1 {
@extend .h3;
margin-top: 0;
}
.social-link {
&,
.icon {
@include transition;
}
display: inline-block;
box-shadow: none;
padding: $btn-padding-y-sm $btn-padding-x-sm;
&:hover,
&:focus {
background: none;
.icon {
fill: lighten($brand-primary, 10%);
filter: drop-shadow(0 1px 4px rgba($brand-main-blue-dark, .4));
transform: translateY(-1px);
2016-02-18 16:27:54 +01:00
&.icon--gitter {
stroke: lighten($brand-primary, 10%);
}
}
}
&:active {
outline: 0;
.icon {
fill: $brand-primary;
filter: drop-shadow(0 1px 2px rgba($brand-main-blue-dark, .3));
transform: translateY(0);
}
}
.icon {
fill: $brand-primary;
width: 1.5rem;
height: 1.5rem;
2016-02-18 16:27:54 +01:00
&.icon--gitter {
stroke: $brand-primary;
}
}
}
.social-link__title {
@include text-small;
color: $brand-primary;
display: block;
text-align: center;
}
2016-01-21 11:51:05 +01:00
}
2016-02-10 01:04:57 +01:00
2016-02-10 22:36:56 +01:00
.text-milestones {
margin-top: ($spacer * 2);
}
2016-02-10 01:04:57 +01:00
//
2016-02-15 19:34:10 +01:00
// wrigley: positioned and animated
2016-02-10 01:04:57 +01:00
//
2016-02-15 19:34:10 +01:00
#wrigley {
2016-02-10 01:04:57 +01:00
@extend .img--responsive;
vertical-align: bottom;
width: 400px;
2016-02-10 01:04:57 +01:00
height: 220px;
position: absolute;
bottom: 0;
right: 0;
#arm {
transform-origin: right;
}
2017-05-31 00:22:14 +02:00
#head {
transform-origin: center;
}
2017-05-31 00:22:14 +02:00
#eye {
transform-origin: center;
}
#arm,
#head,
#eye {
animation: none;
}
2016-02-10 01:04:57 +01:00
&:hover,
2016-02-10 01:04:57 +01:00
&.is-ready {
#arm,
#head,
#eye {
&.paused { animation: none; }
}
2017-05-31 00:22:14 +02:00
2016-02-10 01:04:57 +01:00
#arm {
2016-02-15 19:34:10 +01:00
animation: wrigley-wink 1s ease-in-out;
}
2017-05-31 00:22:14 +02:00
#head {
2016-02-15 19:34:10 +01:00
animation: wrigley-head-nod 1s ease-in-out;
}
2017-05-31 00:22:14 +02:00
#eye {
&.is-ready {
2016-02-15 19:34:10 +01:00
animation: wrigley-blink .3s ease-in-out forwards;
animation-iteration-count: 2;
}
2016-02-10 01:04:57 +01:00
}
}
}
2016-02-15 19:34:10 +01:00
@keyframes wrigley-wink {
0% { transform: rotate(0); }
2017-05-31 00:22:14 +02:00
25%,
50% { transform: rotate(-20deg); }
30%,
100% { transform: rotate(0); }
2016-02-10 01:04:57 +01:00
}
2016-02-15 19:34:10 +01:00
@keyframes wrigley-head-nod {
0% { transform: rotate(0); }
2017-05-31 00:22:14 +02:00
25%,
50% { transform: rotate(-2deg); }
30%,
100% { transform: rotate(0); }
}
2016-02-15 19:34:10 +01:00
@keyframes wrigley-blink {
0% { transform: scaleY(1); }
50% { transform: scaleY(0); }
100% { transform: scaleY(1); }
}