Skip to content
Snippets Groups Projects
Commit ffb510a6 authored by Chris Lawton's avatar Chris Lawton
Browse files

combining flex wrapper modifier into person modifier as the styles are...

combining flex wrapper modifier into person modifier as the styles are becoming to specific to the person section to justify having another modifier
parent b8649d3a
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{% load wagtailcore_tags wagtailimages_tags %} {% load wagtailcore_tags wagtailimages_tags %}
{% block content %} {% block content %}
<section class="wrapper wrapper--small wrapper--flex wrapper--person"> <section class="wrapper wrapper--small wrapper--person">
<div> <div>
{% for person_type in page.person_types.all %} {% for person_type in page.person_types.all %}
<h5 class="heading heading--no-margin">{{ person_type }}</h5> <h5 class="heading heading--no-margin">{{ person_type }}</h5>
......
...@@ -140,23 +140,26 @@ ...@@ -140,23 +140,26 @@
padding-bottom: 3rem; padding-bottom: 3rem;
} }
&--flex { &--person {
display: flex; display: flex;
} flex-direction: column;
padding: 20px 0;
&--person { @include media-query(tablet-portrait) {
padding: 3rem 0; flex-direction: row;
padding: 3rem 0;
> div:last-child {
flex-basis: 210px;
}
}
> div:first-child { > div:first-child {
flex: 1; flex: 1;
@include media-query(tablet-landscape) { @include media-query(tablet-portrait) {
padding-right: 20px; padding-right: 20px;
} }
} }
> div:last-child {
flex-basis: 210px;
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment