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

377 lines
6.4 KiB
SCSS
Raw Normal View History

2016-01-21 11:51:05 +01:00
//
2017-06-15 19:16:45 +02:00
// Page: Get started
2016-01-21 11:51:05 +01:00
// ---
2017-05-29 21:15:48 +02:00
// bigchaindb.com
2016-01-21 11:51:05 +01:00
//
.waiting {
pre {
min-height: 254px;
display: flex;
align-items: center;
justify-content: center;
font-style: italic;
border: 1px solid $gray-dark;
background: none;
}
}
.response {
pre {
2017-06-22 18:23:47 +02:00
min-height: 254px;
2017-06-22 18:12:56 +02:00
border: 1px solid $gray-dark;
background: none;
}
}
2017-06-22 18:12:56 +02:00
.form--transaction {
padding-left: $spacer * 1.5;
padding-right: $spacer * 1.5;
}
.section-title--numbered {
span {
text-align: center;
display: block;
2017-06-26 22:38:25 +02:00
margin: auto auto $spacer / 2;
width: 3rem;
height: 3rem;
border-radius: 50%;
font-size: $font-size-lg;
2017-06-27 01:02:54 +02:00
vertical-align: .4rem;
background: $headings-color;
color: $gray;
font-weight: 400;
line-height: 3rem;
}
.text-left & {
span {
display: inline-block;
margin: 0;
}
}
.background--light & {
span {
background: $gray-light;
color: #fff;
}
}
&:after {
display: none;
}
}
2017-06-26 11:53:39 +02:00
//
// Section: server
2017-06-26 11:53:39 +02:00
//
.section--server {
padding-bottom: 0;
2017-06-27 01:02:54 +02:00
.btn {
margin-top: $spacer / 2;
}
}
.starbase {
position: relative;
margin-top: -($spacer * 2);
// horizon layer
&:before {
content: '';
position: absolute;
display: block;
left: 0;
right: 0;
bottom: 0;
top: 0;
background: #445261;
clip-path: polygon(0 25%, 100% 0, 100% 100%, 0% 100%);
}
.row {
position: relative;
}
}
.starbase__image {
2017-06-26 20:15:44 +02:00
display: flex;
align-items: flex-end;
img {
position: relative;
z-index: 1;
2017-06-26 20:15:44 +02:00
margin-bottom: -1.45%;
2017-06-27 01:02:54 +02:00
opacity: .7;
}
// surface layer
&:before {
content: '';
position: absolute;
display: block;
left: -5%;
right: -5%;
bottom: 0;
2017-06-27 01:02:54 +02:00
background: lighten($gray, 8%);
height: 24%;
width: calc(100vw + 10%);
}
}
2017-06-26 20:15:44 +02:00
.starbase--drivers {
.starbase__image {
// surface layer
&:before {
height: 37%;
}
img {
min-height: 15rem;
margin-bottom: -6.5%;
}
}
}
2017-06-27 01:02:54 +02:00
.choice {
background: lighten($gray, 3%);
padding-top: $spacer * 4;
padding-bottom: $spacer * 4;
}
2017-06-27 01:02:54 +02:00
.choice__title {
font-size: $font-size-h3;
margin-top: 0;
2017-06-27 01:02:54 +02:00
margin-bottom: $spacer * $line-height;
// the bottom line
&:after {
content: '';
height: 2px;
width: 3rem;
display: block;
2017-06-27 01:02:54 +02:00
margin: ($spacer * $line-height) 0 0;
background: $gray-light;
}
}
.architecture {
text-align: center;
img {
max-width: 45rem;
2017-06-26 11:53:39 +02:00
}
}
2017-06-27 01:02:54 +02:00
.section--drivers {
padding-bottom: 0;
.choice__title {
margin-bottom: $spacer * 2;
}
}
2017-06-15 22:11:46 +02:00
.driver {
padding: $spacer;
background: rgba($brand-main-blue-light, .15);
border-radius: $border-radius;
2017-06-15 22:11:46 +02:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2017-06-22 14:31:49 +02:00
box-shadow: none;
2017-06-15 22:11:46 +02:00
2017-06-26 22:38:25 +02:00
&:focus,
&:hover {
background: $brand-primary;
box-shadow: 0 1px 4px rgba($brand-main-blue-dark, .4);
transform: translateY(-1px);
2017-06-15 22:11:46 +02:00
.driver__title {
color: #fff;
}
.driver__logo {
fill: #fff;
2017-06-15 22:11:46 +02:00
}
}
&:active {
outline: 0;
transform: translateY(0);
box-shadow: 0 1px 2px rgba($brand-main-blue-dark, .3);
}
2017-06-15 22:11:46 +02:00
}
.driver,
.driver__logo,
.driver__title {
@include transition;
}
.driver__logo {
2017-06-22 14:31:49 +02:00
width: 2rem;
height: 2rem;
fill: $brand-primary;
2017-06-15 22:11:46 +02:00
}
.driver__title {
2017-06-22 14:31:49 +02:00
@extend .h5;
2017-06-15 22:11:46 +02:00
color: $brand-primary;
2017-06-22 14:31:49 +02:00
margin-top: 0;
margin-bottom: $spacer;
2017-06-15 22:11:46 +02:00
}
.driver__meta {
@include text-small;
width: 100%;
align-self: flex-end;
margin: 0;
span {
display: block;
}
}
.driver__version {
2017-06-27 01:02:54 +02:00
opacity: .75;
2017-06-15 22:11:46 +02:00
}
2017-06-22 14:31:49 +02:00
.driver--community {
text-align: center;
justify-content: center;
.driver__title {
width: 100%;
margin-bottom: 0;
2017-06-26 20:15:44 +02:00
font-size: $font-size-base;
}
.driver__repo {
font-size: $font-size-xs;
2017-06-22 14:31:49 +02:00
}
.driver__logo {
2017-06-26 20:15:44 +02:00
width: 1.5rem;
height: 1.5rem;
2017-06-22 14:31:49 +02:00
margin-bottom: $spacer / 2;
}
}
2017-06-26 22:38:25 +02:00
//
// Section: Docs
//
//
// Section: Community
//
2017-06-15 19:16:45 +02:00
.section--community {
text-align: center;
2016-02-09 19:20:30 +01:00
2016-02-09 19:08:43 +01:00
.section-header {
2017-06-26 22:38:25 +02:00
.section-description {
margin-bottom: ($spacer * 2);
}
2016-02-09 19:08:43 +01:00
}
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;
2017-06-26 22:38:25 +02:00
&:focus,
&:hover {
background: none;
.icon {
fill: lighten($brand-primary, 10%);
filter: drop-shadow(0 1px 4px rgba($brand-main-blue-dark, .4));
transform: translateY(-1px);
2017-06-26 11:53:39 +02:00
}
2016-02-18 16:27:54 +01:00
2017-06-26 11:53:39 +02: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
.community__actions {
border-bottom: 1px solid $gray-dark;
margin-bottom: $spacer * 3;
padding-bottom: $spacer * 3;
h5 {
margin-top: $spacer / 2;
margin-bottom: $spacer / 4;
}
.icon {
width: 2rem;
height: 2rem;
fill: $brand-main-blue-dark;
opacity: .6;
}
.icon--gitter {
stroke: $brand-main-blue-dark;
stroke-width: 2;
}
}
2017-06-26 22:38:25 +02:00
//
// Sticky sub menu
//
body {
position: relative;
}
.sticky {
2017-06-27 11:18:45 +02:00
position: fixed;
2017-06-26 22:38:25 +02:00
top: 0;
width: 100%;
z-index: 2;
2017-06-27 11:18:45 +02:00
@supports (position: sticky) {
position: sticky;
}
2017-06-26 22:38:25 +02:00
}