1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-22 09:36:52 +01:00

text-only caretakers fallback

* workaround for #7
This commit is contained in:
Matthias Kretschmann 2017-09-26 11:12:02 +02:00
parent 10535d93f4
commit 9d1c820f24
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 29 additions and 6 deletions

View File

@ -5,11 +5,13 @@
} }
.caretaker { .caretaker {
text-align: center; display: flex;
display: block; align-items: center;
justify-content: center;
box-shadow: none; box-shadow: none;
max-width: 130px; max-width: 130px;
margin: auto; margin: auto;
height: 100%;
transition: .25s ease-out; transition: .25s ease-out;
&:hover, &:hover,
@ -18,6 +20,10 @@
fill: $link-color; fill: $link-color;
color: $link-color; color: $link-color;
} }
.caretaker__name {
color: $link-color;
}
} }
} }
@ -41,3 +47,12 @@
.logo-caretaker--human-data-commons-foundation { .logo-caretaker--human-data-commons-foundation {
transform: scale(1.3); transform: scale(1.3);
} }
//
// The logo fallback
//
.caretaker__name {
font-size: $font-size-base;
color: $brand-04;
vertical-align: middle;
}

View File

@ -1,5 +1,6 @@
- name: COALA - name: COALA
link: http://coala.global link: http://coala.global
logo: false
- name: Internet Archive - name: Internet Archive
link: https://archive.org link: https://archive.org
@ -30,6 +31,7 @@
- name: SmartContract - name: SmartContract
link: https://smartcontract.com link: https://smartcontract.com
logo: false
- name: OuiShare - name: OuiShare
link: http://ouishare.net link: http://ouishare.net
@ -42,3 +44,4 @@
- name: CREATE-NET - name: CREATE-NET
link: http://create-net.fbk.eu link: http://create-net.fbk.eu
logo: false

View File

@ -8,10 +8,15 @@
<div class="grid__col grid__col--2"> <div class="grid__col grid__col--2">
<a class="caretaker" href="{{ caretaker.link }}" rel="external"> <a class="caretaker" href="{{ caretaker.link }}" rel="external">
<svg class="logo-caretaker logo-caretaker--{{ slug }}" aria-labelledby="title"> {% if caretaker.logo == false %}
<title>{{ caretaker.name }}</title> <span class="caretaker__name">{{ caretaker.name }}</span>
<use xlink:href="/assets/img/sprite.svg#logo-{{ slug }}"></use> {% else %}
</svg> <svg class="logo-caretaker logo-caretaker--{{ slug }}" aria-labelledby="title">
<title>{{ caretaker.name }}</title>
<use xlink:href="/assets/img/sprite.svg#logo-{{ slug }}"></use>
</svg>
{% endif %}
</a> </a>
</div> </div>