Skip to content

Instantly share code, notes, and snippets.

@ln-north
Created July 9, 2017 14:19
Show Gist options
  • Select an option

  • Save ln-north/ca9f51e201e5070039f556d6f488ab85 to your computer and use it in GitHub Desktop.

Select an option

Save ln-north/ca9f51e201e5070039f556d6f488ab85 to your computer and use it in GitHub Desktop.
ニコニコ動画 シンプルダークテーマ【HTML5対応】
html,
body {
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Sans", sans-serif;
background: black;
-webkit-font-smoothing: antialiased;
}
a {
color: #0080ff;
}
body[class] {
padding-top: 60px;
}
.WatchAppContainer-switchToFlash,
.BottomContainer-card:nth-child(n+2),
.FooterContainer,
.VideoMenuContainer,
.MarqueeContainer,
.FeedbackLink {
display: none;
}
#siteHeader {
background: #111;
}
#siteHeader a {
color: #fff;
}
#siteHeader #siteHeaderInner {
width: calc(100% - 80px) !important;
background: #111 !important;
}
.WatchAppContainer {
padding-top: 0;
}
.WatchAppContainer-main {
display: flex;
width: 100% !important;
flex-flow: row wrap;
}
.MainContainer {
order: 0;
margin: 0 auto;
width: calc(100% - 80px);
margin-bottom: 8px;
position: relative;
overflow: hidden;
height: calc( ( 100vw - 384px - 80px) * 9 / 16);
max-height: calc(100vh - 180px);
}
.PlayerContainer {
overflow: visible;
}
.ControllerBoxContainer {
height: auto;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
.ControllerContainer {
position: relative;
}
.ControllerContainer:before {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: calc(100% + 20px);
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
}
.SeekBar {
position: relative;
z-index: 331;
}
.SeekBar,
.ControllerContainer {
opacity: 0;
transition: all .3s ease;
}
.PlayerContainer:hover .SeekBar,
.PlayerContainer:hover .ControllerContainer {
opacity: .8;
transition: all .3s ease;
}
.CommentPostContainer {
position: absolute;
width: 384px;
bottom: 0;
right: 0;
transform: translate(100%, 0);
z-index: 332;
display: flex;
flex-flow: row nowrap;
}
.CommentPostContainer-commandInput {
display: none;
}
.CommentPostContainer-commentInput {
flex-grow: 1;
width: 100%;
}
.CommentPostContainer-postButton button.CommentPostButton {
font-size: 0;
min-width: 80px;
flex-shrink: 0;
}
.CommentPostContainer-postButton button.CommentPostButton:before {
font-size: 12px;
content: "投稿";
}
.MainContainer-player {
width: calc(100% - 384px);
height: 100%;
}
.VideoContainer {
width: 100% !important;
height: 100% !important;
overflow: hidden;
}
.VideoPlayer,
.MainVideoPlayer {
position: relative !important;
}
.MainVideoPlayer {
width: 100%;
height: calc( ( 100vw - 384px - 80px) * 9 / 16);
max-height: calc(100vh - 180px);
}
.MainVideoPlayer:before {
content: "";
display: block;
padding-top: calc(9 / 16 * 100%);
}
video {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100% !important;
height: 100% !important;
}
.ControllerContainer {
z-index: 330;
}
.PlayerPlayTime {
font-family: "Avenir Next";
font-weight: 600;
text-shadow: 0 0 2px rgba(0, 0, 0, .8);
}
.MainContainer-commentPanel {
z-index: 331;
background: #111;
}
.CommentPanelContainer {
position: static;
border-bottom-color: black;
}
.DropDownMenu {
display: none;
}
.CommentPanelMenuContainer {
border-bottom: 0 none;
}
.CommentPanelDataGrid-dataGrid > header {
height: 0;
}
.CommentPanelDataGrid-dataGrid > [class*="___body___"] {
overflow: hidden;
width: 100%;
}
.CommentPanelDataGrid-dataGrid [class*="___table___"] {
overflow: hidden;
width: 100% !important;
}
.CommentPanelDataGrid-dataGrid [class*="___table-row___"] {
display: flex;
flex-flow: row nowrap;
padding: 0 8px 0 12px;
}
.CommentPanelContainer [class*=___table-row___]:hover {
background: rgba(255, 255, 255, .1);
}
.CommentPanelDataGrid-dataGrid [class*="___table-row___"] > [class*="___table-cell___"] {
border: 0 none;
color: #a1adba;
}
.CommentPanelDataGrid-dataGrid [class*="___table-row___"] > [class*="___table-cell___"]:nth-child(1) {
width: 100% !important;
flex-grow: 1 !important;
}
.CommentPanelDataGrid-dataGrid [class*="___table-row___"] > [class*="___table-cell___"]:nth-child(2) {
color: #666;
width: auto !important;
flex-shrink: 0;
margin-left: 8px;
}
.CommentPanelDataGrid-cell {
margin: 0 !important;
padding: 0 !important;
}
.CommentPanelDataGrid-dataGrid [class*="___table-row___"] > [class*="___table-cell___"]:nth-child(n + 3) {
display: none;
}
.HeaderContainer {
order: 1;
display: flex;
flex-flow: row wrap;
padding-top: 0;
width: calc(100% - 80px);
margin: 0 auto;
position: relative;
top: 0;
left: 0;
}
.HeaderContainer-row:first-child {
order: 2;
margin-bottom: 8px;
display: flex;
flex-flow: row nowrap;
width: calc(100% - 384px - 16px);
margin-right: 16px;
}
.VideoDescriptionContainer {
width: calc(100% - 384px - 16px);
margin-right: 16px;
}
.HeaderContainer-videoTitle {
padding: 0;
display: block;
}
.VideoTitle {
line-height: 1.2;
font-size: 32px;
font-weight: 200;
letter-spacing: 0.5px;
color: #fff;
font-feature-settings: "halt";
}
.HeaderContainer-searchBox {
display: none;
}
.VideoDescriptionContainer + * {
order: 0;
display: flex;
flex-flow: row wrap;
align-items: center;
width: calc(100% - 384px);
}
.VideoDescriptionContainer + * > .col-fill {
display: flex;
flex-flow: row wrap;
}
.VideoOwnerInfo-gridCell {
width: auto !important;
}
.ChannelIcon-image,
.VideoOwnerIcon-image {
width: 24px;
height: 24px;
border-radius: 2px;
margin-right: 8px;
}
.FollowButton {
display: none;
}
.ChannelInfo,
.VideoOwnerInfo {
height: auto;
flex-shrink: 0;
display: inline-flex;
flex-flow: row nowrap;
align-items: center;
height: 36px;
}
.ChannelInfo-links,
.VideoOwnerInfo-links {
display: inline-flex;
flex-flow: row nowrap;
align-items: center;
height: 36px;
flex-shrink: 0;
padding: 0;
margin-right: 4px;
}
.VideoOwnerInfo-linkButtons {
position: static;
font-weight: bold;
}
.VideoOwnerUploadedLink {
margin: 0;
margin-left: 4px;
}
.VideoOwnerUploadedLink-button {
border-color: #0080ff;
color: #0080ff;
}
.ChannelInfo-breadcrumbContainer {
display: none;
}
.VideoUploadDateMeta-title,
.VideoViewCountMeta-title,
.CommentCountMeta-title,
.MylistCountMeta-title,
.CategoryRankMeta,
.VideoMetaOverflowMenuContainer {
display: none;
}
.VideoMetaContainer {
height: auto;
}
.VideoMetaContainer > [class*="Meta"] {
border: 0 none;
box-shadow: none;
min-width: 0;
}
.VideoUploadDateMeta-dateTimeLabel {
margin: 0;
}
.VideoUploadDateMeta-dateTimeLabel,
.VideoViewCountMeta-counter,
.CommentCountMeta-counter,
.MylistCountMeta-counter {
margin: 0;
margin-right: 8px;
color: #a1adba;
font-family: "Avenir Next";
}
.VideoUploadDateMeta-dateTimeLabel:after,
.VideoViewCountMeta-counter:after,
.CommentCountMeta-counter:after,
.MylistCountMeta-counter:after {
font-size: 12px;
margin-left: 2px;
font-weight: bold;
opacity: .8;
}
.VideoUploadDateMeta-dateTimeLabel:after {
content: "に投稿";
}
.VideoViewCountMeta-counter:after {
content: "Views";
}
.CommentCountMeta-counter:after {
content: "Comments";
}
.MylistCountMeta-counter:after {
content: "Mylists";
}
.VideoDescriptionContainer {
order: 3;
}
.TagContainer {
order: 1;
width: 384px;
display: inline-flex !important;
flex-flow: row nowrap;
overflow: hidden;
align-items: center;
margin: 0;
height: 36px;
}
.TagContainer {
padding: 0;
}
.TagContainer-area {
display: flex;
flex-flow: row nowrap;
justify-content: flex-end;
width: 100%;
}
.TagContainer-TagEditButtonArea {
display: none;
}
.TagList {
display: inline-flex !important;
flex-flow: row nowrap;
overflow-x: scroll;
padding-top: 20px;
padding-bottom: 8px;
max-width: 100%;
font-feature-settings: "halt";
}
.TagList > li {
white-space: nowrap;
}
.BottomContainer {
order: 2;
}
.TagContainer .ActionButton {
background: transparent;
font-weight: bold;
display: none;
}
.TagContainer .TagItem {
background: transparent;
border: 0 none;
margin: 0;
padding-left: 0;
}
.TagItem + .TagItem {
margin-left: 8px;
}
.TagItem-name {
color: #a1adba !important;
font-weight: normal;
}
.TagItem-name:before {
content: "#";
}
iframe,
BottomContainer-adContainer,
.MiniBannerAdContainer {
display: none;
}
.VideoDescription-html {
color: #99a3ad;
font-size: 16px !important;
}
.VideoDescriptionExpander-switch {
background: linear-gradient(90deg, transparent 0, #000 16%) !important;
color: #0080ff !important;
font-weight: bold !important;
}
.VideoDescriptionExpander-switchExpand:before {
border-top-color: #0080ff !important;
}
.VideoDescriptionExpander-switchCollapse:before {
border-bottom-color: #0080ff !important;
}
.BottomContainer {
display: flex;
flex-flow: column wrap;
padding-top: 0;
width: 384px;
position: absolute;
top: calc( ( 100vw - 384px - 80px) * 9 / 16 + 60px + 8px + 36px + 16px);
right: 40px;
}
.BottomContainer-main {
width: 100%;
padding: 0;
}
.BottomContainer-side {
display: none;
}
.BottomContainer-card {
border-radius: 0;
background: #111;
}
.BottomContainer-cardTitle {
color: #a1adba;
}
.PlaylistShuffleButton,
.PlaylistContinuousInactiveButton {
background: #475463;
color: #a1adba;
}
.PlaylistContinuousInactiveButton,
.PlaylistContinuousActiveButton {
font-size: 0;
}
.PlaylistContinuousInactiveButton:before,
.PlaylistContinuousActiveButton:before {
font-size: 12px;
content: "連続再生";
}
.BottomContainer-cardMain {
padding: 0;
}
.PlaylistContainer {
border-radius: 0 !important;
background-color: #111 !important;
}
.PlaylistPager {
padding: 0;
display: flex;
flex-flow: column nowrap;
}
.PlaylistPager,
.PlaylistCardList {
display: flex;
flex-flow: row wrap;
}
.PlaylistDraggableArea {
width: 100%;
overflow: hidden;
}
.PlaylistCardList {
width: calc(100% + 15px);
padding-right: 15px;
height: calc(72.25px * 8);
overflow-x: hidden;
overflow-y: scroll;
}
.PlaylistPager-inner {
width: 100%;
}
.PlaylistPagerArrowLeftButton,
.PlaylistPagerArrowRightButton {
width: 50%;
height: 28px;
position: static;
transform: translate(0, 0);
fill: #a1adba;
background-color: #111;
padding-top: 6px;
padding-bottom: 6px;
display: none;
}
.PlaylistPager-arrow.is-disabled {
fill: #475463 !important;
}
.PlaylistPagerArrowLeftButton {
order: 0;
padding-right: calc(50% - 20px);
padding-left: 8px;
}
.PlaylistPagerArrowRightButton {
order: 1;
padding-left: calc(50% - 20px);
padding-right: 8px;
}
.PlaylistPager-container {
order: 2;
width: 100%;
}
.PlaylistItemContent,
.PlaylistCardItem {
background: transparent;
width: calc(100% + 15px) !important;
height: auto !important;
margin: 0;
}
.PlaylistItemContent:hover {
background: #000;
}
.RouterLink {
display: flex;
flex-flow: row nowrap;
}
.PlaylistItemContent-thumbnail {
flex-shrink: 0;
width: 100px;
height: calc(100px * 9 / 16);
margin: 0;
}
.PlaylistItemContent-title {
margin-left: 8px;
font-size: 14px;
height: auto;
font-weight: 300;
color: #fff;
font-feature-settings: "halt";
}
.BottomContainer-adContainer {
display: none;
}
@media screen and (max-width: 1200px) {
.siteHeaderNotificationContainer, .siteHeaderNicopo, .siteHeaderHorizon, .siteHeaderHorizon + * {
display: none !important;
}
.TagContainer {
display: none !important;
}
.VideoDescriptionContainer + * {
order: 0;
}
.HeaderContainer-row:first-child {
order: 1;
width: 100%;
margin-right: 0;
margin-bottom: 4px;
}
.VideoDescriptionContainer {
width: 100%;
margin-right: 0;
}
.VideoTitle {
font-size: 24px;
}
.BottomContainer {
position: static;
width: calc(100% - 80px);
margin-top: 16px;
}
.VideoDescriptionContainer + *,
.TagContainer {
width: 100%;
margin-bottom: 0;
}
.VideoDescriptionContainer + * {
margin-bottom: 8px;
}
.ChannelIcon-image,
.VideoOwnerIcon-image {
width: 16px;
height: 16px;
}
.VideoDescriptionContainer + * * {
font-size: 12px !important;
font-weight: 500;
}
.TagContainer-area {
justify-content: flex-end;
}
.PlaylistDraggableArea {
height: 151px;
overflow: hidden;
}
.PlaylistCardList {
flex-flow: row nowrap;
overflow-y: hidden;
overflow-x: scroll;
height: calc(151px + 15px);
padding-bottom: 15px;
}
.PlaylistItemContent {
width: 160px !important;
}
.RouterLink {
flex-flow: column nowrap;
}
.PlaylistItemContent-thumbnail {
width: 144px;
height: calc(144px * 9 / 16);
}
.PlaylistItemContent-title {
margin-left: 0;
width: 144px;
line-height: 18px;
height: 54px;
}
.CommentPostContainer {
width: calc(100 / 70 * 30%);
}
.MainContainer-commentPanel {
width: 30%;
}
.MainContainer {
height: calc( ( 100vw - 30% - 80px) * 9 / 16);
}
.MainVideoPlayer {
height: calc( ( 100vw - 30% - 80px) * 9 / 16);
}
.MainContainer-player {
width: 70%;
}
}
@media screen and (max-width: 880px) {
#siteHeader #siteHeaderInner {
width: calc(100% - 40px) !important;
}
.siteHeaderGlovalNavigation li:nth-child(n + 5) {
display: none;
}
.CommentPanelContainer,
.MainContainer-commentPanel {
display: none;
}
.MainContainer {
height: calc( ( 100vw - 40px) * 9 / 16);
width: calc(100% - 40px);
}
.MainVideoPlayer {
height: calc( ( 100vw - 40px) * 9 / 16);
}
.MainContainer-player {
width: 100%;
}
.BottomContainer,
.HeaderContainer {
width: calc(100% - 40px);
}
}
body.is-fullscreen .MainVideoPlayer,
body.is-fullscreen .MainContainer,
body.is-fullscreen .MainVideoPlayer {
height: 100vh !important;
max-height: 100vh !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment