Browse Source

css update for night theme

master
filesite 2 months ago
parent
commit
c37a01d956
  1. 8
      themes/beauty/controller/SiteController.php
  2. 2
      themes/beauty/views/site/index.php
  3. 10
      www/css/beauty.css

8
themes/beauty/controller/SiteController.php

@ -324,7 +324,7 @@ Class SiteController extends Controller { @@ -324,7 +324,7 @@ Class SiteController extends Controller {
$imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config']['supportedImageExts'] : array('jpg', 'jpeg', 'png', 'webp', 'gif');
$imgFile = $scanner->getSnapshotImage($realpath, $imgExts);
//支持视频目录
//支持视频、音乐目录
if (empty($imgFile)) {
$videoExts = !empty(FSC::$app['config']['supportedVideoExts']) ? FSC::$app['config']['supportedVideoExts'] : array('mp4', 'mov', 'm3u8');
$firstVideo = $scanner->getSnapshotImage($realpath, $videoExts);
@ -342,6 +342,12 @@ Class SiteController extends Controller { @@ -342,6 +342,12 @@ Class SiteController extends Controller {
$size = 'vm';
Common::saveCacheToFile($cacheKey, compact('url', 'size'), $cacheSubDir);
}
}else {
$audioExts = !empty(FSC::$app['config']['supportedAudioExts']) ? FSC::$app['config']['supportedAudioExts'] : array('mp3');
$firstVideo = $scanner->getSnapshotImage($realpath, $audioExts);
if (!empty($firstVideo)) {
$url = '/img/beauty/audio_icon.jpeg';
}
}
}else {
$url = $imgFile['path'];

2
themes/beauty/views/site/index.php

@ -275,7 +275,7 @@ eof; @@ -275,7 +275,7 @@ eof;
'audio' => '音乐',
);
echo '<ul class="nav nav-tabs ml-1">';
echo '<ul class="nav nav-tabs ml-1 mb-1">';
foreach ($arrShowTypes as $key => $title) {
$showLink = Html::getLinkByParams(FSC::$app['requestUrl'], array('show' => $key, 'page' => 1));
$activedClass = $key == $viewData['showType'] ? 'active' : '';

10
www/css/beauty.css

@ -145,9 +145,9 @@ a:link{text-decoration:none} @@ -145,9 +145,9 @@ a:link{text-decoration:none}
.btn_autoplay{margin:5px}
.audio-list-item .im_img_title{background:none}
.audio-list-item .im_img{width:80%;height:88%;margin:0 auto}
.audio-list-item .title{color:#444;text-wrap:nowrap;white-space:nowrap;text-overflow:ellipsis}
.audio-list-item .duration{bottom:16.5%;left:50%;width:50px;margin-left:-25px}
.audio-list-item .im_img{width:86%;height:86%;margin:0 auto}
.audio-list-item .title{margin-top:5px;color:#444;text-wrap:nowrap;white-space:nowrap;text-overflow:ellipsis}
.audio-list-item .duration{bottom:17.5%;left:50%;width:50px;margin-left:-25px}
.audio-item{background:rgba(7, 7, 7, .1);padding:5px;border-radius:5px}
.audio-item a{display:block}
.audio-item img{float:left;width:60px;height:60px}
@ -173,6 +173,10 @@ a:link{text-decoration:none} @@ -173,6 +173,10 @@ a:link{text-decoration:none}
.lampshow .text_dark a, .lampshow .nav-tabs a{color:#f4f7fd}
.lampshow .othervideos{background-color:inherit}
.lampshow .btn-default{background-color:#CCC}
.lampshow .audio-item{background-color:#333}
.lampshow .audio-item .title{color:#999}
.lampshow .audio-list-item .im_img{opacity:0.65}
.lampshow .audio-list-item .title{color:#999}
@media screen and (max-width: 1199px) {

Loading…
Cancel
Save