Skip to content

Commit

Permalink
update one color share buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
im6 committed Nov 25, 2019
1 parent c4cf943 commit efc12b8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
6 changes: 4 additions & 2 deletions client/modules/app/bulma.modules.sass
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ $button-padding-horizontal: 0.75em
margin-top: -10px !important
.navbar-item
font-size: 14px
.buttons > .button
height: 1.3rem

// disable the default larger button height
.buttons .button
height: inherit
15 changes: 9 additions & 6 deletions client/modules/color/components/OneColor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,33 @@ class OneColor extends React.Component {
</button>
</div>
<div className={`buttons has-addons is-centered ${style.shareGroup}`}>
<span
<button
className="button"
title={language.email}
onClick={() => {
onShare('email');
}}
>
{language.email}
</span>
<span
</button>
<button
className="button"
title={language.facebook}
onClick={() => {
onShare('facebook');
}}
>
{language.facebook}
</span>
<span
</button>
<button
className="button"
title={language.twitter}
onClick={() => {
onShare('twitter');
}}
>
{language.twitter}
</span>
</button>
</div>
</div>
</div>
Expand Down
15 changes: 11 additions & 4 deletions client/modules/color/components/OneColor/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@

.shareGroup
margin-top: 6px
&>span
font-size: 0.877rem
&>button
font-size: 0.7rem
display: block
text-overflow: ellipsis
overflow: hidden
width: 75px



@media only screen and (min-device-width : 375px) and (max-device-width : 812px) and (-webkit-device-pixel-ratio : 3) and (orientation : portrait)
.shareGroup >span
font-size: 0.58rem
.shareGroup >button
font-size: 8px
width: 52px
2 changes: 1 addition & 1 deletion dist/server.js

Large diffs are not rendered by default.

0 comments on commit efc12b8

Please sign in to comment.