Skip to content

Commit

Permalink
fix: minor updates to address overflow scrollbars in Chrome on Window…
Browse files Browse the repository at this point in the history
…s; update to Action Block headline link color; minor tuning of button shadow colors
  • Loading branch information
bolt-bot committed Nov 8, 2017
1 parent 103290b commit b26f02f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
Expand Up @@ -19,7 +19,7 @@ $bolt-fonts--loaded-class: 'js-fonts-loaded' !default;

// Shadows
$bolt-shadow-color: bolt-color(black);
$bolt-shadow--small: 0 2px 0.15rem rgba($bolt-shadow-color, 0.5);
$bolt-shadow--small: 0 2px 0.15rem rgba($bolt-shadow-color, 0.3);
$bolt-shadow--medium: 0 0.15rem 0.3rem rgba($bolt-shadow-color, 0.35);
$bolt-shadow--large: 0 0.35rem 0.6rem rgba($bolt-shadow-color, 0.18);

Expand Down
Expand Up @@ -28,7 +28,7 @@
<bolt-{{ componentName }} bolt-component>
<a href="{{ url }}" {{ attributes.addClass(classes | raw) }}>
{% if icon %}
<div class="{{ "#{baseClass}__item" }}">
<div class="{{ "#{baseClass}__item #{baseClass}__icon" }}">
{% set icon = icon | merge({
size: icon.size | default("xlarge")
}) %}
Expand All @@ -37,7 +37,7 @@
{% endif %}

{% if text %}
<div class="{{ "#{baseClass}__item" }}">
<div class="{{ "#{baseClass}__item #{baseClass}__text" }}">
{{ text }}
</div>
{% endif %}
Expand Down
Expand Up @@ -91,7 +91,7 @@ bolt-action-blocks {
.c-bolt-action-blocks {
@include bolt-margin(0 -1px -1px 0);
@include bolt-padding(0);

transform: translate3d(0, 0, 0); //Force hardware accelerated rendering to cleanly remove extra border from showing up sometimes
display: flex;
flex-wrap: wrap;
list-style: none;
Expand Down Expand Up @@ -157,3 +157,9 @@ bolt-action-blocks {
flex-basis: calc(100% / #{$number} - #{$bolt-action-blocks-border-width});
}
}


.c-bolt-action-block__text {
color: currentColor;
color: var(--bolt-theme-heading-link-default, --bolt-theme-text);
}
6 changes: 4 additions & 2 deletions src/_patterns/02-components/bolt-button/src/_button.scss
Expand Up @@ -210,7 +210,8 @@ $bolt-button-translate--active: translate3d(0, 1px, 0);
border-style: $bolt-button-border-style;
border-width: $bolt-button-border-width;
border-radius: $bolt-button-border-radius;
box-shadow: $bolt-button-shadow;
// box-shadow: 0 1px 0.15rem rgba(21,22,25,0.2);
box-shadow: 0 1px 3px rgba(bolt-color(black), 0.12), 0 1px 2px rgba(bolt-color(black), 0.24);
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
transform: translate3d(0, 0, 0);

Expand All @@ -225,8 +226,9 @@ $bolt-button-translate--active: translate3d(0, 1px, 0);
content: '';
pointer-events: none;
border-radius: $bolt-button-border-radius;
box-shadow: $bolt-button-shadow--hover;
box-shadow: 0 1px 0.15rem rgba($bolt-shadow-color, 0.1), $bolt-button-shadow--hover;
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
opacity: .2;
}

&:not([disabled]):not(.c-bolt-button--text) {
Expand Down
Expand Up @@ -20,8 +20,7 @@

.c-bolt-site {
display: grid;
// display: flex;
// flex-direction: column;
overflow-x: hidden; //Helps prevent horizontal scrolling in Chrome on Windows machines. Seems to be working fine w/ native position sticky at first glance.
min-height: 100vh;
grid-template-areas: 'header' 'content' 'footer';
// grid-template-areas: "header header header" "navigation main ads" "footer footer footer";
Expand All @@ -32,10 +31,6 @@
height: 100%; /* 1, 3 -- Required for IE11 sticky footer */
overflow-x: hidden; // Prevent content from spilling over
}

// > * {
// flex-grow: 0;
// }
}


Expand Down

0 comments on commit b26f02f

Please sign in to comment.