This repository has been archived by the owner on Mar 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated theme handling; removed functionality which kept track of sel…
…ected item
- Loading branch information
dotch
committed
Jul 29, 2014
1 parent
5596a32
commit 1405819
Showing
9 changed files
with
133 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(function () { | ||
|
||
var BrickMenuElementPrototype = Object.create(HTMLElement.prototype); | ||
|
||
// Register the element | ||
window.BrickMenuElement = document.registerElement('brick-menu', { | ||
prototype: BrickMenuElementPrototype | ||
}); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<link rel="stylesheet" href="brick-menu.css"> | ||
<link rel="stylesheet" href="themes/default/default.css"> | ||
<script src="brick-menu.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
$color-alpha = #333; | ||
$color-beta = #FFF; | ||
$color-gamma = #4D4D4D; | ||
$color-delta = #5F5F5F; | ||
$color-epsilon = #858585; | ||
$color-zeta = #A6A6A6; | ||
$color-eta = #C7C7C7; | ||
$color-theta = #E7E7E7; | ||
$color-iota = #F4F4F4; | ||
$button-transition = all 0s; | ||
$button-transition-delay = 300ms; | ||
$dim-micro = 6px; | ||
$dim-small = 14px; | ||
$dim-mega = 60px; | ||
$highlight-color = #000; | ||
|
||
// TODO: icons + icon sizing | ||
|
||
brick-menu { | ||
|
||
padding: 0 $dim-small; | ||
box-sizing: border-box; | ||
& > * { | ||
color: $color-gamma; | ||
padding: $dim-small 0; | ||
border-bottom: 1px solid $color-theta; | ||
&:last-child { | ||
border-bottom: none; | ||
} | ||
} | ||
|
||
&[horizontal] { | ||
padding: $dim-small 0; | ||
& > * { | ||
padding: 0 $dim-small; | ||
border-bottom: none; | ||
border-right: 1px solid $color-theta; | ||
&:last-child { | ||
border-right: none; | ||
} | ||
} | ||
} | ||
|
||
} |