1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

grid tweaks

This commit is contained in:
Matthias Kretschmann 2016-01-30 13:56:00 +01:00
parent 9bbbbb7d9e
commit f1c1b5201d
2 changed files with 33 additions and 76 deletions

View File

@ -86,7 +86,7 @@
//
// Gutters
//
.grid--gutters{
@mixin grid-gutters() {
margin: -($gutter-space) 0 $gutter-space (-($gutter-space));
> .grid__col {
@ -94,33 +94,25 @@
}
}
.grid--gutters{
@include grid-gutters();
}
@media ($screen-sm) {
.grid-small--gutters {
margin: -($gutter-space) 0 $gutter-space (-($gutter-space));
> .grid__col {
padding: $gutter-space 0 0 $gutter-space;
}
@include grid-gutters();
}
}
@media ($screen-md) {
.grid-medium--gutters {
margin: -($gutter-space) 0 $gutter-space (-($gutter-space));
> .grid__col {
padding: $gutter-space 0 0 $gutter-space;
}
@include grid-gutters();
}
}
@media ($screen-lg) {
.grid-large--gutters {
margin: -($gutter-space) 0 $gutter-space (-($gutter-space));
> .grid__col {
padding: $gutter-space 0 0 $gutter-space;
}
@include grid-gutters();
}
}
@ -128,6 +120,17 @@
//
// Columns
//
@mixin grid-columns() {
> .grid__col {
&.grid__col--1 { flex: 0 0 16%; }
&.grid__col--2 { flex: 0 0 33%; }
&.grid__col--3 { flex: 0 0 50%; }
&.grid__col--4 { flex: 0 0 66%; }
&.grid__col--5 { flex: 0 0 84%; }
&.grid__col--6 { flex: 0 0 100%; }
}
}
.grid--fit {
> .grid__col { flex: 1; }
}
@ -136,114 +139,68 @@
> .grid__col { flex: 0 0 100%; }
}
.grid--1of6 {
> .grid__col { flex: 0 0 16.5%; }
}
.grid--2of6,
.grid--third {
> .grid__col { flex: 0 0 33%; }
}
.grid--3of6,
.grid--half {
> .grid__col { flex: 0 0 50%; }
}
.grid--4of6 {
> .grid__col { flex: 0 0 66%; }
}
.grid--5of6 {
> .grid__col { flex: 0 0 82.5%; }
.grid--columns {
@include grid-columns();
}
@media ($screen-sm) {
.grid-small--columns {
@include grid-columns();
}
.grid-small--fit {
> .grid__col { flex: 1; }
}
.grid-small--full{
> .grid__col { flex: 0 0 100%; }
}
.grid-small--1of6 {
> .grid__col { flex: 0 0 16.5%; }
}
.grid-small--2of6,
.grid-small--third {
> .grid__col { flex: 0 0 33%; }
}
.grid-small--3of6,
.grid-small--half {
> .grid__col { flex: 0 0 50%; }
}
.grid-small--4of6 {
> .grid__col { flex: 0 0 66%; }
}
.grid-small--5of6 {
> .grid__col { flex: 0 0 82.5%; }
}
}
@media ($screen-md) {
.grid-medium--columns {
@include grid-columns();
}
.grid-medium--fit {
> .grid__col { flex: 1 }
}
.grid-medium--full {
> .grid__col { flex: 0 0 100%; }
}
.grid-medium--1of6 {
> .grid__col { flex: 0 0 16.5%; }
}
.grid-medium--2of6,
.grid-medium--third {
> .grid__col { flex: 0 0 33%; }
}
.grid-medium--3of6,
.grid-medium--half {
> .grid__col { flex: 0 0 50%; }
}
.grid-medium--4of6 {
> .grid__col { flex: 0 0 66%; }
}
.grid-medium--5of6 {
> .grid__col { flex: 0 0 82.5%; }
}
}
@media ($screen-lg) {
.grid-large--columns {
@include grid-columns();
}
.grid-large--fit {
> .grid__col { flex: 1; }
}
.grid-large--full {
> .grid__col { flex: 0 0 100%; }
}
.grid-large--1of6 {
> .grid__col { flex: 0 0 16.5%; }
}
.grid-large--2of6,
.grid-large--third {
> .grid__col { flex: 0 0 33%; }
}
.grid-large--3of6,
.grid-large--half {
> .grid__col { flex: 0 0 50%; }
}
.grid-large--4of6 {
> .grid__col { flex: 0 0 66%; }
}
.grid-large--5of6 {
> .grid__col { flex: 0 0 82.5%; }
}
}

View File

@ -10,11 +10,11 @@ title: Contact
<h1 class="section-title">Get in touch</h1>
</header>
<div class="grid grid--full grid-small--fit grid--gutters">
<div class="grid__col">
<div class="grid grid--full grid-small--columns grid--gutters">
<div class="grid__col grid__col--4">
{% include/form-contact.html %}
</div>
<div class="grid__col">
<div class="grid__col grid__col--2">
<div class="contactlist">
<p>{{ site.address.street }}</p>
<p>{{ site.address.zip }} {{ site.address.city }}</p>