Skip to content
Snippets Groups Projects
Unverified Commit 41db2f7d authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2190 from OpenTechFund/enhancement/list-straight-left

Add list-straight-left styles to fund and lab pages.
parents 9eb86651 96bd063c
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
{% include "public_funds/includes/fund_apply_cta.html" with page=page apply_page=page.application_type %} {% include "public_funds/includes/fund_apply_cta.html" with page=page apply_page=page.application_type %}
<div class="wrapper"> <div class="wrapper">
<section class="section section--main"> <section class="section section--main section--list-straight-left">
{% if page.introduction %} {% if page.introduction %}
<h4 class="heading heading--introduction"> <h4 class="heading heading--introduction">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
{% block content %} {% block content %}
{% include "public_funds/includes/lab_apply_cta.html" %} {% include "public_funds/includes/lab_apply_cta.html" %}
<div class="wrapper"> <div class="wrapper">
<section class="section section--main section--top-bottom-space"> <section class="section section--main section--list-straight-left section--top-bottom-space">
{% if page.icon %} {% if page.icon %}
{% image page.icon fill-100x100 class="image--float-small" %} {% image page.icon fill-100x100 class="image--float-small" %}
{% endif %} {% endif %}
......
// Lists with a straight left margin.
%ul-straight-left {
display: table;
list-style: none;
padding: 0;
& > li {
display: table-row;
&::before {
display: table-cell;
content: '\2022';
padding-right: 1rem;
}
}
}
%ol-straight-left {
display: table;
list-style: none;
padding: 0;
& > li {
display: table-row;
counter-increment: table-ol;
&::before {
display: table-cell;
content: counter(table-ol) '.';
padding-right: 1rem;
text-align: right;
}
}
}
%ul-straight-left--off {
display: block;
list-style: inherit;
& > li {
display: list-item;
&::before {
content: '';
display: inline;
padding: inherit;
}
}
}
...@@ -7,6 +7,16 @@ ...@@ -7,6 +7,16 @@
} }
} }
&--list-straight-left {
ul {
@extend %ul-straight-left;
}
ol {
@extend %ol-straight-left;
}
}
&--share { &--share {
padding: 2rem 0; padding: 2rem 0;
margin: 3rem 0; margin: 3rem 0;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
@import 'components/input'; @import 'components/input';
@import 'components/link'; @import 'components/link';
@import 'components/list'; @import 'components/list';
@import 'components/list_straight_left';
@import 'components/listing'; @import 'components/listing';
@import 'components/media-box'; @import 'components/media-box';
@import 'components/messages'; @import 'components/messages';
......
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