Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
feat: opacity disabled button, with no background color and no borders
Browse files Browse the repository at this point in the history
  • Loading branch information
GusBaamonde committed Mar 18, 2019
1 parent f3c857e commit d8ae371
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions assets/scss/modules/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,11 @@
}
}
}
}

.dp-button:disabled {
pointer-events: none;
border: 1px solid $dp-color-sylver;
color: $dp-color-grey;
background-color: $dp-color-snow;
opacity: 0.8;
&:disabled {
pointer-events: none;
opacity: 0.4;
}
}
}
@include dp-button();
4 changes: 2 additions & 2 deletions assets/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ <h2>Botones</h2>
<div class="button-description">
<p><strong>Disabled</strong></p>
<ul class="button-list">
<li><strong>background-color:</strong> #EAEAEA;</li>
<li><strong>border:</strong> 1px solid #CCC;</li>
<li><strong>pointer-events::</strong> none;</li>
<li><strong>opacity:</strong> .4;</li>
</ul>
</div>
</div><!-- button-card -->
Expand Down

0 comments on commit d8ae371

Please sign in to comment.