mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 11:42:37 +00:00
Fix overflow issues on mobile safari
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
z-index: 5;
|
z-index: 5;
|
||||||
transition: all .3s ease-in-out;
|
transition: all .3s ease-in-out;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
overflow-x: hidden;
|
||||||
@include MQ(L) {
|
@include MQ(L) {
|
||||||
margin-left: $site-navigation-width;
|
margin-left: $site-navigation-width;
|
||||||
}
|
}
|
||||||
@@ -10,9 +11,11 @@
|
|||||||
transition: all .3s ease-in-out;
|
transition: all .3s ease-in-out;
|
||||||
transform:translateX(#{$site-navigation-width});
|
transform:translateX(#{$site-navigation-width});
|
||||||
opacity: .4;
|
opacity: .4;
|
||||||
|
overflow-x: hidden;
|
||||||
@include MQ(L) {
|
@include MQ(L) {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: translateX(0px);
|
transform: translateX(0px);
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,6 +28,7 @@ main.main {
|
|||||||
max-width: $content-max-width;
|
max-width: $content-max-width;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height:calc(100vh - #{$site-header-height * 2});
|
min-height:calc(100vh - #{$site-header-height * 2});
|
||||||
|
overflow-x:hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
header.content-header {
|
header.content-header {
|
||||||
@@ -79,21 +83,21 @@ header.content-header {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
&.edit {
|
&.edit {
|
||||||
bottom:6px;
|
bottom: 6px;
|
||||||
}
|
}
|
||||||
&.godocs {
|
&.godocs {
|
||||||
margin-right:10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i.icon-pencil {
|
i.icon-pencil {
|
||||||
font-size:24px;
|
font-size: 24px;
|
||||||
position:relative;
|
position: relative;
|
||||||
bottom:4px;
|
bottom: 4px;
|
||||||
}
|
}
|
||||||
svg {
|
svg {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
display:inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user