Skip to content

Instantly share code, notes, and snippets.

@nirlanka
Last active November 12, 2018 15:58
Show Gist options
  • Save nirlanka/356b78d1be6e159f23e4f19e639b8a50 to your computer and use it in GitHub Desktop.
Save nirlanka/356b78d1be6e159f23e4f19e639b8a50 to your computer and use it in GitHub Desktop.
IEEE Wordpress template modifications
/*
----------------------
NAVBAR
*/
/* hide the comsoc logo */
.comsoc-logo {display: none;}
#logos {
/*background-image: url(http://sites.ieee.org/r10-htc-2018/files/2018/02/logo1.png);
background-size: 113px;
background-repeat: no-repeat;
background-position-y: 15px;
background-position-x: 14px;*/
}
/* hide the ieee logo */
/*.ieee-logo {display: none;}
/* hide author names */
.byline {display: none;}
/* hide (only) updated date */
/*.posted-on .updated {display: none;}*/
/* hide metadata altogether */
.entry-meta {display:none;}
/* main menu submenu item */
#main-menu .dropdown-menu li a {
color: #333;
padding: 5px;
}
/* main menu submenu item hover */
#main-menu .dropdown-menu li a:hover {
background-color: #00aeef;
color: white;
}
/* main menu submenu item's "|" after text */
#main-menu .dropdown-menu li a::after { display: none;}
/* main menu submenu container */
#main-menu > .menu-item > ul {
margin-top: 5px;
margin-left: -1px;
}
/* main menu submenu parent */
#main-menu > li.menu-item.open > a {
background-color: transparent;
color: darkslategrey;
font-weight: 800;
}
/* main menu submenu parent's "|" after text */
#main-menu > li.menu-item.open > a::after {
color: white;
}
/*
----------------------
FOOTER
*/
/* submenu header */
#site-footer .menu-item-has-children > a {
color: white;
font-weight: 800;
}
/* submenu content (block) */
#site-footer .menu-item-has-children > ul {
border-top: 1px solid white;
}
/*#site-footer .fine-print {
margin-top: 24px;
}*/
/* hide main menu in footer */
#site-footer .menu-main-menu-container { display: none; }
/*
----------------------
CALL TO ACTION
*/
.-call-to-action {
display: inline-block;
width: 23%;
margin: 0 !important;
box-sizing: border-box;
text-align: center;
min-height: 80px;
padding-top: 25px;
}
.-call-to-action a.-button {
box-sizing: border-box;
margin-top: 0;
padding: 6px 12px;
border-radius: 0px;
background-color: #00a2fa;
color: white;
font-size: 22px;
}
.-call-to-action a.-button:hover {
text-decoration: none;
background-color: #1aa71a !important;
}
.-call-to-action a.-button.-a { }
.-call-to-action a.-button.-b { }
.-call-to-action a.-button.-c { }
.-call-to-action a.-button.-d { }
/*
---------------------
PAGE CONTENT
*/
#content-fp {
background-color: white;
}
/*
------------------------
ARTICLE
*/
/* hide comments */
#comments { display: none; }
/* tables */
article table { border: 1px solid #ccc; }
article table thead { border-bottom: 3px solid #ccc; }
article table td, th {
border: 1px solid #ccc;
padding: 1px 6px;
}
/* page content bg */
main #content-cp { background-color: white; }
/*
------------------------
LOGO AND TITLE
*/
@media (min-width: 768px) {
#site-description, #site-name {
padding-top: 8px;
}
}
/*
------------------------
PAPERS SUBMISSION SIDEBAR -- FRONT PAGE
*/
aside#custom_html-4 {
padding-top: 0;
}
/*
-------------------------
ADD IEEE and SSIT LOGOS; CHANGE OTHER LOGO SPACINGS
*/
/* Medium devices (tablets, 768px and up) */
@media (min-width: 992px) {
#conference-header > div.row {
background-image: url(http://sites.ieee.org/r10-htc-2018/files/2018/11/barcelona-meme.png);
background-size: 119px;
background-repeat: no-repeat;
background-position-y: 14px;
background-position-x: 495px;
}
}
@media (min-width: 1200px) {
#conference-header > div.row {
background-image: url(http://sites.ieee.org/r10-htc-2018/files/2018/11/barcelona-meme.png);
background-size: 119px;
background-repeat: no-repeat;
background-position-y: 13px;
background-position-x: 658px;
}
}
#conference-header > div.row #logos a {
text-align: right;
}
#conference-header > div.row #logos a:first-child {
margin-right: -13px;
}
/*
-------------------------
SITE NAMES RE-STYLING
*/
#conference-header #site-name {
font-weight: 700;
font-size: 20px;
}
#conference-header #site-description {
font-weight: 100;
font-size: 15px;
}
body.home.blog #content-fp {
padding-bottom: 150px;
background-image: url(http://sites.ieee.org/r10-htc-2018/files/2018/11/Screen-Shot-2018-11-12-at-9.03.23-PM.jpg);
background-position-y: bottom;
background-repeat: no-repeat;
background-size: 637px;
background-position-x: center;
margin-bottom: 35px;
}
/*
@media (min-width: 1200px) {
#conference-header > div.row {
background-image: url(http://sites.ieee.org/r10-htc-2018/files/2018/11/barcelona-meme.png);
background-size: 119px;
background-repeat: no-repeat;
background-position-y: 13px;
background-position-x: 658px;
}
}*/
div.metaslider div.caption-wrap {
display: none;
}
<div class="-call-to-action -a">
<a href="registration" class="-button -a">REGISTER</a>
</div>
<div class="-call-to-action -b">
<a href="speakers" class="-button -b">SPEAKERS</a>
</div>
<div class="-call-to-action -c">
<a href="venue-and-travel" class="-button -c">VENUE &amp; TRAVEL</a>
</div>
<div class="-call-to-action -d">
<a href="calls-for-papers" class="-button -d">CALL FOR PAPERS</a>
</div>
Submit papers: <a href="http://edas.info/N24634">http://edas.info/N24634</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment