Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Community
drupalpt
Commits
afec6e93
Commit
afec6e93
authored
Apr 08, 2019
by
Cristiano Silva
Browse files
Change viewport to prevent zoom on mobile
parent
765ce62d
Pipeline
#1808
passed with stages
in 3 minutes and 5 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
themes/custom/drupalpt/css/style.css
View file @
afec6e93
...
...
@@ -9156,7 +9156,8 @@ body {
background
:
#fff
;
color
:
#000
;
overflow
:
hidden
;
overflow-y
:
auto
;
}
overflow-y
:
auto
;
min-height
:
100%
;
}
html
{
min-height
:
100vh
;
...
...
@@ -9165,11 +9166,9 @@ html {
html
,
body
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
padding
:
0
;
position
:
relative
;
min-height
:
100%
;
}
position
:
relative
;
}
.btn-primary
:focus
,
.btn-primary.focus
{
box-shadow
:
none
;
...
...
themes/custom/drupalpt/css/style.css.map
View file @
afec6e93
This source diff could not be displayed because it is too large. You can
view the blob
instead.
themes/custom/drupalpt/drupalpt.theme
View file @
afec6e93
...
...
@@ -30,3 +30,16 @@ function drupalpt_form_system_theme_settings_alter(&$form, FormStateInterface $f
'bg-transparent'
=>
t
(
'Transparent'
),
);
}
function
drupalpt_page_attachments_alter
(
array
&
$page
)
{
$viewport
=
array
(
'#type'
=>
'html_tag'
,
'#tag'
=>
'meta'
,
'#attributes'
=>
array
(
'name'
=>
'viewport'
,
'content'
=>
'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
,
),
);
$page
[
'#attached'
][
'html_head'
][]
=
[
$viewport
,
'viewport'
];
}
\ No newline at end of file
themes/custom/drupalpt/scss/theme-styles/globals.scss
View file @
afec6e93
...
...
@@ -14,6 +14,7 @@ body {
color
:
#000
;
overflow
:
hidden
;
overflow-y
:
auto
;
min-height
:
100%
;
}
html
{
...
...
@@ -24,11 +25,9 @@ html {
html
,
body
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
padding
:
0
;
position
:
relative
;
min-height
:
100%
;
}
.btn-primary
:focus
,
.btn-primary.focus
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment