Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

replace clearfix with a wrapping flexbox #2819

Merged
merged 1 commit into from
Nov 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion public/resources/css/layout/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,9 @@ button.verbose.on {display: none}
font-size: $unit * 2;
margin-bottom: $unit;
margin-top: $unit * 4;
}
}

.l-flex-wrap {
display: flex;
flex-wrap: wrap;
}
6 changes: 3 additions & 3 deletions public/resources/js/directives/api-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angularIO.directive('apiList', function () {
return {
restrict: 'E',
template:
'<div ng-cloak="ng-cloak" class="banner is-plain api-filter clearfix">' +
'<div ng-cloak="ng-cloak" class="l-flex-wrap banner is-plain api-filter">' +
' <div class="form-select-menu">' +
' <button ng-repeat="type in $ctrl.types" ng-if="$ctrl.type === type.matches[0]" class="form-select-button has-symbol" ng-click="$ctrl.toggleMenu(\'type\')"><strong>Type:</strong><span class="symbol {{type.cssClass}}" ng-if="type.cssClass !== \'stable\'" ></span>{{type.title}}</button>'+
' <button class="form-select-button is-default" ng-if="$ctrl.type === null" ng-click="$ctrl.toggleMenu(\'type\')"><strong>Type: All</strong></button>'+
Expand All @@ -44,7 +44,7 @@ angularIO.directive('apiList', function () {
' </div>' +
'</div>' +
' ' +
'<article class="l-content-small grid-fluid docs-content">' +
'<article class="l-content-small docs-content">' +
' <div ng-repeat="section in $ctrl.groupedSections" ng-if="$ctrl.filterSections(section)" ng-cloak="ng-cloak">' +
' <h2>{{ section.title }}</h2>' +
' <ul class="api-list">' +
Expand Down Expand Up @@ -266,4 +266,4 @@ angularIO.directive('apiList', function () {
};
}
};
});
});