Skip to content

Instantly share code, notes, and snippets.

@al-the-x
Created May 26, 2015 15:31
Show Gist options
  • Select an option

  • Save al-the-x/ba008fef1be644b17456 to your computer and use it in GitHub Desktop.

Select an option

Save al-the-x/ba008fef1be644b17456 to your computer and use it in GitHub Desktop.
/*missing / broken images
body text: cornflower blue
non-default font: ???
tabs!
decorative icons next to each tab
laid out side-by-side (horizontally)
bottom border under all tabs except active
spacing between tabs: ???px / ???pt
active tabs:
top border is heavier
no bottom border
text and icon are cornflower blue
inactive tabs:
text and icons are light gray
border thin and light gray
turn darker when hovered
tabs are centered
only show 3 content sections at a time
show them in a 3 up*/
@media (max-width: 840px){
/*.content-current {
content: "";
display: none;
clear: both;
}*/
.mediabox {
display: block;
float: none;
clear: both;
}
.mediabox img {
float: left;
width: 40%;
clear:left;
}
.mediabox p {
margin-left: 40%;
text-align: left;
clear: right;
float: right;
}
.mediabox:after {
clear: both;
}
span {
display:none;
}
}
body {
font-family: Arial, sans-serif;
color: cornflowerblue;
}
/* ^ represents start*/
@font-face {
font-family: 'typicons';
src: url("bower_components/typicons/src/font/typicons.eot");
src: url("bower_components/typicons/src/font/typicons.eot?#iefix") format('embedded-opentype'),
url("bower_components/typicons/src/font/typicons.woff") format('woff'),
url("bower_components/typicons/src/font/typicons.ttf") format('truetype'),
url("bower_components/typicons/src/font/typicons.svg#typicons") format('svg');
font-weight: normal;
font-style: normal;
}
.content section[id^="section-"] {
display: none;
padding: 1em;
}
.content section[id^="section-"].content-current {
display: block;
}
.content section[id^="section-"]::after {
content: "";
display: table;
clear: both;
}
nav {
height:auto;
}
.content {
margin-top: 2em;
}
.container {
display: block;
}
#tabs nav ul li {
display: inline-block;
font-size: 20pt;
width: 16%;
margin: auto .15em;
border: 1px solid lightgrey;
border-bottom: 1px solid;
border-bottom-color: transparent;
line-height: 2em;
text-align: center;
box-sizing: border-box;
height: 2em;
}
#tabs nav ul li.tab-current {
border-color: cornflowerblue;
border-bottom-color: white;
border-top-width: 3px;
}
#tabs nav ul li.tab-current span {
color: cornflowerblue;
}
.info {
text-align: center;
}
span:hover {
color: darkgrey;
}
span {
text-align: center;
color: lightgrey;
}
nav ul {
text-align: center;
border-bottom: 1px solid lightgrey;
margin-top: 3em;
margin-bottom: -.3em;
}
a {
/*display: block;*/
padding-right: 1.15em;
padding-left: 1.15em;
padding-top: .5em;
padding-bottom: .4em;
text-decoration: none;
line-height: 1.5;
white-space: nowrap;
text-align: center;
}
img {
width: 100%;
}
a:hover {
color: darkgrey;
}
.mediabox {
box-sizing: border-box;
width: 33%;
padding: 1em;
margin: auto;
float: left;
line-height: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment