Skip to content

Commit 79ab656

Browse files
authored
Merge pull request #20 from creativecommons/more-style-fixes
More style fixes
2 parents a828707 + 5291327 commit 79ab656

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

assets/css/styles.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/src/styles/layout.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
flex-direction: column;
77
left: 0;
88
top: 0;
9-
padding: $space-big;
9+
padding: 3.3rem;
1010
width: 13.5rem;
1111
height: 100vh;
1212
background-color: $yellow;

inc/widgets/og-follow.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function widget( $args, $instance ) {
1717
echo '<div class="widget-content">';
1818
echo '<div class="follow-icons">';
1919
if (!empty($instance['slack'])) {
20-
echo '<a href="'.$instance['slack'].'" class="social slack button is-rounded is-black">Slack Community</a>';
20+
echo '<a href="'.$instance['slack'].'" class="social slack is-black"><i class="icon slack"></i></a>';
2121
}
2222
if (!empty($instance['facebook'])) {
2323
echo '<a href="'.$instance['facebook'].'" class="social facebook is-black"><i class="icon facebook"></i></a>';
@@ -27,6 +27,9 @@ function widget( $args, $instance ) {
2727
}
2828
if (!empty($instance['medium'])) {
2929
echo '<a href="'.$instance['medium'].'" class="social medium is-black"><i class="icon medium"></i></a>';
30+
}
31+
if (!empty($instance['mail'])) {
32+
echo '<a href="mailto:'.$instance['mail'].'" class="social mail is-black"><i class="icon envelope"></i></a>';
3033
}
3134
echo '</div>';
3235
echo '</div>';
@@ -43,6 +46,7 @@ function form( $instance ) {
4346
echo '<p><label for="' . $this->get_field_id( 'facebook' ) . '">Facebook URL: <input type="text" name="' . $this->get_field_name( 'facebook' ) . '" id="' . $this->get_field_id( 'facebook' ) . '" value="' . $instance['facebook'] . '" class="widefat" /></label></p>';
4447
echo '<p><label for="' . $this->get_field_id( 'twitter' ) . '">Twitter URL: <input type="text" name="' . $this->get_field_name( 'twitter' ) . '" id="' . $this->get_field_id( 'twitter' ) . '" value="' . $instance['twitter'] . '" class="widefat" /></label></p>';
4548
echo '<p><label for="' . $this->get_field_id( 'medium' ) . '">Medium URL: <input type="text" name="' . $this->get_field_name( 'medium' ) . '" id="' . $this->get_field_id( 'medium' ) . '" value="' . $instance['medium'] . '" class="widefat" /></label></p>';
49+
echo '<p><label for="' . $this->get_field_id( 'mail' ) . '">Email: <input type="text" name="' . $this->get_field_name( 'mail' ) . '" id="' . $this->get_field_id( 'mail' ) . '" value="' . $instance['mail'] . '" class="widefat" /></label></p>';
4650

4751
}
4852
}

0 commit comments

Comments
 (0)