Skip to content

Commit

Permalink
Merge pull request #117 from digi-trust/master
Browse files Browse the repository at this point in the history
v1.2.1 - CSS fix for logo-less CMPs
  • Loading branch information
SupahNickie authored Jun 13, 2018
2 parents b4c2b47 + 3458e8e commit 7deedf9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/popup/intro/intro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class Intro extends Component {
} = props;

return (
<div class={style.intro}>
<div class={config.logoUrl ? style.flexColumn + " " + style.intro : style.intro}>
<div class={style.top}>
{config.logoUrl &&
<img class={style.logo} src={config.logoUrl} />
Expand Down
5 changes: 4 additions & 1 deletion src/components/popup/intro/intro.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.flexColumn {
flex-direction: column;
}

div.intro {
display: flex;
flex-direction: column;
align-items: center;
padding: 0 4em;
flex: 1;
Expand Down
2 changes: 1 addition & 1 deletion src/components/popup/intro/introV2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class IntroV2 extends Component {
{config.logoUrl &&
<img class={style.logo} src={config.logoUrl} />
}
<div class={style.title}>
<div class={config.logoUrl ? style.title + " " + style.imagePadding : style.title}>
<LocalLabel providedValue={localization && localization.intro ? localization.intro.title : ''} localizeKey='title'>Thanks for visiting </LocalLabel>
<LocalLabel providedValue={localization && localization.intro ? localization.intro.domain : ''} localizeKey='domain'></LocalLabel>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/components/popup/intro/introV2.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import '../../../style/variables';

.imagePadding {
padding-left: 10px;
}

div.intro {
padding: 0 32px;
max-height: 100%;
Expand All @@ -22,7 +26,6 @@ max-height: 100%;
font-weight: bold;

.title {
padding-left: 10px;
float: left;
line-height: 1.5;
}
Expand Down

0 comments on commit 7deedf9

Please sign in to comment.