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

Commit 2a3dbe5

Browse files
Eric Jimenezkwalrath
Eric Jimenez
authored andcommitted
replace clearfix with a wrapping flexbox (#2819)
1 parent 061e50f commit 2a3dbe5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

public/resources/css/layout/_layout.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,9 @@ button.verbose.on {display: none}
290290
font-size: $unit * 2;
291291
margin-bottom: $unit;
292292
margin-top: $unit * 4;
293-
}
293+
}
294+
295+
.l-flex-wrap {
296+
display: flex;
297+
flex-wrap: wrap;
298+
}

public/resources/js/directives/api-list.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ angularIO.directive('apiList', function () {
1717
return {
1818
restrict: 'E',
1919
template:
20-
'<div ng-cloak="ng-cloak" class="banner is-plain api-filter clearfix">' +
20+
'<div ng-cloak="ng-cloak" class="l-flex-wrap banner is-plain api-filter">' +
2121
' <div class="form-select-menu">' +
2222
' <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>'+
2323
' <button class="form-select-button is-default" ng-if="$ctrl.type === null" ng-click="$ctrl.toggleMenu(\'type\')"><strong>Type: All</strong></button>'+
@@ -44,7 +44,7 @@ angularIO.directive('apiList', function () {
4444
' </div>' +
4545
'</div>' +
4646
' ' +
47-
'<article class="l-content-small grid-fluid docs-content">' +
47+
'<article class="l-content-small docs-content">' +
4848
' <div ng-repeat="section in $ctrl.groupedSections" ng-if="$ctrl.filterSections(section)" ng-cloak="ng-cloak">' +
4949
' <h2>{{ section.title }}</h2>' +
5050
' <ul class="api-list">' +
@@ -266,4 +266,4 @@ angularIO.directive('apiList', function () {
266266
};
267267
}
268268
};
269-
});
269+
});

0 commit comments

Comments
 (0)