File tree 5 files changed +26
-13
lines changed
5 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ $govuk-typography-use-rem: false;
18
18
// helpers for common page elements
19
19
@import ' helpers/sidebar-with-body' ;
20
20
@import ' helpers/organisation-links' ;
21
+ @import ' helpers/organisation-logos' ;
21
22
@import ' helpers/parts' ;
22
23
@import ' helpers/add-title-margin' ;
23
24
@import " helpers/content-bottom-margin" ;
Original file line number Diff line number Diff line change
1
+ .organisation-logos {
2
+ display : flex ;
3
+ flex-direction : row ;
4
+ flex-wrap : wrap ;
5
+ justify-content : flex-start ;
6
+ list-style-type : none ;
7
+ }
8
+
9
+ .organisation-logos__logo {
10
+ padding-bottom : govuk-spacing (3 );
11
+ flex-basis : 25% ;
12
+ min-width : 130px ;
13
+ }
14
+
15
+ .organisation-logo__inner {
16
+ max-width : 215px ;
17
+ padding-right : govuk-spacing (3 );
18
+ }
Original file line number Diff line number Diff line change 10
10
margin-bottom : govuk-spacing (4 );
11
11
position : relative ;
12
12
13
- .organisation-logos {
14
- list-style-type : none ;
15
-
16
- .organisation-logo {
17
- padding-bottom : govuk-spacing (2 );
18
- }
19
- }
20
-
21
13
// design calls for the logos at the top to always be left aligned
22
14
.direction-rtl & {
23
15
direction : ltr ;
Original file line number Diff line number Diff line change 9
9
%>
10
10
11
11
<% if @content_item.organisations %>
12
- <div class ="govuk-grid-row publication-external ">
13
- < ol class ="govuk-grid-column-one-quarter organisation-logos ">
12
+ <div class ="publication-external ">
13
+ < ol class ="organisation-logos ">
14
14
<% @content_item . organisations . each do |organisation | %>
15
15
<% logo_attributes = @content_item . organisation_logo ( organisation ) %>
16
16
<% next unless logo_attributes %>
17
- < li class ="organisation-logo ">
18
- <%= render 'govuk_publishing_components/components/organisation_logo' , logo_attributes %>
17
+ < li class ="organisation-logos__logo ">
18
+ < div class ="organisation-logo__inner ">
19
+ <%= render 'govuk_publishing_components/components/organisation_logo' , logo_attributes %>
20
+ </ div >
19
21
</ li >
20
22
<% end %>
21
23
</ ol >
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class HtmlPublicationTest < ActionDispatch::IntegrationTest
74
74
end
75
75
76
76
def assert_has_component_organisation_logo_with_brand ( brand , index = 1 )
77
- within ( "li.organisation-logo :nth-of-type(#{ index } )" ) do
77
+ within ( "li.organisation-logos__logo :nth-of-type(#{ index } )" ) do
78
78
assert page . has_css? ( ".gem-c-organisation-logo.brand--#{ brand } " )
79
79
end
80
80
end
You can’t perform that action at this time.
0 commit comments