ease 皮肤细节
This commit is contained in:
parent
93cd483a2c
commit
6495ae1cbf
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
|
* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, B3log Team
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -13,11 +13,12 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* skin ease style
|
* Skin ease style.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
|
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
|
||||||
* @version 1.0.1.8, Aug 6, 2012
|
* @version 1.0.2.8, Jun 3, 2014
|
||||||
*/
|
*/
|
||||||
/* start base */
|
/* start base */
|
||||||
html, body, div, ul, li {
|
html, body, div, ul, li {
|
||||||
@ -378,6 +379,7 @@ sup {
|
|||||||
|
|
||||||
.article-body ol, .article-body ul {
|
.article-body ol, .article-body ul {
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-body a {
|
.article-body a {
|
||||||
|
4
ease/css/ease.min.css
vendored
4
ease/css/ease.min.css
vendored
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
|
* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, B3log Team
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -76,7 +76,7 @@ sup{font-size:10px;font-weight:normal;-webkit-text-size-adjust:none}
|
|||||||
.article{border-bottom:1px solid #f6f6f6;padding:30px 50px}
|
.article{border-bottom:1px solid #f6f6f6;padding:30px 50px}
|
||||||
.article:hover{border-bottom-color:#ddd;box-shadow:0 0 1px #f6f6f6 inset;background-color:#fcfcfc}
|
.article:hover{border-bottom-color:#ddd;box-shadow:0 0 1px #f6f6f6 inset;background-color:#fcfcfc}
|
||||||
.article-body{line-height:145%;overflow:hidden;word-wrap:break-word;margin-bottom:10px;font-size:14px}
|
.article-body{line-height:145%;overflow:hidden;word-wrap:break-word;margin-bottom:10px;font-size:14px}
|
||||||
.article-body ol,.article-body ul{margin-left:40px}
|
.article-body ol,.article-body ul{margin-left:40px;padding-left:0}
|
||||||
.article-body a{color:#808080;text-decoration:underline}
|
.article-body a{color:#808080;text-decoration:underline}
|
||||||
.article-body a:vidited{color:#9a9a9a}
|
.article-body a:vidited{color:#9a9a9a}
|
||||||
.article-body a:hover{color:#676767}
|
.article-body a:hover{color:#676767}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
|
* Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, B3log Team
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -17,7 +17,7 @@
|
|||||||
* @fileoverview ease js.
|
* @fileoverview ease js.
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
|
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
|
||||||
* @version 1.0.1.5, Jan 29, 2013
|
* @version 1.0.1.6, Nov 28, 2013
|
||||||
*/
|
*/
|
||||||
var goTranslate = function () {
|
var goTranslate = function () {
|
||||||
window.open("http://translate.google.com/translate?sl=auto&tl=auto&u=" + location.href);
|
window.open("http://translate.google.com/translate?sl=auto&tl=auto&u=" + location.href);
|
||||||
@ -147,7 +147,7 @@ var ease = {
|
|||||||
setNavCurrent: function () {
|
setNavCurrent: function () {
|
||||||
$(".nav ul a").each(function () {
|
$(".nav ul a").each(function () {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
if ($this.attr("href") === latkeConfig.servePath + location.pathname) {
|
if ($this.attr("href") === location.href) {
|
||||||
$this.addClass("current");
|
$this.addClass("current");
|
||||||
} else if (/\/[0-9]+$/.test(location.pathname)) {
|
} else if (/\/[0-9]+$/.test(location.pathname)) {
|
||||||
$(".nav ul li")[0].className = "current";
|
$(".nav ul li")[0].className = "current";
|
||||||
@ -237,20 +237,7 @@ var ease = {
|
|||||||
scrollEvent: function () {
|
scrollEvent: function () {
|
||||||
var _it = this;
|
var _it = this;
|
||||||
$(window).scroll(function () {
|
$(window).scroll(function () {
|
||||||
var y = $(window).scrollTop(),
|
var y = $(window).scrollTop();
|
||||||
topH = 0;
|
|
||||||
if ($("#top").css("display") === "block") {
|
|
||||||
topH = $("#top").height();
|
|
||||||
}
|
|
||||||
|
|
||||||
// header event
|
|
||||||
if (y >= _it.headerH + topH) {
|
|
||||||
_it.$nav.css("position", "fixed");
|
|
||||||
_it.$body.css("marginTop", "55px");
|
|
||||||
} else {
|
|
||||||
_it.$nav.css("position" ,"inherit");
|
|
||||||
_it.$body.css("marginTop", "0");
|
|
||||||
}
|
|
||||||
|
|
||||||
// go top icon show or hide
|
// go top icon show or hide
|
||||||
if (y > _it.headerH) {
|
if (y > _it.headerH) {
|
||||||
@ -293,15 +280,6 @@ var ease = {
|
|||||||
$(".article-body").each(function () {
|
$(".article-body").each(function () {
|
||||||
this.innerHTML = Util.replaceEmString($(this).html());
|
this.innerHTML = Util.replaceEmString($(this).html());
|
||||||
});
|
});
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @description 纠正评论滚动位置偏差
|
|
||||||
*/
|
|
||||||
scrollToCmt: function () {
|
|
||||||
if ($(window.location.hash).length == 1) {
|
|
||||||
$(window).scrollTop($(window.location.hash).offset().top - 60);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
5
ease/js/ease.min.js
vendored
5
ease/js/ease.min.js
vendored
File diff suppressed because one or more lines are too long
@ -158,7 +158,6 @@
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
page.load();
|
page.load();
|
||||||
ease.scrollToCmt();
|
|
||||||
// emotions
|
// emotions
|
||||||
page.replaceCommentsEm("#comments .article-body");
|
page.replaceCommentsEm("#comments .article-body");
|
||||||
<#nested>
|
<#nested>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Description: ease skin.
|
# Description: ease skin.
|
||||||
# Version: 1.0.0.5, Apr 26, 2013
|
# Version: 1.0.0.7, Apr 24, 2014
|
||||||
# Author: Liyuan Li
|
# Author: Liyuan Li
|
||||||
# Author: Liang Ding
|
# Author: Liang Ding
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user