Skip to content

Commit d746512

Browse files
committed
Updated changelog and minor improvements
1 parent 67e3eca commit d746512

7 files changed

Lines changed: 581 additions & 397 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ To get the diff for a specific change, go to https://github.com/LIN3S/AdminBundl
66
To get the diff between two versions, go to https://github.com/LIN3S/AdminBundle/compare/v0.4.0...v0.5.0
77

88
* 0.6.0
9+
* Added sticky behaviour to the form right sidebar.
10+
* Made JavaScript and CSS code compatible with IE11.
911
* Imported `parsleyjs` module in the js entry file.
1012
* Updated lin3s-front-foundation dependency from v0.6.0 to v0.6.1.
1113
* Updated lin3s-front-foundation dependency from v0.5.0 to v0.6.0.

src/LIN3S/AdminBundle/Resources/private/js/components/FormSidebar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* file that was distributed with this source code.
88
*
99
* @author Andrés Montejo <andres@lin3s.com>
10+
* @author Beñat Espiña <benatespina@gmail.com>
1011
*/
1112

1213
import {onDomReady} from 'lin3s-event-bus';
@@ -43,14 +44,13 @@ class FormSidebar {
4344
}
4445

4546
const onReady = () => {
46-
const rootNode = document.querySelector('.form-sidebar');
47+
const formSidebars = document.querySelectorAll('.form-sidebar');
4748

48-
if (null === rootNode) {
49+
if (formSidebars.length === 0) {
4950
return;
5051
}
5152

52-
new FormSidebar(rootNode);
53-
53+
Array.from(formSidebars).forEach((rootNode) => new FormSidebar(rootNode));
5454
};
5555

5656
onDomReady(onReady);

src/LIN3S/AdminBundle/Resources/private/scss/components/_form.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,18 @@ select {
138138
}
139139

140140
@media #{$large-up} {
141+
$one-third: 100% / 3;
142+
$two-thirds: 100% / 3 * 2;
143+
141144
.form__column--left {
142-
flex: 1 1 66.666%;
143-
max-width: 66.666%;
145+
flex: 1 1 $two-thirds;
146+
max-width: $two-thirds;
144147
padding-right: 15px;
145148
}
146149

147150
.form__column--right {
148-
flex: 1 1 33.333%;
149-
max-width: 33.333%;
151+
flex: 1 1 $one-third;
152+
max-width: $one-third;
150153
padding-left: 15px;
151154
}
152155
}

0 commit comments

Comments
 (0)