Skip to content

Commit

Permalink
Fix small-screen button links
Browse files Browse the repository at this point in the history
  • Loading branch information
niqjohnson committed Jan 7, 2016
1 parent bd9e6c9 commit 0ae3d46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 4 additions & 5 deletions paying_for_college/templates/worksheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
{% endblock %}
{% block app_css %}
<!--[if lt IE 9]>
<link rel="stylesheet" href="{% static
"paying_for_college/disclosures/static/css/main.ie.css" %}">
<link rel="stylesheet" href="{% static "paying_for_college/disclosures/static/css/main.ie.css" %}">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{% static "paying_for_college/disclosures/static/css/main.min.css" %}">
<!--<![endif]-->
{% endblock %}
{% block responsive_nav %}
<a class="toggle-menu" href="#"><i class="cf-icon cf-icon-menu"></i
<a class="toggle-menu" href="#"><i class="cf-icon cf-icon-menu"></i>
<span class="u-visually-hidden">Menu</span></a>
{% endblock %}
{% block content %}
Expand Down Expand Up @@ -119,13 +118,13 @@ <h2 class="verify_prompt">
</div>
<div class="verify_controls">
<a href="#info-right"
class="btn btn__full-small" type="button"
class="btn btn__full-small"
title="Yes, this information is correct">
Yes, this is correct
</a>
<a href="#info-wrong"
class="btn btn__full-small btn__link
verify_wrong-info-btn" type="button"
verify_wrong-info-btn"
title="No, this is not my information">
No, this is not my information
</a>
Expand Down
8 changes: 8 additions & 0 deletions src/disclosures/css/cf-enhancements.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
.respond-to-max(@bp-xs-max, {
display: block;
width: 100%;
text-align: center;
});

&.btn__link {
Expand All @@ -37,6 +38,13 @@
}
}

a.btn__full-small.btn__link {

.respond-to-max(@bp-xs-max, {
display: inline-block;
});
}

/* ==========================================================================
Flush left lists
========================================================================== */
Expand Down
2 changes: 2 additions & 0 deletions src/disclosures/css/disclosures.less
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@

&_controls {
margin-top: unit(30px / @base-font-size-px, em);
text-align: center;

.respond-to-min(@bp-sm-min, {
.grid_column(12);
text-align: left;
});
}

Expand Down

0 comments on commit 0ae3d46

Please sign in to comment.