1
0
mirror of https://github.com/ipdb/website.git synced 2024-09-23 17:48:51 +02:00
website/_src/_assets/scss/page-front.scss

313 lines
5.6 KiB
SCSS
Raw Normal View History

@import 'variables';
2017-08-29 18:28:23 +02:00
@import 'hero';
.section--intro {
.section__description {
margin-bottom: $spacer * 2;
}
}
.feature {
2017-08-25 00:16:33 +02:00
padding-top: $spacer;
padding-bottom: $spacer;
&:first-child {
padding-top: $spacer * 2;
}
}
.feature__image {
2017-09-13 16:52:59 +02:00
margin: 0 auto;
background: $brand-05;
border-radius: $border-radius;
2017-09-13 16:52:59 +02:00
overflow: hidden;
max-width: 400px;
@media ($screen-sm) {
margin: 0;
}
2017-09-13 16:52:59 +02:00
img {
width: 100%;
height: auto;
max-width: 100%;
display: block;
}
}
.feature__title {
2017-08-29 12:00:08 +02:00
font-size: $font-size-h4;
2017-08-29 18:28:23 +02:00
margin-bottom: $spacer / $line-height;
}
2017-08-25 00:16:33 +02:00
.feature__list {
margin: 0;
padding: 0;
margin-top: $spacer;
li {
display: block;
color: $brand-02;
@media ($screen-sm) {
display: inline-block;
margin-left: $spacer * 2;
&:first-child {
margin-left: 0;
}
}
&:before {
content: '\2714';
font-size: $font-size-small;
color: $brand-success;
margin-right: $spacer / 4;
}
}
}
2017-08-25 00:16:33 +02:00
.connect__title {
font-size: $font-size-h3;
2017-08-25 00:57:58 +02:00
}
2017-08-29 12:49:32 +02:00
.roadmap {
border-left: .2rem solid $brand-02;
margin-left: $spacer * 2;
padding-left: $spacer;
width: 100%;
margin-top: $spacer * 2;
margin-bottom: $spacer * 2;
@media ($screen-sm) {
margin-left: $spacer * 3;
padding-left: 0;
}
@media ($screen-md) {
margin-left: 0;
border-left: 0;
border-bottom: .2rem solid $brand-02;
.row {
display: flex;
justify-content: space-between;
}
}
}
.roadmap__step {
position: relative;
margin-bottom: $spacer * 2;
@media ($screen-md) {
text-align: center;
margin-bottom: 0;
padding-left: $spacer / 2;
padding-right: $spacer / 2;
}
&:after {
content: '\2714';
color: transparent;
text-align: center;
font-size: $font-size-mini;
2017-08-29 14:34:52 +02:00
line-height: 2;
width: 1.75rem;
height: 1.75rem;
2017-08-29 12:49:32 +02:00
border-radius: 50%;
display: inline-block;
background: $brand-05;
2017-08-29 14:34:52 +02:00
border: .2rem solid #fff;
2017-08-29 12:49:32 +02:00
position: absolute;
2017-08-29 14:34:52 +02:00
left: -2.95rem;
2017-08-30 12:11:53 +02:00
top: -.25rem;
2017-08-29 12:49:32 +02:00
@media ($screen-md) {
position: relative;
left: auto;
top: auto;
2017-08-29 14:34:52 +02:00
bottom: -.95rem;
2017-08-29 12:49:32 +02:00
}
}
&.is-complete {
&:after {
2017-08-29 14:34:52 +02:00
content: '\2714';
color: $brand-03;
background: $brand-success;
2017-08-29 12:49:32 +02:00
}
}
&.is-progress {
&:after {
background: $brand-07;
}
}
}
2017-08-30 12:11:53 +02:00
.roadmap__net,
.roadmap__target {
2017-08-29 12:49:32 +02:00
margin-bottom: 0;
}
.roadmap__target {
color: $brand-07;
}
2017-08-30 12:11:53 +02:00
.roadmap__time {
color: $brand-02;
font-size: $font-size-small;
@media ($screen-md) {
position: absolute;
left: 0;
bottom: -70%;
width: 100%;
}
}
2017-09-04 21:54:50 +02:00
//
// Get started
//
.section--getstarted {
counter-reset: getstarted-steps;
.feature__image {
background: rgba(255, 255, 255, .5);
}
.section__actions {
border-top: 0;
padding-top: 0;
margin-top: $spacer * 2;
}
}
.getstarted-bigchaindb {
padding-top: $spacer * 3;
margin-top: $spacer * 3;
2017-09-05 11:58:40 +02:00
border-top: .1rem solid darken($brand-05, 8%);
.grid {
margin-bottom: 0;
}
2017-09-20 14:32:03 +02:00
.feature__image {
background: #8e9eb0;
display: flex;
align-items: flex-end;
padding: $spacer;
padding-bottom: 0;
svg {
margin-bottom: -.5rem;
}
}
2017-09-04 21:54:50 +02:00
}
.getstarted {
2017-09-05 11:58:40 +02:00
color: $text-color;
2017-09-04 21:54:50 +02:00
counter-increment: getstarted-steps;
2017-09-05 12:07:10 +02:00
margin-top: $spacer * 2;
display: block;
2017-09-04 21:54:50 +02:00
2017-09-05 12:07:10 +02:00
@media ($screen-sm) {
display: flex;
flex-wrap: wrap;
height: 100%;
margin-top: 0;
padding-left: $spacer * 2;
padding-right: $spacer * 2;
.grid__col:first-child & {
border-right: .1rem solid darken($brand-05, 8%);
padding-left: 0;
}
2017-09-04 21:54:50 +02:00
2017-09-05 12:07:10 +02:00
.grid__col:last-child & {
border-left: .1rem solid darken($brand-05, 8%);
padding-right: 0;
}
2017-09-04 21:54:50 +02:00
}
}
.getstarted__title {
2017-09-05 11:58:40 +02:00
font-size: $font-size-h4;
margin-bottom: $spacer / 4;
a & {
color: $link-color;
}
2017-09-04 21:54:50 +02:00
&:before {
content: counter(getstarted-steps);
display: block;
2017-09-05 11:58:40 +02:00
background: rgba($brand-02, .3);
2017-09-04 21:54:50 +02:00
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
text-align: center;
line-height: 1.75rem;
font-size: $font-size-base;
font-weight: $font-weight-bold;
margin-bottom: $spacer / 1.5;
2017-09-05 11:58:40 +02:00
color: $text-color;
2017-09-04 21:54:50 +02:00
}
}
.getstarted__text {
opacity: .9;
}
2017-08-29 12:49:32 +02:00
//
// Connect
//
2017-08-25 00:57:58 +02:00
.articles {
max-width: 100%;
margin-bottom: $spacer * 4;
2017-08-25 00:57:58 +02:00
}
.article {
2017-08-29 15:53:29 +02:00
margin-bottom: 6%;
2017-08-30 13:11:56 +02:00
transition: .15s ease-out;
2017-08-29 15:53:29 +02:00
&:hover,
&:focus {
2017-08-30 13:11:56 +02:00
transform: translateY(-1px);
2017-08-29 15:53:29 +02:00
.article__title {
color: $link-color;
}
.article__image {
background-color: $link-color;
}
2017-08-25 00:57:58 +02:00
}
2017-08-30 13:11:56 +02:00
&:active {
transition: none;
transform: translateY(0);
}
2017-08-25 00:57:58 +02:00
}
2017-08-29 15:53:29 +02:00
.article__image {
width: 100%;
2017-08-29 18:42:39 +02:00
min-height: 6.5rem;
2017-08-29 15:53:29 +02:00
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
margin-bottom: $spacer / 3;
border: 1px solid $brand-05;
border-radius: $border-radius;
2017-08-29 15:53:29 +02:00
}
2017-08-25 00:57:58 +02:00
.article__title {
2017-08-30 13:11:56 +02:00
font-size: $font-size-base;
2017-08-29 15:53:29 +02:00
color: $text-color;
margin: 0;
align-self: flex-end;
transition: .15s ease-out;
2017-08-25 00:16:33 +02:00
}