Skip to content

Commit

Permalink
Remove social icons; refactor CSS for that element
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernhardt committed Jan 3, 2024
1 parent f9f441c commit d4462e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 39 deletions.
25 changes: 8 additions & 17 deletions web/app/themes/mitlib-news/inc/social.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,16 @@

?>

<ul class="sIcons hidden-xs anotherMenu clearfix pull-right">
<ul class="sIcons hidden-xs anotherMenu clearfix pull-right flex-container">
<li class="sub soc">
<a title="subscribe" href="/news/subscribe/" >
Subscribe to news
</a>
</li>
<li class="tw soc">
<a title="twitter" href="//twitter.com/mitlibraries" class="twitterLink">
<span class="si_twitter image_on"></span>
<span class="si_twitterBlue image_off"></span>
</a>
</li>
<li class="ig soc">
<a title="Instagram" href="//instagram.com/mitlibraries/">
<span class="si_instagram image_on"></span>
<span class="si_instagramBlue image_off"></span>
</a>
</li>
<li class="sf">
</li>
<li class="follow soc">
<a title="follow" href="/follow">Follow us</a>
</li>
<li class="sf">
<?php get_search_form( 'true' ); ?>
</li>
</ul>
</li>
</ul>
32 changes: 10 additions & 22 deletions web/app/themes/mitlib-news/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,34 +82,21 @@ h3 {
.socialNavMiddle {
padding: 19px !important;
}
ul.anotherMenu {
align-items: baseline;
}
ul.anotherMenu li {
float: left;
white-space: nowrap;
}
li.sub {
margin-right: 13px;
padding-top: 0px;
}
li.fb {
margin-left: 5px;
margin-top: 1px;
margin-right: 5px;
margin-right: 7px;
}
li.tw {
margin-top: 0px;
margin-right: 8px;
li.sub a {
border-right: 1px solid black;
padding-right: 7px;
}
li.ig {
li.follow {
margin-right: 14px;
margin-top: 2px;
}
li.soc {
padding-top: 5px;
}
.image_off, .sIcons li:hover .image_on {
display: none
}
.image_on, .sIcons li:hover .image_off {
display: inline-block
}
ul#menu-subscribe {
float: left;
Expand Down Expand Up @@ -261,6 +248,7 @@ h2.search {
line-height: 1;
margin: 15px 0px;
padding: 0px 0px;
white-space: nowrap;
}
.entry-meta .author, .entry-meta .date-post, .entry-meta .category-post-single {
font-size: 11px;
Expand Down

0 comments on commit d4462e6

Please sign in to comment.