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

partner tweaks, switch countries source

This commit is contained in:
Matthias Kretschmann 2017-04-18 17:41:35 +02:00
parent 364978ae82
commit f1cb2e26f5
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
5 changed files with 15 additions and 15 deletions

View File

@ -76,4 +76,4 @@ gems:
jekyll_get:
data: countries
json: 'https://restcountries.eu/rest/v2/all?fields=name;alpha2Code'
json: 'https://raw.githubusercontent.com/mledoze/countries/master/dist/countries.json'

View File

@ -57,10 +57,10 @@ var FormEnterprise = (function(w, d, $) {
app = {
init: function() {
_private.formSubmit();
_private.formSubmit()
}
};
return app;
})(window, document, jQuery);
})(window, document, jQuery)

View File

@ -1,14 +1,8 @@
.section--partners {
.grid__col {
padding-right: $gutter-space;
}
}
.partner {
text-align: center;
display: block;
box-shadow: none;
max-width: 150px;
max-width: 120px;
margin: auto;
&:hover,
@ -31,7 +25,11 @@
fill: $brand-main-blue-light;
fill-opacity: .6;
max-width: 100%;
height: 40px; // need to hardcode some size to overwrite browser's default 150px height for SVGs
height: 20px; // need to hardcode some size to overwrite browser's default 150px height for SVGs
@media ($screen-sm) {
height: 30px;
}
}
@ -68,8 +66,10 @@
}
.partner__logo--porsche {
transform: scale(1.3);
transform-origin: top center;
@media ($screen-sm) {
transform: scale(1.3);
transform-origin: top center;
}
}
.partner__logo--volkswagen {

View File

@ -38,7 +38,7 @@
<select class="form-control" id="country" name="country" required data-required="true">
<option value="">&nbsp;</option>
{% for country in site.data.countries %}
<option value="{{ country.alpha2Code }}">{{ country.name }}</option>
<option value="{{ country.cca2 }}">{{ country.name.common }}</option>
{% endfor %}
</select>
<label class="form-label" for="country">Country</label>

View File

@ -37,7 +37,7 @@ partners:
</div>
<div class="row row--wide">
<article class="grid grid--full grid-small--half grid-medium--fit grid-medium--columns grid--justifycenter grid--gutters">
<article class="grid grid--half grid-medium--fit grid-medium--columns grid--justifycenter grid--gutters">
{% if page.partners.logos %}
{% assign partners_sorted = page.partners.logos %}