Skip to content
Snippets Groups Projects
Commit 9ebcfb3a authored by Ivica Puljic's avatar Ivica Puljic
Browse files

Adding missing files from patch in ddo#3320887.

parent 43b08e1a
No related branches found
No related tags found
No related merge requests found
# Browsers that we support
# > 0.5%, last 2 versions, Firefox ESR, not dead
defaults
ie >= 11
......@@ -136,18 +136,17 @@ are relative they are relative from position of gulpfile.js.
### Browser support explained
```js
browsersSupport: [
// For all good platforms we support only last two browser versions.
'last 2 versions',
// For now we do IE10+.
'ie >= 10',
// iOS 7 and 8 supports flexbox with prefixes, so to support iPhone 5 we need
// to add this.
'Safari >= 7'
]
Defined in `.browserlistsrc` file in theme root folder:
```
# Browsers that we support
# > 0.5%, last 2 versions, Firefox ESR, not dead
defaults
```
More info on https://github.com/browserslist/browserslist.
Learning resources
------------------
......
......@@ -183,3 +183,15 @@ function bs_base_bs_update_8008($target_theme_name) {
]);
}
}
/**
* Remove IE11 support.
*/
function bs_base_bs_update_8009($target_theme_name) {
$themes_info = _bs_base_drupal_theme_list_info();
if (isset($themes_info[$target_theme_name])) {
_bs_base_regexp_file($themes_info[$target_theme_name]->subpath . '/.browserslistrc', [
'^#?ie >= 11\n' => '',
]);
}
}
......@@ -27,9 +27,9 @@ gulpPlugins:
# Sass options.
sass:
# Inject custom SASS variables in gulp SASS compilation process.
# @NOTE that this is not used for now in base theme, it exist there just to
# define options format. Currently child themes need to deal with this if they
# want this feature.
# @NOTE that this is not used for now in base theme, it exists there just to
# define options format. Currently, child themes need to deal with this if
# they want this feature.
injectVariables:
# List of files for injecting the variables. Leave empty to inject to all
# files.
......@@ -48,9 +48,8 @@ sass:
# Autoprefixer plugin options.
autoprefixer:
# Enable grid prefixes for older Edge and IE11 browsers.
grid: true
# browsers: moved to .browserslistrc
# Disable flexbox properties prefixing.
flexbox: false
# Path to stylelint config file.
stylelint:
......@@ -58,7 +57,7 @@ stylelint:
# Processor configuration for stylelint postcss plugin.
processors:
reporter:
# Clear all messages after displaying so they are not redisplayed in other
# Clear all messages after displaying, so they are not redisplayed in other
# plugins that are coming after stylelint.
clearAllMessages: true
# Don't throw exception on error but continue with gulp tasks.
......
......@@ -18,17 +18,3 @@ body {
.page__main {
flex: auto;
}
// For complex main content flex grid layout rules that are applied to images
// IE11 has a potential to wrongly calculate height of images but still show
// them correctly. However this can mess then with our footer bottom flex
// rules and div.page__main element will have much bigger height.
// For now the only way to fix this is to disable our footer to bottom rules
// for IE11.
// IE11 selector taken from https://stackoverflow.com/a/35063378.
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
body,
.dialog-off-canvas-main-canvas {
display: block;
}
}
......@@ -19,8 +19,7 @@
align-items: flex-end;
}
.navbar-collapse {
-ms-grid-row-align: stretch;
align-self: stretch;
align-self: stretch;
align-items: stretch;
}
.navbar-nav {
......
......@@ -17,8 +17,7 @@
align-items: flex-end;
}
.navbar-collapse {
-ms-grid-row-align: stretch;
align-self: stretch;
align-self: stretch;
align-items: stretch;
}
.navbar-nav {
......
......@@ -394,13 +394,6 @@ body {
}
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
body,
.dialog-off-canvas-main-canvas {
display: block;
}
}
@media (max-width: 767px) {
.page__header .region-navbar {
order: 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment