Last active
March 1, 2017 04:41
-
-
Save joshcp/441f2c7a76ce1b3d4002ff86e8273ed3 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
.ampTabContainer { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: space-around; | |
width: 100%; | |
} | |
.tabButton { | |
list-style: none; | |
flex-grow: 1; | |
text-align: center; | |
cursor: pointer; | |
margin-top: 20px; | |
} | |
.tabContent { | |
display: none; /* hide all tab content by default */ | |
width: 100%; | |
order: 4; /* number of tabs + 1 */ | |
border: 1px solid #ccc; | |
padding: 5px; | |
} | |
.tabButton[selected] + .tabContent { | |
display: block; /* show content for the selected tab */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment