Created
July 22, 2016 15:16
-
-
Save hellofromtonya/f04b4b44928789fd80641f42d6e7abc9 to your computer and use it in GitHub Desktop.
KnowTheCode.io episode list Sass module
This file contains hidden or 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
| // | |
| // Episodes | |
| //====================== | |
| .episode-header { | |
| text-align: center; | |
| margin: 30px -9999rem 40px; | |
| padding: 20px 9999rem; | |
| background: $titleBannerColor; | |
| } | |
| .episode-list__directory { | |
| //border-bottom: 1px solid #ddd; | |
| margin: 40px 0; | |
| } | |
| .entry-content .episode-list li { | |
| margin-left: 0; | |
| } | |
| .episode-list { | |
| background: $white; | |
| border: 1px solid #ddd; | |
| border-radius: 3px; | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .episode-list__item { | |
| background-color: #e2e2e2; | |
| border-bottom: 1px solid $gray; | |
| //color: #3a3a3a; | |
| font-size: rem(18); | |
| line-height: 1; | |
| padding: 0 25px; | |
| position: relative; | |
| @include align-items(center); | |
| @include display(flex); | |
| @include flex-direction(row); | |
| @include justify-content(flex-end); | |
| font-weight: 400; | |
| &:hover { | |
| background-color: $white; | |
| } | |
| } | |
| .episode-list__index { | |
| color: #9a9a9a; | |
| content: counter(episode-index); | |
| font-size: 12px; | |
| margin-right: 25px; | |
| position: relative; | |
| width: 14px; | |
| display: inline-block; | |
| text-align: right; | |
| } | |
| .episode-list__title { | |
| color: #3a3a3a; | |
| @include flex(1); | |
| @include align-items(center); | |
| -webkit-flex-basis: 200px; | |
| -ms-flex-preferred-size: 200px; | |
| flex-basis: 200px; | |
| a { | |
| color: inherit; | |
| text-decoration: none; | |
| border-bottom: 0; | |
| outline: 0; | |
| font-weight: inherit; | |
| &:only-of-type { | |
| display: block; | |
| padding: 15px 0; | |
| } | |
| &:first-child { | |
| display: inline-block; | |
| padding-top: 15px; | |
| padding-bottom: 5px; | |
| } | |
| &:last-child { | |
| display: block; | |
| padding-bottom: 15px; | |
| } | |
| } | |
| } | |
| .episode-list__free, .episode-list__basic, .episode-list__pro { | |
| margin-left: 15px; | |
| background: $colorFree; | |
| font-size: rem(12); | |
| padding: 3px 4px; | |
| color: $white; | |
| text-transform: lowercase; | |
| } | |
| .episode-list__free { | |
| background-color: $colorFree; | |
| } | |
| .episode-list__basic { | |
| background-color: $colorBasic; | |
| } | |
| .episode-list__pro { | |
| background-color: $colorPro; | |
| } | |
| .episode-list__duration { | |
| -webkit-flex-grow: 1; | |
| -ms-flex-positive: 1; | |
| flex-grow: 1; | |
| text-align: right; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment