1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-02 00:05:37 +01:00
site/_src/_assets/styles/_sections.scss

135 lines
2.2 KiB
SCSS
Raw Normal View History

.section {
padding-top: ($spacer * 3);
padding-bottom: ($spacer * 3);
&:last-child { border-bottom: 0; }
2016-01-22 16:03:56 +01:00
// use this so animated elements coming in from outside of screen
// don't affect layout
overflow: hidden;
2016-02-08 14:35:02 +01:00
.row {
flex: 0 0 100%;
}
@media ($screen-sm) {
padding-top: ($spacer * 5);
padding-bottom: ($spacer * 5);
}
}
2015-12-20 19:31:36 +01:00
.section-header {
margin-bottom: ($spacer * 4);
}
.section-title,
.section-description {
text-align: center;
2015-12-20 19:31:36 +01:00
@media ($screen-sm) {
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
}
.section-title {
2017-04-12 18:31:59 +02:00
@extend .h2;
margin-top: 0;
margin-bottom: ($spacer * 2);
2015-12-20 19:31:36 +01:00
// the bottom line
&::after {
content: '';
2017-03-28 14:22:01 +02:00
height: 2px;
width: 3rem;
2015-12-20 19:31:36 +01:00
display: block;
margin: ($spacer * 2) auto 0;
background: $gray-light;
}
}
.section-description {
font-size: $font-size-lg;
margin-bottom: 0;
color: $brand-main-gray-lighter;
+ .section-description {
margin-top: $spacer;
}
}
.section-actions {
margin-top: $spacer;
.btn {
margin-left: 5px;
margin-right: 5px;
min-width: 200px;
}
}
//
// Section backgrounds
//
.background--blue {
2016-01-22 16:03:56 +01:00
background: $brand-main-blue;
}
2016-01-22 16:03:56 +01:00
.background--darker {
background: $gray-dark;
}
2016-01-10 02:11:27 +01:00
.background--light {
background: $brand-main-gray-lighter;
2016-01-22 16:03:56 +01:00
.section-title,
p {
color: $brand-main-gray;
2016-01-22 16:03:56 +01:00
}
2016-01-10 02:11:27 +01:00
}
2015-12-20 19:31:36 +01:00
.background--gray {
2016-01-22 16:03:56 +01:00
background: $brand-main-gray;
}
2016-01-29 18:45:09 +01:00
//
// Photo background
//
.background--photo {
@include color-overlay;
2016-01-29 18:45:09 +01:00
// background
background: url('../img/hero-berlin.jpg') no-repeat top center;
2016-01-29 18:45:09 +01:00
background-size: cover;
2016-02-10 02:16:04 +01:00
.row * {
position: relative;
z-index: 5;
}
.section-title {
&::after {
background: rgba($brand-main-blue-light, .5);
}
}
2016-01-29 18:45:09 +01:00
.section-title,
.section-description,
.header__title {
color: #fff;
2016-01-29 18:45:09 +01:00
}
}
//
// Specific sections
//
@import '_sections/section-cta-whitepaper';
@import '_sections/section-cta-features';
@import '_sections/section-cta-community';
@import '_sections/section-partners';