Skip to content

Instantly share code, notes, and snippets.

@wpsyed
Created December 30, 2021 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsyed/f3557a81b5b63999ccce020cb2242635 to your computer and use it in GitHub Desktop.
Save wpsyed/f3557a81b5b63999ccce020cb2242635 to your computer and use it in GitHub Desktop.
My GeneratePress Travel Site CSS
/* GeneratePress Site CSS */ /* hide the topbar on mobile devices */
@media (max-width: 768px) {
.top-bar {
display: none;
}
}
/* rule under top bar */
.top-bar {
border-bottom: solid 1px rgba(109,159,170,1.0);
}
/* navigation top and bottom rules */
#site-navigation {
border-top: solid 1px rgba(109,159,170,1.0);
border-bottom: solid 1px rgba(109,159,170,1.0);
}
/* mailchimp plugin styling */
.mc4wp-form input[type=email] {
background-color: #ffffff;
line-height: 34px;
border: 0px;
border-radius: 4px;
width: 100%;
}
.mc4wp-form input[type=submit] {
line-height: 34px;
border: 0px;
border-radius: 4px;
margin: 10px 0px;
width: 100%;
transition: all 0.5s ease 0s;
}
/* End GeneratePress Site CSS */
/* fix alignfull class too wide */
body {
overflow-x: hidden;
}
::selection {
background-color: #FFFFFF;
color: ;
}
@media (min-width: 769px) {
.site-content {
display: flex;
}
.inside-right-sidebar {
height: 100%;
}
.inside-right-sidebar aside:last-child {
position: -webkit-sticky;
position: sticky;
top: 50px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment