RiPro主题美化首页模块-添加CMS菜单模块-风格1代码教程 WordPress 第1张

添加模块代码:

查找到
'disabled' => array(
在下方添加
'CmsMenuMod-s1' => 'CMS菜单模块-风格1',

模块设置代码:

查找

——首页模块布局

在下面的));结尾处,添加下面代码。

// CMS菜单模块-风格1设置
CSF::createSection($prefix, array(
    'parent' => 'home_fields',
    'title'  => 'CMS菜单模块-风格1'.$lixui_mod,
    'icon'   => 'fa fa-th-large',
    'description' => ''.$lixui_tip,
    'fields' => array(
        //CMS菜单模块-风格1设置
        array(
            'id'         => 'is_cmsmenumods1_lixui',
            'type'       => 'switcher',
            'help'       => '有问题访问官网 WWW.LIITK.COM 或联系 QQ1576384173',
            'title'      => 'CMS菜单模块-风格1',
            'label'      => '首页CMS菜单模块-风格1设置,自适应显示',
            'default'    => true,
        ),
        //CMS菜单模块-风格1方块按钮设置
        array(
            'id'         => 'site_cmsmenumods1_lixui',
            'type'       => 'fieldset',
            'title'      => 'CMS菜单模块-风格1设置方块按钮',
            'fields'     => array(
                array(
                    'id'         => 'cms1_an_icon',
                    'type'       => 'icon',
                    'title'      => '按钮图标①',
                    'default'    => 'fa fa-desktop',
                ),
				array(
                    'id'         => 'cms1_an_text',
                    'type'       => 'text',
                    'title'      => '按钮标题①',
                    'default'    => '标题文本①',
                ),
				array(
                    'id'         => 'cms1_an_link',
                    'type'       => 'text',
                    'title'      => '按钮链接①',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_an2_icon',
                    'type'       => 'icon',
                    'title'      => '按钮图标②',
                    'default'    => 'fa fa-book',
                ),
				array(
                    'id'         => 'cms1_an2_text',
                    'type'       => 'text',
                    'title'      => '按钮标题②',
                    'default'    => '标题文本②',
                ),
				array(
                    'id'         => 'cms1_an2_link',
                    'type'       => 'text',
                    'title'      => '按钮链接②',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_an3_icon',
                    'type'       => 'icon',
                    'title'      => '按钮图标③',
                    'default'    => 'fa fa-comments-o',
                ),
				array(
                    'id'         => 'cms1_an3_text',
                    'type'       => 'text',
                    'title'      => '按钮标题③',
                    'default'    => '标题文本③',
                ),
				array(
                    'id'         => 'cms1_an3_link',
                    'type'       => 'text',
                    'title'      => '按钮链接③',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_an4_icon',
                    'type'       => 'icon',
                    'title'      => '按钮图标④',
                    'default'    => 'fa fa-bullhorn',
                ),
				array(
                    'id'         => 'cms1_an4_text',
                    'type'       => 'text',
                    'title'      => '按钮标题④',
                    'default'    => '标题文本④',
                ),
				array(
                    'id'         => 'cms1_an4_link',
                    'type'       => 'text',
                    'title'      => '按钮链接④',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_an5_icon',
                    'type'       => 'icon',
                    'title'      => '按钮图标⑤',
                    'default'    => 'fa fa-users',
                ),
				array(
                    'id'         => 'cms1_an5_text',
                    'type'       => 'text',
                    'title'      => '按钮标题⑤',
                    'default'    => '标题文本⑤',
                ),
				array(
                    'id'         => 'cms1_an5_link',
                    'type'       => 'text',
                    'title'      => '按钮链接⑤',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_an6_icon',
                    'type'       => 'icon',
                    'title'      => '按钮图标⑥',
                    'default'    => 'fa fa-diamond',
                ),
				array(
                    'id'         => 'cms1_an6_text',
                    'type'       => 'text',
                    'title'      => '按钮标题⑥',
                    'default'    => '标题文本⑥',
                ),
				array(
                    'id'         => 'cms1_an6_link',
                    'type'       => 'text',
                    'title'      => '按钮链接⑥',
                    'default'    => '#',
                ),
           ),
            'dependency' => array('is_cmsmenumods1_lixui', '==', 'true'),
        ),
		//CMS菜单模块-风格1设置最新发布按钮
		array(
            'id'         => 'site_cmsmenumods1_lixui',
            'type'       => 'fieldset',
            'title'      => 'CMS菜单模块-风格1设置最新发布按钮',
            'fields'     => array(
                array(
                    'id'         => 'cms1_xfb1_text',
                    'type'       => 'text',
                    'title'      => '发布标题',
                    'default'    => '最新发布',
                ),
				array(
                    'id'         => 'cms1_xfb1_link',
                    'type'       => 'text',
                    'title'      => '标题链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_xfb2_text',
                    'type'       => 'text',
                    'title'      => '右上角按钮',
                    'default'    => 'LIXUI',
                ),
				array(
                    'id'         => 'cms1_xfb2_link',
                    'type'       => 'text',
                    'title'      => '右上角链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_xfb3_text',
                    'type'       => 'text',
                    'title'      => '今日更新标题',
                    'default'    => '今日发布',
                ),
				array(
                    'id'         => 'cms1_xfb3_link',
                    'type'       => 'text',
                    'title'      => '今日更新链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_xfb3_img',
                    'type'       => 'upload',
                    'title'      => '今日更新图片地址',
                        'default'    => '/wp-content/themes/lixui-chlid/assets/images/lixui-cms1-jrfb.png',
                ),
				array(
                    'id'         => 'cms1_xfb4_text',
                    'type'       => 'text',
                    'title'      => '本周更新标题',
                    'default'    => '本周发布',
                ),
				array(
                    'id'         => 'cms1_xfb4_link',
                    'type'       => 'text',
                    'title'      => '本周更新链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_xfb4_img',
                    'type'       => 'upload',
                    'title'      => '本周更新图片地址',
                    'default'    => '/wp-content/themes/lixui-chlid/assets/images/lixui-cms1-bzfb.png',
                ),
           ),
            'dependency' => array('is_cmsmenumods1_lixui', '==', 'true'),
        ),
		//CMS菜单模块-风格1设置图文按钮
		array(
            'id'         => 'site_cmsmenumods1_lixui',
            'type'       => 'fieldset',
            'title'      => 'CMS菜单模块-风格1设置图文按钮',
            'fields'     =>array(
                array(
                    'id'         => 'cms1_twan1_text',
                    'type'       => 'text',
                    'title'      => '顶栏标题',
                    'default'    => '标题文本',
                ),
				array(
                    'id'         => 'cms1_twan1_link',
                    'type'       => 'text',
                    'title'      => '标题链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_twan2_text',
                    'type'       => 'text',
                    'title'      => '右上角按钮',
                    'default'    => 'LIXUI',
                ),
				array(
                    'id'         => 'cms1_twan2_link',
                    'type'       => 'text',
                    'title'      => '右上角链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_twan3_text',
                    'type'       => 'text',
                    'title'      => '第一张图标题',
                    'default'    => '标题文本',
                ),
				array(
                    'id'         => 'cms1_twan3_link',
                    'type'       => 'text',
                    'title'      => '第一张图链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_twan3_img',
                    'type'       => 'upload',
                    'title'      => '第一张图地址',
                    'default'    => '/wp-content/themes/lixui-chlid/assets/images/lixui-cms1-wzjs.png',
                ),
				array(
                    'id'         => 'cms1_twan4_text',
                    'type'       => 'text',
                    'title'      => '第二张图标题',
                    'default'    => '标题文本',
                ),
				array(
                    'id'         => 'cms1_twan4_link',
                    'type'       => 'text',
                    'title'      => '第二张图链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_twan4_img',
                    'type'       => 'upload',
                    'title'      => '第二张图地址',
                    'default'    => '/wp-content/themes/lixui-chlid/assets/images/lixui-cms1-seoyh.png',
                ),
           ),
            'dependency' => array('is_cmsmenumods1_lixui', '==', 'true'),
        ),
		//CMS菜单模块-风格1设置公告资讯栏目
		array(
            'id'         => 'site_cmsmenumods1_lixui',
            'type'       => 'fieldset',
            'title'      => 'CMS菜单模块-风格1设置公告资讯栏目',
            'fields'     => array(
                array(
                    'id'         => 'cms1_ggzx1_text',
                    'type'       => 'text',
                    'title'      => '顶栏标题',
                    'default'    => '公告资讯',
                ),
				array(
                    'id'         => 'cms1_ggzx1_link',
                    'type'       => 'text',
                    'title'      => '标题链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_ggzx2_text',
                    'type'       => 'text',
                    'title'      => '右上角按钮',
                    'default'    => 'MORE',
                ),
				array(
                    'id'         => 'cms1_ggzx2_link',
                    'type'       => 'text',
                    'title'      => '右上角链接',
                    'default'    => '#',
                ),
				array(
                    'id'         => 'cms1_ggzx3_text',
                    'type'       => 'text',
                    'title'      => '公告资讯标题①',
                    'default'    => '标题文本①',
                ),
				array(
                    'id'         => 'cms1_ggzx33_text',
                    'type'       => 'text',
                    'title'      => '公告资讯副标题①',
                    'default'    => '右边文本①',
                ),
				array(
                    'id'         => 'cms1_ggzx3_link',
                    'type'       => 'text',
                    'title'      => '资讯标题链接①',
                    'default'    => '#',
                ),
								array(
                    'id'         => 'cms1_ggzx4_text',
                    'type'       => 'text',
                    'title'      => '公告资讯标题②',
                    'default'    => '标题文本②',
                ),
				array(
                    'id'         => 'cms1_ggzx44_text',
                    'type'       => 'text',
                    'title'      => '公告资讯副标题②',
                    'default'    => '右边文本②',
                ),
				array(
                    'id'         => 'cms1_ggzx4_link',
                    'type'       => 'text',
                    'title'      => '资讯标题链接②',
                    'default'    => '#',
                ),
								array(
                    'id'         => 'cms1_ggzx5_text',
                    'type'       => 'text',
                    'title'      => '公告资讯标题③',
                    'default'    => '标题文本③',
                ),
				array(
                    'id'         => 'cms1_ggzx55_text',
                    'type'       => 'text',
                    'title'      => '公告资讯副标题③',
                    'default'    => '右边文本③',
                ),
				array(
                    'id'         => 'cms1_ggzx5_link',
                    'type'       => 'text',
                    'title'      => '资讯标题链接③',
                    'default'    => '#',
                ),
								array(
                    'id'         => 'cms1_ggzx6_text',
                    'type'       => 'text',
                    'title'      => '公告资讯标题④',
                    'default'    => '标题文本④',
                ),
				array(
                    'id'         => 'cms1_ggzx66_text',
                    'type'       => 'text',
                    'title'      => '公告资讯副标题④',
                    'default'    => '右边文本④',
                ),
				array(
                    'id'         => 'cms1_ggzx6_link',
                    'type'       => 'text',
                    'title'      => '资讯标题链接④',
                    'default'    => '#',
                ),
           ),
            'dependency' => array('is_cmsmenumods1_lixui', '==', 'true'),
        ),
        
    ),
));

模块文件代码:

CmsMenuMod-s1.php,自行创建然后上传至ripro/parts/home-mode目录下。

<?php /*CMS菜单模块-风格1*/
$site_cmsmenumods1_lixui = _cao('site_cmsmenumods1_lixui');
if (is_array($site_cmsmenumods1_lixui)  && _cao('is_cmsmenumods1_lixui') ) : ?>
<div class="home-first-screen"><div class="container">
<div class="parts row">

<div class="col-sm-6 col-md-3 part-first">
<div class="home-first-part home-menus">
<ul>
<li>
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_an_link']; ?>" target="_blank">
<i class="fa <?php echo $site_cmsmenumods1_lixui['cms1_an_icon']; ?> icoid1"></i>
<span><?php echo $site_cmsmenumods1_lixui['cms1_an_text']; ?></span></a>
</li> 

<li>
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_an2_link']; ?>" target="_blank">
<i class="fa <?php echo $site_cmsmenumods1_lixui['cms1_an2_icon']; ?> icoid1"></i>
<span><?php echo $site_cmsmenumods1_lixui['cms1_an2_text']; ?></span></a>
</li>

<li>
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_an3_link']; ?>" target="_blank">
<i class="fa <?php echo $site_cmsmenumods1_lixui['cms1_an3_icon']; ?> icoid1"></i>
<span><?php echo $site_cmsmenumods1_lixui['cms1_an3_text']; ?></span></a>
</li>

<li>
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_an4_link']; ?>" target="_blank">
<i class="fa <?php echo $site_cmsmenumods1_lixui['cms1_an4_icon']; ?> icoid1"></i>
<span><?php echo $site_cmsmenumods1_lixui['cms1_an4_text']; ?></span></a>
</li>

<li>
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_an5_link']; ?>" target="_blank">
<i class="fa <?php echo $site_cmsmenumods1_lixui['cms1_an5_icon']; ?> icoid1"></i>
<span><?php echo $site_cmsmenumods1_lixui['cms1_an5_text']; ?></span></a>
</li>

<li>
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_an6_link']; ?>" target="_blank">
<i class="fa <?php echo $site_cmsmenumods1_lixui['cms1_an6_icon']; ?> icoid1"></i>
<span><?php echo $site_cmsmenumods1_lixui['cms1_an6_text']; ?></span></a>
</li>

</ul>
</div>
</div>

<div class="col-sm-6 col-md-3">
<div class="home-first-part home-topics">
<h2 class="hf-title"><strong><a href="<?php echo $site_cmsmenumods1_lixui['cms1_xfb1_link']; ?>"><?php echo $site_cmsmenumods1_lixui['cms1_xfb1_text']; ?></a></strong><a href="<?php echo $site_cmsmenumods1_lixui['cms1_xfb2_link']; ?>" target="_blank" class="more"><?php echo $site_cmsmenumods1_lixui['cms1_xfb2_text']; ?></a></h2>
<div class="items">
<div class="row">
<div class="col-xs-6">
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_xfb3_link']; ?>"><span class="thumb" style="background-image:url(<?php echo $site_cmsmenumods1_lixui['cms1_xfb3_img']; ?>)"><img src="<?php echo $site_cmsmenumods1_lixui['cms1_xfb3_img']; ?>" alt="<?php echo $site_cmsmenumods1_lixui['cms1_xfb3_text']; ?>"></span><strong class="title"><?php echo $site_cmsmenumods1_lixui['cms1_xfb3_text']; ?>:<?php echo WeeklyUpdate();?>&nbsp;篇</strong></a>
</div>
<div class="col-xs-6">
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_xfb4_link']; ?>"><span class="thumb" style="background-image:url(<?php echo $site_cmsmenumods1_lixui['cms1_xfb4_img']; ?>)"><img src="<?php echo $site_cmsmenumods1_lixui['cms1_xfb4_img']; ?>" alt="<?php echo $site_cmsmenumods1_lixui['cms1_xfb4_text']; ?>"></span><strong class="title"><?php echo $site_cmsmenumods1_lixui['cms1_xfb4_text']; ?>:<?php echo get_week_post_count(); ?>&nbsp;篇</strong></a>
</div>
</div>
</div>
</div>
</div>

<div class="col-sm-6 col-md-3">
<div class="home-first-part home-subjects">
<h2 class="hf-title"><strong><a href="<?php echo $site_cmsmenumods1_lixui['cms1_twan1_link']; ?>"><?php echo $site_cmsmenumods1_lixui['cms1_twan1_text']; ?></a></strong><a href="<?php echo $site_cmsmenumods1_lixui['cms1_twan2_link']; ?>" target="_blank" class="more"><?php echo $site_cmsmenumods1_lixui['cms1_twan2_text']; ?></a></h2>
<div class="items">
<div class="row">
<div class="col-xs-6">
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_twan3_link']; ?>" target="_blank"><span class="thumb" style="background-image:url(<?php echo $site_cmsmenumods1_lixui['cms1_twan3_img']; ?>)"><img src="<?php echo $site_cmsmenumods1_lixui['cms1_twan3_img']; ?>" alt="<?php echo $site_cmsmenumods1_lixui['cms1_twan3_text']; ?>"></span><strong class="title"><?php echo $site_cmsmenumods1_lixui['cms1_twan3_text']; ?></strong></a>
</div>
<div class="col-xs-6">
<a href="<?php echo $site_cmsmenumods1_lixui['cms1_twan4_link']; ?>" target="_blank"><span class="thumb" style="background-image:url(<?php echo $site_cmsmenumods1_lixui['cms1_twan4_img']; ?>)"><img src="<?php echo $site_cmsmenumods1_lixui['cms1_twan4_img']; ?>" alt="<?php echo $site_cmsmenumods1_lixui['cms1_twan4_text']; ?>"></span><strong class="title"><?php echo $site_cmsmenumods1_lixui['cms1_twan4_text']; ?></strong></a>
</div>

</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="home-first-part home-course">
<h2 class="hf-title"><strong><a href="<?php echo $site_cmsmenumods1_lixui['cms1_ggzx1_link']; ?>" target="_blank"><?php echo $site_cmsmenumods1_lixui['cms1_ggzx1_text']; ?></a></strong><a href="<?php echo $site_cmsmenumods1_lixui['cms1_ggzx2_link']; ?>" target="_blank" class="more"><?php echo $site_cmsmenumods1_lixui['cms1_ggzx2_text']; ?></a></h2>
<div class="courses">
<div class="course-items">
<ul>
<li><a href="<?php echo $site_cmsmenumods1_lixui['cms1_ggzx3_link']; ?>" target="_blank"><strong><?php echo $site_cmsmenumods1_lixui['cms1_ggzx3_text']; ?></strong><span><?php echo $site_cmsmenumods1_lixui['cms1_ggzx33_text']; ?></span></a></li>
<li><a href="<?php echo $site_cmsmenumods1_lixui['cms1_ggzx4_link']; ?>" target="_blank"><strong><?php echo $site_cmsmenumods1_lixui['cms1_ggzx4_text']; ?></strong><span><?php echo $site_cmsmenumods1_lixui['cms1_ggzx44_text']; ?></span></a></li>
<li><a href="<?php echo $site_cmsmenumods1_lixui['cms1_ggzx5_link']; ?>" target="_blank"><strong><?php echo $site_cmsmenumods1_lixui['cms1_ggzx5_text']; ?></strong><span><?php echo $site_cmsmenumods1_lixui['cms1_ggzx55_text']; ?></span></a></li>
<li><a href="<?php echo $site_cmsmenumods1_lixui['cms1_ggzx6_link']; ?>" target="_blank"><strong><?php echo $site_cmsmenumods1_lixui['cms1_ggzx6_text']; ?></strong><span><?php echo $site_cmsmenumods1_lixui['cms1_ggzx66_text']; ?></span></a></li>

</ul>
</div></div></div></div></div></div></div>
<?php endif; ?>

CSS:

/* 首页CMS菜单模块-风格1开始 */
/*1*/
.home-first-screen .home-course li strong {
	font-weight: 400
}
.home-first-screen .home-course li span {
	position: absolute;
	right: 0;
	top: 0;
	font-size: 12px;
	display: inline-block;
	padding: 0 10px;
	line-height: 20px;
	background: #fbedd8;
	border-radius: 3px;
	color: #e2b46d;
}
.home-first-screen .home-menus ul {
	margin: 0;
	list-style: none;
	overflow: hidden;
	padding-left: 0px;
}
.home-first-screen .home-menus li {
	float: left;
	width: 33.33333333%;
	text-align: center
}
.home-first-screen .home-menus a {
	display: block;
	text-align: center;
	font-size: 14px;
	color: #FF6633;
	position: relative;
	line-height: 1.5;
	padding: 14px 5px 10px 5px;
	box-sizing: border-box;
	height: 83px;
	transition: all .1s
}
.home-first-screen .home-menus a:hover {
    background: linear-gradient(-125deg,#FF9900 0%, #FF3300 100%);
    color: #fff
}
.home-first-screen .home-menus a:hover i {
	color: #fff
}
.home-first-screen .home-menus a:hover:after,
.home-first-screen .home-menus a:hover:before {
	display: none;
	visibility: hidden
}
.home-first-screen .home-menus a svg {
	font-size: 22px;
	line-height: 1.9
}
@media (min-width:768px) {
	.home-first-screen .home-menus a svg {
		font-size: 24px;
		line-height: 1.3
	}
}
.home-first-screen .home-menus a span {
	display: block;
	line-height: 2;
	margin-top: 5px;
}
.home-first-screen .home-menus li:nth-child(1) a:before,
.home-first-screen .home-menus li:nth-child(2) a:before,
.home-first-screen .home-menus li:nth-child(4) a:before,
.home-first-screen .home-menus li:nth-child(5) a:before {
	content: '';
	display: block;
	position: absolute;
	right: 0;
	bottom: 0;
	height: 85%;
	border-right: 1px solid #eee
}
.home-first-screen .home-menus li:nth-child(4) a:before,
.home-first-screen .home-menus li:nth-child(5) a:before {
	bottom: auto;
	top: 0
}
.home-first-screen .home-menus li:nth-child(1) a:after,
.home-first-screen .home-menus li:nth-child(2) a:after,
.home-first-screen .home-menus li:nth-child(3) a:after {
	content: '';
	display: block;
	position: absolute;
	right: 0;
	bottom: 0;
	width: 85%;
	border-bottom: 1px solid #ddd
}
.home-first-screen .home-menus li:nth-child(2) a:after {
	width: 100%
}
.home-first-screen .home-menus li:nth-child(3) a:after {
	right: auto;
	left: 0
}
@media (min-width:768px) {
	.home-first-screen .parts .home-first-part {
		height: 168px
	}
	.home-first-screen .parts .items a {
		height: 130px;
		overflow: hidden
	}
	.home-first-screen .parts .items a strong {
		font-size: 14px;
		padding-top: 3px
	}
	.home-first-screen .dubao {
		padding: 11px 20px 24px 28px
	}
	.home-first-screen .dubao h3 {
		padding: 0 24px 0 0;
		margin-right: 10px
	}
	.home-first-screen .dubao .cont span {
		border-right: 1px solid #ddd
	}
	.home-first-screen .dubao .cont span:last-child {
		border-right: none
	}
}
@media (min-width:992px) {
	.home-first-screen {
		padding: 20px 0 20px
	}
	.home-first-screen .parts .col-md-3 {
		width: 24.998814%;
	}
	.home-first-screen .parts .col-md-3.part-first {
		width: 24.893559%;
	}
	.home-first-screen .images .item1 {
		width: 52.54237288%
	}
	.home-first-screen .images .item2 {
		width: 47.45762711%
	}
}
.icon {
	width: 1.5em;
	height: 1.15em;
	vertical-align: -0.25em;
	fill: currentColor;
	overflow: hidden;
}
/*2/3*/
.col-xs-6 {
	width: 50%
}
.home-first-screen {
	background-color: #fff;
}
.home-first-screen .images,
.home-first-screen .parts {
	margin-bottom: 0;
	position: relative
}
.home-first-screen .dubao {
	position: relative;
	margin-bottom: 5px
}
@media (min-width:768px) {
	.home-first-screen .dubao {
		margin-bottom: 10px
	}
}
.home-first-screen .row {
	padding: 10px 0 10px;
	margin-left: -5px;
	margin-right: -5px
}
.home-first-screen .col-md-3,
.home-first-screen .col-md-6,
.home-first-screen .col-xs-6 {
	padding-left: 5px;
	padding-right: 5px;
}
.home-first-screen .thumb {
	display: block;
	width: 100%;
	padding-top: 62.22222222%;
	border-radius: 3px;
	overflow: hidden;
	position: relative;
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover
}
.home-first-screen .thumb:after {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	padding-top: 100%;
	background: rgba(0, 0, 0, .2);
	opacity: 0;
	visibility: hidden;
	transition: all .2s
}
.home-first-screen .thumb.bigOne {
	padding-top: 56.72131148%
}
.home-first-screen .thumb img {
	display: none
}
.home-first-screen .items .thumb {
	padding-top: 58.82352941%
}
.home-first-screen .images .col-md-6,
.home-first-screen .images .col-xs-6 {
	margin-bottom: 10px
}
.home-first-screen .images .item2 {
	margin-bottom: 0
}
.home-first-screen .images a {
	display: block;
	position: relative
}
.home-first-screen .images a strong {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: .4em .8em .6em;
	font-size: 12px;
	color: #dadada;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1.3;
	background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .6) 100%);
	background-image: -o-linear-gradient(top, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .6) 100%);
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, .2) 0, rgba(0, 0, 0, .6) 100%);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33000000', endColorstr='#99000000', GradientType=0);
	box-shadow: 0 -7px 15px rgba(0, 0, 0, .2);
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}
@media (min-width:768px) {
	.home-first-screen .images a strong {
		font-size: 14px;
		line-height: 1.4;
		font-weight: 400
	}
}
.vitara_slide_in .vitara_slide ul li h3 .label {
	border-radius: 3px;
	padding: 2px 2px 2px 4px;
	font-size: 12px;
	font-weight: 700
}
.vitara_slide_in .vitara_slide ul li h3 .label {
	background: #fff;
	color: #525252;
	margin-right: 10px;
	text-shadow: 0 1px 1px #eee;
	box-shadow: 0 1px 1px #666;
	-moz-box-shadow: 0 1px 1px #666;
	-webkit-box-shadow: 0 1px 1px #666;
	padding: 2px 2px 2px 4px
}
.vitara_slide_in .vitara_slide ul li h3 {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	padding: 20px;
	margin: 0;
	font-size: 16px;
	color: #fff;
	text-align: left;
	font-weight: 700;
	text-shadow: 0 1px 3px #525252;
	box-sizing: border-box;
	background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), rgba(0, 0, 0, .3));
	background: -moz-linear-gradient(top, rgba(255, 255, 255, 0), rgba(0, 0, 0, .3));
	background: -o-linear-gradient(top, rgba(255, 255, 255, 0), rgba(0, 0, 0, .3));
	background: linear-gradient(top, rgba(255, 255, 255, 0), rgba(0, 0, 0, .3))
}
.home-first-screen a:hover .thumb:after {
	visibility: visible;
	opacity: 1
}
.home-first-screen .dubao {
	background: #fff;
	padding: 12px 10px 24px;
	height: 14px;
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .1);
	overflow: hidden
}
.home-first-screen .dubao h3 {
	float: left;
	font-size: 14px;
	color: #4bbbfa;
	font-weight: 400;
	line-height: 14px;
	padding: 0 10px 0 0;
	border-right: 1px solid #eee
}
.home-first-screen .dubao h3 a {
	color: #4bbbfa
}
.home-first-screen .dubao h3 a:hover {
	color: #FFF
}
/*4*/
.home-first-screen .dubao .cont {
	height: 14px;
	overflow: hidden;
	position: relative
}
.home-first-screen .dubao .cont a {
	display: block;
	line-height: 14px;
	color: #606060;
	font-size: 12px;
	transition: all .5s;
	position: absolute;
	left: 0;
	top: 0
}
.home-first-screen .dubao .cont a:hover {
	color: #000
}
.home-first-screen .dubao .cont a span {
	display: inline-block;
	padding: 0 15px;
	white-space: nowrap
}
.home-first-screen .parts .hf-title {
	font-size: 12px;
	padding: 10px 0 20px;
	margin-bottom: 0;
	height: 16px;
	overflow: hidden;
	position: relative
}
.home-first-screen .parts .hf-title strong {
	color: #525252;
	margin-right: 5px;
	font-size: 16px;
	margin-left: 10px
}
.home-first-screen .parts .hf-title strong:before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 16px;
	vertical-align: middle;
	background: #FF3300;
	margin-right: 6px;
	margin-top: -2px
}
.home-first-screen .parts .hf-title strong a {
	font-weight: 400;
	color: #555
}
.home-first-screen .parts .hf-title span {
	font-weight: 400;
	color: #d5d5d5
}
.home-first-screen .parts .hf-title .more {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 10px;
    text-transform: uppercase;
    padding: 0 5px 0;
    border-radius: 3px;
    border: 1px solid #FF9900;
    color: #FF9900;
    font-weight: 400;
}
.home-first-screen .parts .hf-title .more:hover {
    color: #fff;
    background: #FF3300;
    border-color: #FF9900
}
.home-first-screen .parts .home-first-part {
	background: #fff;
	margin-bottom: 10px;
	border: 1px solid #f2f2f2;
	box-shadow: 0 4px 12px 0 rgba(52,73,94,0.1);
}
.home-first-screen .parts .items {
	padding: 13px 9px 26px;
}
.home-first-screen .parts .items .col-md-6 {
	margin-bottom: 7px
}
.home-first-screen .parts .items a {
	display: block
}
.home-first-screen .parts .items .thumb {
	margin-bottom: 0px
}
.home-first-screen .parts .items strong {
	color: #606060
}
.home-first-screen .parts .items strong.title {
	display: block;
	line-height: 1.2em;
	font-size: 0.8em;
	height: 1.4em;
	overflow: hidden;
	text-align: center;
	font-weight: 400
}
.home-first-screen .parts .items a:hover strong {
    color: #FF3300
}
.home-first-screen .fanye {
	position: absolute;
	right: 15px;
	top: 14px;
	background: #fff
}
.home-first-screen .fanye .btn {
	display: inline-block;
	border: 1px solid #efefef;
	vertical-align: middle;
	cursor: pointer;
	padding-top: 3px;
	margin-right: -1px
}
.home-first-screen .fanye .btn i {
	vertical-align: text-bottom
}
.home-first-screen .fanye .btn:hover {
	border-color: #4bbbfa;
	background: #4bbbfa;
	color: #fff
}
.home-first-screen .fanye .btn.no,
.home-first-screen .fanye .btn.no:hover {
	cursor: default;
	background: #fff;
	color: #eee;
	border-color: #efefef
}
.home-first-screen .fanye .pages {
	font-size: 14px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 5px;
	margin-top: 4px
}
.home-first-screen .fanye .pages em {
	color: #525252;
	font-style: normal
}
.home-first-screen .home-course .hf-title {
	padding-bottom: 30px;
	border-bottom: 1px solid #ddd;
	position: relative
}
.home-first-screen .home-course .courses {
	margin: 7px 0 10px;
	position: relative;
	height: 120px;
	overflow: hidden
}
.home-first-screen .home-course .course-items {
	overflow: hidden;
	position: absolute;
	left: 0;
	right: 0;
	top: 0
}
.home-first-screen .home-course ul {
	margin: 0 10px 0 12px;
	list-style: none;
	padding-left: 0px;
}
.home-first-screen .home-course li {
    list-style-type: disc;
    list-style-position: inside;
    line-height: 20px;
    height: 20px;
    overflow: hidden;
    position: relative;
    color: #FF3300;
    font-size: 14px;
    margin: 6px 0
}
.home-first-screen .home-course li a {
    color: #FF6633
}
.home-first-screen .home-course li a:hover {
    color: #FF9900
}
/* 首页CMS菜单模块-风格1结束 */

 

发表评论

后才能评论