Skip to content

Commit

Permalink
Fix drop-shadow rules.
Browse files Browse the repository at this point in the history
- Supply proper arguments.
- Tweak arguments by a small value.
- Fix syntax.
  • Loading branch information
srph committed Dec 9, 2015
1 parent 16c7426 commit 0353df5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/dist/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25555,7 +25555,7 @@

module.exports = {
"name": "aia",
"version": "0.6.2",
"version": "0.7.0",
"description": "The UI Toolkit that powers ONE's internal projects",
"main": "lib/index",
"scripts": {
Expand Down
20 changes: 17 additions & 3 deletions docs/dist/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions styles/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@
white-space: nowrap;
}

@mixin drop-shadow($position : 4px) {
@if($position) == "top" {
$position: -4px;
@mixin drop-shadow($position: "bottom") {
@if $position == "top" {
$position: -2px;
} @else {
$position: 2px;
}
box-shadow: 2px $position 0px rgba(0,0,0, .17);

box-shadow: 0px $position 4px 0px rgba(0,0,0,0.16);
}

// Responsive Utilities
Expand Down
2 changes: 1 addition & 1 deletion styles/components/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin-top: ($dropdown-arrow-size * 2);

> .menu {
@include drop-shadow;
@include drop-shadow("top");
position: relative;
padding: ($padding-x / 2) 0;
min-width: 160px;
Expand Down

0 comments on commit 0353df5

Please sign in to comment.