1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-01 15:55:36 +01:00
site/_src/_assets/styles/_page-getstarted.scss

501 lines
8.5 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
//
2017-06-27 16:16:51 +02:00
.section--firsttransaction {
2017-06-27 21:59:58 +02:00
.section-title {
2017-06-29 15:28:24 +02:00
font-size: $font-size-h4;
margin-bottom: $spacer * 2;
text-align: left;
2017-06-27 21:59:58 +02:00
2017-06-29 15:16:10 +02:00
@media ($screen-sm) {
margin-top: -($spacer * 2);
}
2017-06-27 21:59:58 +02:00
&:after {
display: none;
}
2017-06-28 17:13:20 +02:00
+ .grid {
margin-bottom: 0;
}
2017-06-27 16:16:51 +02:00
}
}
.form--transaction {
// mnml frm
background: none;
padding: 0;
2017-06-29 15:16:10 +02:00
@media ($screen-sm) {
min-height: 340px;
}
2017-06-27 21:59:58 +02:00
.form-group:first-child {
margin-top: 0;
}
}
.form--transaction__content {
border: none;
padding: 0;
2017-06-27 21:59:58 +02:00
width: 100%;
}
.waiting {
2017-06-27 16:16:51 +02:00
width: 100%;
pre {
2017-06-29 15:16:10 +02:00
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
2017-06-27 16:16:51 +02:00
text-align: center;
font-style: italic;
border: 1px solid $gray-dark;
background: none;
2017-06-29 15:39:43 +02:00
overflow: hidden;
2017-06-29 15:16:10 +02:00
@media ($screen-sm) {
min-height: 340px;
}
}
}
.response {
pre {
2017-06-22 18:12:56 +02:00
border: 1px solid $gray-dark;
2017-06-27 16:16:51 +02:00
line-height: 1.3;
2017-06-29 15:16:10 +02:00
@media ($screen-sm) {
min-height: 340px;
}
}
2017-06-27 16:16:51 +02:00
code {
font-size: $font-size-xs;
}
}
.message {
font-size: $font-size-base;
2017-06-22 18:12:56 +02:00
}
.code-example {
@include transition;
2017-06-29 15:16:10 +02:00
margin-top: $spacer * 2;
@media ($screen-sm) {
max-width: 50%;
margin-top: 0;
}
.nav-link,
pre {
font-size: $font-size-xs;
}
.nav-tabs {
border-bottom-color: $gray-light;
2017-06-28 17:13:20 +02:00
opacity: .6;
}
.nav-link {
padding-top: $spacer / 4;
padding-bottom: $spacer / 4;
margin-bottom: -2px;
&:hover,
&:focus {
background: none;
}
&.active {
border-bottom: 2px solid $gray-light;
}
}
pre {
background: none;
2017-06-28 17:13:20 +02:00
padding: $spacer * 1.5 0 0;
margin-bottom: 0;
overflow-y: auto;
2017-06-29 15:39:43 +02:00
overflow-x: auto;
}
.highlight .p {
color: lighten(#41706f, 25%);
}
}
.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;
}
}
//
// All your star bases belong to us
//
// .starbase--server is the baseline
//
.starbase {
position: relative;
margin-top: -($spacer * 2);
2017-06-27 19:55:43 +02:00
display: flex;
align-items: flex-end;
opacity: .7;
// 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%);
}
}
.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 16:00:49 +02:00
width: 100%;
}
// surface layer
&:before {
content: '';
position: absolute;
display: block;
left: -5%;
right: -5%;
bottom: auto;
2017-06-27 01:02:54 +02:00
background: lighten($gray, 8%);
height: 24%;
width: calc(100vw + 5%);
}
}
2017-06-27 19:55:43 +02:00
// Drivers starbase
// All magic numbers, gonna wing it visually
2017-06-26 20:15:44 +02:00
.starbase--drivers {
2017-06-29 15:16:10 +02:00
min-height: 7rem;
@media ($screen-md) {
min-height: 12rem;
}
2017-06-27 19:55:43 +02:00
2017-06-26 20:15:44 +02:00
.starbase__image {
// surface layer
&:before {
height: 40%;
2017-06-26 20:15:44 +02:00
}
img {
2017-06-27 19:55:43 +02:00
margin-bottom: -.5%;
2017-06-26 20:15:44 +02:00
}
}
}
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-dark, .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
//
2017-06-27 16:00:49 +02:00
.docs__actions {
2017-06-29 14:45:29 +02:00
border-top: 1px solid darken($brand-main-gray-light, 5%);
2017-06-27 16:00:49 +02:00
padding-top: $spacer * 2;
}
.docs__title {
2017-06-29 14:45:29 +02:00
@extend .h5;
margin-top: 0;
2017-06-29 14:45:29 +02:00
// the bottom line
&:after {
content: '';
height: 2px;
width: 2rem;
display: block;
margin-top: $spacer;
background: $gray-light;
}
}
.docs__list {
padding-left: 0;
2017-06-27 19:55:43 +02:00
text-align: left;
li {
display: block;
2017-06-27 15:11:18 +02:00
padding-left: 0;
}
}
2017-06-26 22:38:25 +02:00
//
// 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
}
.social-link {
&,
.icon {
@include transition;
}
display: inline-block;
box-shadow: none;
padding: $btn-padding-y-sm $btn-padding-x-sm;
margin-top: $spacer;
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;
}
h5 {
margin-top: 0;
}
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 * 2;
.icon {
width: 2rem;
height: 2rem;
fill: $brand-main-blue-light;
opacity: .4;
margin-bottom: $spacer / 2;
}
.icon--gitter {
stroke: $brand-main-blue-light;
stroke-width: 2;
}
p {
color: $brand-main-blue-light;
opacity: .8;
}
}