Skip to content
Snippets Groups Projects
Commit 30775537 authored by Brian Canini's avatar Brian Canini
Browse files

asc_bootstrap - new btn paragraph type

parent 444f7faf
No related branches found
No related tags found
No related merge requests found
...@@ -164,6 +164,26 @@ ...@@ -164,6 +164,26 @@
} }
} }
.btn-fullw-wrapper {
color: $brand-gray;
}
.btn-fullw {
width: 100%;
text-align: center;
padding: 10px;
border: solid $brand-gray 2px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
border-radius: 5px;
&:hover {
text-decoration: underline;
background-color: #efefef;
}
}
// --------------------------------------------------- // ---------------------------------------------------
...@@ -282,6 +302,15 @@ ...@@ -282,6 +302,15 @@
font-weight: 700; font-weight: 700;
} }
} }
.btn-fullw-wrapper {
background: transparent;
color: $brand-gray;
&:hover {
background: transparent;
}
}
} }
.btn-links-18 { .btn-links-18 {
...@@ -320,6 +349,15 @@ ...@@ -320,6 +349,15 @@
font-weight: 700; font-weight: 700;
} }
} }
.btn-fullw-wrapper {
background: transparent;
color: $brand-gray;
&:hover {
background: transparent;
}
}
} }
.btn-links-17 { .btn-links-17 {
...@@ -358,6 +396,15 @@ ...@@ -358,6 +396,15 @@
font-weight: 700; font-weight: 700;
} }
} }
.btn-fullw-wrapper {
background: transparent;
color: $brand-gray;
&:hover {
background: transparent;
}
}
} }
} }
......
...@@ -194,6 +194,14 @@ ...@@ -194,6 +194,14 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
.dscarlet-bg { .dscarlet-bg {
...@@ -238,6 +246,14 @@ ...@@ -238,6 +246,14 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
.dviolet-bg { .dviolet-bg {
...@@ -282,6 +298,14 @@ ...@@ -282,6 +298,14 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
.dteal-bg { .dteal-bg {
...@@ -326,6 +350,14 @@ ...@@ -326,6 +350,14 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
.dpurple-bg { .dpurple-bg {
...@@ -370,6 +402,14 @@ ...@@ -370,6 +402,14 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
.dgreen-bg { .dgreen-bg {
...@@ -414,6 +454,14 @@ ...@@ -414,6 +454,14 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
.dorange-bg { .dorange-bg {
...@@ -458,4 +506,12 @@ ...@@ -458,4 +506,12 @@
.field--name-field-callout-link a:hover { .field--name-field-callout-link a:hover {
color: $white; color: $white;
} }
.btn-fullw {
border: solid $white 2px;
&:hover {
border: solid $brand-gray 2px;
}
}
} }
This diff is collapsed.
...@@ -35,11 +35,29 @@ ...@@ -35,11 +35,29 @@
* *
*/ */
#} #}
{% if content.field_button_type['#items'].getString() == "full-width-btn" %}
{% set btnstyle, btnwrap = 'btn-fullw', 'btn-fullw-wrapper' %}
{% elseif content.field_button_type['#items'].getString() == "default-btn" %}
{% set btnstyle = 'btn-primary' %}
{% else %}
{% set btnstyle = 'btn-primary' %}
{% endif %}
{% if content.field_button.0 %} {% if content.field_button.0 %}
<a href="{{ content.field_button[0]['#url'] }}" title="{{ content.field_button.0['#title'] }}" class="btn-wrapper"> <a href="{{ content.field_button[0]['#url'] }}" title="{{ content.field_button.0['#title'] }}" class="btn-wrapper {{ btnwrap }}">
<div class="btn btn-primary btn-par"> <div class="btn {{ btnstyle }} btn-par">
{{ content.field_button.0['#title'] }} <i class="fa fa-angle-right"></i> {{ content.field_button.0['#title'] }}
{% if btnstyle != "btn-fullw" %}
<i class="fa fa-angle-right"></i>
{% endif %}
</div> </div>
</a> </a>
......
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