Last active
August 29, 2015 14:15
-
-
Save dacap/06b2af2839c31bdab3fb to your computer and use it in GitHub Desktop.
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
tab-text-color: #000000; | |
tab-background { | |
slice: sheet.png 0 0 16 16; | |
} | |
tab-close-icon { | |
slice: sheet.png 16 0 16 16; | |
} | |
tab { | |
layer { | |
image: tab-background; | |
repeat: x; | |
} | |
layer { | |
x: left; | |
y: middle; | |
color: tab-text-color; | |
} | |
/* show close icon only if there is enough space */ | |
layer (tab.width > tab-close-icon.width) { | |
id: close-icon; /* ID to ask for hit-testing */ | |
image: tab-close-icon: | |
x: right; | |
y: middle; | |
margin-right: 8; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment