:root { font: 1em "Ideal Sans A", "Ideal Sans B", "Ideal Sans", sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; } /* entypo */ [class*="entypo-"]:before { font-family: 'entypo', sans-serif; } body{ > div{ padding: 1em 2em; } h1,h2,h3,h4,h5,h6{ border: 0; padding: 0; margin: 0; font-weight: 300; } } .header{ text-align: center; min-height: 320px; @include linear-gradient(90deg, #94719A, #3AC5C9); p, small, h1{ color: #fff; font-weight: 300; } h1{ line-height: 320px; i{ font-weight: 300; } +p{ line-height: 0; margin-top: -(320px/2.6); } } small{ clear: both; width: 100%; display: block; height: 22px; a{color: #eee} } .dot-ico{ position: absolute; top: 1em; left: 1em; } .infos{ opacity: 1; transform: scale(1); -webkit-transition: opacity .3s ease, all .6s ease; background: rgba(black, .7); border-radius: 3px; border: 1px solid rgba(black, .8); width: 100%; max-width: calc(90% - 2em); padding: 1em; position: absolute; top: 1em; left: 5%; float: left; margin: 1em; >h2{ color: #fff; } code{ color: #333 } &.hidden{ opacity: 0; transform: scale(0); -webkit-transition: opacity .3s ease, all .6s ease; } } } // Demos .demos{ max-width: 90%; margin:1em auto; > h2{ margin-bottom: .5em; padding-bottom: .5em; border-bottom: 1px solid darken(#EDECE4, 8%); } section{ header{ width: calc(100% + 2em); padding: 1em 1em; float: left; margin-left: -1em; margin-bottom: 1em; border-bottom: 1px solid darken(#EDECE4, 8%); @include linear-gradient(90deg, #94719A, #3AC5C9); h3{ color: #fff; font-weight: 500; } } &[class*="demo"]{ border-radius: 3px; border: 1px solid darken(#EDECE4, 8%); width: calc(100% - 2em); padding: 1em; padding-top: 0; float: left; margin:1em auto; overflow: hidden; > h3{ margin-bottom: .5em; padding-bottom: .5em; border-bottom: 1px solid darken(#EDECE4, 8%); } } } } .res{ &.hello-world{ background: red; color: #fff; } } footer{ padding-bottom: 1em; width: 100%; float: left; text-align: center; } // ICO .dot-ico{ width: 2em; height: 2em; background: #333; color: #fff; display: block; line-height: 2em; border-radius: 100%; box-shadow:inset 0 1px 0 1px rgba(black, .2),inset 0 -1px 0 1px rgba(white, .1), 0 3px 5px rgba(black, .2); cursor: pointer; transition: all .3s ease; &:active{ transform: scale(.9); } } // Button .button{ background: transparent; &.green{ background: #49BE34; color: #fff; } }