Created
January 31, 2020 09:15
-
-
Save yousufansa/320611b940c0aee791a22e70d3b20fc1 to your computer and use it in GitHub Desktop.
Vodi - Display Cast & Crew Tab on Single TV Show
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
add_action( 'masvideos_after_single_tv_show_summary', 'masvideos_template_single_tv_show_cast_crew_tabs', 20 ); |
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
.single-tv_show .tv-show-cast-crew-tabs { | |
margin-bottom: 50px; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs ul.nav { | |
margin-bottom: 25px; | |
overflow: auto; | |
flex-wrap: nowrap; | |
} | |
@media (min-width: 768px) { | |
.single-tv_show .tv-show-cast-crew-tabs ul.nav { | |
overflow: initial; | |
} | |
} | |
@media (max-width: 767.98px) { | |
.single-tv_show .tv-show-cast-crew-tabs ul.nav li { | |
flex-shrink: 0; | |
} | |
} | |
.single-tv_show .tv-show-cast-crew-tabs ul.nav li a { | |
font-size: 14px; | |
font-weight: 600; | |
border-radius: 5px; | |
padding: 6.5px 30.5px; | |
background: #323846; | |
line-height: 18px; | |
font-family: "Montserrat", "Open Sans", sans-serif; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs ul.nav li a.active { | |
color: #1c212e; | |
background-color: #24baef; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs ul.nav li+li { | |
margin-left: 10px; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crews-category-title { | |
display: none; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast .person-name, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew .person-name { | |
font-family: "Open Sans", sans-serif; | |
font-size: 15px; | |
margin-bottom: 0; | |
} | |
@media (max-width: 767.98px) { | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast+.tv-show-cast, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew+.tv-show-crew, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crews+.tv-show-crews { | |
margin-top: 15px; | |
} | |
} | |
@media (min-width: 768px) { | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew { | |
display: flex; | |
flex-wrap: nowrap; | |
align-items: center; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast+.tv-show-cast, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew+.tv-show-crew, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crews+.tv-show-crews { | |
border-top-width: 1px; | |
border-top-style: solid; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast .person-image, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew .person-image { | |
max-width: 4.4%; | |
flex: 0 0 4.4%; | |
margin-right: 27px; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast .person-image img, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew .person-image img { | |
height: 65px; | |
object-fit: cover; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast>a, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew>a { | |
flex: 0 0 50%; | |
max-width: 45%; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast .person-role, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew .person-role { | |
color: #e3e3e3; | |
display: flex; | |
justify-content: space-between; | |
flex-grow: 1; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast .person-role:before, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew .person-role:before { | |
content: "..."; | |
display: inline-block; | |
color: #fff; | |
} | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-cast .tv-show-cast__person-info, | |
.single-tv_show .tv-show-cast-crew-tabs .tab-content .tv-show-crew .tv-show-crew__person-info { | |
display: flex; | |
width: 100%; | |
flex-wrap: wrap; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment