Skip to content

Commit

Permalink
更新 .net 4.5 Sample 样式文件及 JS 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySu committed Nov 19, 2019
1 parent 0ecf278 commit 8973eb6
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 105 deletions.
200 changes: 100 additions & 100 deletions Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/Site.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ h5, h6 {
padding-bottom: 35px;
}

.main-content {
background: url("../Images/accent.png") no-repeat;
padding-left: 10px;
padding-top: 30px;
}
.main-content {
background: url("../Images/accent.png") no-repeat;
padding-left: 10px;
padding-top: 30px;
}

.featured + .main-content {
background: url("../Images/heroAccent.png") no-repeat;
}
.featured + .main-content {
background: url("../Images/heroAccent.png") no-repeat;
}

header .content-wrapper {
padding-top: 20px;
padding-top: 20px;
}

footer {
Expand All @@ -137,12 +137,12 @@ footer {
margin: 0;
}

.site-title a, .site-title a:hover, .site-title a:active {
background: none;
color: #c8c8c8;
outline: none;
text-decoration: none;
}
.site-title a, .site-title a:hover, .site-title a:active {
background: none;
color: #c8c8c8;
outline: none;
text-decoration: none;
}


/* login
Expand All @@ -162,12 +162,12 @@ footer {
text-decoration: none;
}

#login a.username {
background: none;
margin: 0;
padding: 0;
text-decoration: underline;
}
#login a.username {
background: none;
margin: 0;
padding: 0;
text-decoration: underline;
}

#login ul {
margin: 0;
Expand Down Expand Up @@ -201,10 +201,10 @@ ul#menu {
text-decoration: none;
}

ul#menu li a:hover {
color: #333;
text-decoration: none;
}
ul#menu li a:hover {
color: #333;
text-decoration: none;
}


/* page elements
Expand All @@ -225,27 +225,27 @@ ul#menu {
padding: 20px 40px 30px 40px;
}

.featured hgroup.title h1, .featured hgroup.title h2 {
color: #fff;
}
.featured hgroup.title h1, .featured hgroup.title h2 {
color: #fff;
}

.featured p {
font-size: 1.1em;
}
.featured p {
font-size: 1.1em;
}

/* page titles */
hgroup.title {
margin-bottom: 10px;
}

hgroup.title h1, hgroup.title h2 {
display: inline;
}
hgroup.title h1, hgroup.title h2 {
display: inline;
}

hgroup.title h2 {
font-weight: normal;
margin-left: 3px;
}
hgroup.title h2 {
font-weight: normal;
margin-left: 3px;
}

/* features */
section.feature {
Expand Down Expand Up @@ -357,12 +357,12 @@ aside {
width: 250px;
}

#loginForm input[type="checkbox"],
#loginForm input[type="submit"],
#loginForm input[type="button"],
#loginForm button {
width: auto;
}
#loginForm input[type="checkbox"],
#loginForm input[type="submit"],
#loginForm input[type="button"],
#loginForm button {
width: auto;
}

#socialLoginForm {
margin-left: 40px;
Expand All @@ -371,7 +371,7 @@ aside {
}

#socialLoginForm h2 {
margin-bottom: 5px;
margin-bottom: 5px;
}

#socialLoginList button {
Expand Down Expand Up @@ -422,9 +422,9 @@ label {
font-weight: 600;
}

label.checkbox {
display: inline;
}
label.checkbox {
display: inline;
}

input, textarea {
border: 1px solid #e2e2e2;
Expand All @@ -445,32 +445,32 @@ textarea {
border: 1px solid #7ac0da;
}

input[type="checkbox"] {
background: transparent;
border: inherit;
width: auto;
}
input[type="checkbox"] {
background: transparent;
border: inherit;
width: auto;
}

input[type="submit"],
input[type="button"],
button {
background-color: #d3dce0;
border: 1px solid #787878;
cursor: pointer;
font-size: 1.2em;
font-weight: 600;
padding: 7px;
margin-right: 8px;
width: auto;
}
input[type="submit"],
input[type="button"],
button {
background-color: #d3dce0;
border: 1px solid #787878;
cursor: pointer;
font-size: 1.2em;
font-weight: 600;
padding: 7px;
margin-right: 8px;
width: auto;
}

td input[type="submit"],
td input[type="button"],
td button {
font-size: 1em;
padding: 4px;
margin-right: 4px;
}
td input[type="submit"],
td input[type="button"],
td button {
font-size: 1em;
padding: 4px;
margin-right: 4px;
}

/* info and errors */
.message-info {
Expand Down Expand Up @@ -548,36 +548,36 @@ th {
position: relative;
}

th a:link, th a:visited, th a:active, th a:hover {
color: #333;
font-weight: 600;
text-decoration: none;
padding: 0;
}
th a:link, th a:visited, th a:active, th a:hover {
color: #333;
font-weight: 600;
text-decoration: none;
padding: 0;
}

th a:hover {
color: #000;
}
th a:hover {
color: #000;
}

th.asc a, th.desc a {
margin-right: .75em;
}

th.asc a:after, th.desc a:after {
display: block;
position: absolute;
right: 0em;
top: 0;
font-size: 0.75em;
}
th.asc a:after, th.desc a:after {
display: block;
position: absolute;
right: 0em;
top: 0;
font-size: 0.75em;
}

th.asc a:after {
content: '▲';
}
th.asc a:after {
content: '▲';
}

th.desc a:after {
content: '▼';
}
th.desc a:after {
content: '▼';
}

td {
padding: 0.25em 2em 0.25em 0em;
Expand Down Expand Up @@ -634,9 +634,9 @@ tr.pager td {
padding: 0;
}

#login a:hover {
color: #333;
}
#login a:hover {
color: #333;
}

/* menu */
nav {
Expand Down Expand Up @@ -701,12 +701,12 @@ tr.pager td {
background: none;
}

/* features */
section.feature {
/* features */
section.feature {
float: none;
padding: 10px;
width: auto;
}
}

section.feature img {
color: #999;
Expand Down
10 changes: 9 additions & 1 deletion Samples/net45-mvc/Senparc.Weixin.MP.Sample/Content/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}

.senparc-jumbotron {
background: url(/images/v2/background.png);
background: url(../images/v2/background.png);
width: 100%;
padding: 28px 0 0 0;
}
Expand Down Expand Up @@ -205,6 +205,10 @@
clear: left;
}*/

a.qqGroup_tip {
text-decoration: underline;
}

.catalog {
background: #E7EEF1;
text-align: center;
Expand Down Expand Up @@ -1237,6 +1241,10 @@ p.crowdfunding-note {
}

@media screen and (min-width:375px) and (max-width:767px) {
#noticearea {
display: none;
}

.content {
max-width: 100%;
}
Expand Down
12 changes: 9 additions & 3 deletions Samples/net45-mvc/Senparc.Weixin.MP.Sample/Scripts/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(function () {
});

var noticeareaHeight = $('#noticearea').height();
var noticeareaHeight_shrink = noticeareaHeight * 2 / 4;
var noticeareaHeight_shrink = noticeareaHeight * 2 / 3;
$('#noticearea').animate({ height: noticeareaHeight_shrink }, 1000);
$('#noticearea').hover(function () {
if (noticeareaHeightChanging) {
Expand Down Expand Up @@ -47,11 +47,17 @@ function loadQQGroups() {

$('<li>').addClass('contatc-name').html('&nbsp; ').insertAfter($('#qqGroups li.contatc-img').eq(8));//在第9个元素后追加



$('#contact-content li.contact-qq').darkTooltip({
theme: 'light'
});

$('ins div:contains(SCF)').each(function (i, item) {
$(this).html($(this).html().replace('SCF', '<a href="https://github.com/SenparcCoreFramework/SCF" target="_blank" class="qqGroup_tip">SCF<a>'));
});

$('ins div:contains(NeuChar)').each(function (i, item) {
$(this).html($(this).html().replace('NeuChar', '<a href="https://github.com/Senparc/NeuChar" target="_blank" class="qqGroup_tip">NeuChar<a>'));
});
},
error: function () {
//alert('fail');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ senparc.menu = {
$('#menuTable tbody tr').eq(row).find('td').eq(0).addClass('currentMenuItem');

//一级菜单提示
if (row == 5) {
if (row === 5) {
$('#rootButtonNotice').show();
} else {
$('#rootButtonNotice').hide();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@
<Content Include="Images\T1nAXdXb0jXXXXXXXX.png" />
<Content Include="Images\WeiWeiHiQrCode.jpg" />
<Content Include="Images\weiweihi_menu.png" />
<Content Include="Scripts\global.js" />
<Content Include="Scripts\jquery-1.7.1.js" />
<Content Include="Scripts\jquery-1.7.1.min.js" />
<None Include="Scripts\jquery.validate-vsdoc.js" />
Expand Down

0 comments on commit 8973eb6

Please sign in to comment.