Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zkingdesign/cd50f92bbb269a7b39bcb4c4144fa57c to your computer and use it in GitHub Desktop.
Save zkingdesign/cd50f92bbb269a7b39bcb4c4144fa57c to your computer and use it in GitHub Desktop.
Horizontal Scrolling with mouse wheel
<html>
<body class="wrapper">
<div id="main" class="site-main">
<div class="scrollbaby">◄---- Mouse Scroll Baby ----►</div>
<div id="main-content" class="main-content">
<!--
--><div id="post-1" class="post-1 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id category-print">
<a class="image_link" href="https://unsplash.com/@erondu">
<img src="https://source.unsplash.com/user/erondu/420x800"> </a>
<div>
<a href="https://unsplash.com/@erondu">@erondu <3 Hi Res </a>
</div>
</div>
<!--
--><div id="post-2" class="post-2 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id category-print">
<a class="image_link" href="https://unsplash.com/@rickyzden">
<img src="https://source.unsplash.com/user/rickyzden/320x800"> </a>
<div>
<a href="https://unsplash.com/@rickyzden">
@rickyzden</a>
</div>
</div>
<!--
--><div id="post-3" class="post-3 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="https://unsplash.com/@limabravo">
<img src="https://source.unsplash.com/user/limabravo/240x800"> </a>
<div>
<a href="https://unsplash.com/@limabravo">@limabravo</a>
</div></div>
<div id="post-4" class="post-4 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="https://source.unsplash.com/420x800/?happy,smile">
<img src="https://source.unsplash.com/420x800/?happy,smile"> </a>
<div>
<a href="https://source.unsplash.com/420x800/?happy,smile">
Be happy, smile</a>
</div>
</div>
<!--
--><div id="post-5" class="post-5 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id category-print tag-adobe tag-adobe-photoshop tag-branding tag-business-cards tag-graphic-design tag-id tag-identity tag-print">
<a class="image_link" href="https://unsplash.com/@lidyanada">
<img src="https://source.unsplash.com/user/lidyanada/420x800/"> </a>
<div>
<a href="https://unsplash.com/@lidyanada">@lidyanada</a>
</div></div><!---->
<div id="post-6" class="post-6 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="https://source.unsplash.com/620x800/?music">
<img src="https://source.unsplash.com/620x800/?music"> </a>
<div>
<a href="https://source.unsplash.com/620x800/?music">
Kick out the Jams</a>
</div>
</div>
<div id="post-7" class="post-7 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="https://www.youtube.com/watch?v=U23z-XotFds">
<img src="https://source.unsplash.com/420x800/?gangster,smoke"> </a>
<div>
<a href="https://www.youtube.com/watch?v=U23z-XotFds">
Gangsta Pat - Smoke Somethin'</a>
</div>
</div>
<div id="post-8" class="post-8 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="https://source.unsplash.com/420x800/?distance,bridge">
<img src="https://source.unsplash.com/220x800/?distance,bridge"> </a>
<div>
<a href="https://source.unsplash.com/220x800/?distance,bridge">
Distance</a>
</div>
</div>
<div id="post-9" class="post-9 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="https://unsplash.com/@imgix">
<img src="https://source.unsplash.com/user/imgix/370x800/"> </a>
<div>
<a href="https://unsplash.com/@imgix">
@imgix </a>
</div>
</div>
<div id="post-9" class="post-9 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="
https://unsplash.com/@diempic">
<img src="https://source.unsplash.com/user/diempic/700x800/"> </a>
<div>
<a href="https://unsplash.com/@diempic">@diempic</a>
</div>
</div>
<!--
--><div id="post-5" class="post-5 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id category-print tag-adobe tag-adobe-photoshop tag-branding tag-business-cards tag-graphic-design tag-id tag-identity tag-print">
<a class="image_link" href="https://unsplash.com/@lidyanada">
<img src="https://source.unsplash.com/user/lidyanada/400x800/"> </a>
<div>
<a href="https://unsplash.com/@lidyanada">@lidyanada</a>
</div></div><!---->
<div id="post-9" class="post-9 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="
https://unsplash.com/@diempic">
<img src="https://source.unsplash.com/user/diempic/200x800/"> </a>
<div>
<a href="https://unsplash.com/@diempic">@diempic</a>
</div>
</div>
<div id="post-9" class="post-9 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id ">
<a class="image_link" href="
https://source.unsplash.com/1600x800/?nature,animals">
<img src="https://source.unsplash.com/800x800/?nature,animals"> </a>
<div>
<a href="https://source.unsplash.com/800x800/?nature,animals">Animals</a>
</div>
</div>
<div id="post-32" class="post-32 post type-post status-publish format-standard has-post-thumbnail hentry category-branding-id category-print">
<a class="image_link" href="https://picsum.photos/">
<img src="https://picsum.photos/420/800"> </a>
<div>
<a href="https://picsum.photos/">Picsum.photos</a>
</div>
</div><!--
-->
</div><!-- #main-content -->
</div>
</body></html>
$(document).ready(function() {
$('html, body, *').mousewheel(function(e, delta) {
this.scrollLeft -= (delta);
e.preventDefault();
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"></script>
body{
font-family:arial!important;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.scrollbaby{
position:fixed;
bottom:0;
left:0;
width:100%;
font-size:12px;
letter-spacing:1px;
font-weight:bold;
padding:4px 10px;
background:rgba(255,255,255,.8);
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
html {
height: 100%;
font-size: 62.5%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
body,
button,
input,
select,
textarea {
color: #222223;
font-size: 19px;
font-size: 1.9rem;
font-weight: 400;
line-height: 29px;
line-height: 2.9rem;
}
body {
height: 100%;
background: #fff;
}
a {
color: #222223;
text-decoration: none;
}
a:hover {
color: #963cbd;
border-bottom: 1px solid #963cbd;
}
a:focus,
a:hover,
a:active {
outline: 0;
}
img {
-ms-interpolation-mode: bicubic;
border: 0;
vertical-align: top;
}
/* Support a widely-adopted but non-standard selector for text selection styles
* to achieve a better experience. See http://core.trac.wordpress.org/ticket/25898.
*/
::selection {
background: #963cbd;
color: #fff;
text-shadow: none;
}
::-moz-selection {
background: #963cbd;
color: #fff;
text-shadow: none;
}
/**
* 2.0 Repeatable Patterns
* -----------------------------------------------------------------------------
*/
/* Input fields */
input,
textarea {
border: 1px solid #222223;
border-radius: 2px;
color: #222223;
padding: 4px 10px;
padding: 0.4rem 1rem;
margin-bottom: 3px;
margin-bottom: 0.3rem;
}
input:focus,
textarea:focus {
border: 1px solid #963cbd;
outline: 0;
}
/* Buttons */
button,
.contributor-posts-link,
input[type="button"],
input[type="reset"],
input[type="submit"] {
background-color: #222223;
border: 0;
border-radius: 2px;
color: #963cbd;
padding: 5px 20px;
padding: 0.5rem 2rem;
margin-bottom: 3px;
margin-bottom: 0.3rem;
vertical-align: bottom;
}
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
background-color: #963cbd;
color: #fff;
}
button:active,
.contributor-posts-link:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
background-color: #963cbd;
color: #fff;
}
/* Placeholder text color -- selectors need to be separate to work. */
::-webkit-input-placeholder {
color: #222223;
}
:-moz-placeholder {
color: #222223;
}
::-moz-placeholder {
color: #222223;
/* Since FF19 lowers the opacity of the placeholder by default */
opacity: 1;
}
:-ms-input-placeholder {
color: #222223;
}
/* Responsive images. Fluid images for posts, comments, and widgets */
.entry-content img,
.entry-summary img,
.wp-caption {
max-width: 100%;
}
/**
* Make sure images with WordPress-added height and width attributes are
* scaled correctly.
*/
.entry-content img,
.entry-summary img,
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
height: auto;
}
img.size-full,
img.size-large,
.wp-post-image,
.post-thumbnail img {
height: auto;
max-width: 100%;
}
body.home .wp-post-image {
max-width: none;
}
/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object,
video {
margin-bottom: 28px;
margin-bottom: 2.8rem;
max-width: 100%;
}
p > embed,
p > iframe,
p > object,
span > embed,
span > iframe,
span > object {
margin-bottom: 0;
}
/* Alignment */
.alignleft {
float: left;
}
.alignright {
float: right;
}
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
blockquote.alignleft,
img.alignleft {
margin: 7px 28px 7px 0;
margin: 0.7rem 2.8rem 0.7rem 0;
}
.wp-caption.alignleft {
margin: 7px 14px 7px 0;
margin: 0.7rem 1.4rem 0.7rem 0;
}
blockquote.alignright,
img.alignright {
margin: 7px 0 7px 28px;
margin: 0.7rem 0 0.7rem 2.8rem;
}
.wp-caption.alignright {
margin: 7px 0 7px 14px;
margin: 0.7rem 0 0.7rem 1.4rem;
}
blockquote.aligncenter,
img.aligncenter,
.wp-caption.aligncenter {
margin-top: 7px;
margin-top: 0.7rem;
margin-bottom: 7px;
margin-bottom: 0.7rem;
}
.site-content blockquote.alignleft,
.site-content blockquote.alignright {
padding-top: 14px;
padding-top: 1.4rem;
}
.site-content blockquote.alignleft p,
.site-content blockquote.alignright p {
margin-bottom: 14px;
margin-bottom: 1.4rem;
}
.wp-caption {
margin-bottom: 28px;
margin-bottom: 2.8rem;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin: 0;
}
.wp-caption {
color: #222223;
}
.wp-caption a {
color: #963cbd;
}
.wp-caption-text {
font-size: 13px;
font-size: 1.3rem;
line-height: 15px;
line-height: 1.5rem;
margin: 9px 0;
margin: 0.9rem 0;
}
.wp-smiley {
border: 0;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
/* Assistive text */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute;
}
/* Clearing floats */
.site-header:after,
.site-footer:after {
content: '';
display: block;
clear: both;
}
/**
* 3.0 Basic Structure
* -----------------------------------------------------------------------------
*/
#wrapper {
width: 100%;
height: 100%;
}
.site {
opacity: 0;
position: relative;
min-width: 320px;
-webkit-transition: opacity 0.3s, left 0.3s ease-out;
-moz-transition: opacity 0.3s, left 0.3s ease-out;
-o-transition: opacity 0.3s, left 0.3s ease-out;
transition: opacity 0.3s, left 0.3s ease-out;
}
.main-content,
.content-area {
height: 100%;
white-space: nowrap;
}
/* Infinite load */
@-webkit-keyframes buffer1 {
0% {
-webkit-transform: scale(0);
}
50% {
-webkit-transform: scale(1);
}
}
@-moz-keyframes buffer1 {
0% {
-moz-transform: scale(0);
}
50% {
-moz-transform: scale(1);
}
}
@-o-keyframes buffer1 {
0% {
-o-transform: scale(0);
}
50% {
-o-transform: scale(1);
}
}
@-ms-keyframes buffer1 {
0% {
-ms-transform: scale(0);
}
50% {
-ms-transform: scale(1);
}
}
@keyframes buffer1 {
0% {
transform: scale(0);
}
50% {
transform: scale(1);
}
}
@-webkit-keyframes buffer2 {
0% {
-webkit-transform: scale(0);
}
50% {
-webkit-transform: scale(0);
}
100% {
-webkit-transform: scale(1);
}
}
@-moz-keyframes buffer2 {
0% {
-moz-transform: scale(0);
}
50% {
-moz-transform: scale(0);
}
100% {
-moz-transform: scale(1);
}
}
@-o-keyframes buffer2 {
0% {
-o-transform: scale(0);
}
50% {
-o-transform: scale(0);
}
100% {
-o-transform: scale(1);
}
}
@-ms-keyframes buffer2 {
0% {
-ms-transform: scale(0);
}
50% {
-ms-transform: scale(0);
}
100% {
-ms-transform: scale(1);
}
}
@keyframes buffer2 {
0% {
transform: scale(0);
}
50% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
#infinite-loader {
display: none;
position: fixed;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
}
#infinite-loader.active {
display: block;
}
#infinite-loader > * {
display: block;
position: absolute;
top: -50%;
left: -50%;
width: 100%;
height: 100%;
background: #963cbd;
border-radius: 50%;
}
#infinite-loader > *:nth-child(1) {
background: transparent;
}
#infinite-loader > *:nth-child(2) {
-webkit-animation: buffer1 0.5s infinite;
-moz-animation: buffer1 0.5s infinite;
-o-animation: buffer1 0.5s infinite;
-ms-animation: buffer1 0.5s infinite;
animation: buffer1 0.5s infinite;
}
#infinite-loader > *:nth-child(3) {
background: transparent;
-webkit-animation: buffer2 0.2s infinite;
-moz-animation: buffer2 0.2s infinite;
-o-animation: buffer2 0.2s infinite;
-ms-animation: buffer2 0.2s infinite;
animation: buffer2 0.2s infinite;
}
/**
* 4.0 Header
* -----------------------------------------------------------------------------
*/
/* Ensure that there is no gap between the header and the admin bar for WordPress versions before 3.8. */
#wpadminbar {
min-height: 32px;
}
.site-header {
background: #fff;
}
.site-title {
margin: 0;
font-size: 18px;
font-size: 1.8rem;
font-weight: 700;
line-height: 28px;
line-height: 2.8rem;
}
#header-helper {
position: absolute;
top: 0;
left: 0;
width: 10px;
height: 1px;
}
/**
* 5.0 Navigation
* -----------------------------------------------------------------------------
*/
.site-navigation ul {
list-style: none;
margin: 0;
}
.site-navigation li {
display: block;
position: relative;
font-size: 18px;
font-size: 1.8rem;
line-height: 28px;
line-height: 2.8rem;
word-wrap: break-word;
}
.site-navigation ul ul ul {
padding-left: 20px;
padding-left: 2rem;
}
.menu-toggle {
display: none;
position: absolute;
top: 10px;
top: 1rem;
right: 20px;
right: 2rem;
margin: 0;
color: #222223;
font-size: 30px;
font-size: 3rem;
line-height: 30px;
line-height: 3rem;
cursor: pointer;
}
.menu-toggle:hover {
color: #963cbd;
}
#navigation-close {
display: none;
position: absolute;
z-index: 10000;
top: 10px;
top: 1rem;
right: 20px;
right: 2rem;
font-size: 30px;
font-size: 3rem;
line-height: 30px;
line-height: 3rem;
color: #fff;
cursor: pointer;
}
/**
* 6.0 Content
* -----------------------------------------------------------------------------
*/
.content-area {
white-space: nowrap;
}
.hentry,
.page-content {
display: inline-block;
vertical-align: top;
white-space: normal;
word-wrap: break-word;
}
body.single .hentry {
width: 67.391304348%;
padding-right: 20px;
padding-right: 2rem;
}
body.page .hentry,
.page-content {
width: 67.391304348%;
padding-right: 20px;
padding-right: 2rem;
}
.image_link:hover {
border-bottom: none;
}
/**
* 6.1 Post Thumbnail
* -----------------------------------------------------------------------------
*/
.post-thumbnail {
display: inline-block;
vertical-align: top;
}
body.home .post-thumbnail {
height: 100%;
}
/**
* 6.2 Entry Header
* -----------------------------------------------------------------------------
*/
body.single .entry-header,
body.page .entry-header,
.page-header {
margin-bottom: 20px;
margin-bottom: 2rem;
}
.entry-title,
.page-title {
margin: 0;
font-size: 18px;
font-size: 1.8rem;
font-weight: 700;
line-height: 28px;
line-height: 2.8rem;
word-wrap: break-word;
white-space: pre-wrap;
}
/**
* 6.3 Entry Meta
* -----------------------------------------------------------------------------
*/
/**
* 6.4 Entry Content
* -----------------------------------------------------------------------------
*/
.entry-content > p:last-child {
margin-bottom: 0;
}
.entry-content a,
.page-content a {
border-bottom: 1px solid;
}
/**
* 6.5 Gallery
* -----------------------------------------------------------------------------
*/
.gallery {
display: inline-block;
width: auto;
height: 100%;
margin: 0;
list-style-type: none;
}
.gallery-item {
display: inline-block;
width: auto;
height: 100%;
padding-right: 20px;
padding-right: 2rem;
vertical-align: top;
white-space: normal;
}
.gallery-item img {
display: block;
width: auto;
height: 100%;
height: -moz-calc(100% - 28px);
height: -webkit-calc(100% - 28px);
height: calc(100% - 28px);
}
/**
* 6.6 Post Formats
* -----------------------------------------------------------------------------
*/
/**
* 6.7 Post/Image/Paging Navigation
* -----------------------------------------------------------------------------
*/
.paging-navigation {
display: none;
}
#image-navigation {
text-align: right;
}
#image-navigation a:first-of-type {
float: left;
}
/**
* 6.8 Attachments
* -----------------------------------------------------------------------------
*/
.entry-attachment .attachment {
margin-bottom: 28px;
margin-bottom: 2.8rem;
}
/**
* 6.9 Archives
* -----------------------------------------------------------------------------
*/
/**
* 6.10 Contributor Page
* -----------------------------------------------------------------------------
*/
/**
* 6.11 404 Page
* -----------------------------------------------------------------------------
*/
.error404 .page-content {
/*padding-top: 0;*/
}
.error404 .page-content .search-form {
/*margin-bottom: 24px;*/
}
/**
* 6.12 Full-width
* -----------------------------------------------------------------------------
*/
/**
* 6.13 Singular
* -----------------------------------------------------------------------------
*/
/**
* 6.14 Comments
* -----------------------------------------------------------------------------
*/
/**
* 7.0 Sidebars
* -----------------------------------------------------------------------------
*/
/**
* 7.1 Widgets
* -----------------------------------------------------------------------------
*/
/**
* 7.2 Content Sidebar Widgets
* -----------------------------------------------------------------------------
*/
/**
* 8.0 Footer
* -----------------------------------------------------------------------------
*/
.site-footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 0 20px 40px;
padding: 0 2rem 4rem;
color: #999;
}
/**
* 9.0 Featured Content
* -----------------------------------------------------------------------------
*/
/**
* 10.0 Multisite
* -----------------------------------------------------------------------------
*/
/**
* 11.0 Media Queries
* -----------------------------------------------------------------------------
*/
/* Does the same thing as <meta name="viewport" content="width=device-width">,
* but in the future W3C standard way. -ms- prefix is required for IE10+ to
* render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
* the meta tag. See http://core.trac.wordpress.org/ticket/25888.
*/
@-ms-viewport {
width: device-width;
}
@viewport {
width: device-width;
}
@media (min-width: 951px) {
.site {
height: 100%;
padding: 40px 20px 40px 250px;
padding: 4rem 2rem 4rem 25rem;
}
.site-header {
position: fixed;
top: 0;
left: 0;
width: 250px;
height: 100%;
padding: 40px 30px 0;
padding: 4rem 3rem 0;
}
body.admin-bar .site-header {
top: 32px;
}
.primary-navigation {
padding: 20px 0 40px;
padding: 2rem 0 4rem;
}
#top-right-menu {
margin-top: 20px;
margin-top: 2rem;
}
.nav-menu li {
opacity: 0;
}
.site-navigation > div > ul > li.menu-item-has-children {
margin-top: 20px;
margin-top: 2rem;
}
.site-navigation > div > ul > li.menu-item-has-children > a {
font-weight: 700;
}
.site-navigation > div > ul ul ul {
padding-left: 20px;
padding-left: 2rem;
}
.current-menu-item > a {
font-weight: 700;
}
#main {
height: 100%;
}
body.home .hentry {
height: 100%;
padding-right: 20px;
padding-right: 2rem;
}
body.home .hentry > a {
display: inline-block;
height: 100%;
height: -moz-calc(100% - 28px);
height: -webkit-calc(100% - 28px);
height: calc(100% - 28px);
}
body.home .hentry img {
height: 100%;
width: auto;
}
body.single .hentry {
padding-bottom: 40px;
padding-bottom: 4rem;
max-width: 620px;
}
body.page .hentry,
.page-content {
padding-bottom: 40px;
padding-bottom: 4rem;
max-width: 620px;
}
.gallery-animated img {
cursor: pointer;
}
}
@media (max-width: 950px) {
.site-header {
height: auto !important;
padding: 10px 20px 30px;
padding: 1rem 2rem 3rem;
}
#header-helper {
display: none;
}
.site-title {
padding-right: 40px;
padding-right: 4rem;
}
.menu-toggle {
display: block;
}
.menu-toggle.hidden {
display: none;
}
.primary-navigation {
position: absolute;
z-index: 9999;
top: 0;
left: -84.375%;
width: 84.375%;
height: 100%;
background-color: #963cbd;
padding: 10px 20px;
padding: 1rem 2rem;
overflow-y: auto;
-webkit-transition: left 0.3s ease-out;
-moz-transition: left 0.3s ease-out;
-o-transition: left 0.3s ease-out;
transition: left 0.3s ease-out;
}
#top-right-menu {
margin-top: 20px;
margin-top: 2rem;
}
.site-navigation > div > ul > li.menu-item-has-children {
margin-top: 20px;
margin-top: 2rem;
}
.site-navigation > div > ul > li.menu-item-has-children > a {
font-weight: 700;
}
#wrapper {
position: relative;
}
#wrapper.overflow_fix {
overflow: hidden;
}
.site {
position: relative;
left: 0;
width: 100%;
min-height: 100%;
}
.toggled-on .site {
left: 84.375%;
height: 100%;
}
.toggled-on .site-footer {
display: none;
}
.primary-navigation a {
font-size: 22px;
font-size: 2.2rem;
line-height: 35px;
line-height: 3.5rem;
color: #fff;
}
.primary-navigation a:hover {
border-bottom: 1px solid #fff;
}
.toggled-on #navigation-close {
display: block;
}
#main {
width: 100%;
padding: 0 20px;
padding: 0 2rem;
}
body.single #primary,
body.page #main-content {
padding-left: 20.689655172%;
}
body.home .hentry,
body.home .post-thumbnail,
body.home .hentry img {
height: auto;
width: 100% !important;
}
body.home .hentry {
display: block;
padding-bottom: 20px;
padding-bottom: 2rem;
}
body.home .hentry:last-of-type {
padding-bottom: 0;
}
body.single #primary,
body.page #main-content {
padding-left: 0;
}
body.single .hentry,
body.page .hentry,
.page-content {
width: 100%;
padding-right: 0;
}
.post-thumbnail {
display: block;
}
.gallery {
display: block;
margin-top: 28px;
margin-top: 2.8rem;
}
.gallery-item {
display: block;
width: 100% !important;
height: auto;
padding: 0 0 20px;
padding: 0 0 2rem;
}
.gallery-item:last-child {
padding-bottom: 0;
}
.gallery-item img {
width: 100% !important;
height: auto;
}
.site-footer {
padding-top: 30px;
padding-top: 3rem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment