Skip to content

Commit da9aefb

Browse files
committed
improve sharing button (desktop & mobile)
1 parent 7766d59 commit da9aefb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/Site/views/languageforge/container/languageforge.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@
104104
</div>
105105
<ul class="nav navbar-nav">
106106
<li class='nav-item' ng-if="$ctrl.header.settings.length > 0 && $ctrl.currentUserIsProjectOwner">
107-
<a id="shareBtn" class="btn btn-std my-auto" title="Share" href="#"
107+
<a id="shareBtn" class="btn btn-primary my-auto" title="Share" href="#"
108108
ng-click="$ctrl.openShareWithOthersModal()">
109-
<span>Share </span><i class="fa fa-share-alt"></i>
109+
<i class="fa fa-share-alt iconPadding"></i><span>Share</span>
110110
</a>
111111
</li>
112112
<li class="nav-item" uib-dropdown>

src/Site/views/languageforge/theme/default/sass/_global.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@
4242
}
4343

4444
#shareBtn {
45-
font-size: 1em !important;
4645
padding: 0 0.375rem;
46+
font-size: 1em !important;
47+
48+
i.fa {
49+
padding-right: 0.5em;
50+
}
4751
}
4852
}
4953

@@ -264,17 +268,21 @@
264268
}
265269

266270
ul.navbar-nav {
271+
flex-flow: row;
272+
267273
li {
268274
display: flex;
269275
}
270276
}
271277

272278
#shareBtn {
273279
margin: 12px;
274-
font-size: 1.5em;
280+
border: 1px solid white;
281+
275282

276283
i.fa, span {
277284
line-height: 24px;
285+
font-size: 1rem;
278286
}
279287
}
280288
}

0 commit comments

Comments
 (0)