This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix numerous IE11 layout issues
- most of them have to do with IE11's poor support for nested `layout="column"` elements - remove some unnecessary wrapper `<div>` elements - remove unused CSS - fix CSS file with SCSS content - simplify some CSS and remove some usages of `layout` and `layout-align`
- Loading branch information
Showing
26 changed files
with
201 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,4 +132,4 @@ | |
"node": ">=10", | ||
"npm": ">=6" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
<div ng-controller="DemoCtrl as ctrl" layout="column" ng-cloak> | ||
<div ng-controller="DemoCtrl as ctrl" ng-cloak> | ||
<md-content class="md-padding"> | ||
<p> | ||
Click the button below to open the dialog with an autocomplete. | ||
</p> | ||
|
||
<md-button ng-click="ctrl.openDialog($event)" class="md-raised">Open Dialog</md-button> | ||
</md-content> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,101 @@ | ||
<div layout="column" ng-cloak> | ||
<md-content class="md-padding"> | ||
<div layout="row" layout-xs="column"> | ||
<div class="instance-wrapper" flex-gt-xs="50" ng-controller="DemoCtrl as ctrl"> | ||
<form ng-submit="$event.preventDefault()"> | ||
<p id="standard-autocomplete-description"> | ||
Specify the <code>md-mode</code> as <code>standard</code> to fall back to | ||
<code>ng-repeat</code> for the autocomplete options. This allows | ||
options in the list to have varying heights. Note that large lists in | ||
<code>standard</code> mode will have a negative performance impact | ||
on your application. | ||
</p> | ||
<h4>Standard mode</h4> | ||
<md-autocomplete | ||
id="standard-autocomplete" | ||
ng-disabled="ctrl.isDisabled" | ||
md-no-cache="ctrl.noCache" | ||
md-selected-item="ctrl.selectedItem" | ||
md-search-text-change="ctrl.searchTextChange(ctrl.searchText)" | ||
md-search-text="ctrl.searchText" | ||
md-selected-item-change="ctrl.selectedItemChange(item)" | ||
md-items="item in ctrl.querySearch(ctrl.searchText)" | ||
md-item-text="item.name" | ||
md-min-length="0" | ||
md-escape-options="clear" | ||
input-aria-describedby="standard-autocomplete-description" | ||
input-aria-label="Current Repository" | ||
placeholder="Pick an Angular repository" | ||
md-menu-class="autocomplete-standard-template" | ||
md-menu-container-class="standard-container" | ||
md-mode="standard"> | ||
<md-item-template> | ||
<span class="item-title"> | ||
<md-icon md-svg-icon="img/icons/octicon-repo.svg" aria-hidden="true"></md-icon> | ||
<span> {{item.name}} </span> | ||
<md-content class="md-padding" ng-cloak> | ||
<div layout="row" layout-xs="column"> | ||
<div class="instance-wrapper" flex-gt-xs="50" ng-controller="DemoCtrl as ctrl"> | ||
<form ng-submit="$event.preventDefault()"> | ||
<p id="standard-autocomplete-description"> | ||
Specify the <code>md-mode</code> as <code>standard</code> to fall back to | ||
<code>ng-repeat</code> for the autocomplete options. This allows | ||
options in the list to have varying heights. Note that large lists in | ||
<code>standard</code> mode will have a negative performance impact | ||
on your application. | ||
</p> | ||
<h4>Standard mode</h4> | ||
<md-autocomplete | ||
id="standard-autocomplete" | ||
ng-disabled="ctrl.isDisabled" | ||
md-no-cache="ctrl.noCache" | ||
md-selected-item="ctrl.selectedItem" | ||
md-search-text-change="ctrl.searchTextChange(ctrl.searchText)" | ||
md-search-text="ctrl.searchText" | ||
md-selected-item-change="ctrl.selectedItemChange(item)" | ||
md-items="item in ctrl.querySearch(ctrl.searchText)" | ||
md-item-text="item.name" | ||
md-min-length="0" | ||
md-escape-options="clear" | ||
input-aria-describedby="standard-autocomplete-description" | ||
input-aria-label="Current Repository" | ||
placeholder="Pick an Angular repository" | ||
md-menu-class="autocomplete-standard-template" | ||
md-menu-container-class="standard-container" | ||
md-mode="standard"> | ||
<md-item-template> | ||
<span class="item-title"> | ||
<md-icon md-svg-icon="img/icons/octicon-repo.svg" aria-hidden="true"></md-icon> | ||
<span> {{item.name}} </span> | ||
</span> | ||
<p class="item-desc">{{item.desc}}</p> | ||
<span class="item-metadata"> | ||
<span> | ||
<strong>{{item.watchers}}</strong> watchers | ||
</span> | ||
<p class="item-desc">{{item.desc}}</p> | ||
<span class="item-metadata"> | ||
<span> | ||
<strong>{{item.watchers}}</strong> watchers | ||
</span> | ||
<span> | ||
<strong>{{item.forks}}</strong> forks | ||
</span> | ||
<span> | ||
<strong>{{item.forks}}</strong> forks | ||
</span> | ||
</md-item-template> | ||
</md-autocomplete> | ||
</form> | ||
</div> | ||
</span> | ||
</md-item-template> | ||
</md-autocomplete> | ||
</form> | ||
</div> | ||
|
||
<div class="instance-wrapper" flex-gt-xs="50" ng-controller="DemoCtrl as ctrl"> | ||
<form ng-submit="$event.preventDefault()"> | ||
<p id="virtual-autocomplete-description"> | ||
Omit the <code>md-mode</code> attribute (or specify <code>virtual</code>) to | ||
use <code>md-virtual-repeat</code> for the autocomplete options. | ||
<a ng-href="api/directive/mdVirtualRepeat">Virtual repeat</a> | ||
renders only enough DOM nodes to fill the container, recycling them as the | ||
user scrolls. This provides smooth and performant scrolling through large | ||
lists of options. Note that all options in a <code>md-virtual-repeat</code> | ||
list must have the same height. | ||
</p> | ||
<h4>Virtual mode</h4> | ||
<md-autocomplete | ||
id="virtual-autocomplete" | ||
ng-disabled="ctrl.isDisabled" | ||
md-no-cache="ctrl.noCache" | ||
md-selected-item="ctrl.selectedItem" | ||
md-search-text-change="ctrl.searchTextChange(ctrl.searchText)" | ||
md-search-text="ctrl.searchText" | ||
md-selected-item-change="ctrl.selectedItemChange(item)" | ||
md-items="item in ctrl.querySearch(ctrl.searchText)" | ||
md-item-text="item.name" | ||
md-min-length="0" | ||
md-escape-options="clear" | ||
input-aria-describedby="virtual-autocomplete-description" | ||
input-aria-label="Current Repository" | ||
placeholder="Pick an Angular repository" | ||
md-menu-class="autocomplete-virtual-template" | ||
md-menu-container-class="virtual-container" | ||
md-mode="virtual"> | ||
<md-item-template> | ||
<span class="item-title"> | ||
<md-icon md-svg-icon="img/icons/octicon-repo.svg" aria-hidden="true"></md-icon> | ||
<span> {{item.name}} </span> | ||
<div class="instance-wrapper" flex-gt-xs="50" ng-controller="DemoCtrl as ctrl"> | ||
<form ng-submit="$event.preventDefault()"> | ||
<p id="virtual-autocomplete-description"> | ||
Omit the <code>md-mode</code> attribute (or specify <code>virtual</code>) to | ||
use <code>md-virtual-repeat</code> for the autocomplete options. | ||
<a ng-href="api/directive/mdVirtualRepeat">Virtual repeat</a> | ||
renders only enough DOM nodes to fill the container, recycling them as the | ||
user scrolls. This provides smooth and performant scrolling through large | ||
lists of options. Note that all options in a <code>md-virtual-repeat</code> | ||
list must have the same height. | ||
</p> | ||
<h4>Virtual mode</h4> | ||
<md-autocomplete | ||
id="virtual-autocomplete" | ||
ng-disabled="ctrl.isDisabled" | ||
md-no-cache="ctrl.noCache" | ||
md-selected-item="ctrl.selectedItem" | ||
md-search-text-change="ctrl.searchTextChange(ctrl.searchText)" | ||
md-search-text="ctrl.searchText" | ||
md-selected-item-change="ctrl.selectedItemChange(item)" | ||
md-items="item in ctrl.querySearch(ctrl.searchText)" | ||
md-item-text="item.name" | ||
md-min-length="0" | ||
md-escape-options="clear" | ||
input-aria-describedby="virtual-autocomplete-description" | ||
input-aria-label="Current Repository" | ||
placeholder="Pick an Angular repository" | ||
md-menu-class="autocomplete-virtual-template" | ||
md-menu-container-class="virtual-container" | ||
md-mode="virtual"> | ||
<md-item-template> | ||
<span class="item-title"> | ||
<md-icon md-svg-icon="img/icons/octicon-repo.svg" aria-hidden="true"></md-icon> | ||
<span> {{item.name}} </span> | ||
</span> | ||
<p class="item-desc"> | ||
{{item.desc | limitTo:40}}{{item.desc.length > 40 ? '...': ''}} | ||
</p> | ||
<span class="item-metadata"> | ||
<span> | ||
<strong>{{item.watchers}}</strong> watchers | ||
</span> | ||
<p class="item-desc"> | ||
{{item.desc | limitTo:40}}{{item.desc.length > 40 ? '...': ''}} | ||
</p> | ||
<span class="item-metadata"> | ||
<span> | ||
<strong>{{item.watchers}}</strong> watchers | ||
</span> | ||
<span> | ||
<strong>{{item.forks}}</strong> forks | ||
</span> | ||
<span> | ||
<strong>{{item.forks}}</strong> forks | ||
</span> | ||
</md-item-template> | ||
</md-autocomplete> | ||
</form> | ||
</div> | ||
</span> | ||
</md-item-template> | ||
</md-autocomplete> | ||
</form> | ||
</div> | ||
</md-content> | ||
</div> | ||
</div> | ||
</md-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
<div ng-controller="AppCtrl" class="md-padding demo"> | ||
<div layout="row" layout-wrap> | ||
<div flex="100" layout="column"> | ||
<div> | ||
<!-- | ||
In IE, we cannot apply flex directly to <fieldset> | ||
@see https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers | ||
--> | ||
<fieldset class="demo-fieldset" > | ||
<legend class="demo-legend">Using <md-checkbox> with the 'indeterminate' attribute </legend> | ||
<div layout="row" layout-wrap flex> | ||
<div flex-xs flex="50"> | ||
<md-checkbox aria-label="Select All" | ||
ng-checked="isChecked()" | ||
md-indeterminate="isIndeterminate()" | ||
ng-click="toggleAll()"> | ||
<span ng-if="isChecked()">Un-</span>Select All | ||
</md-checkbox> | ||
</div> | ||
<div class="demo-select-all-checkboxes" flex="100" ng-repeat="item in items"> | ||
<md-checkbox ng-checked="exists(item, selected)" ng-click="toggle(item, selected)"> | ||
{{ item }} | ||
</md-checkbox> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<div ng-controller="AppCtrl" class="md-padding"> | ||
<!-- | ||
In IE, we cannot apply flex directly to <fieldset> | ||
@see https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers | ||
--> | ||
<fieldset> | ||
<legend>Using <md-checkbox> with the 'indeterminate' attribute</legend> | ||
<md-checkbox aria-label="Select All" | ||
ng-checked="isChecked()" | ||
md-indeterminate="isIndeterminate()" | ||
ng-click="toggleAll()"> | ||
<span ng-if="isChecked()">Un-</span>Select All | ||
</md-checkbox> | ||
<div class="demo-select-all-checkboxes" ng-repeat="item in items"> | ||
<md-checkbox ng-checked="exists(item, selected)" ng-click="toggle(item, selected)"> | ||
{{ item }} | ||
</md-checkbox> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
.demo { | ||
&-legend { | ||
color: #3F51B5; | ||
} | ||
|
||
&-fieldset { | ||
border-style: solid; | ||
border-width: 1px; | ||
height: 100%; | ||
} | ||
|
||
&-select-all-checkboxes { | ||
padding-left: 30px; | ||
} | ||
legend { | ||
color: #3F51B5; | ||
} | ||
fieldset { | ||
border-style: solid; | ||
border-width: 1px; | ||
} | ||
.demo-select-all-checkboxes { | ||
padding-left: 30px; | ||
} |
Oops, something went wrong.