From ec8efb3e4b3570290e66c30501942d261ab76bf5 Mon Sep 17 00:00:00 2001 From: alexcherman Date: Thu, 24 May 2018 12:37:37 +0200 Subject: [PATCH] added background for os links --- _includes/layout/base/wallets-filter.html | 8 +-- _includes/layout/base/wallets-list.html | 16 +++--- _sass/_wallets.scss | 59 +++++++++++------------ img/os/wallet_menu_mac.svg | 18 ++++--- img/os/wallet_menu_mac_dark.svg | 10 ++-- img/os/wallet_menu_windows.svg | 18 ++++--- img/os/wallet_menu_windows_dark.svg | 10 ++-- 7 files changed, 73 insertions(+), 66 deletions(-) diff --git a/_includes/layout/base/wallets-filter.html b/_includes/layout/base/wallets-filter.html index f08f39aed3..cc6cfdee2e 100644 --- a/_includes/layout/base/wallets-filter.html +++ b/_includes/layout/base/wallets-filter.html @@ -73,13 +73,13 @@ {% for platform in wallet.platform %} {% for os in platform.os%} {% if platform.name == os.name %} - - + +

{{os.name}}

{% else %} - - + +

{{os.name}}

{% endif %} diff --git a/_includes/layout/base/wallets-list.html b/_includes/layout/base/wallets-list.html index 7cde6d526c..fe935d6237 100644 --- a/_includes/layout/base/wallets-list.html +++ b/_includes/layout/base/wallets-list.html @@ -35,13 +35,13 @@ {% for platform in wallet.platform %} {% for os in platform.os%} {% if platform.name == os.name %} - - + +

{{os.name}}

{% else %} - - + +

{{os.name}}

{% endif %} @@ -65,13 +65,13 @@

Select an Operating System

{% for platform in wallet.platform %} {% for os in platform.os%} {% if platform.name == os.name %} - - + +

{{os.name}}

{% else %} - - + +

{{os.name}}

{% endif %} {% endfor %} {% endfor %} diff --git a/_sass/_wallets.scss b/_sass/_wallets.scss index 191e6668d9..1551cd93d9 100644 --- a/_sass/_wallets.scss +++ b/_sass/_wallets.scss @@ -31,7 +31,11 @@ $black: #13161F; padding: 40px 0 40px; text-align: left; - + .allwallets-list-item:hover { + .wallet-list-item-link img { + margin: 20px auto -12px; + } + } .wallet-list-item { display: inline-block; width: 14.2%; @@ -72,52 +76,40 @@ $black: #13161F; .wallet-list-os { margin-top: 17px; } - .wallet-list-item-link img { - margin: 20px auto -12px; - } - .windows-link { + .windows-ico { background: url(../img/os/wallet_menu_windows_dark.svg) center no-repeat; background-size: contain; } - .linux-link { + .linux-ico { background: url(../img/os/wallet_menu_linux_dark.svg) center no-repeat; background-size: contain; } - .mac-link { + .mac-ico { background: url(../img/os/wallet_menu_mac_dark.svg) center no-repeat; background-size: contain; } - .windowsphone-link { + .windowsphone-ico { background: url(../img/os/wallet_menu_windowsphone_dark.svg) center no-repeat; background-size: contain; } - .hardware-link { + .hardware-ico { background: url(../img/os/wallet_menu_hardware_dark.svg) center no-repeat; background-size: contain; } - .web-link { + .web-ico { background: url(../img/os/wallet_menu_web_dark.svg) center no-repeat; background-size: contain; } - .android-link { + .android-ico { background: url(../img/os/wallet_menu_android_dark.svg) center no-repeat; background-size: contain; } - .ios-link { + .ios-ico { background: url(../img/os/wallet_menu_ios_dark.svg) center no-repeat; background-size: contain; } - // .wallet-os-ico { - // fill: #192A39; - // } - // .wallet-os-ico-stroke { - // stroke: #192A39; - // } } - // .wallet-list-os-link:hover .wallet-os-ico-stroke { - // stroke: #F7931A; - // } - .windows-link { + .windows-ico { background: url(../img/os/wallet_menu_windows.svg) center no-repeat; background-size: contain; @@ -126,7 +118,7 @@ $black: #13161F; background-size: contain; } } - .mac-link { + .mac-ico { background: url(../img/os/wallet_menu_mac.svg) center no-repeat; background-size: contain; @@ -135,7 +127,7 @@ $black: #13161F; background-size: contain; } } - .linux-link { + .linux-ico { background: url(../img/os/wallet_menu_linux.svg) center no-repeat; background-size: contain; @@ -144,7 +136,7 @@ $black: #13161F; background-size: contain; } } - .windowsphone-link { + .windowsphone-ico { background: url(../img/os/wallet_menu_windowsphone.svg) center no-repeat; background-size: contain; @@ -153,7 +145,7 @@ $black: #13161F; background-size: contain; } } - .web-link { + .web-ico { background: url(../img/os/wallet_menu_web.svg) center no-repeat; background-size: contain; @@ -162,7 +154,7 @@ $black: #13161F; background-size: contain; } } - .android-link { + .android-ico { background: url(../img/os/wallet_menu_android.svg) center no-repeat; background-size: contain; @@ -171,7 +163,7 @@ $black: #13161F; background-size: contain; } } - .ios-link { + .ios-ico { background: url(../img/os/wallet_menu_ios.svg) center no-repeat; background-size: contain; @@ -180,7 +172,7 @@ $black: #13161F; background-size: contain; } } - .hardware-link { + .hardware-ico { background: url(../img/os/wallet_menu_hardware.svg) center no-repeat; background-size: contain; @@ -452,9 +444,7 @@ $scores: } .wallet-list-os-link { position: relative; - width: 18px; - height: 18px; - margin: 4px 5px; + padding: 4px 5px; } .wallet-list-os-link:hover { background: #f8f8f8; @@ -462,6 +452,11 @@ $scores: .wallet-list-os-link.is-hidden { display: none; } +.wallet-os-ico { + display: block; + width: 18px; + height: 18px; +} .wallet-list-os-link:hover .wallet-ico-tooltip { display: block; } diff --git a/img/os/wallet_menu_mac.svg b/img/os/wallet_menu_mac.svg index fe4b691ad4..660ac3fbb0 100644 --- a/img/os/wallet_menu_mac.svg +++ b/img/os/wallet_menu_mac.svg @@ -1,16 +1,20 @@ - + apple - FontAwesome Created with Sketch. - - + + - - - - + + + + + + + + diff --git a/img/os/wallet_menu_mac_dark.svg b/img/os/wallet_menu_mac_dark.svg index a93d88528f..94d599f188 100644 --- a/img/os/wallet_menu_mac_dark.svg +++ b/img/os/wallet_menu_mac_dark.svg @@ -5,13 +5,15 @@ Created with Sketch. - + - - - + + + + + diff --git a/img/os/wallet_menu_windows.svg b/img/os/wallet_menu_windows.svg index 6dd2012109..605739ed00 100644 --- a/img/os/wallet_menu_windows.svg +++ b/img/os/wallet_menu_windows.svg @@ -1,16 +1,20 @@ - + windows - FontAwesome Created with Sketch. - - + + - - - - + + + + + + + + diff --git a/img/os/wallet_menu_windows_dark.svg b/img/os/wallet_menu_windows_dark.svg index 3f6f87557e..612c49f518 100644 --- a/img/os/wallet_menu_windows_dark.svg +++ b/img/os/wallet_menu_windows_dark.svg @@ -5,13 +5,15 @@ Created with Sketch. - + - - - + + + + +