Skip to content

Commit

Permalink
fix(links): change link with icon display - INNO-1829 (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuard authored and planctus committed Oct 4, 2019
1 parent 2484855 commit 2a7a565
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 14 deletions.
@@ -1,6 +1,6 @@
/**
* Language list component
* @define language-list
* @define language-list; weak
*/

// Import base
Expand Down Expand Up @@ -67,6 +67,7 @@
}

.ecl-language-list__link {
align-items: center;
background-color: $background-link;
display: flex;
font: $ecl-font-m;
Expand All @@ -81,6 +82,10 @@
&:focus {
outline-offset: -3px;
}

.ecl-link__icon {
top: 0;
}
}

.ecl-language-list__item--is-active {
Expand Down
Expand Up @@ -19,15 +19,17 @@

.ecl-link--icon-before,
.ecl-link--icon-after {
align-items: center;
display: inline-flex;
display: inline-block;
}

.ecl-link--icon {
text-decoration: none;

.ecl-link__icon {
fill: currentColor;
position: relative;
top: -1px;
vertical-align: middle;
}

&:not(.ecl-link--standalone) .ecl-link__label {
Expand Down
Expand Up @@ -33,15 +33,17 @@

.ecl-link--icon-before,
.ecl-link--icon-after {
align-items: center;
display: inline-flex;
display: inline-block;
}

.ecl-link--icon {
text-decoration: none;

.ecl-link__icon {
fill: currentColor;
position: relative;
top: -1px;
vertical-align: middle;
}

&:not(.ecl-link--standalone) .ecl-link__label {
Expand Down Expand Up @@ -74,7 +76,7 @@
background-color: $ecl-color-yellow-100;
box-sizing: border-box;
color: $ecl-color-black-100;
display: inline-flex;
display: inline-block;
font: $ecl-font-m;
font-weight: $ecl-font-weight-bold;
padding: $ecl-spacing-s $ecl-spacing-m;
Expand Down
Expand Up @@ -47,6 +47,7 @@
}

.ecl-social-media-follow__link {
align-items: center;
display: flex;
font: $ecl-font-s;
overflow: hidden; /* Improve rendering on IE */
Expand All @@ -57,6 +58,7 @@
.ecl-social-media-follow__icon-hover {
flex-shrink: 0;
margin-right: $ecl-spacing-m;
top: 0 !important;
}

.ecl-social-media-follow__icon {
Expand Down
@@ -1,6 +1,6 @@
/**
* Social media share component
* @define social-media-share
* @define social-media-share; weak
*/

// Import base
Expand Down Expand Up @@ -50,9 +50,14 @@
}

.ecl-social-media-share__link {
align-items: center;
display: flex;
font: $ecl-font-s;
overflow: hidden; /* Improve rendering on IE */

.ecl-link__icon {
top: 0;
}
}
}

Expand Down
@@ -1,6 +1,6 @@
/**
* Language list component
* @define language-list
* @define language-list; weak
*/

// Import base
Expand Down Expand Up @@ -60,6 +60,7 @@
}

.ecl-language-list__link {
align-items: center;
background-color: $background-link;
display: flex;
font: $ecl-font-m;
Expand All @@ -74,6 +75,10 @@
&:focus {
outline-offset: -3px;
}

.ecl-link__icon {
top: 0;
}
}

.ecl-language-list__item--is-active {
Expand Down
Expand Up @@ -19,15 +19,17 @@

.ecl-link--icon-before,
.ecl-link--icon-after {
align-items: center;
display: inline-flex;
display: inline-block;
}

.ecl-link--icon {
text-decoration: none;

.ecl-link__icon {
fill: currentColor;
position: relative;
top: -1px;
vertical-align: middle;
}

&:not(.ecl-link--standalone) .ecl-link__label {
Expand Down
Expand Up @@ -33,15 +33,17 @@

.ecl-link--icon-before,
.ecl-link--icon-after {
align-items: center;
display: inline-flex;
display: inline-block;
}

.ecl-link--icon {
text-decoration: none;

.ecl-link__icon {
fill: currentColor;
position: relative;
top: -1px;
vertical-align: middle;
}

&:not(.ecl-link--standalone) .ecl-link__label {
Expand Down Expand Up @@ -74,7 +76,7 @@
background-color: $ecl-color-yellow-100;
box-sizing: border-box;
color: $ecl-color-black-100;
display: inline-flex;
display: inline-block;
font: $ecl-font-m;
font-weight: $ecl-font-weight-bold;
padding: $ecl-spacing-s $ecl-spacing-m;
Expand Down
Expand Up @@ -47,6 +47,7 @@
}

.ecl-social-media-follow__link {
align-items: center;
display: flex;
font: $ecl-font-s;
overflow: hidden; /* Improve rendering on IE */
Expand All @@ -57,6 +58,7 @@
.ecl-social-media-follow__icon-hover {
flex-shrink: 0;
margin-right: $ecl-spacing-m;
top: 0 !important;
}

.ecl-social-media-follow__icon {
Expand Down
@@ -1,6 +1,6 @@
/**
* Social media share component
* @define social-media-share
* @define social-media-share; weak
*/

// Import base
Expand Down Expand Up @@ -50,9 +50,14 @@
}

.ecl-social-media-share__link {
align-items: center;
display: flex;
font: $ecl-font-s;
overflow: hidden; /* Improve rendering on IE */

.ecl-link__icon {
top: 0;
}
}
}

Expand Down

0 comments on commit 2a7a565

Please sign in to comment.